[{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\.eslintrc.js","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\api\\avtions.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\api\\fetch.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\api\\global\\ApiChangeStatus.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\api\\global\\apiDelete.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\api\\global\\fetchData.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(auth)\\change-password\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(auth)\\forget-password\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(auth)\\layout.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(auth)\\reset-password\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(auth)\\signin\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(auth)\\update-password\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(dev)\\CRUD-generator\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(dev)\\formCardCLI\\formCreator.cli.js","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(dev)\\formCardCLI\\formInputFile.js","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(dev)\\formCardCLI\\formPage.js","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(dev)\\formCardCLI\\formSchema.js","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(dev)\\formCardCLI\\helpers\\static.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(dev)\\formCardCLI\\helpers\\uihelpers.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(dev)\\formCardCLI\\ui\\FormBuilder.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(dev)\\formCardCLI\\ui\\FormInputGenerator.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(dev)\\formPage\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\chat\\_components\\chatMenu\\ChatItem.tsx","messages":[{"ruleId":null,"message":"Unused eslint-disable directive (no problems were reported from 'jsx-a11y/no-static-element-interactions').","line":1,"column":1,"severity":1,"nodeType":null,"fix":{"range":[0,60],"text":" "}},{"ruleId":null,"message":"Unused eslint-disable directive (no problems were reported from 'jsx-a11y/click-events-have-key-events').","line":2,"column":1,"severity":1,"nodeType":null,"fix":{"range":[62,120],"text":" "}}],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":2,"source":"/* eslint-disable jsx-a11y/no-static-element-interactions */\r\n/* eslint-disable jsx-a11y/click-events-have-key-events */\r\nimport { fetchHelper } from \"@/api/fetch\";\r\nimport changeTimeFormatServer from \"@/utils/changeTimeFormatServer\";\r\nimport { API_ENDPOINTS, API_IMG_URL } from \"@/utils/config\";\r\nimport { useLocale } from \"next-intl\";\r\nimport Image from \"next/image\";\r\nimport { useChatStore } from \"../../_hooks/chatStore\";\r\nimport useSocket from \"../../_hooks/SocketIoStore\";\r\n\r\nfunction ChatItem({ conversation }: { conversation: Conversation }) {\r\n  const locale = useLocale();\r\n  const { setSelectedConversation, selectedConversation, socketZustand } = useChatStore();\r\n  const { sendMessage } = useSocket();\r\n  const isSelectedChat = selectedConversation.id === conversation.id;\r\n\r\n  return (\r\n    <div\r\n      onClick={() => {\r\n        if (selectedConversation.id !== conversation.id) {\r\n          fetchHelper({\r\n            endPoint: API_ENDPOINTS.conversations,\r\n            method: \"GET\",\r\n            params: {\r\n              id: conversation.id\r\n            }\r\n          }).then((data: ApiResponse<Message[]>) => {\r\n            setSelectedConversation({\r\n              id: conversation.id,\r\n              messages: data.data,\r\n              User: conversation.UserConversation[0].User\r\n            });\r\n            sendMessage(\"join_room\", {\r\n              conversationId: conversation.id\r\n            });\r\n          });\r\n        }\r\n      }}\r\n      className={`flex  justify-between border-b py-2 cursor-pointer ${\r\n        isSelectedChat ? \" bg-gray-100 p-2 rounded-md\" : \"\"\r\n      }`}\r\n    >\r\n      <div className=\"flex items-center gap-[5px]\">\r\n        <Image\r\n          src={`${API_IMG_URL}${conversation.UserConversation[0].User.image}`}\r\n          width={40}\r\n          height={40}\r\n          className=\"rounded-full\"\r\n          alt=\"\"\r\n        />\r\n        <div>\r\n          <h1>\r\n            {conversation.UserConversation[0].User.firstName}{\" \"}\r\n            {conversation.UserConversation[0].User.lastName}\r\n          </h1>\r\n          <p className=\" text-sm text-gray-500\">{conversation.UserConversation[0].User.phone}</p>\r\n          <p className=\" text-xs text-gray-500\">\r\n            {conversation.Message.length ? conversation.Message[0].content : null}\r\n          </p>\r\n        </div>\r\n      </div>\r\n      <p className=\" text-xs text-gray-500\">\r\n        {conversation.Message.length\r\n          ? changeTimeFormatServer({\r\n              time: conversation.Message[0].createdAt,\r\n              locale,\r\n              year: false,\r\n              month: false,\r\n              day: false\r\n            })\r\n          : null}\r\n      </p>\r\n    </div>\r\n  );\r\n}\r\n\r\nexport default ChatItem;\r\n","usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\chat\\_components\\chatMenu\\ChatItems.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\chat\\_components\\chatMenu\\ChatMenu.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\chat\\_components\\chatMenu\\HandleRealTimeEvents.tsx","messages":[{"ruleId":"react-hooks/exhaustive-deps","severity":1,"message":"React Hook useEffect has missing dependencies: 'initailConversations' and 'setConversations'. Either include them or remove the dependency array.","line":17,"column":6,"nodeType":"ArrayExpression","endLine":17,"endColumn":8,"suggestions":[{"desc":"Update the dependencies array to be: [initailConversations, setConversations]","fix":{"range":[547,549],"text":"[initailConversations, setConversations]"}}]},{"ruleId":"react-hooks/exhaustive-deps","severity":1,"message":"React Hook useEffect has missing dependencies: 'conversations', 'listenForEvent', 'setConversations', and 'setSelectedConversation'. Either include them or remove the dependency array.","line":112,"column":6,"nodeType":"ArrayExpression","endLine":112,"endColumn":61,"suggestions":[{"desc":"Update the dependencies array to be: [socket, selectedConversation, selectedConversation.id, listenForEvent, conversations, setSelectedConversation, setConversations]","fix":{"range":[4318,4373],"text":"[socket, selectedConversation, selectedConversation.id, listenForEvent, conversations, setSelectedConversation, setConversations]"}}]}],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":"\"use client\";\r\nimport { CHAT_WEBSOCKET_EVENTS } from \"@/utils/config\";\r\nimport { useEffect } from \"react\";\r\nimport { useChatStore } from \"../../_hooks/chatStore\";\r\nimport useSocket from \"../../_hooks/SocketIoStore\";\r\n\r\nfunction HandleRealTimeEvents({ initailConversations }: { initailConversations: Conversation[] }) {\r\n  const {\r\n    setConversations,\r\n    conversations,\r\n    selectedConversation,\r\n    setSelectedConversation,\r\n    setSocketZustand\r\n  } = useChatStore();\r\n  useEffect(() => {\r\n    setConversations(initailConversations);\r\n  }, []);\r\n  const { socket, listenForEvent } = useSocket();\r\n  console.log(selectedConversation, \"hey\");\r\n  useEffect(() => {\r\n    if (socket) {\r\n      if (selectedConversation.id) {\r\n        listenForEvent(\r\n          `${CHAT_WEBSOCKET_EVENTS.messageDelivered}`,\r\n          (message: SendMessageLisetner) => {\r\n            console.log(\"Message from server: messageDelivered\", message, selectedConversation);\r\n            const conversationIndex = conversations.findIndex(\r\n              conversation => conversation.id === message.conversationId\r\n            );\r\n            if (selectedConversation.id === message.conversationId) {\r\n              setSelectedConversation({\r\n                id: message.conversationId,\r\n                messages: [\r\n                  ...selectedConversation.messages,\r\n                  {\r\n                    content: message.content,\r\n                    createdAt: message.createdAt,\r\n                    senderId: message.senderId\r\n                  }\r\n                ],\r\n                User: {\r\n                  ...message.SenderMessage,\r\n                  id: message.senderId,\r\n                  isOnline: false // or set the appropriate value\r\n                }\r\n              });\r\n            }\r\n            if (conversationIndex !== -1) {\r\n              const newConversation = conversations;\r\n              newConversation[conversationIndex].Message = [\r\n                {\r\n                  content: message.content,\r\n                  createdAt: message.createdAt\r\n                }\r\n              ];\r\n              setConversations(newConversation);\r\n            } else {\r\n              const newConversation = conversations;\r\n              newConversation.push({\r\n                id: message.conversationId,\r\n                Message: [\r\n                  {\r\n                    content: message.content,\r\n                    createdAt: message.createdAt\r\n                  }\r\n                ],\r\n                UserConversation: [\r\n                  { User: { ...message.SenderMessage, id: message.senderId, isOnline: false } }\r\n                ],\r\n                unreadCount: 0\r\n              });\r\n              setConversations(newConversation);\r\n            }\r\n          }\r\n        );\r\n      }\r\n      listenForEvent(CHAT_WEBSOCKET_EVENTS.newMessage, (message: SendMessageLisetner) => {\r\n        // console.log('Message from server:', message,selectedConversation);\r\n        const conversationIndex = conversations.findIndex(\r\n          conversation => conversation.id === message.conversationId\r\n        );\r\n        //   if(selectedConversation.id===message.conversationId){\r\n        //       setSelectedConversation({\r\n        //           id: message.conversationId, messages: [...selectedConversation.messages, { content: message.content, createdAt: message.createdAt,senderId:message.senderId}], User: message.SenderMessage\r\n        //       })\r\n        //   }\r\n        if (conversationIndex !== -1) {\r\n          const newConversation = conversations;\r\n          newConversation[conversationIndex].Message = [\r\n            { content: message.content, createdAt: message.createdAt }\r\n          ];\r\n          setConversations(newConversation);\r\n        } else {\r\n          const newConversation = conversations;\r\n          newConversation.push({\r\n            id: message.conversationId,\r\n            Message: [\r\n              {\r\n                content: message.content,\r\n                createdAt: message.createdAt\r\n              }\r\n            ],\r\n            UserConversation: [\r\n              { User: { ...message.SenderMessage, id: message.senderId, isOnline: false } }\r\n            ],\r\n            unreadCount: 0\r\n          });\r\n          setConversations(newConversation);\r\n        }\r\n      });\r\n    }\r\n  }, [socket, selectedConversation, selectedConversation.id]);\r\n\r\n  return <div></div>;\r\n}\r\n\r\nexport default HandleRealTimeEvents;\r\n","usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\chat\\_components\\chatMenu\\SearchChats.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\chat\\_components\\chatting\\Catting.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\chat\\_components\\chatting\\MessageItem.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\chat\\_components\\chatting\\Messages.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\chat\\_components\\chatting\\NoChatSelected.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\chat\\_components\\chatting\\SelectedChat.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\chat\\_components\\chatting\\SendMessageSection.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\chat\\_components\\chatting\\TopMenu.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\chat\\_hooks\\SocketIoStore.ts","messages":[{"ruleId":"react-hooks/immutability","severity":2,"message":"Error: Cannot modify local variables after render completes\n\nThis argument is a function which may reassign or mutate `socket` after render, which can cause inconsistent behavior on subsequent renders. Consider using state instead.\n\nD:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\chat\\_hooks\\SocketIoStore.ts:13:13\n  11 |   let socket = socketZustand;\n  12 |\n> 13 |   useEffect(() => {\n     |             ^^^^^^^\n> 14 |     // Create socket connection only once\n     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n> 15 |     if (!socketZustand) {\n     …\n     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n> 37 |     }\n     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n> 38 |   }, []);\n     | ^^^^ This function may (indirectly) reassign or modify `socket` after render\n  39 |\n  40 |   // Emit an event to the server\n  41 |   const sendMessage = (event: string, data: any): void => {\n\nD:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\chat\\_hooks\\SocketIoStore.ts:16:7\n  14 |     // Create socket connection only once\n  15 |     if (!socketZustand) {\n> 16 |       socket = io(CHAT_WEBSOCKET_URL, {\n     |       ^^^^^^ This modifies `socket`\n  17 |         transportOptions: {\n  18 |           polling: { extraHeaders: { Authorization: `Bearer ${Cookies.get(TOKEN)}` } }\n  19 |         }","line":13,"column":13,"nodeType":null,"endLine":38,"endColumn":4},{"ruleId":"react-hooks/immutability","severity":2,"message":"Error: Cannot reassign variable after render completes\n\nReassigning `socket` after render has completed can cause inconsistent behavior on subsequent renders. Consider using state instead.\n\nD:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\chat\\_hooks\\SocketIoStore.ts:16:7\n  14 |     // Create socket connection only once\n  15 |     if (!socketZustand) {\n> 16 |       socket = io(CHAT_WEBSOCKET_URL, {\n     |       ^^^^^^ Cannot reassign `socket` after render completes\n  17 |         transportOptions: {\n  18 |           polling: { extraHeaders: { Authorization: `Bearer ${Cookies.get(TOKEN)}` } }\n  19 |         }","line":16,"column":7,"nodeType":null,"endLine":16,"endColumn":13},{"ruleId":"react-hooks/exhaustive-deps","severity":1,"message":"Assignments to the 'socket' variable from inside React Hook useEffect will be lost after each render. To preserve the value over time, store it in a useRef Hook and keep the mutable value in the '.current' property. Otherwise, you can move this variable directly inside useEffect.","line":16,"column":16,"nodeType":"CallExpression","endLine":20,"endColumn":9}],"suppressedMessages":[],"errorCount":2,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"// hooks/useSocket.ts\r\nimport { CHAT_WEBSOCKET_URL, TOKEN } from \"@/utils/config\";\r\nimport Cookies from \"js-cookie\";\r\nimport { useEffect, useState } from \"react\";\r\nimport { io } from \"socket.io-client\";\r\nimport { useChatStore } from \"./chatStore\";\r\n\r\nconst useSocket = (): UseSocketReturn => {\r\n  const [isConnected, setIsConnected] = useState<boolean>(false);\r\n  const { socketZustand, setSocketZustand } = useChatStore();\r\n  let socket = socketZustand;\r\n\r\n  useEffect(() => {\r\n    // Create socket connection only once\r\n    if (!socketZustand) {\r\n      socket = io(CHAT_WEBSOCKET_URL, {\r\n        transportOptions: {\r\n          polling: { extraHeaders: { Authorization: `Bearer ${Cookies.get(TOKEN)}` } }\r\n        }\r\n      });\r\n      setSocketZustand(socket);\r\n\r\n      socket?.on(\"connect\", () => {\r\n        setIsConnected(true);\r\n        console.log(\"Connected to socket\");\r\n      });\r\n\r\n      socket?.on(\"disconnect\", () => {\r\n        setIsConnected(false);\r\n        console.log(\"Disconnected from socket\");\r\n      });\r\n\r\n      // Clean up the socket connection on component unmount\r\n      return () => {\r\n        socket?.disconnect();\r\n      };\r\n    }\r\n  }, []);\r\n\r\n  // Emit an event to the server\r\n  const sendMessage = (event: string, data: any): void => {\r\n    if (socket) {\r\n      socket.emit(event, data);\r\n    }\r\n  };\r\n\r\n  // Listen for events from the server\r\n  const listenForEvent = (event: string, callback: (data: any) => void): void => {\r\n    if (socket) {\r\n      socket.on(event, callback);\r\n    }\r\n  };\r\n\r\n  return {\r\n    socket: socket || null,\r\n    isConnected,\r\n    sendMessage,\r\n    listenForEvent\r\n  };\r\n};\r\n\r\nexport default useSocket;\r\n","usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\chat\\_hooks\\chatStore.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\chat\\_hooks\\getSocket.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\chat\\_types\\chatTypes.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\chat\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\dashboard\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\dispatch-management\\[moduleId]\\on-going-orders\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\dispatch-management\\[moduleId]\\unassigned-orders\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\dispatch-management\\dashboard\\deliveryMap\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\dispatch-management\\dashboard\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\dispatch-management\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\layout.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\ProductReview\\[id]\\edit\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\ProductReview\\[id]\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\ProductReview\\create\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\ProductReview\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\addVariant\\create\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\addons\\[id]\\edit\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\addons\\[id]\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\addons\\create\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\addons\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\advertisement\\[id]\\edit\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\advertisement\\[id]\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\advertisement\\create\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\advertisement\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\banners\\[id]\\edit\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\banners\\[id]\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\banners\\create\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\banners\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\basic-campaigns\\[id]\\edit\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\basic-campaigns\\[id]\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\basic-campaigns\\create\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\basic-campaigns\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\brand\\[id]\\edit\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\brand\\[id]\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\brand\\create\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\brand\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\cashback\\[id]\\edit\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\cashback\\[id]\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\cashback\\create\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\cashback\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\category\\[id]\\edit\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\category\\[id]\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\category\\create\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\category\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\coupons\\[id]\\edit\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\coupons\\[id]\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\coupons\\create\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\coupons\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\dashboard\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\flash-sales\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\item-campaign\\[id]\\edit\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\item-campaign\\[id]\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\item-campaign\\create\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\item-campaign\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\orders\\[id]\\edit\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\orders\\[id]\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\orders\\create\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\orders\\on-going\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\orders\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\orders\\unassigned\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\pos\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\product\\[id]\\edit\\[variantId]\\edit\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\product\\[id]\\edit\\create\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\product\\[id]\\edit\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\product\\[id]\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\product\\[id]\\variant\\[variantId]\\edit\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\product\\[id]\\variant\\create\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\product\\create\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\product\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\push-notification\\[id]\\edit\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\push-notification\\[id]\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\push-notification\\create\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\push-notification\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\reel\\[id]\\edit\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\reel\\[id]\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\reel\\create\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\reel\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\referral\\[id]\\edit\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\referral\\[id]\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\referral\\create\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\referral\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\refund-requests\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\rewards\\[id]\\edit\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\rewards\\[id]\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\rewards\\create\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\rewards\\page.tsx","messages":[{"ruleId":"@next/next/no-img-element","severity":1,"message":"Using `<img>` could result in slower LCP and higher bandwidth. Consider using `<Image />` from `next/image` or a custom image loader to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element","line":19,"column":7,"nodeType":"JSXOpeningElement","endLine":19,"endColumn":89}],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"import { fetchHelper } from \"@/api/fetch\";\r\nimport TableBasic from \"@/components/common/table/TableBasic\";\r\nimport { API_ENDPOINTS } from \"@/utils/config\";\r\nimport { extractTableHeadersFromRes } from \"@/utils/extractTableHeaderFromRes\";\r\nimport { getTranslations } from \"next-intl/server\";\r\n\r\nasync function page(context: ContextT) {\r\n  const t = await getTranslations();\r\n  const data = await fetchHelper({\r\n    endPoint: API_ENDPOINTS.rewards,\r\n    method: \"GET\",\r\n    params: (await context.searchParams)\r\n  });\r\n\r\n  if (!data) return <div>Error...</div>;\r\n  const filteredData = data?.data?.map((item: { image: string }) => ({\r\n    ...item,\r\n    qrImg: item.image ? (\r\n      <img src={item.image} alt=\"QR Code\" style={{ width: \"100px\", height: \"100px\" }} />\r\n    ) : (\r\n      \"No Image\"\r\n    )\r\n  }));\r\n  const headers = [\"id\", \"code\", \"name\", \"qrImg\"];\r\n  return (\r\n    <>\r\n      <TableBasic\r\n        data={filteredData}\r\n        headers={headers}\r\n        pagination={{\r\n          totalPages: data?.totalPages,\r\n          totalData: data?.total,\r\n          limit: data?.limit\r\n        }}\r\n        tableActions={{\r\n          onEdit: true,\r\n          onDelete: API_ENDPOINTS.rewards,\r\n          onInfo: true\r\n        }}\r\n        cardHeader={t(\"Rewards Table\")}\r\n        filters={[\r\n          { name: \"name\", placeholder: \"Name\", type: \"text\" },\r\n          { name: \"code\", placeholder: \"Code\", type: \"text\" }\r\n        ]}\r\n      />\r\n    </>\r\n  );\r\n}\r\n\r\nexport default page;\r\n","usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\storeList\\[id]\\coupon\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\storeList\\[id]\\edit\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\storeList\\[id]\\layout.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\storeList\\[id]\\order\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\storeList\\[id]\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\storeList\\[id]\\product\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\storeList\\[id]\\review\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\storeList\\[id]\\transaction\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\storeList\\create\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\storeList\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\subCategory\\[id]\\edit\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\subCategory\\[id]\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\subCategory\\create\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\subCategory\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\units\\[id]\\edit\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\units\\[id]\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\units\\create\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\module\\[moduleId]\\units\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\settings\\bussiness-management\\bussiness-settings\\order-settings\\[id]\\edit\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\settings\\bussiness-management\\bussiness-settings\\order-settings\\[id]\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\settings\\bussiness-management\\bussiness-settings\\order-settings\\create\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\settings\\bussiness-management\\bussiness-settings\\order-settings\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\settings\\bussiness-management\\bussiness-settings\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\settings\\bussiness-management\\bussiness-settings\\refund-settings\\[id]\\edit\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\settings\\bussiness-management\\bussiness-settings\\refund-settings\\create\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\settings\\bussiness-management\\bussiness-settings\\refund-settings\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\settings\\bussiness-management\\channel\\[id]\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\settings\\bussiness-management\\channel\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\settings\\bussiness-management\\city\\[id]\\edit\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\settings\\bussiness-management\\city\\[id]\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\settings\\bussiness-management\\city\\create\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\settings\\bussiness-management\\city\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\settings\\bussiness-management\\country\\[id]\\edit\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\settings\\bussiness-management\\country\\[id]\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\settings\\bussiness-management\\country\\create\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\settings\\bussiness-management\\country\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\settings\\bussiness-management\\gallery\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\settings\\bussiness-management\\modules\\[id]\\edit\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\settings\\bussiness-management\\modules\\[id]\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\settings\\bussiness-management\\modules\\create\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\settings\\bussiness-management\\modules\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\settings\\bussiness-management\\sub-scriped-package\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\settings\\bussiness-management\\sub-scription-settings\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\settings\\bussiness-management\\subscription-package\\[id]\\edit\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\settings\\bussiness-management\\subscription-package\\[id]\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\settings\\bussiness-management\\subscription-package\\create\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\settings\\bussiness-management\\subscription-package\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\settings\\bussiness-management\\supscripers\\[id]\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\settings\\bussiness-management\\supscripers\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\settings\\bussiness-management\\zone-setup\\[id]\\edit\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\settings\\bussiness-management\\zone-setup\\[id]\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\settings\\bussiness-management\\zone-setup\\create\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\settings\\bussiness-management\\zone-setup\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\settings\\email\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\settings\\phone\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\settings\\socialMedia\\[id]\\edit\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\settings\\socialMedia\\[id]\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\settings\\socialMedia\\create\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\settings\\socialMedia\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\settings\\system-management\\email-template\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\settings\\terms\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\settings\\testimonials\\[id]\\edit\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\settings\\testimonials\\create\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\settings\\testimonials\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\transactions-reports\\bussiness-management\\store-disbursement\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\transactions-reports\\bussiness-management\\withdraw-method\\[id]\\edit\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\transactions-reports\\bussiness-management\\withdraw-method\\[id]\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\transactions-reports\\bussiness-management\\withdraw-method\\create\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\transactions-reports\\bussiness-management\\withdraw-method\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\transactions-reports\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\transactions-reports\\reports\\disbursement-report\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\transactions-reports\\reports\\expense-report\\create\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\transactions-reports\\reports\\expense-report\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\transactions-reports\\reports\\item-report\\[id]\\edit\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\transactions-reports\\reports\\item-report\\[id]\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\transactions-reports\\reports\\item-report\\create\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\transactions-reports\\reports\\item-report\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\transactions-reports\\reports\\order-report\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\transactions-reports\\reports\\store-wise-report\\order-report\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\transactions-reports\\reports\\store-wise-report\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\transactions-reports\\reports\\store-wise-report\\sales-report\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\transactions-reports\\reports\\store-wise-report\\summary-report\\[id]\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\transactions-reports\\reports\\store-wise-report\\summary-report\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\transactions-reports\\reports\\transaction-report\\[id]\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\transactions-reports\\reports\\transaction-report\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\transactions-reports\\reports\\zone-report\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\users\\autenti-contracts\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\users\\contact\\[id]\\edit\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\users\\contact\\[id]\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\users\\contact\\create\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\users\\contact\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\users\\customer\\[id]\\edit\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\users\\customer\\[id]\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\users\\customer\\create\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\users\\customer\\loyality-points\\report\\[id]\\edit\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\users\\customer\\loyality-points\\report\\[id]\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\users\\customer\\loyality-points\\report\\create\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\users\\customer\\loyality-points\\report\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\users\\customer\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\users\\customer\\wallet\\add-fund\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\users\\customer\\wallet\\report\\[id]\\edit\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\users\\customer\\wallet\\report\\[id]\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\users\\customer\\wallet\\report\\create\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\users\\customer\\wallet\\report\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\users\\delivery\\[id]\\edit\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\users\\delivery\\[id]\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\users\\delivery\\create\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\users\\delivery\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\users\\driver-companies\\[id]\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\users\\driver-companies\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\users\\driver-company-edit-requests\\[id]\\page.tsx","messages":[],"suppressedMessages":[{"ruleId":"@next/next/no-img-element","severity":1,"message":"Using `<img>` could result in slower LCP and higher bandwidth. Consider using `<Image />` from `next/image` or a custom image loader to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element","line":49,"column":9,"nodeType":"JSXOpeningElement","endLine":49,"endColumn":83,"suppressions":[{"kind":"directive","justification":""}]},{"ruleId":"@next/next/no-img-element","severity":1,"message":"Using `<img>` could result in slower LCP and higher bandwidth. Consider using `<Image />` from `next/image` or a custom image loader to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element","line":66,"column":11,"nodeType":"JSXOpeningElement","endLine":66,"endColumn":85,"suppressions":[{"kind":"directive","justification":""}]}],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\users\\driver-company-edit-requests\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\users\\driver-company-support-messages\\[id]\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\users\\driver-company-support-messages\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\users\\driver-tiers\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\users\\edit-profile\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\users\\employee-role\\[id]\\edit\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\users\\employee-role\\[id]\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\users\\employee-role\\create\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\users\\employee-role\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\users\\employee\\[id]\\edit\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\users\\employee\\[id]\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\users\\employee\\create\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\users\\employee\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\users\\overview\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\users\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\(routes)\\users\\table-reservations\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\[...rest]\\page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\error.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\layout.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\loading.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\[locale]\\not-found.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\api\\crud\\create\\route.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\api\\generate-form\\route.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\app\\fonts\\fonts.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\auto-translation.js","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\commitlint.config.cjs","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\Breadcrumb.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\CustomerInfoComponent.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\DeliveryManInfo.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\LanguageDropdown.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\LogoutButton.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\PriceAmount.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\ProductComponent.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\SideBarItems.tsx","messages":[{"ruleId":"react-hooks/exhaustive-deps","severity":1,"message":"React Hook useMemo has a missing dependency: 'linkMatchesSearch'. Either include it or remove the dependency array.","line":96,"column":6,"nodeType":"ArrayExpression","endLine":96,"endColumn":35,"suggestions":[{"desc":"Update the dependencies array to be: [links, linkMatchesSearch]","fix":{"range":[3275,3304],"text":"[links, linkMatchesSearch]"}}]}],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"\"use client\";\r\n\r\nimport { fetchHelper } from \"@/api/fetch\";\r\nimport {\r\n  SidebarMenu,\r\n  SidebarMenuButton,\r\n  SidebarMenuItem,\r\n  SidebarMenuSub,\r\n  SidebarMenuSubItem,\r\n  useSidebar\r\n} from \"@/components/ui/sidebar\";\r\nimport { cn } from \"@/lib/utils\";\r\nimport { API_ENDPOINTS } from \"@/utils/config\";\r\nimport { useViewLinks } from \"@/utils/viewLinks/viewLinks\";\r\nimport { ChevronDown } from \"lucide-react\";\r\nimport { useLocale, useTranslations } from \"next-intl\";\r\nimport Link from \"next/link\";\r\nimport { useParams, usePathname, useSearchParams } from \"next/navigation\";\r\nimport React, { useEffect, useMemo, useState } from \"react\";\r\nimport { Collapsible, CollapsibleContent, CollapsibleTrigger } from \"./ui/collapsible\";\r\n\r\nfunction SideBarItems({\r\n  modules,\r\n  permissions\r\n  // orderCountData\r\n}: {\r\n  // orderCountData: OrderCount;\r\n  permissions: hasPermissions;\r\n  modules: ModuleType[];\r\n}) {\r\n  const { moduleId } = useParams();\r\n  const [orderCountData, setOrderCountData] = useState<OrderCount>({\r\n    WAITING_DELIVERY_ACCEPTANCE: 0,\r\n    WAITING_DELIVERY: 0,\r\n    PENDING: 0,\r\n    ACCEPTED: 0,\r\n    REJECTED: 0,\r\n    DELIVERED: 0,\r\n    ON_THE_WAY: 0,\r\n    HANDED_OVER: 0,\r\n    CANCELLED: 0,\r\n    PAYMENT_FAILED: 0,\r\n    REFUND: 0,\r\n    MISSED: 0,\r\n    TOTAL: 0\r\n  });\r\n  useEffect(() => {\r\n    (async () => {\r\n      if (moduleId?.toString()) {\r\n        let orderCount = await fetchHelper({\r\n          endPoint: API_ENDPOINTS.orderCount,\r\n          method: \"GET\",\r\n          cache: \"reload\",\r\n          params: { moduleId: Number(moduleId) }\r\n        });\r\n        orderCount = orderCount?.data?.reduce((acc: any, curr: any) => {\r\n          const [key, value] = Object.entries(curr)[0];\r\n          return { ...acc, [key]: value };\r\n        }, {});\r\n        if (typeof orderCount === \"object\")\r\n          orderCount.TOTAL = orderCount\r\n            ? Object?.values(orderCount)?.reduce((acc: any, curr: any) => acc + curr, 0)\r\n            : 0;\r\n\r\n        setOrderCountData(orderCount);\r\n      }\r\n    })();\r\n  }, [moduleId]);\r\n  const links = useViewLinks(modules, permissions, orderCountData);\r\n  const locale = useLocale();\r\n  const pathname = usePathname();\r\n  const searchParams = useSearchParams();\r\n  const currentFullPath = `${pathname}${searchParams.toString().length > 0 ? `?${searchParams.toString()}` : \"\"\r\n    }`;\r\n  const t = useTranslations();\r\n\r\n  const [searchTerm, setSearchTerm] = useState(\"\");\r\n\r\n  // Simple matching function for both parent & child titles\r\n  const matchesSearchTerm = (text: string | React.ReactNode | undefined): boolean => {\r\n    if (!text || typeof text !== \"string\") return false;\r\n    return text.toLowerCase().includes(searchTerm.toLowerCase());\r\n  };\r\n\r\n  // Helper function to check if the link or its children match the search term\r\n  const linkMatchesSearch = (item: any): boolean => {\r\n    // If the parent's title matches\r\n    if (matchesSearchTerm(item.title)) return true;\r\n    // If any of the children's title matches\r\n    return item.items?.some((child: any) => child && matchesSearchTerm(child.title));\r\n  };\r\n  const { open } = useSidebar();\r\n  // Memoized filtered links for better performance\r\n  const filteredLinks = useMemo(() => {\r\n    return links.filter(item => item && linkMatchesSearch(item));\r\n  }, [links, searchTerm, moduleId]);\r\n\r\n  // Helper function to check if a path is active\r\n  const isLinkActive = (fullPath: string) => currentFullPath === fullPath;\r\n  return (\r\n    <>\r\n      <div className={`${!open ? \"hidden\" : \"\"} p-2 py-0`}>\r\n        <input\r\n          type=\"text\"\r\n          placeholder={t(\"Search\")}\r\n          className=\"w-full px-3 py-2 rounded-md border text-sm\"\r\n          value={searchTerm}\r\n          onChange={e => setSearchTerm(e.target.value)}\r\n        />\r\n      </div>\r\n\r\n      <SidebarMenu>\r\n        {filteredLinks.map((item: any) => {\r\n          // Fallback if item is false or undefined\r\n          if (!item) return null;\r\n\r\n          const parentFullPath = `/${locale}${item.url}`;\r\n          const isParentActive = isLinkActive(parentFullPath);\r\n          const isAnyChildActive = item.items?.some((child: any) => {\r\n            if (!child) return false;\r\n            const childFullPath = `/${locale}${child.url}`;\r\n            return isLinkActive(childFullPath);\r\n          });\r\n          const defaultOpen = isParentActive || isAnyChildActive;\r\n\r\n          return (\r\n            <>\r\n              {item?.items && item?.items.length ? (\r\n                <Collapsible\r\n                  key={item.url}\r\n                  defaultOpen={defaultOpen || item?.isDefaultOpen}\r\n                  className=\"group/collapsible my-[10px]\"\r\n                >\r\n                  <SidebarMenuItem>\r\n                    <CollapsibleTrigger asChild>\r\n                      <SidebarMenuButton\r\n                        className=\"flex justify-between\"\r\n                        isActive={isParentActive || isAnyChildActive}\r\n                      >\r\n                        <div className=\"flex gap-2\">\r\n                          {item.icon && (\r\n                            <span className={cn(\" text-[18px] text-Base\")}>{item.icon}</span>\r\n                          )}\r\n                          {open && (\r\n                            <h1 className=\" font-bold text-[15px]\"> {open && item.title}</h1>\r\n                          )}\r\n                        </div>\r\n                        {/* Drop Arrow at the End */}\r\n                        <span className=\"\">\r\n                          {item?.info}\r\n                          <ChevronDown size={18} />\r\n                        </span>\r\n                      </SidebarMenuButton>\r\n                    </CollapsibleTrigger>\r\n                    <CollapsibleContent>\r\n                      <SidebarMenuSub>\r\n                        {item.items?.map((child: any) => {\r\n                          if (!child) return null;\r\n                          const childFullPath = `/${locale}${child.url}`;\r\n                          const isChildActive = isLinkActive(childFullPath);\r\n                          return (\r\n                            <SidebarMenuSubItem className=\"ms-1 mt-[8px]\" key={child.url}>\r\n                              <Link\r\n                                href={child.url ? childFullPath : \"#\"}\r\n                                className={`inline-flex w-full items-center mb-2 gap-3 ${isChildActive ? \"text-orange-500 font-semibold\" : \"\"\r\n                                  }`}\r\n                              >\r\n                                {child.icon && (\r\n                                  <span\r\n                                    style={{\r\n                                      filter: isChildActive ? \"invert(var(--base))\" : \"none\"\r\n                                    }}\r\n                                  >\r\n                                    {child.icon}\r\n                                  </span>\r\n                                )}\r\n                                <div className=\" flex justify-between w-full\">\r\n                                  {\" \"}\r\n                                  <div> {open && child?.title}</div>\r\n                                  {(child?.info || child?.info === 0) && <>{child?.info}</>}\r\n                                </div>\r\n                              </Link>\r\n                            </SidebarMenuSubItem>\r\n                          );\r\n                        })}\r\n                      </SidebarMenuSub>\r\n                    </CollapsibleContent>\r\n                  </SidebarMenuItem>\r\n                </Collapsible>\r\n              ) : (\r\n                <>\r\n                  <Link\r\n                    href={item.url ? `/${locale}${item.url}` : \"#\"}\r\n                    className={cn(\r\n                      `inline-flex my-[10px] items-center ms-[5px]  gap-3 font-bold`,\r\n                      isParentActive ? \"text-Base\" : \"\"\r\n                    )}\r\n                  >\r\n                    {item.icon && (\r\n                      <span\r\n                        style={{\r\n                          filter: \"invert(var(--base))\"\r\n                        }}\r\n                        className=\" text-Base\"\r\n                      >\r\n                        {item.icon}\r\n                      </span>\r\n                    )}\r\n                    {open && item.title}\r\n                  </Link>\r\n                </>\r\n              )}\r\n            </>\r\n          );\r\n        })}\r\n      </SidebarMenu>\r\n    </>\r\n  );\r\n}\r\n\r\nexport default SideBarItems;\r\n","usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\StoreInfo.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\UserDropdown.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\app-sidebar.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\change-password-form.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\changePasswordBtn.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Buttons\\SubmitSection.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Buttons\\back-btn.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Cards\\StatisticsCard.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Cards\\StatisticsCardV2.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Cards\\StatisticsWrapper.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Charts\\BarCharts.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Charts\\ChartComponent.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Charts\\OrderStatusChart.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Charts\\StatisticsChart.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Charts\\YearlyOrderChart.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\DefaultItemDetailsComponents\\BackButton.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\DefaultItemDetailsComponents\\ContentTextSection.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\DefaultItemDetailsComponents\\DefaultItemDetailsCreator.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\DefaultItemDetailsComponents\\DeleteSection.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\DefaultItemDetailsComponents\\ImageSection.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\DefaultItemDetailsComponents\\StatusSection.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\DefaultItemDetailsComponents\\SwiperImage.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Form\\CustomForm.tsx","messages":[{"ruleId":"react-hooks/immutability","severity":2,"message":"Error: This value cannot be modified\n\nModifying component props or hook arguments is not allowed. Consider using a local variable instead.\n\nD:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Form\\CustomForm.tsx:31:5\n  29 |   const { id } = PageType();\n  30 |   if (defaultConfig && defaultConfig.id === undefined) {\n> 31 |     defaultConfig.id = \"default\";\n     |     ^^^^^^^^^^^^^ value cannot be modified\n  32 |   }\n  33 |   const groupedInputs = inputs?.reduce(\n  34 |     (acc, input) => {","line":31,"column":5,"nodeType":null,"endLine":31,"endColumn":18}],"suppressedMessages":[],"errorCount":1,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":"import { useTranslations } from \"next-intl\";\r\nimport type { Control, FieldValues } from \"react-hook-form\";\r\n\r\nimport { PageType } from \"@/lib/utils\";\r\nimport SubmitSection from \"../Buttons/SubmitSection\";\r\nimport type { CardConfig, FormInput, FormLangs } from \"./CustomFormTypes.types\";\r\nimport FormCard from \"./FormCard\";\r\n\r\nexport default function CustomForm<T extends FieldValues>({\r\n  inputs,\r\n  control,\r\n  handleSubmit,\r\n  cardConfig,\r\n  defaultConfig,\r\n  children,\r\n  btnName,\r\n  changeLang\r\n}: {\r\n  defaultConfig?: CardConfig;\r\n  control: Control<T>;\r\n  children?: React.ReactNode;\r\n  btnName?: string;\r\n  inputs: FormInput[];\r\n  handleSubmit: any;\r\n  cardConfig?: CardConfig[];\r\n  changeLang?: FormLangs;\r\n}) {\r\n  const t = useTranslations();\r\n  const { id } = PageType();\r\n  if (defaultConfig && defaultConfig.id === undefined) {\r\n    defaultConfig.id = \"default\";\r\n  }\r\n  const groupedInputs = inputs?.reduce(\r\n    (acc, input) => {\r\n      if (input == undefined) {\r\n        return acc;\r\n      }\r\n      const cardId = input?.cardId || \"default\";\r\n\r\n      if (!acc[cardId]) {\r\n        acc[cardId] = [];\r\n      }\r\n      acc[cardId].push({\r\n        ...input,\r\n        label:\r\n          typeof input?.label === \"string\"\r\n            ? t(input.label)\r\n            : input?.label ?? t(`${input?.name}`),\r\n        id: input?.name,\r\n        defaultValue: input?.defaultValue || t(`${input?.name}`),\r\n        placeholder:\r\n          typeof input?.placeholder === \"string\"\r\n            ? t(input.placeholder)\r\n            : t(`${input?.name}`)\r\n      });\r\n      return acc;\r\n    },\r\n    {} as Record<string | number, FormInput[]>\r\n  );\r\n  if (!groupedInputs || Object.keys(groupedInputs).length === 0) {\r\n    return <div>{t(\"No inputs available\")}</div>;\r\n  }\r\n  return (\r\n    <form noValidate onSubmit={handleSubmit} className={\"dark:!bg-dark-backGround rounded-md\"}>\r\n      <div className=\"flex flex-col gap-4 py-4\">\r\n        <div className=\"flex flex-col gap-4 py-8\">\r\n          <div className=\"grid grid-cols-6 gap-4\">\r\n            {Object.entries(groupedInputs).map(([cardId, cardInputs]) => {\r\n              return (\r\n                <FormCard<T>\r\n                  key={cardId}\r\n                  cardId={cardId}\r\n                  cardInputs={cardInputs}\r\n                  changeLang={changeLang}\r\n                  cardConfig={cardConfig}\r\n                  defaultConfig={defaultConfig}\r\n                  control={control}\r\n                />\r\n              );\r\n            })}\r\n          </div>\r\n          <div className=\"w-full\">{children}</div>\r\n          <SubmitSection btnName={btnName} id={id} />\r\n        </div>\r\n      </div>\r\n    </form>\r\n  );\r\n}\r\n","usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Form\\CustomFormTypes.types.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Form\\CustomGeneratedInputs.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Form\\FormCard.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Form\\FormCardContainer.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Form\\FormCardTitle.layout.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Form\\FormInputContainer.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Form\\FormItems.layout.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Form\\InputLabel.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Form\\InputLangSwitcher.tsx","messages":[{"ruleId":"react-hooks/exhaustive-deps","severity":1,"message":"React Hook useEffect has a missing dependency: 'handleLangChange'. Either include it or remove the dependency array.","line":46,"column":6,"nodeType":"ArrayExpression","endLine":46,"endColumn":18,"suggestions":[{"desc":"Update the dependencies array to be: [changeLang, handleLangChange]","fix":{"range":[1273,1285],"text":"[changeLang, handleLangChange]"}}]}],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"import { useEffect } from \"react\";\r\nimport {\r\n  DEFAULT_FORM_LANG_CODES,\r\n  FORM_LANG_CONFIG,\r\n  type FormLangs\r\n} from \"./CustomFormTypes.types\";\r\n\r\nconst styles = {\r\n  languageButton: {\r\n    padding: \"5px 10px\",\r\n    margin: \"0 5px\",\r\n    border: \"none\",\r\n    borderBottom: \"2px solid transparent\",\r\n    backgroundColor: \"transparent\",\r\n    cursor: \"pointer\"\r\n  },\r\n  activeButton: {\r\n    borderBottom: \"2.5px solid red\"\r\n  }\r\n};\r\n\r\nexport default function InputLangSwitcher({\r\n  selectedLang,\r\n  setSelectedLang,\r\n  changeLang,\r\n  languages = DEFAULT_FORM_LANG_CODES\r\n}: {\r\n  selectedLang: FormLangs;\r\n  changeLang?: FormLangs;\r\n  /** Locale codes (e.g. [\"ar\",\"en\",\"pl\",\"uk\"]) this card can be edited in. */\r\n  languages?: string[];\r\n  setSelectedLang: (lang: FormLangs) => void;\r\n}) {\r\n  const langOptions = FORM_LANG_CONFIG.filter(l => languages.includes(l.code));\r\n\r\n  const handleLangChange = (lang: FormLangs) => {\r\n    setSelectedLang(lang);\r\n  };\r\n\r\n  // `changeLang` is \"changeTo<Suffix>\" (e.g. \"changeToPl\"), set when a field in\r\n  // that language fails validation so we can jump the user straight to it.\r\n  useEffect(() => {\r\n    if (changeLang?.startsWith(\"changeTo\")) {\r\n      handleLangChange(changeLang.replace(\"changeTo\", \"\") as FormLangs);\r\n    }\r\n  }, [changeLang]);\r\n\r\n  return (\r\n    <div className=\"col-span-6 mt-2\">\r\n      {langOptions.map(lang => (\r\n        <button\r\n          type=\"button\"\r\n          key={lang.suffix}\r\n          onClick={() => handleLangChange(lang.suffix as FormLangs)}\r\n          style={{\r\n            ...styles.languageButton,\r\n            ...(selectedLang === lang.suffix ? styles.activeButton : {})\r\n          }}\r\n        >\r\n          {lang.label}\r\n        </button>\r\n      ))}\r\n      <hr />\r\n    </div>\r\n  );\r\n}\r\n","usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Form\\hooks\\createBooleanInput.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Form\\hooks\\createEnuminput.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Form\\hooks\\createFileInput.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Form\\hooks\\createLatitudeInput.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Form\\hooks\\createNumberinput.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Form\\hooks\\createStringInput.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Form\\hooks\\errors.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Form\\hooks\\useFormErrorLang.ts","messages":[{"ruleId":"react-hooks/exhaustive-deps","severity":1,"message":"React Hook useEffect has missing dependencies: 'name' and 't'. Either include them or remove the dependency array.","line":34,"column":6,"nodeType":"ArrayExpression","endLine":34,"endColumn":14,"suggestions":[{"desc":"Update the dependencies array to be: [errors, name, t]","fix":{"range":[1053,1061],"text":"[errors, name, t]"}}]}],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"import { FormLangs } from \"@/components/common/Form/CustomFormTypes.types\";\r\nimport { useLocale, useTranslations } from \"next-intl\";\r\nimport { useEffect, useState } from \"react\";\r\nimport { toast } from \"sonner\";\r\n\r\nexport default function useFormErrorLang({\r\n  errors,\r\n  name\r\n}: {\r\n  errors: any;\r\n  name: Readonly<string[]>;\r\n}) {\r\n  const locale = useLocale();\r\n  const t = useTranslations();\r\n  const [lang, setLang] = useState<FormLangs>(locale === \"ar\" ? \"Ar\" : \"En\");\r\n  useEffect(() => {\r\n    name.forEach(element => {\r\n      if (Object.keys(errors).includes(`${element}En`)) {\r\n        setLang(\"changeToEn\");\r\n        window.scrollTo(0, 0);\r\n\r\n        toast.error(`${t(element)} (${t(\"En\")})`, {\r\n          description: errors[`${element}En`]?.message\r\n        });\r\n      }\r\n      if (Object.keys(errors).includes(`${element}Ar`)) {\r\n        setLang(\"changeToAr\");\r\n        window.scrollTo(0, 0);\r\n        toast.error(`${t(element)} (${t(\"Ar\")})`, {\r\n          description: errors[`${element}Ar`]?.message\r\n        });\r\n      }\r\n    });\r\n  }, [errors]);\r\n  return {\r\n    lang\r\n  };\r\n}\r\n","usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Form\\inputRenderers.tsx","messages":[{"ruleId":null,"message":"Unused eslint-disable directive (no problems were reported from '@typescript-eslint/no-explicit-any').","line":1,"column":1,"severity":1,"nodeType":null,"fix":{"range":[0,55],"text":" "}}],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":1,"source":"/* eslint-disable @typescript-eslint/no-explicit-any */\r\nimport ErrorMessage from \"@/components/ui/ErrorMessage\";\r\nimport { Input } from \"@/components/ui/input\";\r\nimport { Textarea } from \"@/components/ui/textarea\";\r\nimport type { FieldErrors } from \"react-hook-form\";\r\nimport CheckBoxInput from \"../Inputs/CheckBoxInput\";\r\nimport { DateInput } from \"../Inputs/DateInput\";\r\nimport GoogleMapInput from \"../Inputs/GoogleMapInput\";\r\nimport GoogleMapZoneInput from \"../Inputs/GoogleMapZoneInput\";\r\nimport ImgInput from \"../Inputs/ImgInput\";\r\nimport MultiSelectInput from \"../Inputs/MultiSelectInput\";\r\nimport NumberInput from \"../Inputs/NumberInput\";\r\nimport RadioButtonInput from \"../Inputs/RadioButtonInput\";\r\nimport SAPhoneInput from \"../Inputs/SAPhoneInput\";\r\nimport SelectInput from \"../Inputs/SelectInputs\";\r\nimport dynamic from \"next/dynamic\";\r\nconst SelectPaginated = dynamic(() => import(\"../Inputs/SelectPaginatedInput\"), {\r\n  ssr: false\r\n});\r\n// import SelectPaginated from \"../Inputs/SelectPaginatedInput\";\r\nimport TextEditor from \"../Inputs/TextEditor\";\r\nimport TextInput from \"../Inputs/TextInput\";\r\nimport TimeInput from \"../Inputs/TimeInput\";\r\nimport VideoInput from \"../Inputs/video-input\";\r\nimport type { FormInput } from \"./CustomFormTypes.types\";\r\nimport { getNestedError } from \"./hooks/errors\";\r\nimport TagInput from \"../Inputs/tag-input\";\r\n\r\nconst getErrorMessage = (errors: FieldErrors, name: string) => {\r\n  return name.split(\".\").length === 3\r\n    ? getNestedError(errors, name)\r\n    : (errors[name]?.message as string);\r\n};\r\n\r\nconst InputWrapper = ({\r\n  children,\r\n  error,\r\n  required,\r\n  label,\r\n  multiLang\r\n}: {\r\n  multiLang?: boolean;\r\n  required?: boolean;\r\n  label?: string | JSX.Element;\r\n  children: React.ReactNode;\r\n  error?: string;\r\n}) => (\r\n  <div className=\"w-full h-full\">\r\n    {required && <span className=\"text-red-500 mx-1\">*</span>}\r\n    {label && <label className=\"text-sm text-gray-600\">{label}</label>}\r\n    <div className=\"flex flex-col  \">\r\n      {\" \"}\r\n      {children}\r\n      <div className=\"flex-1\">{error && <ErrorMessage error={error} />}</div>\r\n    </div>\r\n  </div>\r\n);\r\n\r\nconst renderInput = (item: FormInput, field: any) => {\r\n  const commonProps = {\r\n    value: field.value,\r\n    onChange: field.onChange,\r\n    name: item.name,\r\n    placeholder: item.placeholder,\r\n    className: item.inputClassName\r\n  };\r\n\r\n  switch (item.type) {\r\n    case \"multiSelect\":\r\n      return (\r\n        <MultiSelectInput\r\n          {...commonProps}\r\n          options={item.options || []}\r\n          onChange={e => field.onChange(e)}\r\n        />\r\n      );\r\n\r\n    case \"textEditor\":\r\n      return (\r\n        <TextEditor\r\n          className={item.inputClassName ?? \"\"}\r\n          name={item.name}\r\n          onChange={field.onChange}\r\n          value={field.value}\r\n        />\r\n      );\r\n    case \"video\":\r\n      return <VideoInput {...commonProps} />;\r\n    case \"full-date\": {\r\n      const dateValue = commonProps.value\r\n        ? new Date(commonProps.value).toISOString()?.slice(0, 16)\r\n        : \"\";\r\n\r\n      return (\r\n        <>\r\n          <input\r\n            type=\"datetime-local\"\r\n            format-value=\"yyyy-MM-ddThh:mm\"\r\n            step=\"1800\"\r\n            {...commonProps}\r\n            value={dateValue}\r\n          />\r\n        </>\r\n      );\r\n    }\r\n    case \"map\":\r\n      return (\r\n        <GoogleMapInput\r\n          {...commonProps}\r\n          center={field.value ?? item.map?.center ?? { lat: 52.2297, lng: 21.0122 }}\r\n        />\r\n      );\r\n\r\n    case \"map-zone\":\r\n      return (\r\n        <GoogleMapZoneInput\r\n          {...commonProps}\r\n          center={item.map?.center ?? { lat: 52.2297, lng: 21.0122 }}\r\n        />\r\n      );\r\n\r\n    case \"selectPaginated\":\r\n      return (\r\n        <SelectPaginated\r\n          {...commonProps}\r\n          apiUrl={item.apiUrl || \"\"}\r\n          options={item.options || []}\r\n          isMulti={item.isMulti}\r\n          onChange={(e, meta) => {\r\n            field.onChange(e);\r\n            item.onChange && item.onChange(e as any, meta);\r\n          }}\r\n          labelKey={item.labelKey}\r\n          searchFilters={item.searchFilters}\r\n          idKey={item.idKey}\r\n        />\r\n      );\r\n\r\n    case \"checkbox\":\r\n      return <CheckBoxInput {...commonProps} options={item.options || []} />;\r\n\r\n    case \"radioGroup\":\r\n      return (\r\n        <RadioButtonInput\r\n          {...item}\r\n          {...commonProps}\r\n          options={item.options || []}\r\n          onChange={e => {\r\n            field.onChange(e);\r\n            item.onChange && item.onChange(e);\r\n          }}\r\n        />\r\n      );\r\n\r\n    case \"select\":\r\n      return (\r\n        <SelectInput\r\n          {...commonProps}\r\n          options={item.options || []}\r\n          onChange={e => {\r\n            field.onChange(e);\r\n            item.onChange?.(e);\r\n          }}\r\n        />\r\n      );\r\n\r\n    case \"img\":\r\n      return <ImgInput ratio={item.ratio} {...commonProps} />;\r\n\r\n    case \"textarea\":\r\n      return <Textarea {...commonProps} />;\r\n\r\n    case \"time\":\r\n      return <TimeInput {...commonProps} />;\r\n\r\n    case \"email\":\r\n      return <TextInput {...commonProps} type=\"email\" autoComplete=\"off\" />;\r\n\r\n    case \"date\":\r\n      return <DateInput {...commonProps} min={item?.min as Date} />;\r\n\r\n    case \"text\":\r\n      return <Input {...commonProps} type=\"text\" disabled={item.disabled} />;\r\n\r\n    case \"number\":\r\n      return (\r\n        <NumberInput {...commonProps} min={item.min as number | string} pattern=\"[0-9]*\\.?[0-9]*\" />\r\n      );\r\n\r\n    case \"password\":\r\n    case \"file\":\r\n      return <TextInput {...commonProps} type={item.type} />;\r\n    case \"tag-input\":\r\n      return <TagInput {...commonProps} />;\r\n    case \"tel\":\r\n      return <SAPhoneInput {...commonProps} />;\r\n\r\n    case \"space\":\r\n      return <div className=\"w-full h-4\" />;\r\n\r\n    default:\r\n      return null;\r\n  }\r\n};\r\n\r\nexport const renderInputComponent = ({\r\n  item,\r\n  field,\r\n  errors\r\n}: {\r\n  item: FormInput;\r\n  field: any;\r\n  errors: FieldErrors;\r\n}) => {\r\n  const errorMessage = getErrorMessage(errors, item.name);\r\n  return (\r\n    <InputWrapper\r\n      label={item.label ?? item.name}\r\n      required={item.required}\r\n      multiLang={item.multiLang}\r\n      error={errorMessage}\r\n    >\r\n      {renderInput(item, field)}\r\n    </InputWrapper>\r\n  );\r\n};\r\n","usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Inputs\\CheckBoxInput.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Inputs\\DateInput.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Inputs\\FilesUploadInput.tsx","messages":[{"ruleId":"react-hooks/immutability","severity":2,"message":"Error: Cannot access variable before it is declared\n\n`handleFiles` is accessed before it is declared, which prevents the earlier access from updating when this value changes over time.\n\nD:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Inputs\\FilesUploadInput.tsx:46:5\n  44 |\n  45 |     const droppedFiles = Array.from(e.dataTransfer.files);\n> 46 |     handleFiles(droppedFiles);\n     |     ^^^^^^^^^^^ `handleFiles` accessed before it is declared\n  47 |   }, []);\n  48 |\n  49 |   const handleFiles = (newFiles: File[]) => {\n\nD:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Inputs\\FilesUploadInput.tsx:49:3\n  47 |   }, []);\n  48 |\n> 49 |   const handleFiles = (newFiles: File[]) => {\n     |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n> 50 |     const validFiles = newFiles.filter(file => {\n     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n> 51 |       // const isValidType = ['image/jpeg', 'image/png'].includes(file.type)\n     …\n     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n> 61 |     });\n     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n> 62 |   };\n     | ^^^^^ `handleFiles` is declared here\n  63 |\n  64 |   const onFileSelect = (e: React.ChangeEvent<HTMLInputElement>) => {\n  65 |     if (e.target.files && e.target.files.length > 0) {","line":46,"column":5,"nodeType":null,"endLine":46,"endColumn":16},{"ruleId":"react-hooks/exhaustive-deps","severity":1,"message":"React Hook useCallback has a missing dependency: 'handleFiles'. Either include it or remove the dependency array.","line":47,"column":6,"nodeType":"ArrayExpression","endLine":47,"endColumn":8,"suggestions":[{"desc":"Update the dependencies array to be: [handleFiles]","fix":{"range":[1281,1283],"text":"[handleFiles]"}}]}],"suppressedMessages":[],"errorCount":1,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"\"use client\";\r\n\r\nimport { cn } from \"@/lib/utils\";\r\nimport { Cloud, X } from \"lucide-react\";\r\nimport { useTranslations } from \"next-intl\";\r\nimport Image from \"next/image\";\r\nimport { useCallback, useRef, useState } from \"react\";\r\n\r\nexport default function FilesUploadInput({\r\n  name,\r\n  maxSelections,\r\n  onChange,\r\n  minSelections,\r\n  value,\r\n  onRemove\r\n}: {\r\n  onRemove?: (value: string) => void;\r\n  name?: string;\r\n  maxSelections?: number;\r\n  minSelections?: number;\r\n  onChange?: (files: (File | string)[]) => void;\r\n  value: File[];\r\n}) {\r\n  const [files, setFiles] = useState<File[]>(value ?? []);\r\n  const [dragActive, setDragActive] = useState(false);\r\n  const inputRef = useRef<HTMLInputElement>(null);\r\n\r\n  const onDragOver = useCallback((e: React.DragEvent) => {\r\n    e.preventDefault();\r\n    e.stopPropagation();\r\n    setDragActive(true);\r\n  }, []);\r\n\r\n  const onDragLeave = useCallback((e: React.DragEvent) => {\r\n    e.preventDefault();\r\n    e.stopPropagation();\r\n    setDragActive(false);\r\n  }, []);\r\n  const t = useTranslations();\r\n  const onDrop = useCallback((e: React.DragEvent) => {\r\n    e.preventDefault();\r\n    e.stopPropagation();\r\n    setDragActive(false);\r\n\r\n    const droppedFiles = Array.from(e.dataTransfer.files);\r\n    handleFiles(droppedFiles);\r\n  }, []);\r\n\r\n  const handleFiles = (newFiles: File[]) => {\r\n    const validFiles = newFiles.filter(file => {\r\n      // const isValidType = ['image/jpeg', 'image/png'].includes(file.type)\r\n      const isValidType = true;\r\n      // const isValidSize = file.size <= 1024 * 1024 // 1MB\r\n      const isValidSize = true;\r\n      return isValidType && isValidSize;\r\n    });\r\n    onChange?.([...files, ...validFiles]);\r\n    setFiles(prev => {\r\n      const newFileList = [...prev, ...validFiles];\r\n      return newFileList.slice(0, 24); // Maximum 24 files\r\n    });\r\n  };\r\n\r\n  const onFileSelect = (e: React.ChangeEvent<HTMLInputElement>) => {\r\n    if (e.target.files && e.target.files.length > 0) {\r\n      const selectedFiles = Array.from(e.target.files);\r\n      handleFiles(selectedFiles);\r\n      // Reset input value so the same file can be selected again\r\n      // e.target.value = ''\r\n    }\r\n  };\r\n\r\n  const removeFile = (index: number) => {\r\n    setFiles(prev => {\r\n      const updatedFiles = prev.filter((_, i) => i !== index);\r\n      onChange?.(updatedFiles); // Call onChange with the updated file list\r\n      return updatedFiles;\r\n    });\r\n    if (typeof files[index] === \"string\") {\r\n      onRemove?.(files[index]);\r\n      return;\r\n    }\r\n  };\r\n\r\n  const openFileDialog = () => {\r\n    inputRef.current?.click();\r\n  };\r\n  return (\r\n    <div className=\"w-full max-w-4xl mx-auto space-y-4\">\r\n      <div className=\"space-y-1.5\"></div>\r\n      <button\r\n        onClick={openFileDialog}\r\n        onDragOver={onDragOver}\r\n        onDragLeave={onDragLeave}\r\n        onDrop={onDrop}\r\n        className={cn(\r\n          \"relative border-2 border-dashed rounded-lg p-4\",\r\n          \"hover:bg-muted/50 transition-colors duration-200 cursor-pointer\",\r\n          dragActive && \"border-primary bg-muted/50\",\r\n          \"min-h-[200px]\",\r\n          \"w-full\"\r\n        )}\r\n      >\r\n        <input\r\n          ref={inputRef}\r\n          type=\"file\"\r\n          multiple\r\n          name={name}\r\n          min={minSelections}\r\n          max={maxSelections}\r\n          onChange={e => {\r\n            if (onChange) {\r\n              onChange(Array.from(e.target.files || []));\r\n            }\r\n            onFileSelect(e);\r\n          }}\r\n          className=\"hidden\"\r\n        />\r\n\r\n        {files.length === 0 ? (\r\n          <div className=\"!h-full min-h-[200px] flex flex-col items-center align-middle justify-center gap-4\">\r\n            <Cloud className=\"h-10 w-10 text-muted-foreground\" color=\"gray\" />\r\n            <p className=\"text-muted-foreground text-Grey font-bold text-[14px]\">\r\n              {t(\"dragImagesHereOrClickToBrowse\")}\r\n            </p>\r\n          </div>\r\n        ) : (\r\n          <div className=\"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-4 p-4\">\r\n            {files.map((file, index) => (\r\n              <div key={index} className=\"relative group aspect-square\">\r\n                <Image\r\n                  src={typeof file === \"string\" ? file : URL.createObjectURL(file)}\r\n                  alt={`Uploaded image ${index + 1}`}\r\n                  fill\r\n                  className=\"object-cover rounded-lg\"\r\n                />\r\n                <button\r\n                  onClick={e => {\r\n                    e.preventDefault();\r\n                    e.stopPropagation(); // Prevent opening file dialog\r\n                    removeFile(index);\r\n                  }}\r\n                  className=\"absolute bg-Red -top-2 -right-2 p-1 rounded-full bg-destructive text-destructive-foreground opacity-0 group-hover:opacity-100 transition-opacity\"\r\n                >\r\n                  <X className=\"h-4 w-4\" fill=\"white\" />\r\n                </button>\r\n              </div>\r\n            ))}\r\n            {files.length < 24 && (\r\n              <div className=\"aspect-square border-2 border-dashed rounded-lg flex items-center justify-center\">\r\n                <Cloud className=\"h-6 w-6 text-muted-foreground\" />\r\n              </div>\r\n            )}\r\n          </div>\r\n        )}\r\n      </button>\r\n    </div>\r\n  );\r\n}\r\n","usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Inputs\\GoogleAutoCompleteInput.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Inputs\\GoogleMapInput.tsx","messages":[{"ruleId":"react-hooks/set-state-in-effect","severity":2,"message":"Error: Calling setState synchronously within an effect can trigger cascading renders\n\nEffects are intended to synchronize state between React and external systems such as manually updating the DOM, state management libraries, or other platform APIs. In general, the body of an effect should do one or both of the following:\n* Update external systems with the latest state from React.\n* Subscribe for updates from some external system, calling setState in a callback function when external state changes.\n\nCalling setState synchronously within an effect body causes cascading renders that can hurt performance, and is not recommended. (https://react.dev/learn/you-might-not-need-an-effect).\n\nD:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Inputs\\GoogleMapInput.tsx:34:7\n  32 |   useEffect(() => {\n  33 |     if (value) {\n> 34 |       setMarkerPosition(value);\n     |       ^^^^^^^^^^^^^^^^^ Avoid calling setState() directly within an effect\n  35 |     }\n  36 |   }, [value]);\n  37 |","line":34,"column":7,"nodeType":null,"endLine":34,"endColumn":24},{"ruleId":"react-hooks/set-state-in-effect","severity":2,"message":"Error: Calling setState synchronously within an effect can trigger cascading renders\n\nEffects are intended to synchronize state between React and external systems such as manually updating the DOM, state management libraries, or other platform APIs. In general, the body of an effect should do one or both of the following:\n* Update external systems with the latest state from React.\n* Subscribe for updates from some external system, calling setState in a callback function when external state changes.\n\nCalling setState synchronously within an effect body causes cascading renders that can hurt performance, and is not recommended. (https://react.dev/learn/you-might-not-need-an-effect).\n\nD:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Inputs\\GoogleMapInput.tsx:56:7\n  54 |   useEffect(() => {\n  55 |     if (loadError) {\n> 56 |       setMapLoaded(false);\n     |       ^^^^^^^^^^^^ Avoid calling setState() directly within an effect\n  57 |     }\n  58 |   }, [loadError]);\n  59 |","line":56,"column":7,"nodeType":null,"endLine":56,"endColumn":19},{"ruleId":"react-hooks/immutability","severity":2,"message":"Error: Cannot access variable before it is declared\n\n`handlePlaceChanged` is accessed before it is declared, which prevents the earlier access from updating when this value changes over time.\n\nD:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Inputs\\GoogleMapInput.tsx:74:11\n  72 |       autocompleteRef.current.addListener(\"place_changed\", () => {\n  73 |         if (autocompleteRef.current) {\n> 74 |           handlePlaceChanged(autocompleteRef.current);\n     |           ^^^^^^^^^^^^^^^^^^ `handlePlaceChanged` accessed before it is declared\n  75 |         }\n  76 |       });\n  77 |     }\n\nD:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Inputs\\GoogleMapInput.tsx:86:3\n   84 |   const mapApi = process.env.NEXT_PUBLIC_GOOGLE_MAPS_API_KEY as string;\n   85 |\n>  86 |   const handlePlaceChanged = (autocomplete: google.maps.places.Autocomplete) => {\n      |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n>  87 |     const place = autocomplete.getPlace();\n      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n>  88 |     if (place.geometry) {\n      …\n      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n>  98 |     }\n      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n>  99 |   };\n      | ^^^^^ `handlePlaceChanged` is declared here\n  100 |   const t = useTranslations();\n  101 |\n  102 |   return (","line":74,"column":11,"nodeType":null,"endLine":74,"endColumn":29},{"ruleId":"react-hooks/exhaustive-deps","severity":1,"message":"React Hook useEffect has a missing dependency: 'handlePlaceChanged'. Either include it or remove the dependency array.","line":78,"column":6,"nodeType":"ArrayExpression","endLine":78,"endColumn":17,"suggestions":[{"desc":"Update the dependencies array to be: [handlePlaceChanged, mapLoaded]","fix":{"range":[2055,2066],"text":"[handlePlaceChanged, mapLoaded]"}}]},{"ruleId":"react-hooks/rules-of-hooks","severity":2,"message":"React Hook \"useTranslations\" is called conditionally. React Hooks must be called in the exact same order in every component render.","line":100,"column":13,"nodeType":"Identifier","endLine":100,"endColumn":28}],"suppressedMessages":[],"errorCount":4,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"\"use client\";\r\nimport { Input } from \"@/components/ui/input\";\r\nimport { GoogleMap, LoadScript, Marker } from \"@react-google-maps/api\";\r\nimport { useTranslations } from \"next-intl\";\r\nimport { useEffect, useState, useRef } from \"react\";\r\nconst containerStyle = {\r\n  width: \"100%\",\r\n  height: \"500px\"\r\n};\r\n\r\nconst GoogleMapInput = ({\r\n  center,\r\n  onChange,\r\n  value,\r\n  name\r\n}: {\r\n  onChange?: (address: any) => void;\r\n  value?: any;\r\n  name?: string;\r\n  center: {\r\n    lat: number;\r\n    lng: number;\r\n  };\r\n}) => {\r\n  const [markerPosition, setMarkerPosition] = useState(center);\r\n  const [loadError, setLoadError] = useState<Error | null>(null);\r\n  const [mapLoaded, setMapLoaded] = useState(false);\r\n  const [showMap, setShowMap] = useState(false);\r\n  const searchInputRef = useRef<HTMLInputElement>(null);\r\n  const autocompleteRef = useRef<google.maps.places.Autocomplete | null>(null);\r\n\r\n  useEffect(() => {\r\n    if (value) {\r\n      setMarkerPosition(value);\r\n    }\r\n  }, [value]);\r\n\r\n  const handleMapClick = (e: google.maps.MapMouseEvent) => {\r\n    if (!e.latLng) return;\r\n\r\n    const lat = e.latLng.lat();\r\n    const lng = e.latLng.lng();\r\n\r\n    // Update marker position\r\n    setMarkerPosition({ lat, lng });\r\n    onChange?.({ lat, lng });\r\n  };\r\n\r\n  const handleLoadError = (error: Error) => {\r\n    console.error(\"Google Maps loading error:\", error);\r\n    setLoadError(error);\r\n  };\r\n\r\n  useEffect(() => {\r\n    if (loadError) {\r\n      setMapLoaded(false);\r\n    }\r\n  }, [loadError]);\r\n\r\n  // Initialize autocomplete after map is loaded\r\n  useEffect(() => {\r\n    if (mapLoaded && searchInputRef.current) {\r\n      const options = {\r\n        fields: [\"address_components\", \"geometry\", \"formatted_address\"]\r\n      };\r\n\r\n      autocompleteRef.current = new google.maps.places.Autocomplete(\r\n        searchInputRef.current,\r\n        options\r\n      );\r\n\r\n      autocompleteRef.current.addListener(\"place_changed\", () => {\r\n        if (autocompleteRef.current) {\r\n          handlePlaceChanged(autocompleteRef.current);\r\n        }\r\n      });\r\n    }\r\n  }, [mapLoaded]);\r\n\r\n  if (loadError) {\r\n    return <div>Error loading Google Maps. Retrying...</div>;\r\n  }\r\n\r\n  const mapApi = process.env.NEXT_PUBLIC_GOOGLE_MAPS_API_KEY as string;\r\n\r\n  const handlePlaceChanged = (autocomplete: google.maps.places.Autocomplete) => {\r\n    const place = autocomplete.getPlace();\r\n    if (place.geometry) {\r\n      const lat = place?.geometry?.location?.lat();\r\n      const lng = place?.geometry?.location?.lng();\r\n\r\n      // Update marker position and map center\r\n      if (lat == null || lng == null) return;\r\n      setMarkerPosition({ lat, lng });\r\n      onChange?.({ lat, lng });\r\n    } else {\r\n      console.error(\"Place details not available\");\r\n    }\r\n  };\r\n  const t = useTranslations();\r\n\r\n  return (\r\n    <div>\r\n      <div className=\"mb-3\">\r\n        <Input\r\n          ref={searchInputRef}\r\n          type=\"text\"\r\n          className=\"form-control\"\r\n          data-testid={name}\r\n          placeholder={t(\"Click to select location\")}\r\n          style={{ width: \"100%\", padding: \"8px\" }}\r\n          onClick={() => setShowMap(true)}\r\n          readOnly={!showMap}\r\n        />\r\n      </div>\r\n      {showMap && (\r\n        <LoadScript\r\n          libraries={[\"places\"]}\r\n          googleMapsApiKey={`${mapApi}`}\r\n          onError={handleLoadError}\r\n          loadingElement={<div>Loading map...</div>}\r\n          onLoad={() => {\r\n            setMapLoaded(true);\r\n          }}\r\n          preventGoogleFontsLoading\r\n        >\r\n          <GoogleMap\r\n            mapContainerStyle={containerStyle}\r\n            center={{\r\n              lat: Number(\r\n                Array.isArray(markerPosition)\r\n                  ? Number(markerPosition[0].lat)\r\n                  : Number(markerPosition.lat)\r\n              ),\r\n              lng: Number(\r\n                Array.isArray(markerPosition)\r\n                  ? Number(markerPosition[0].lng)\r\n                  : Number(markerPosition.lng)\r\n              )\r\n            }}\r\n            zoom={10}\r\n            onClick={handleMapClick}\r\n            options={{\r\n              center: {\r\n                lat: Number(markerPosition.lat),\r\n                lng: Number(markerPosition.lng)\r\n              },\r\n              streetViewControl: false,\r\n              zoomControl: true\r\n            }}\r\n          >\r\n            <Marker\r\n              position={{\r\n                lat: Number(markerPosition.lat),\r\n                lng: Number(markerPosition.lng)\r\n              }}\r\n            />\r\n          </GoogleMap>\r\n        </LoadScript>\r\n      )}\r\n    </div>\r\n  );\r\n};\r\n\r\nexport default GoogleMapInput;\r\n","usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Inputs\\GoogleMapZoneInput.tsx","messages":[{"ruleId":"react-hooks/set-state-in-effect","severity":2,"message":"Error: Calling setState synchronously within an effect can trigger cascading renders\n\nEffects are intended to synchronize state between React and external systems such as manually updating the DOM, state management libraries, or other platform APIs. In general, the body of an effect should do one or both of the following:\n* Update external systems with the latest state from React.\n* Subscribe for updates from some external system, calling setState in a callback function when external state changes.\n\nCalling setState synchronously within an effect body causes cascading renders that can hurt performance, and is not recommended. (https://react.dev/learn/you-might-not-need-an-effect).\n\nD:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Inputs\\GoogleMapZoneInput.tsx:62:7\n  60 |   useEffect(() => {\n  61 |     if (value && Array.isArray(value)) {\n> 62 |       setPaths(value.map(point => ({ lat: Number(point.lat), lng: Number(point.lng) })));\n     |       ^^^^^^^^ Avoid calling setState() directly within an effect\n  63 |     }\n  64 |   }, [value]);\n  65 |","line":62,"column":7,"nodeType":null,"endLine":62,"endColumn":15}],"suppressedMessages":[],"errorCount":1,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":"\"use client\";\r\nimport { GoogleMap, Libraries, LoadScript, Polygon } from \"@react-google-maps/api\";\r\nimport { useTranslations } from \"next-intl\";\r\nimport { useCallback, useEffect, useRef, useState } from \"react\";\r\n\r\nconst containerStyle = {\r\n  width: \"100%\",\r\n  height: \"500px\"\r\n};\r\n\r\ninterface ZoneInputProps {\r\n  center: { lat: number; lng: number };\r\n  onChange?: (data: google.maps.LatLngLiteral[]) => void;\r\n  value?: google.maps.LatLngLiteral[];\r\n  name?: string;\r\n}\r\n\r\n// `drawing` library removed: google.maps.drawing.DrawingManager was dropped in\r\n// Maps JS v3.65. We draw the zone manually by clicking vertices on the map.\r\nconst libraries: Libraries = [\"places\"];\r\n\r\nconst polygonOptions = {\r\n  fillColor: \"#FF0000\",\r\n  fillOpacity: 0.3,\r\n  strokeColor: \"#FF0000\",\r\n  strokeOpacity: 1,\r\n  strokeWeight: 2,\r\n  editable: true,\r\n  draggable: true\r\n};\r\n\r\nconst GoogleMapZoneInput = ({ center, onChange, value, name }: ZoneInputProps) => {\r\n  const t = useTranslations();\r\n  const [loadError, setLoadError] = useState<Error | null>(null);\r\n\r\n  // Seed from an existing zone (edit mode) on first render\r\n  const [paths, setPaths] = useState<google.maps.LatLngLiteral[]>(() =>\r\n    value && Array.isArray(value)\r\n      ? value.map(point => ({ lat: Number(point.lat), lng: Number(point.lng) }))\r\n      : []\r\n  );\r\n\r\n  // Center on the saved zone (edit) so it's visible; otherwise the provided center\r\n  const [markerPosition] = useState(() => {\r\n    if (value && Array.isArray(value) && value.length) {\r\n      const lat = value.reduce((s, p) => s + Number(p.lat), 0) / value.length;\r\n      const lng = value.reduce((s, p) => s + Number(p.lng), 0) / value.length;\r\n      return { lat, lng };\r\n    }\r\n    return center;\r\n  });\r\n\r\n  const mapRef = useRef<google.maps.Map | null>(null);\r\n  const initialHadPointsRef = useRef(Boolean(value && Array.isArray(value) && value.length));\r\n  const didFitRef = useRef(false);\r\n  const polygonRef = useRef<google.maps.Polygon | null>(null);\r\n  const listenersRef = useRef<google.maps.MapsEventListener[]>([]);\r\n\r\n  // Keep in sync if the external value changes after mount (e.g. async load)\r\n  useEffect(() => {\r\n    if (value && Array.isArray(value)) {\r\n      setPaths(value.map(point => ({ lat: Number(point.lat), lng: Number(point.lng) })));\r\n    }\r\n  }, [value]);\r\n\r\n  // Zoom to fit the existing zone once, when the map first loads (edit mode)\r\n  const onMapLoad = useCallback(\r\n    (map: google.maps.Map) => {\r\n      mapRef.current = map;\r\n      if (initialHadPointsRef.current && !didFitRef.current && paths.length) {\r\n        const bounds = new google.maps.LatLngBounds();\r\n        paths.forEach(p => bounds.extend(p));\r\n        map.fitBounds(bounds);\r\n        didFitRef.current = true;\r\n      }\r\n    },\r\n    [paths]\r\n  );\r\n\r\n  // Add a vertex where the user clicks\r\n  const handleMapClick = useCallback(\r\n    (e: google.maps.MapMouseEvent) => {\r\n      if (!e.latLng) return;\r\n      const point = { lat: e.latLng.lat(), lng: e.latLng.lng() };\r\n      setPaths(prev => {\r\n        const next = [...prev, point];\r\n        onChange?.(next);\r\n        return next;\r\n      });\r\n    },\r\n    [onChange]\r\n  );\r\n\r\n  // Read the (possibly edited) polygon path back into state\r\n  const syncFromPolygon = useCallback(() => {\r\n    const poly = polygonRef.current;\r\n    if (!poly) return;\r\n    const path = poly.getPath();\r\n    const next: google.maps.LatLngLiteral[] = [];\r\n    for (let i = 0; i < path.getLength(); i++) {\r\n      const p = path.getAt(i);\r\n      next.push({ lat: p.lat(), lng: p.lng() });\r\n    }\r\n    setPaths(next);\r\n    onChange?.(next);\r\n  }, [onChange]);\r\n\r\n  const onPolygonLoad = useCallback(\r\n    (poly: google.maps.Polygon) => {\r\n      polygonRef.current = poly;\r\n      const path = poly.getPath();\r\n      listenersRef.current.push(\r\n        path.addListener(\"set_at\", syncFromPolygon),\r\n        path.addListener(\"insert_at\", syncFromPolygon),\r\n        path.addListener(\"remove_at\", syncFromPolygon)\r\n      );\r\n    },\r\n    [syncFromPolygon]\r\n  );\r\n\r\n  const onPolygonUnmount = useCallback(() => {\r\n    listenersRef.current.forEach(l => l.remove());\r\n    listenersRef.current = [];\r\n    polygonRef.current = null;\r\n  }, []);\r\n\r\n  const handleUndo = () => {\r\n    setPaths(prev => {\r\n      const next = prev.slice(0, -1);\r\n      onChange?.(next);\r\n      return next;\r\n    });\r\n  };\r\n\r\n  const handleClearZone = () => {\r\n    setPaths([]);\r\n    onChange?.([]);\r\n  };\r\n\r\n  return (\r\n    <div className=\"relative\">\r\n      <LoadScript\r\n        libraries={libraries}\r\n        googleMapsApiKey={process.env.NEXT_PUBLIC_GOOGLE_MAPS_API_KEY as string}\r\n        onError={error => setLoadError(error)}\r\n        loadingElement={<div>Loading map...</div>}\r\n        preventGoogleFontsLoading\r\n      >\r\n        <GoogleMap\r\n          mapContainerStyle={containerStyle}\r\n          center={markerPosition}\r\n          zoom={10}\r\n          onLoad={onMapLoad}\r\n          onClick={handleMapClick}\r\n          options={{\r\n            streetViewControl: false,\r\n            clickableIcons: false,\r\n            zoomControl: true\r\n          }}\r\n        >\r\n          {paths.length > 0 && (\r\n            <>\r\n              <Polygon\r\n                paths={paths}\r\n                options={polygonOptions}\r\n                onLoad={onPolygonLoad}\r\n                onUnmount={onPolygonUnmount}\r\n                onMouseUp={syncFromPolygon}\r\n                onDragEnd={syncFromPolygon}\r\n              />\r\n              <div className=\"absolute top-2 right-2 z-10 flex gap-2\">\r\n                <button\r\n                  onClick={handleUndo}\r\n                  className=\"bg-gray-700 text-white px-3 py-1 rounded-md hover:bg-gray-800\"\r\n                  type=\"button\"\r\n                >\r\n                  {t(\"Undo\")}\r\n                </button>\r\n                <button\r\n                  onClick={handleClearZone}\r\n                  className=\"bg-red-500 text-white px-3 py-1 rounded-md hover:bg-red-600\"\r\n                  type=\"button\"\r\n                >\r\n                  {t(\"Clear Zone\")}\r\n                </button>\r\n              </div>\r\n            </>\r\n          )}\r\n        </GoogleMap>\r\n      </LoadScript>\r\n      {loadError && <p className=\"mt-1 text-sm text-red-500\">{loadError.message}</p>}\r\n    </div>\r\n  );\r\n};\r\n\r\nexport default GoogleMapZoneInput;\r\n","usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Inputs\\ImgInput.tsx","messages":[{"ruleId":"react-hooks/set-state-in-effect","severity":2,"message":"Error: Calling setState synchronously within an effect can trigger cascading renders\n\nEffects are intended to synchronize state between React and external systems such as manually updating the DOM, state management libraries, or other platform APIs. In general, the body of an effect should do one or both of the following:\n* Update external systems with the latest state from React.\n* Subscribe for updates from some external system, calling setState in a callback function when external state changes.\n\nCalling setState synchronously within an effect body causes cascading renders that can hurt performance, and is not recommended. (https://react.dev/learn/you-might-not-need-an-effect).\n\nD:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Inputs\\ImgInput.tsx:31:7\n  29 |     // Handle initial value\n  30 |     if (value && typeof value === \"string\") {\n> 31 |       setPreviewUrl(mediaUrl(value));\n     |       ^^^^^^^^^^^^^ Avoid calling setState() directly within an effect\n  32 |       setFileName(value.split(\"/\").pop() || \"\");\n  33 |     }\n  34 |","line":31,"column":7,"nodeType":null,"endLine":31,"endColumn":20},{"ruleId":"react-hooks/exhaustive-deps","severity":1,"message":"React Hook useEffect has a missing dependency: 'previewUrl'. Either include it or remove the dependency array.","line":41,"column":6,"nodeType":"ArrayExpression","endLine":41,"endColumn":13,"suggestions":[{"desc":"Update the dependencies array to be: [previewUrl, value]","fix":{"range":[1006,1013],"text":"[previewUrl, value]"}}]},{"ruleId":"@next/next/no-img-element","severity":1,"message":"Using `<img>` could result in slower LCP and higher bandwidth. Consider using `<Image />` from `next/image` or a custom image loader to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element","line":97,"column":15,"nodeType":"JSXOpeningElement","endLine":102,"endColumn":17}],"suppressedMessages":[],"errorCount":1,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":"\"use client\";\r\nimport { mediaUrl } from \"@/utils/config\";\r\nimport { ImageIcon } from \"lucide-react\";\r\nimport { useTranslations } from \"next-intl\";\r\nimport React, { useEffect, useRef, useState } from \"react\";\r\n\r\ninterface ImgInputProps {\r\n  alt?: string;\r\n  name?: string;\r\n  value?: string;\r\n  className?: string;\r\n  onChange?: (e: File) => void;\r\n  ratio?: string;\r\n}\r\n\r\nexport default function ImgInput({\r\n  alt,\r\n  name,\r\n  value,\r\n  onChange,\r\n  className,\r\n  ratio = \"1:1\"\r\n}: ImgInputProps) {\r\n  const [fileName, setFileName] = useState<string>(\"\");\r\n  const [previewUrl, setPreviewUrl] = useState<string>(\"\");\r\n  const t = useTranslations();\r\n\r\n  useEffect(() => {\r\n    // Handle initial value\r\n    if (value && typeof value === \"string\") {\r\n      setPreviewUrl(mediaUrl(value));\r\n      setFileName(value.split(\"/\").pop() || \"\");\r\n    }\r\n\r\n    // Cleanup\r\n    return () => {\r\n      if (previewUrl && previewUrl.startsWith(\"blob:\")) {\r\n        URL.revokeObjectURL(previewUrl);\r\n      }\r\n    };\r\n  }, [value]);\r\n  // const validateImageRatio = (file: File): Promise<boolean> => {\r\n  //   return new Promise(resolve => {\r\n  //     const img = new window.Image();\r\n  //     const objectUrl = URL.createObjectURL(file);\r\n\r\n  //     img.onload = () => {\r\n  //       URL.revokeObjectURL(objectUrl);\r\n  //       const [expectedWidth, expectedHeight] = ratio.split(\":\").map(Number);\r\n  //       const actualRatio = img.width / img.height;\r\n  //       const expectedRatio = expectedWidth / expectedHeight;\r\n\r\n  //       // Allow for small floating point differences\r\n  //       const isValidRatio = Math.abs(actualRatio - expectedRatio) < 0.3;\r\n  //       resolve(isValidRatio);\r\n  //     };\r\n\r\n  //     img.src = objectUrl;\r\n  //   });\r\n  // };\r\n  const handleChange = async (e: React.ChangeEvent<HTMLInputElement>) => {\r\n    const file = e.target.files?.[0];\r\n    if (!file) return;\r\n\r\n    // const isValidRatio = await validateImageRatio(file);\r\n    // if (!isValidRatio) {\r\n    //   toast({ title: `${t(\"Image must have aspect ratio\")} : ${ratio} `, variant: \"destructive\" });\r\n    //   e.target.value = \"\";\r\n    //   return;\r\n    // }\r\n    setFileName(file.name);\r\n    const objectUrl = URL.createObjectURL(file);\r\n    if (previewUrl && previewUrl.startsWith(\"blob:\")) {\r\n      URL.revokeObjectURL(previewUrl);\r\n    }\r\n    setPreviewUrl(objectUrl);\r\n    onChange?.(file);\r\n  };\r\n  const ratioStep = 100;\r\n  const [width, height] = ratio.split(\":\").map(Number);\r\n  const ref = useRef<HTMLInputElement>(null);\r\n\r\n  return (\r\n    <div className={`flex flex-col-reverse justify-end gap-1 h-full items  ${className}`}>\r\n      <div className=\"flex justify-center items-center\">\r\n        <div\r\n          className=\"relative w-full flex items-center  rounded-lg overflow-hidden bg-gray-100\"\r\n          style={{\r\n            alignContent: \"center\",\r\n            width: `${width * ratioStep}px`,\r\n            height: `${height * ratioStep}px`\r\n            // aspectRatio: getAspectRatio()\r\n          }}\r\n        >\r\n          <div className=\"max-w-[250px] max-h-[350px] \">\r\n            {previewUrl ? (\r\n              <img\r\n                src={previewUrl}\r\n                alt={alt || \"Preview\"}\r\n                data-testid={name}\r\n                className=\"absolute inset-0 h-full w-full object-cover\"\r\n              />\r\n            ) : (\r\n              <button\r\n                onClick={() => {\r\n                  ref.current?.click();\r\n                }}\r\n                className=\"absolute flex-col inset-0 flex items-center justify-center\"\r\n              >\r\n                <ImageIcon className=\"w-12 h-12 text-gray-400\" />\r\n                <span className=\"font-normal text-sm text-gray-500\">\r\n                  {\" \"}\r\n                  {t(\"ratio\")} : <span className=\"text-red-500\">{ratio}</span>\r\n                </span>\r\n              </button>\r\n            )}\r\n          </div>\r\n        </div>\r\n      </div>\r\n\r\n      <label\r\n        className=\"flex items-center gap-3 p-[0.5px] border-2 border-dashed \r\n                          border-gray-300 rounded-lg hover:border-gray-400 \r\n                          cursor-pointer transition-colors\"\r\n      >\r\n        <div\r\n          className=\"flex items-center justify-center w-8 h-8 \r\n                               bg-gray-50 rounded-lg text-gray-500\"\r\n        >\r\n          <svg className=\"w-5 h-5\" fill=\"none\" stroke=\"currentColor\" viewBox=\"0 0 24 24\">\r\n            <path\r\n              strokeLinecap=\"round\"\r\n              strokeLinejoin=\"round\"\r\n              strokeWidth={2}\r\n              d=\"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z\"\r\n            />\r\n          </svg>\r\n        </div>\r\n        <div className=\"flex-1 text-sm\">\r\n          {fileName ? (\r\n            <span className=\"text-gray-700\">{fileName}</span>\r\n          ) : (\r\n            <span className=\"text-gray-500\">{t(\"Choose image file\")}...</span>\r\n          )}\r\n        </div>\r\n        <input\r\n          type=\"file\"\r\n          name={name}\r\n          ref={ref}\r\n          onChange={handleChange}\r\n          className=\"hidden\"\r\n          aria-label={alt || \"Choose file\"}\r\n        />\r\n      </label>\r\n      {fileName && (\r\n        <button\r\n          onClick={() => {\r\n            setFileName(\"\");\r\n            setPreviewUrl(\"\");\r\n            if (previewUrl && previewUrl.startsWith(\"blob:\")) {\r\n              URL.revokeObjectURL(previewUrl);\r\n            }\r\n          }}\r\n          className=\"text-xs text-orange-500 hover:text-orange-600 transition-colors\"\r\n          type=\"button\"\r\n        >\r\n          {t(\"Remove file\")}\r\n        </button>\r\n      )}\r\n    </div>\r\n  );\r\n}\r\n","usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Inputs\\MapTrackInput.tsx","messages":[{"ruleId":"react-hooks/set-state-in-effect","severity":2,"message":"Error: Calling setState synchronously within an effect can trigger cascading renders\n\nEffects are intended to synchronize state between React and external systems such as manually updating the DOM, state management libraries, or other platform APIs. In general, the body of an effect should do one or both of the following:\n* Update external systems with the latest state from React.\n* Subscribe for updates from some external system, calling setState in a callback function when external state changes.\n\nCalling setState synchronously within an effect body causes cascading renders that can hurt performance, and is not recommended. (https://react.dev/learn/you-might-not-need-an-effect).\n\nD:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Inputs\\MapTrackInput.tsx:35:5\n  33 |       // setIsConnected(true);\n  34 |     });\n> 35 |     setSocket(newSocket);\n     |     ^^^^^^^^^ Avoid calling setState() directly within an effect\n  36 |\n  37 |     return () => {\n  38 |       newSocket.disconnect();","line":35,"column":5,"nodeType":null,"endLine":35,"endColumn":14},{"ruleId":"react-hooks/set-state-in-effect","severity":2,"message":"Error: Calling setState synchronously within an effect can trigger cascading renders\n\nEffects are intended to synchronize state between React and external systems such as manually updating the DOM, state management libraries, or other platform APIs. In general, the body of an effect should do one or both of the following:\n* Update external systems with the latest state from React.\n* Subscribe for updates from some external system, calling setState in a callback function when external state changes.\n\nCalling setState synchronously within an effect body causes cascading renders that can hurt performance, and is not recommended. (https://react.dev/learn/you-might-not-need-an-effect).\n\nD:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Inputs\\MapTrackInput.tsx:65:7\n  63 |   useEffect(() => {\n  64 |     if (loadError) {\n> 65 |       setMapLoaded(false);\n     |       ^^^^^^^^^^^^ Avoid calling setState() directly within an effect\n  66 |     }\n  67 |   }, [loadError]);\n  68 |","line":65,"column":7,"nodeType":null,"endLine":65,"endColumn":19}],"suppressedMessages":[],"errorCount":2,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":"\"use client\";\r\nimport { API_MAP_TRACK_URL, TOKEN } from \"@/utils/config\";\r\nimport { GoogleMap, LoadScript, Marker } from \"@react-google-maps/api\";\r\nimport Cookies from \"js-cookie\";\r\nimport { MapPin } from \"lucide-react\";\r\nimport { useTranslations } from \"next-intl\";\r\nimport { useEffect, useState } from \"react\";\r\nimport io from \"socket.io-client\";\r\n\r\nconst containerStyle = {\r\n  width: \"100%\",\r\n  height: \"500px\"\r\n};\r\n\r\nconst GoogleMapTrackInput = () => {\r\n  const [markerPositions, setMarkerPositions] = useState<Array<{ lat: number; lng: number }>>([]);\r\n  const [loadError, setLoadError] = useState<Error | null>(null);\r\n  const [mapLoaded, setMapLoaded] = useState(false);\r\n  const t = useTranslations();\r\n  const [socket, setSocket] = useState<any>(null);\r\n  useEffect(() => {\r\n    const newSocket = io(API_MAP_TRACK_URL, {\r\n      transportOptions: {\r\n        polling: {\r\n          extraHeaders: { Authorization: `Bearer ${Cookies.get(TOKEN)}` }\r\n        }\r\n      }\r\n    });\r\n    newSocket?.on(\"connect\", () => {\r\n      // setIsConnected(true);\r\n    });\r\n    newSocket?.on(\"failed\", () => {\r\n      // setIsConnected(true);\r\n    });\r\n    setSocket(newSocket);\r\n\r\n    return () => {\r\n      newSocket.disconnect();\r\n    };\r\n  }, []);\r\n\r\n  useEffect(() => {\r\n    if (socket) {\r\n      socket.on(\"active_locations\", (data: Array<{ lat: number; lng: number }>) => {\r\n        setMarkerPositions(data);\r\n      });\r\n      // Load the current drivers now instead of waiting for one to move.\r\n      const requestLocations = () => socket.emit(\"request_locations\");\r\n      socket.on(\"connect\", requestLocations);\r\n      if (socket.connected) requestLocations();\r\n      return () => {\r\n        socket.off(\"active_locations\");\r\n        socket.off(\"connect\", requestLocations);\r\n      };\r\n    }\r\n  }, [socket]);\r\n\r\n  const handleLoadError = (error: Error) => {\r\n    console.error(\"Google Maps loading error:\", error);\r\n    setLoadError(error);\r\n  };\r\n\r\n  useEffect(() => {\r\n    if (loadError) {\r\n      setMapLoaded(false);\r\n    }\r\n  }, [loadError]);\r\n\r\n  if (loadError) {\r\n    return <div>Error loading Google Maps. Retrying...</div>;\r\n  }\r\n\r\n  const mapApi = process.env.NEXT_PUBLIC_GOOGLE_MAPS_API_KEY as string;\r\n  return (\r\n    <>\r\n      {markerPositions.length > 0 ? (\r\n        <LoadScript\r\n          libraries={[\"places\"]}\r\n          googleMapsApiKey={`${mapApi}`}\r\n          onError={handleLoadError}\r\n          loadingElement={<div>Loading map...</div>}\r\n          onLoad={() => setMapLoaded(true)}\r\n          preventGoogleFontsLoading\r\n        >\r\n          <GoogleMap\r\n            mapContainerStyle={containerStyle}\r\n            // center={\r\n            //   markerPositions.length > 0\r\n            //     ? { lat: markerPositions[0].lat, lng: markerPositions[0].lng }\r\n            //     : { lat: 24.7136, lng: 46.6753 }\r\n            // }\r\n            zoom={8}\r\n            options={{\r\n              streetViewControl: false,\r\n              zoomControl: true\r\n            }}\r\n          >\r\n            {markerPositions.map((position, index) => (\r\n              <Marker key={index} position={{ lat: position.lat, lng: position.lng }} />\r\n            ))}\r\n          </GoogleMap>\r\n        </LoadScript>\r\n      ) : (\r\n        <div className=\"flex flex-col items-center justify-center h-[400px] bg-gray-50 rounded-lg border-2 border-dashed border-gray-200\">\r\n          <MapPin className=\"w-12 h-12 text-gray-400 animate-bounce mb-4\" />\r\n          <h3 className=\"text-lg font-semibold text-gray-700 mb-2\">{t(\"No Active Positions\")}</h3>\r\n          <p className=\"text-sm text-gray-500 mb-4\">\r\n            {t(\"There are currently no active positions to display on the map\")}\r\n          </p>\r\n        </div>\r\n      )}\r\n    </>\r\n  );\r\n};\r\n\r\nexport default GoogleMapTrackInput;\r\n","usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Inputs\\MultiSelectInput.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Inputs\\NumberInput.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Inputs\\PhoneInput.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Inputs\\RadioButtonInput.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Inputs\\SAPhoneInput.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Inputs\\SelectInputs.tsx","messages":[{"ruleId":"react-hooks/set-state-in-effect","severity":2,"message":"Error: Calling setState synchronously within an effect can trigger cascading renders\n\nEffects are intended to synchronize state between React and external systems such as manually updating the DOM, state management libraries, or other platform APIs. In general, the body of an effect should do one or both of the following:\n* Update external systems with the latest state from React.\n* Subscribe for updates from some external system, calling setState in a callback function when external state changes.\n\nCalling setState synchronously within an effect body causes cascading renders that can hurt performance, and is not recommended. (https://react.dev/learn/you-might-not-need-an-effect).\n\nD:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Inputs\\SelectInputs.tsx:35:5\n  33 |\n  34 |   useEffect(() => {\n> 35 |     setDisplayedOptions(options.slice(0, pageSize));\n     |     ^^^^^^^^^^^^^^^^^^^ Avoid calling setState() directly within an effect\n  36 |   }, [options, pageSize]);\n  37 |   console.log(\"displayedOptions\", displayedOptions);\n  38 |   return (","line":35,"column":5,"nodeType":null,"endLine":35,"endColumn":24}],"suppressedMessages":[],"errorCount":1,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":"\"use client\";\r\nimport ErrorMessage from \"@/components/ui/ErrorMessage\";\r\nimport { useTranslations } from \"next-intl\";\r\nimport { useEffect, useState } from \"react\";\r\nimport { FieldErrors } from \"react-hook-form\";\r\nimport Select from \"react-select\";\r\nimport { Option } from \"../Form/CustomFormTypes.types\";\r\n\r\ninterface CustomSelectProps {\r\n  options: Option[];\r\n  value?: string | number;\r\n  placeholder?: string;\r\n  onChange?: (selectedOption: string) => void;\r\n  controllerChange?: (selectedOption: string | null) => void;\r\n  name: string;\r\n  errors?: FieldErrors<any>;\r\n  pageSize?: number;\r\n}\r\n\r\nexport default function SelectInput({\r\n  options,\r\n  value,\r\n  placeholder,\r\n  onChange,\r\n  name,\r\n  controllerChange,\r\n  errors,\r\n  pageSize = 500\r\n}: CustomSelectProps) {\r\n  const t = useTranslations();\r\n  const [displayedOptions, setDisplayedOptions] = useState<Option[]>([]);\r\n  const [isLoading, setIsLoading] = useState(false);\r\n\r\n  useEffect(() => {\r\n    setDisplayedOptions(options.slice(0, pageSize));\r\n  }, [options, pageSize]);\r\n  console.log(\"displayedOptions\", displayedOptions);\r\n  return (\r\n    <div className=\"flex w-full flex-col gap-3\">\r\n      <Select\r\n        isMulti={false}\r\n        onChange={e => {\r\n          const selectedOption = e as Option | null;\r\n          if (selectedOption) {\r\n            onChange?.(selectedOption.value.toString());\r\n            controllerChange?.(selectedOption.value.toString());\r\n          }\r\n        }}\r\n        options={displayedOptions}\r\n        value={displayedOptions?.find(opt => opt.value == value)}\r\n        placeholder={t(placeholder ?? \"select\")}\r\n        name={name}\r\n        data-testid={name}\r\n        classNames={{\r\n          control: () => \"border-0 shadow-none\"\r\n        }}\r\n        styles={{\r\n          control: baseStyles => ({\r\n            ...baseStyles\r\n          })\r\n        }}\r\n        className=\" w-full\"\r\n        onMenuScrollToBottom={() => {\r\n          if (!isLoading) {\r\n            setIsLoading(true);\r\n            const currentLength = displayedOptions.length;\r\n            const nextBatch = options.slice(currentLength, currentLength + pageSize);\r\n\r\n            if (nextBatch.length > 0) {\r\n              setDisplayedOptions(prev => [...prev, ...nextBatch]);\r\n            }\r\n            setIsLoading(false);\r\n          }\r\n        }}\r\n        isLoading={isLoading}\r\n      />\r\n      {errors && <ErrorMessage error={errors[name]?.message as string} />}\r\n    </div>\r\n  );\r\n}\r\n","usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Inputs\\SelectPaginatedInput.tsx","messages":[{"ruleId":"react-hooks/set-state-in-effect","severity":2,"message":"Error: Calling setState synchronously within an effect can trigger cascading renders\n\nEffects are intended to synchronize state between React and external systems such as manually updating the DOM, state management libraries, or other platform APIs. In general, the body of an effect should do one or both of the following:\n* Update external systems with the latest state from React.\n* Subscribe for updates from some external system, calling setState in a callback function when external state changes.\n\nCalling setState synchronously within an effect body causes cascading renders that can hurt performance, and is not recommended. (https://react.dev/learn/you-might-not-need-an-effect).\n\nD:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Inputs\\SelectPaginatedInput.tsx:93:5\n  91 |\n  92 |   useEffect(() => {\n> 93 |     setOptionsFetcher();\n     |     ^^^^^^^^^^^^^^^^^ Avoid calling setState() directly within an effect\n  94 |     // eslint-disable-next-line react-hooks/exhaustive-deps\n  95 |   }, [searchTerm, apiUrl, JSON.stringify(searchFilters)]);\n  96 |","line":93,"column":5,"nodeType":null,"endLine":93,"endColumn":22},{"ruleId":"react-hooks/set-state-in-effect","severity":2,"message":"Error: Calling setState synchronously within an effect can trigger cascading renders\n\nEffects are intended to synchronize state between React and external systems such as manually updating the DOM, state management libraries, or other platform APIs. In general, the body of an effect should do one or both of the following:\n* Update external systems with the latest state from React.\n* Subscribe for updates from some external system, calling setState in a callback function when external state changes.\n\nCalling setState synchronously within an effect body causes cascading renders that can hurt performance, and is not recommended. (https://react.dev/learn/you-might-not-need-an-effect).\n\nD:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Inputs\\SelectPaginatedInput.tsx:98:16\n   96 |\n   97 |   useEffect(() => {\n>  98 |     if (value) setOptionsFetcher();\n      |                ^^^^^^^^^^^^^^^^^ Avoid calling setState() directly within an effect\n   99 |     // eslint-disable-next-line react-hooks/exhaustive-deps\n  100 |   }, [value]);\n  101 |","line":98,"column":16,"nodeType":null,"endLine":98,"endColumn":33}],"suppressedMessages":[{"ruleId":"react-hooks/exhaustive-deps","severity":1,"message":"React Hook useEffect has a missing dependency: 'setOptionsFetcher'. Either include it or remove the dependency array.","line":95,"column":6,"nodeType":"ArrayExpression","endLine":95,"endColumn":57,"suggestions":[{"desc":"Update the dependencies array to be: [searchTerm, apiUrl, setOptionsFetcher]","fix":{"range":[3186,3237],"text":"[searchTerm, apiUrl, setOptionsFetcher]"}}],"suppressions":[{"kind":"directive","justification":""}]},{"ruleId":"react-hooks/exhaustive-deps","severity":1,"message":"React Hook useEffect has a complex expression in the dependency array. Extract it to a separate variable so it can be statically checked.","line":95,"column":27,"nodeType":"CallExpression","endLine":95,"endColumn":56,"suppressions":[{"kind":"directive","justification":""}]},{"ruleId":"react-hooks/exhaustive-deps","severity":1,"message":"React Hook useEffect has a missing dependency: 'setOptionsFetcher'. Either include it or remove the dependency array.","line":100,"column":6,"nodeType":"ArrayExpression","endLine":100,"endColumn":13,"suggestions":[{"desc":"Update the dependencies array to be: [setOptionsFetcher, value]","fix":{"range":[3367,3374],"text":"[setOptionsFetcher, value]"}}],"suppressions":[{"kind":"directive","justification":""}]},{"ruleId":"react-hooks/exhaustive-deps","severity":1,"message":"React Hook useEffect has missing dependencies: 'apiUrl', 'idKey', 'isMulti', 'labelKey', 'locale', and 'pinned?.value'. Either include them or remove the dependency array. If 'setPinned' needs the current value of 'idKey', you can also switch to useReducer instead of useState and read 'idKey' in the reducer.","line":131,"column":6,"nodeType":"ArrayExpression","endLine":131,"endColumn":42,"suggestions":[{"desc":"Update the dependencies array to be: [value, displayedOptions, isLoading, isMulti, pinned?.value, apiUrl, idKey, labelKey, locale]","fix":{"range":[4422,4458],"text":"[value, displayedOptions, isLoading, isMulti, pinned?.value, apiUrl, idKey, labelKey, locale]"}}],"suppressions":[{"kind":"directive","justification":""}]}],"errorCount":2,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":"\"use client\";\r\nimport { fetchHelper } from \"@/api/fetch\";\r\nimport { useLocale, useTranslations } from \"next-intl\";\r\nimport { useEffect, useRef, useState } from \"react\";\r\nimport { localizedField } from \"@/utils/localizedField\";\r\nimport type { Option } from \"../Form/CustomFormTypes.types\";\r\n\r\nfunction optionLabel(item: Record<string, unknown>, labelKey: string, locale: string) {\r\n  const direct = item?.[labelKey];\r\n  if (direct != null && direct !== \"\") return String(direct);\r\n  const label = localizedField(item, \"name\", locale);\r\n  return locale === \"ar\" ? label : String(item?.name || label);\r\n}\r\n\r\nexport default function SelectPaginated({\r\n  value,\r\n  placeholder,\r\n  onChange,\r\n  name,\r\n  idKey = \"id\",\r\n  labelKey = \"name\",\r\n  isMulti = false,\r\n  apiUrl,\r\n  options,\r\n  searchTermKey = \"name\",\r\n  searchFilters\r\n}: {\r\n  isMulti?: boolean;\r\n  value: string;\r\n  placeholder?: string;\r\n  onChange?: (\r\n    value: { label: string; value: number | string }[] | string,\r\n    meta?: { data?: any }\r\n  ) => void;\r\n  name: string;\r\n  idKey?: string;\r\n  labelKey?: string;\r\n  apiUrl: string;\r\n  options?: Option[];\r\n  searchTermKey?: string;\r\n  searchFilters?: { key: string; value: string }[];\r\n}) {\r\n  const t = useTranslations();\r\n  const locale = useLocale();\r\n  const [displayedOptions, setDisplayedOptions] = useState<Option[]>([]);\r\n  const [isLoading, setIsLoading] = useState(false);\r\n  const [searchTerm, setSearchTerm] = useState(\"\");\r\n  const [open, setOpen] = useState(false);\r\n  const [query, setQuery] = useState(\"\");\r\n  const rootRef = useRef<HTMLDivElement>(null);\r\n  // The selected item when it is not among the loaded page of options (a long\r\n  // list shows 20 at a time), fetched by id so its label can still be shown.\r\n  const [pinned, setPinned] = useState<Option | null>(null);\r\n  const triedIds = useRef(new Set<string>());\r\n\r\n  const setOptionsFetcher = async () => {\r\n    setIsLoading(true);\r\n    const data = await fetchHelper({\r\n      endPoint: apiUrl,\r\n      method: \"GET\",\r\n      params: {\r\n        limit: Number(displayedOptions?.length ?? 0) + 20,\r\n        ...(searchTerm.length > 0 ? { [searchTermKey]: searchTerm } : {}),\r\n        ...searchFilters\r\n          ?.filter(item => item.value !== undefined && item.value !== \"\")\r\n          .map(item => ({ [item.key]: item.value }))\r\n          .reduce((acc, curr) => ({ ...acc, ...curr }), {})\r\n      }\r\n    });\r\n    let selectData = data.data;\r\n    if (data?.data?.[0]?.User && data?.data?.[0]?.[labelKey] == null) {\r\n      selectData = data?.data?.map((item: any) => {\r\n        let labelName = \"\";\r\n        if (item.User.name) {\r\n          labelName = item.User.name;\r\n        } else if (item.User.firstName) {\r\n          labelName = `${item.User.firstName} ${item.User.lastName}`;\r\n        }\r\n        return { ...item.User, name: labelName };\r\n      });\r\n    }\r\n    setDisplayedOptions(\r\n      selectData?.map((item: any) => ({\r\n        label: optionLabel(item, labelKey, locale),\r\n        value: item[idKey],\r\n        data: item\r\n      })) ?? []\r\n    );\r\n    setIsLoading(false);\r\n  };\r\n\r\n  useEffect(() => {\r\n    setOptionsFetcher();\r\n    // eslint-disable-next-line react-hooks/exhaustive-deps\r\n  }, [searchTerm, apiUrl, JSON.stringify(searchFilters)]);\r\n\r\n  useEffect(() => {\r\n    if (value) setOptionsFetcher();\r\n    // eslint-disable-next-line react-hooks/exhaustive-deps\r\n  }, [value]);\r\n\r\n  useEffect(() => {\r\n    if (isMulti || isLoading) return;\r\n    if (value === undefined || value === null || value === \"\") return;\r\n    const id = String(value);\r\n    if (displayedOptions.some(o => String(o.value) === id)) return;\r\n    if (String(pinned?.value) === id || triedIds.current.has(id)) return;\r\n    triedIds.current.add(id);\r\n    (async () => {\r\n      try {\r\n        const res = await fetchHelper({\r\n          endPoint: apiUrl,\r\n          method: \"GET\",\r\n          params: { [idKey]: id }\r\n        });\r\n        const item = Array.isArray(res?.data)\r\n          ? res.data.find((it: any) => String(it?.[idKey]) === id)\r\n          : res?.data;\r\n        if (item && String(item[idKey]) === id) {\r\n          setPinned({\r\n            label: optionLabel(item, labelKey, locale),\r\n            value: item[idKey],\r\n            data: item\r\n          });\r\n        }\r\n      } catch {\r\n        // The label stays empty; the value itself is still selected.\r\n      }\r\n    })();\r\n    // eslint-disable-next-line react-hooks/exhaustive-deps\r\n  }, [value, displayedOptions, isLoading]);\r\n\r\n  // Close the menu on outside click\r\n  useEffect(() => {\r\n    const handler = (e: MouseEvent) => {\r\n      if (rootRef.current && !rootRef.current.contains(e.target as Node)) {\r\n        setOpen(false);\r\n      }\r\n    };\r\n    document.addEventListener(\"mousedown\", handler);\r\n    return () => document.removeEventListener(\"mousedown\", handler);\r\n  }, []);\r\n\r\n  const rawValues: any[] = isMulti ? (Array.isArray(value) ? value : []) : [];\r\n  const isSelected = (opt: Option) =>\r\n    isMulti\r\n      ? rawValues.some(v => String(v) === String(opt.value))\r\n      : String(value ?? \"\") === String(opt.value);\r\n\r\n  const selectedSingle =\r\n    displayedOptions.find(o => String(o.value) === String(value)) ??\r\n    (pinned && String(pinned.value) === String(value) ? pinned : undefined);\r\n  const selectedMulti = displayedOptions.filter(o =>\r\n    rawValues.some(v => String(v) === String(o.value))\r\n  );\r\n\r\n  const commitSingle = (opt: Option) => {\r\n    onChange?.(String(opt.value), { data: opt.data });\r\n    setQuery(\"\");\r\n    setSearchTerm(\"\");\r\n    setOpen(false);\r\n  };\r\n  const toggleMulti = (opt: Option) => {\r\n    const exists = rawValues.some(v => String(v) === String(opt.value));\r\n    const next = exists\r\n      ? rawValues.filter(v => String(v) !== String(opt.value))\r\n      : [...rawValues, opt.value];\r\n    onChange?.(next as any);\r\n  };\r\n\r\n  const displayText = isMulti\r\n    ? selectedMulti.map(o => o.label).join(\", \")\r\n    : (selectedSingle?.label ?? \"\");\r\n\r\n  return (\r\n    <div ref={rootRef} className=\"relative w-full\" data-testid={name}>\r\n      <div\r\n        className=\"border-input bg-background flex min-h-[40px] w-full cursor-text items-center gap-2 rounded-md border px-3 py-1 text-sm\"\r\n        onClick={() => setOpen(true)}\r\n      >\r\n        <input\r\n          className=\"placeholder:text-muted-foreground flex-1 border-0 bg-transparent p-0 text-sm outline-none\"\r\n          value={open ? query : displayText}\r\n          placeholder={displayText ? \"\" : placeholder || t(\"select\")}\r\n          onChange={e => {\r\n            setQuery(e.target.value);\r\n            setSearchTerm(e.target.value);\r\n            setOpen(true);\r\n          }}\r\n          onFocus={() => setOpen(true)}\r\n          name={name}\r\n          autoComplete=\"off\"\r\n        />\r\n        <svg\r\n          className={`h-4 w-4 shrink-0 opacity-60 transition-transform ${open ? \"rotate-180\" : \"\"}`}\r\n          viewBox=\"0 0 20 20\"\r\n          fill=\"currentColor\"\r\n          aria-hidden=\"true\"\r\n        >\r\n          <path\r\n            fillRule=\"evenodd\"\r\n            d=\"M5.23 7.21a.75.75 0 011.06.02L10 11.17l3.71-3.94a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z\"\r\n            clipRule=\"evenodd\"\r\n          />\r\n        </svg>\r\n      </div>\r\n\r\n      {open && (\r\n        <div\r\n          className=\"border-input bg-background absolute left-0 top-full z-[9999] mt-1 max-h-60 w-full overflow-auto rounded-md border shadow-lg\"\r\n          onScroll={e => {\r\n            const el = e.currentTarget;\r\n            if (!isLoading && el.scrollHeight - el.scrollTop - el.clientHeight < 48) {\r\n              setOptionsFetcher();\r\n            }\r\n          }}\r\n        >\r\n          {displayedOptions.length === 0 && !isLoading && (\r\n            <div className=\"text-muted-foreground px-3 py-2 text-sm\">{t(\"select\")}</div>\r\n          )}\r\n          {displayedOptions.map(opt => (\r\n            <div\r\n              key={String(opt.value)}\r\n              onClick={() => (isMulti ? toggleMulti(opt) : commitSingle(opt))}\r\n              className={`hover:bg-accent cursor-pointer px-3 py-2 text-sm ${\r\n                isSelected(opt) ? \"bg-accent font-medium\" : \"\"\r\n              }`}\r\n            >\r\n              {opt.label}\r\n            </div>\r\n          ))}\r\n          {isLoading && <div className=\"text-muted-foreground px-3 py-2 text-sm\">Loading…</div>}\r\n        </div>\r\n      )}\r\n    </div>\r\n  );\r\n}\r\n","usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Inputs\\TextEditor.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Inputs\\TextInput.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Inputs\\TimeInput.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Inputs\\tag-input.tsx","messages":[{"ruleId":null,"message":"Unused eslint-disable directive (no problems were reported from '@typescript-eslint/no-unused-expressions').","line":92,"column":13,"severity":1,"nodeType":null,"fix":{"range":[2865,2933],"text":" "}}],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":1,"source":"\"use client\";\r\n\r\nimport { Badge } from \"@/components/ui/badge\";\r\nimport { Button } from \"@/components/ui/button\";\r\nimport { Command, CommandGroup, CommandItem } from \"@/components/ui/command\";\r\nimport { Input } from \"@/components/ui/input\";\r\nimport { Popover, PopoverContent, PopoverTrigger } from \"@/components/ui/popover\";\r\nimport { cn } from \"@/lib/utils\";\r\nimport { Plus, X } from \"lucide-react\";\r\nimport { useTranslations } from \"next-intl\";\r\nimport type React from \"react\";\r\nimport { useRef, useState, type KeyboardEvent } from \"react\";\r\n\r\ninterface TagInputProps {\r\n  value?: string[];\r\n  onChange: (values: string[]) => void;\r\n  name: string;\r\n  placeholder?: string;\r\n  className?: string;\r\n  suggestions?: string[];\r\n  maxTags?: number;\r\n  disabled?: boolean;\r\n}\r\n\r\nconst TagInput: React.FC<TagInputProps> = ({\r\n  value = [],\r\n  onChange,\r\n  name,\r\n  placeholder = \"Type and press enter to add...\",\r\n  className = \"\",\r\n  suggestions = [],\r\n  maxTags,\r\n  disabled = false\r\n}) => {\r\n  const [inputValue, setInputValue] = useState(\"\");\r\n  // The API stores tags as a comma-separated string (\"a,b\"), so split it back into tags.\r\n  const safeValue =\r\n    typeof value == \"string\"\r\n      ? (value as string)\r\n          .split(\",\")\r\n          .map(tag => tag.trim())\r\n          .filter(Boolean)\r\n      : value || [];\r\n  const [open, setOpen] = useState(false);\r\n  const inputRef = useRef<HTMLInputElement>(null);\r\n\r\n  const handleAddTag = (tag: string) => {\r\n    const trimmedTag = tag.trim();\r\n    if (!trimmedTag) return;\r\n\r\n    // Don't add if it already exists\r\n    if (safeValue.includes(trimmedTag)) {\r\n      setInputValue(\"\");\r\n      return;\r\n    }\r\n\r\n    // Don't add if we've reached the maximum number of tags\r\n    if (maxTags !== undefined && safeValue.length >= maxTags) return;\r\n\r\n    onChange([...safeValue, trimmedTag]);\r\n    setInputValue(\"\");\r\n    setOpen(false);\r\n  };\r\n\r\n  const handleRemoveTag = (tagToRemove: string) => {\r\n    onChange(safeValue.filter(tag => tag !== tagToRemove));\r\n  };\r\n\r\n  const handleKeyDown = (e: KeyboardEvent<HTMLInputElement>) => {\r\n    if (e.key === \"Enter\" && inputValue) {\r\n      e.preventDefault();\r\n      handleAddTag(inputValue);\r\n    } else if (e.key === \"Backspace\" && !inputValue && safeValue.length > 0) {\r\n      handleRemoveTag(safeValue[safeValue.length - 1]);\r\n    }\r\n  };\r\n\r\n  const filteredSuggestions = suggestions.filter(\r\n    suggestion =>\r\n      !safeValue.includes(suggestion) && suggestion.toLowerCase().includes(inputValue.toLowerCase())\r\n  );\r\n  const t = useTranslations();\r\n  return (\r\n    <div\r\n      role=\"button\"\r\n      tabIndex={0}\r\n      onKeyDown={e => {\r\n        if (e.key === \"Enter\" || e.key === \" \") {\r\n          // Only prevent default if the input isn't already focused\r\n          if (document.activeElement !== inputRef.current) {\r\n            e.preventDefault();\r\n            // eslint-disable-next-line @typescript-eslint/no-unused-expressions\r\n            !disabled && inputRef.current?.focus();\r\n          }\r\n        }\r\n      }}\r\n      className={cn(\r\n        \"flex flex-wrap gap-1.5 p-1.5 rounded-md border border-input bg-background min-h-10 focus-within:ring-1 focus-within:ring-ring\",\r\n        disabled && \"opacity-50 cursor-not-allowed\",\r\n        className\r\n      )}\r\n      onClick={() => !disabled && inputRef.current?.focus()}\r\n    >\r\n      {safeValue?.map(tag => (\r\n        <Badge\r\n          key={tag}\r\n          variant=\"secondary\"\r\n          className=\"h-7 px-2 text-sm font-normal gap-1 truncate max-w-[200px]\"\r\n        >\r\n          {tag}\r\n          {!disabled && (\r\n            <Button\r\n              variant=\"ghost\"\r\n              type=\"button\"\r\n              size=\"icon\"\r\n              className=\"h-4 w-4 p-0 ml-1 rounded-full hover:bg-muted\"\r\n              onClick={e => {\r\n                e.stopPropagation();\r\n                handleRemoveTag(tag);\r\n              }}\r\n              aria-label={`Remove ${tag}`}\r\n            >\r\n              <X className=\"h-3 w-3\" />\r\n            </Button>\r\n          )}\r\n        </Badge>\r\n      ))}\r\n\r\n      <Popover open={open && filteredSuggestions.length > 0} onOpenChange={setOpen}>\r\n        <PopoverTrigger asChild>\r\n          <div className=\"flex-1 min-w-[120px] relative\">\r\n            <Input\r\n              ref={inputRef}\r\n              type=\"text\"\r\n              name={name}\r\n              value={inputValue}\r\n              onChange={e => {\r\n                setInputValue(e.target.value);\r\n                if (e.target.value) setOpen(true);\r\n              }}\r\n              onKeyDown={handleKeyDown}\r\n              // Keep text typed without pressing Enter, so it is not lost on save.\r\n              onBlur={() => inputValue && handleAddTag(inputValue)}\r\n              placeholder={safeValue.length === 0 ? placeholder : t(\"Type and press enter to add\")}\r\n              className=\"shadow-none border-0 focus-visible:ring-0 focus-visible:ring-offset-0 p-0 h-7 text-sm placeholder:text-muted-foreground pr-6\"\r\n              disabled={disabled || (maxTags !== undefined && safeValue.length >= maxTags)}\r\n            />\r\n            {inputValue && (\r\n              <Plus\r\n                className={cn(\r\n                  \"h-4 w-4 absolute right-1 top-1/2 -translate-y-1/2 text-muted-foreground\",\r\n                  !disabled && \"cursor-pointer hover:text-foreground transition-colors\",\r\n                  disabled && \"opacity-50\"\r\n                )}\r\n                onClick={() => !disabled && handleAddTag(inputValue)}\r\n              />\r\n            )}\r\n          </div>\r\n        </PopoverTrigger>\r\n        <PopoverContent className=\"p-0 w-[200px]\" align=\"start\">\r\n          <Command>\r\n            <CommandGroup>\r\n              {filteredSuggestions.map(suggestion => (\r\n                <CommandItem\r\n                  key={suggestion}\r\n                  onSelect={() => handleAddTag(suggestion)}\r\n                  className=\"flex items-center gap-2 text-sm\"\r\n                >\r\n                  <Plus className=\"h-3 w-3\" />\r\n                  {suggestion}\r\n                </CommandItem>\r\n              ))}\r\n            </CommandGroup>\r\n          </Command>\r\n        </PopoverContent>\r\n      </Popover>\r\n    </div>\r\n  );\r\n};\r\n\r\nexport default TagInput;\r\n","usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Inputs\\video-input.tsx","messages":[{"ruleId":"react-hooks/set-state-in-effect","severity":2,"message":"Error: Calling setState synchronously within an effect can trigger cascading renders\n\nEffects are intended to synchronize state between React and external systems such as manually updating the DOM, state management libraries, or other platform APIs. In general, the body of an effect should do one or both of the following:\n* Update external systems with the latest state from React.\n* Subscribe for updates from some external system, calling setState in a callback function when external state changes.\n\nCalling setState synchronously within an effect body causes cascading renders that can hurt performance, and is not recommended. (https://react.dev/learn/you-might-not-need-an-effect).\n\nD:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Inputs\\video-input.tsx:150:7\n  148 |     // Handle initial value from API\n  149 |     if (value && typeof value === \"string\") {\n> 150 |       setIsLoading(true)\n      |       ^^^^^^^^^^^^ Avoid calling setState() directly within an effect\n  151 |       const videoUrl = value.startsWith(\"http\") ? value : API_IMG_URL + value\n  152 |       setVideoSrc(videoUrl)\n  153 |       setFileName(value.split(\"/\").pop() || \"\")","line":150,"column":7,"nodeType":null,"endLine":150,"endColumn":19},{"ruleId":"react-hooks/exhaustive-deps","severity":1,"message":"The ref value 'videoRef.current' will likely have changed by the time this effect cleanup function runs. If this ref points to a node rendered by React, copy 'videoRef.current' to a variable inside the effect, and use that variable in the cleanup function.","line":174,"column":18,"nodeType":"Identifier","endLine":174,"endColumn":25},{"ruleId":"react-hooks/exhaustive-deps","severity":1,"message":"React Hook useEffect has a missing dependency: 'videoSrc'. Either include it or remove the dependency array.","line":181,"column":6,"nodeType":"ArrayExpression","endLine":181,"endColumn":13,"suggestions":[{"desc":"Update the dependencies array to be: [value, videoSrc]","fix":{"range":[4891,4898],"text":"[value, videoSrc]"}}]}],"suppressedMessages":[],"errorCount":1,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":"\"use client\"\r\n\r\nimport type React from \"react\"\r\nimport { useEffect, useRef, useState } from \"react\"\r\nimport { FileVideo, Upload, X, Play, Pause } from \"lucide-react\"\r\nimport { Button } from \"@/components/ui/button\"\r\nimport { Card } from \"@/components/ui/card\"\r\nimport { Progress } from \"@/components/ui/progress\"\r\nimport { cn } from \"@/lib/utils\"\r\nimport { API_IMG_URL } from \"@/utils/config\"\r\nimport { useTranslations } from \"next-intl\"\r\n\r\ntype VideoInputProps = {\r\n  name: string\r\n  onChange?: (file: File | null) => void\r\n  onControlChange?: (file: File | null) => void\r\n  value?: File | string\r\n  className?: string\r\n  disabled?: boolean\r\n}\r\n\r\nexport default function VideoInput({\r\n  name,\r\n  onChange,\r\n  value,\r\n  onControlChange,\r\n  className,\r\n  disabled = false,\r\n}: VideoInputProps) {\r\n  const [videoSrc, setVideoSrc] = useState<string | null>(null)\r\n  const [fileName, setFileName] = useState<string>(\"\")\r\n  const [isDragging, setIsDragging] = useState<boolean>(false)\r\n  const [isPlaying, setIsPlaying] = useState<boolean>(false)\r\n  const [duration, setDuration] = useState<number>(0)\r\n  const [currentTime, setCurrentTime] = useState<number>(0)\r\n  const [isLoading, setIsLoading] = useState<boolean>(false)\r\n  const videoRef = useRef<HTMLVideoElement>(null)\r\n  const fileInputRef = useRef<HTMLInputElement>(null)\r\n\r\n  const t = useTranslations()\r\n  const formatTime = (seconds: number): string => {\r\n    const mins = Math.floor(seconds / 60)\r\n    const secs = Math.floor(seconds % 60)\r\n    return `${mins}:${secs < 10 ? \"0\" : \"\"}${secs}`\r\n  }\r\n\r\n  const handleFileChange = (file: File | null) => {\r\n    if (!file) return\r\n\r\n    setIsLoading(true)\r\n    const url = URL.createObjectURL(file)\r\n    setVideoSrc(url)\r\n    setFileName(file.name)\r\n    onChange?.(file)\r\n    onControlChange?.(file)\r\n  }\r\n\r\n  const handleInputChange = (event: React.ChangeEvent<HTMLInputElement>) => {\r\n    const file = event.target.files?.[0]\r\n    if (file) {\r\n      handleFileChange(file)\r\n    }\r\n  }\r\n\r\n  const handleReset = () => {\r\n    setVideoSrc(null)\r\n    setFileName(\"\")\r\n    setIsPlaying(false)\r\n    setCurrentTime(0)\r\n    setDuration(0)\r\n    onChange?.(null)\r\n    onControlChange?.(null)\r\n    if (videoRef.current) {\r\n      videoRef.current.src = \"\"\r\n    }\r\n    if (fileInputRef.current) {\r\n      fileInputRef.current.value = \"\"\r\n    }\r\n  }\r\n\r\n  const handleDragOver = (e: React.DragEvent<HTMLDivElement>) => {\r\n    e.preventDefault()\r\n    e.stopPropagation()\r\n    if (!disabled) {\r\n      setIsDragging(true)\r\n    }\r\n  }\r\n\r\n  const handleDragLeave = (e: React.DragEvent<HTMLDivElement>) => {\r\n    e.preventDefault()\r\n    e.stopPropagation()\r\n    setIsDragging(false)\r\n  }\r\n\r\n  const handleDrop = (e: React.DragEvent<HTMLDivElement>) => {\r\n    e.preventDefault()\r\n    e.stopPropagation()\r\n    setIsDragging(false)\r\n\r\n    if (disabled) return\r\n\r\n    const file = e.dataTransfer.files?.[0]\r\n    if (file && file.type.startsWith(\"video/\")) {\r\n      handleFileChange(file)\r\n    }\r\n  }\r\n\r\n  const togglePlayPause = () => {\r\n    if (!videoRef.current) return\r\n\r\n    if (isPlaying) {\r\n      videoRef.current.pause()\r\n    } else {\r\n      videoRef.current.play()\r\n    }\r\n\r\n    setIsPlaying(!isPlaying)\r\n  }\r\n\r\n  const handleTimeUpdate = () => {\r\n    if (!videoRef.current) return\r\n    setCurrentTime(videoRef.current.currentTime)\r\n  }\r\n\r\n  const handleSeek = (e: React.MouseEvent<HTMLDivElement>) => {\r\n    if (!videoRef.current || !duration) return\r\n\r\n    const progressBar = e.currentTarget\r\n    const rect = progressBar.getBoundingClientRect()\r\n    const pos = (e.clientX - rect.left) / rect.width\r\n    const newTime = pos * duration\r\n\r\n    videoRef.current.currentTime = newTime\r\n    setCurrentTime(newTime)\r\n  }\r\n\r\n  const handleVideoLoad = () => {\r\n    if (!videoRef.current) return\r\n    setDuration(videoRef.current.duration)\r\n    setIsLoading(false)\r\n  }\r\n\r\n  const handleVideoEnded = () => {\r\n    setIsPlaying(false)\r\n  }\r\n\r\n  useEffect(() => {\r\n    // Handle initial value from API\r\n    if (value && typeof value === \"string\") {\r\n      setIsLoading(true)\r\n      const videoUrl = value.startsWith(\"http\") ? value : API_IMG_URL + value\r\n      setVideoSrc(videoUrl)\r\n      setFileName(value.split(\"/\").pop() || \"\")\r\n\r\n      // Reset video element if ref exists\r\n      if (videoRef.current) {\r\n        videoRef.current.load()\r\n      }\r\n    } else if (value instanceof File) {\r\n      setIsLoading(true)\r\n      const url = URL.createObjectURL(value)\r\n      setVideoSrc(url)\r\n      setFileName(value.name)\r\n    } else {\r\n      // Reset states if no value\r\n      setVideoSrc(null)\r\n      setFileName(\"\")\r\n    }\r\n\r\n    // Cleanup function\r\n    return () => {\r\n      if (videoRef.current) {\r\n        videoRef.current.pause()\r\n        videoRef.current.src = \"\"\r\n      }\r\n      // Cleanup blob URLs\r\n      if (videoSrc?.startsWith(\"blob:\")) {\r\n        URL.revokeObjectURL(videoSrc)\r\n      }\r\n    }\r\n  }, [value])\r\n\r\n  return (\r\n    <div className={cn(\"flex flex-col gap-3\", className)}>\r\n      {!videoSrc ? (\r\n        <Card\r\n          className={cn(\r\n            \"border-2 border-dashed p-6 text-center flex flex-col items-center justify-center gap-3 cursor-pointer transition-colors\",\r\n            isDragging ? \"border-primary bg-primary/5\" : \"border-gray-300 hover:border-primary/50\",\r\n            disabled && \"opacity-50 cursor-not-allowed\",\r\n          )}\r\n          onDragOver={handleDragOver}\r\n          onDragLeave={handleDragLeave}\r\n          onDrop={handleDrop}\r\n          onClick={() => !disabled && fileInputRef.current?.click()}\r\n        >\r\n          <div className=\"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center text-primary\">\r\n            <Upload className=\"w-6 h-6\" />\r\n          </div>\r\n          <div>\r\n            <p className=\"font-medium text-sm\">{t(\"Drop your video here or\")}</p>\r\n            <Button type=\"button\" variant=\"link\" className=\"p-0 h-auto text-primary\" disabled={disabled}>\r\n              {t(\"browse files\")}\r\n            </Button>\r\n          </div>\r\n          <p className=\"text-xs text-gray-500\">{t(\"Supported formats: MP4, WebM, Ogg\")}</p>\r\n          <input\r\n            ref={fileInputRef}\r\n            type=\"file\"\r\n            name={name}\r\n            onChange={handleInputChange}\r\n            accept=\"video/*\"\r\n            className=\"sr-only\"\r\n            aria-label=\"Choose video\"\r\n            disabled={disabled}\r\n          />\r\n        </Card>\r\n      ) : (\r\n        <div className=\"relative rounded-lg overflow-hidden border border-gray-200\">\r\n          {isLoading && (\r\n            <div className=\"absolute inset-0 flex items-center justify-center bg-black/50 z-10\">\r\n              <div className=\"w-12 h-12 rounded-full border-4 border-primary border-t-transparent animate-spin\"></div>\r\n            </div>\r\n          )}\r\n\r\n          <div className=\"relative aspect-video bg-black\">\r\n            <video\r\n              ref={videoRef}\r\n              src={videoSrc}\r\n              className=\"w-full h-full object-contain\"\r\n              onTimeUpdate={handleTimeUpdate}\r\n              onLoadedMetadata={handleVideoLoad}\r\n              onEnded={handleVideoEnded}\r\n              onClick={(e) => {\r\n                // Prevent click event if user is clicking near the bottom area where controls might be\r\n                if (e.clientY < e.currentTarget.getBoundingClientRect().bottom - 50) {\r\n                  togglePlayPause()\r\n                }\r\n              }}\r\n            >\r\n              <track kind=\"captions\" src=\"\" label=\"English\" />\r\n              {t(\"Your browser does not support the video tag.\")}\r\n            </video>\r\n\r\n            {!isPlaying && !isLoading && (\r\n              <Button\r\n                variant=\"outline\"\r\n                size=\"icon\"\r\n                className=\"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 bg-white/80 hover:bg-white rounded-full w-12 h-12\"\r\n                onClick={togglePlayPause}\r\n              >\r\n                <Play className=\"h-5 w-5\" />\r\n              </Button>\r\n            )}\r\n          </div>\r\n\r\n          <div className=\"p-3 bg-white\">\r\n            <div className=\"flex items-center gap-2 mb-2\">\r\n              <Button variant=\"ghost\" size=\"icon\" className=\"h-8 w-8\" onClick={togglePlayPause}>\r\n                {isPlaying ? <Pause className=\"h-4 w-4\" /> : <Play className=\"h-4 w-4\" />}\r\n              </Button>\r\n\r\n              <div\r\n                className=\"flex-1 cursor-pointer\"\r\n                role=\"button\"\r\n                tabIndex={0}\r\n                onClick={handleSeek}\r\n                onKeyDown={(e) => {\r\n                  if (e.key === \"Enter\" || e.key === \" \") {\r\n                    handleSeek(e as unknown as React.MouseEvent<HTMLDivElement>)\r\n                  }\r\n                }}\r\n              >\r\n                <Progress value={(currentTime / duration) * 100} className=\"h-2\" />\r\n              </div>\r\n\r\n              <span className=\"text-xs text-gray-500 min-w-[60px] text-right\">\r\n                {formatTime(currentTime)} / {formatTime(duration)}\r\n              </span>\r\n            </div>\r\n\r\n            <div className=\"flex items-center justify-between\">\r\n              <div className=\"flex items-center gap-2\">\r\n                <div className=\"w-8 h-8 rounded-md bg-primary/10 flex items-center justify-center text-primary flex-shrink-0\">\r\n                  <FileVideo className=\"w-2 h-2\" />\r\n                </div>\r\n                <span className=\"text-sm font-medium truncate max-w-[200px]\" title={fileName}>\r\n                  {fileName}\r\n                </span>\r\n              </div>\r\n\r\n              {!disabled && (\r\n                <Button\r\n                  variant=\"ghost\"\r\n                  size=\"sm\"\r\n                  className=\"h-8 text-xs text-destructive hover:text-destructive/90 hover:bg-destructive/10 z-10 relative\"\r\n                  onClick={(e) => {\r\n                    e.stopPropagation()\r\n                    handleReset()\r\n                  }}\r\n                >\r\n                  <X className=\"w-3 h-3 mr-1\" />\r\n                  {t(\"Remove\")}\r\n                </Button>\r\n              )}\r\n            </div>\r\n          </div>\r\n        </div>\r\n      )}\r\n    </div>\r\n  )\r\n}\r\n","usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\Navbar\\mini-nav.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\TopRatedComponent\\TopRatedComponent.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\badge\\number-badge.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\table\\BasicTableHeader.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\table\\ClickableRow.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\table\\TableBasic.tsx","messages":[{"ruleId":"react-hooks/immutability","severity":2,"message":"Error: This value cannot be modified\n\nModifying component props or hook arguments is not allowed. Consider using a local variable instead.\n\nD:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\table\\TableBasic.tsx:90:5\n  88 |   const dateIndex4 = filteredHeaders.indexOf(\"orderDate\");\n  89 |   if (pagination.totalData === undefined) {\n> 90 |     pagination.totalData = data?.length;\n     |     ^^^^^^^^^^ value cannot be modified\n  91 |   }\n  92 |   return (\n  93 |     <div>","line":90,"column":5,"nodeType":null,"endLine":90,"endColumn":15}],"suppressedMessages":[],"errorCount":1,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":"\"use server\";\r\n// project imports\r\nimport { Card } from \"@/components/ui/card\";\r\nimport {\r\n  Table,\r\n  TableBody,\r\n  TableCell,\r\n  TableHead,\r\n  TableHeader,\r\n  TableRow\r\n} from \"@/components/ui/table\";\r\nimport { cn } from \"@/lib/utils\";\r\nimport getCells from \"@/utils/cells\";\r\nimport changeTimeFormatServer from \"@/utils/changeTimeFormatServer\";\r\nimport { ALL_SYSTEM_STATUS, namePrefix } from \"@/utils/config\";\r\nimport { getLocale, getTranslations } from \"next-intl/server\";\r\nimport { FiAlertCircle } from \"react-icons/fi\";\r\nimport type { FormInput } from \"../Form/CustomFormTypes.types\";\r\nimport BasicTableHeader from \"./BasicTableHeader\";\r\nimport ClickableRow from \"./ClickableRow\";\r\nimport { ImageCell } from \"./columns/img-cell\";\r\nimport TableActions from \"./tableActions/TableActions\";\r\nimport { TablePagination } from \"./tableHelperComponents/TablePagination\";\r\nimport TableTopSection from \"./tableHelperComponents/TableTopSection\";\r\n\r\n// ==============================|| SHADCN TABLE ||============================== //\r\n\r\nexport default async function TableBasic({\r\n  data,\r\n  headers,\r\n  tableActions,\r\n  filters,\r\n  pagination,\r\n  cardHeader,\r\n  hideId = false,\r\n  hideCreateNew,\r\n  rowLinkBase\r\n}: {\r\n  data: any[];\r\n  headers: string[];\r\n  /** When set, each row becomes clickable and navigates to `${rowLinkBase}/${row id}`. */\r\n  rowLinkBase?: string;\r\n  tableActions?: {\r\n    onInfo?: any;\r\n    onEdit?: any;\r\n    onDelete?: string;\r\n    route?: any;\r\n    className?: string;\r\n    defaultApiPath?: string;\r\n    onChangeStatus?: string;\r\n    statusKey?: string;\r\n    statusOptions?: string[];\r\n    links?: { label: string; href: string }[];\r\n  };\r\n  filters?: FormInput[];\r\n  pagination: {\r\n    totalData: number;\r\n    totalPages?: number;\r\n    limit?: number;\r\n  };\r\n  cardHeader?: string;\r\n  hideId?: boolean;\r\n  hideCreateNew?: boolean;\r\n  createNewLink?: string;\r\n}) {\r\n  const t = await getTranslations();\r\n  const locale = await getLocale();\r\n  const hasData = Boolean(data && data.length > 0);\r\n\r\n  const filteredHeaders: string[] = headers.find(\r\n    header => header == \"firstName\" || header == \"lastName\"\r\n  )\r\n    ? [\r\n        \"id\",\r\n        namePrefix,\r\n        ...headers.filter(header => header != \"firstName\" && header != \"lastName\" && header != \"id\")\r\n      ]\r\n    : headers;\r\n\r\n  const cellsData = getCells(data, filteredHeaders);\r\n  // Define indices for \"created at\" and \"updated at\" columns\r\n  const createdAtIndex = filteredHeaders.indexOf(\"startDate\");\r\n  const createdAtIndex2 = filteredHeaders.indexOf(\"createdAt\");\r\n  const updatedAtIndex = filteredHeaders.indexOf(\"endDate\");\r\n  const dateIndex = filteredHeaders.indexOf(\"expireDate\");\r\n  const dateIndex2 = filteredHeaders.indexOf(\"date\");\r\n  const dateIndex3 = filteredHeaders.indexOf(\"deliveredAt\");\r\n  const dateIndex4 = filteredHeaders.indexOf(\"orderDate\");\r\n  if (pagination.totalData === undefined) {\r\n    pagination.totalData = data?.length;\r\n  }\r\n  return (\r\n    <div>\r\n      <TableTopSection\r\n        headers={headers}\r\n        data={data}\r\n        cardHeader={cardHeader}\r\n        hideCreateNew={hideCreateNew}\r\n      />\r\n      <Card className=\"py-[15px] overflow-x-auto\">\r\n        <BasicTableHeader\r\n          headers={headers}\r\n          data={data}\r\n          cardHeader={cardHeader}\r\n          filters={filters}\r\n          hideCreateNew={hideCreateNew}\r\n        />\r\n        {/* Shadcn Table */}\r\n        {/* <div className=\"overflow-x-auto max-w-xs sm:max-w-xl md:max-w-3xl lg:max-w-3xl xl:max-w-6xl\"> */}\r\n        {!hasData ? (\r\n          <div className=\"flex flex-col items-center  justify-center h-64 w-full\">\r\n            <FiAlertCircle className=\"text-6xl text-red-500 mb-4\" />\r\n            <h2 className=\"text-2xl font-semibold text-gray-700\">{t(\"No Data Found\")}</h2>\r\n          </div>\r\n        ) : (\r\n          <Table className=\"  w-full\">\r\n            {/* <TableCaption>{t(\"A list of your data\")}</TableCaption> */}\r\n            <TableHeader className=\" bg-gray-100 text-black\">\r\n              <TableRow>\r\n                {filteredHeaders.map((header, index) => {\r\n                  if (index === 0 && hideId) return null;\r\n\r\n                  return (\r\n                    <TableHead\r\n                      key={index}\r\n                      className={`capitalize text-black font-medium text-[14px]  min-w-max   text-start`}\r\n                    >\r\n                      <div className=\"whitespace-nowrap \">\r\n                        {t(header === namePrefix ? \"name\" : header || \"\")}\r\n                      </div>\r\n                    </TableHead>\r\n                  );\r\n                })}\r\n                {tableActions && (\r\n                  <TableHead\r\n                    className={`capitalize text-black font-medium text-[14px] text-center`}\r\n                  >\r\n                    {t(\"Actions\")}\r\n                  </TableHead>\r\n                )}\r\n              </TableRow>\r\n            </TableHeader>\r\n            <TableBody>\r\n              {cellsData?.map((row, index) => {\r\n                const rowChildren = (\r\n                  <>\r\n                    {row.map((cell, cellIndex) => {\r\n                    if (cellIndex === 0 && hideId) return null;\r\n\r\n                    // Check if the cell is \"created at\" or \"updated at\"\r\n                    const isDateField =\r\n                      cellIndex === createdAtIndex ||\r\n                      cellIndex === updatedAtIndex ||\r\n                      cellIndex === createdAtIndex2 ||\r\n                      cellIndex === dateIndex ||\r\n                      cellIndex === dateIndex2 ||\r\n                      cellIndex === dateIndex3 ||\r\n                      cellIndex === dateIndex4;\r\n                    if (\r\n                      (typeof cell == \"string\" && cell?.includes(\"image-\")) ||\r\n                      (typeof cell == \"string\" && cell?.includes(\"thumbnail-\")) ||\r\n                      (typeof cell == \"string\" && cell?.includes(\"cover-\")) ||\r\n                      (typeof cell == \"string\" && cell?.includes(\"identifyImage-\")) ||\r\n                      (typeof cell == \"string\" && cell?.includes(\"uploads/\"))\r\n                    ) {\r\n                      return (\r\n                        <TableCell className={` rounded-md ps-[14px] `} key={cellIndex}>\r\n                          <ImageCell cell={cell} />\r\n                        </TableCell>\r\n                      );\r\n                    }\r\n                    return (\r\n                      <TableCell\r\n                        className={cn(\r\n                          `  ps-[14px]\r\n                         ${isDateField ? \"min-w-[150px]\" : \"\"}\r\n                      `,\r\n                          cellIndex === 0 ? \"text-Base\" : \"\"\r\n                        )}\r\n                        key={cellIndex}\r\n                      >\r\n                        {isDateField ? (\r\n                          changeTimeFormatServer({\r\n                            time: cell,\r\n                            locale\r\n                          })\r\n                        ) : typeof cell == \"string\" &&\r\n                          ALL_SYSTEM_STATUS.find(item => item.status == cell) ? (\r\n                          <div\r\n                            style={{\r\n                              backgroundColor: ALL_SYSTEM_STATUS.find(item => item.status == cell)\r\n                                ?.color,\r\n                              color: \"white\"\r\n                            }}\r\n                            className=\" rounded-md p-1 min-w-[120px] max-w-fit text-center text-[11px]\"\r\n                          >\r\n                            {t(cell)}\r\n                          </div>\r\n                        ) : cellIndex !== 0 && cell && !isNaN(Number(cell)) ? (\r\n                          Number(cell).toFixed(2)\r\n                        ) : (\r\n                          cell\r\n                        )}\r\n                      </TableCell>\r\n                    );\r\n                  })}\r\n                    {tableActions && (\r\n                      <TableCell className={`text-center`}>\r\n                        <TableActions\r\n                          className=\"justify-center \"\r\n                          status={\r\n                            row[\r\n                              filteredHeaders.findIndex(\r\n                                header => header === tableActions?.statusKey\r\n                              )\r\n                            ]\r\n                          }\r\n                          id={row[0]}\r\n                          {...tableActions}\r\n                          statusOptions={\r\n                            Array.isArray(data?.[index]?.allowedStatuses)\r\n                              ? data[index].allowedStatuses\r\n                              : tableActions.statusOptions\r\n                          }\r\n                        />\r\n                      </TableCell>\r\n                    )}\r\n                  </>\r\n                );\r\n                return rowLinkBase ? (\r\n                  <ClickableRow key={index} href={`${rowLinkBase}/${row[0]}`}>\r\n                    {rowChildren}\r\n                  </ClickableRow>\r\n                ) : (\r\n                  <TableRow key={index}>{rowChildren}</TableRow>\r\n                );\r\n              })}\r\n            </TableBody>\r\n          </Table>\r\n        )}\r\n        {pagination && hasData && <TablePagination pagination={pagination} />}\r\n      </Card>\r\n    </div>\r\n  );\r\n}\r\n","usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\table\\columns\\Ative.column.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\table\\columns\\Phone.direction.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\table\\columns\\img-cell.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\table\\columns\\img-with-info.coulmn.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\table\\tableActions\\ChangeStatusTableAction.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\table\\tableActions\\CreateNewLink.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\table\\tableActions\\ExportBtn.tsx","messages":[{"ruleId":"react-hooks/exhaustive-deps","severity":1,"message":"React Hook useCallback has missing dependencies: 'exportName' and 't'. Either include them or remove the dependency array.","line":59,"column":6,"nodeType":"ArrayExpression","endLine":59,"endColumn":55,"suggestions":[{"desc":"Update the dependencies array to be: [headers, data, exportName, hideId, t, getValueFromReactElement]","fix":{"range":[2058,2107],"text":"[headers, data, exportName, hideId, t, getValueFromReactElement]"}}]}],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"\"use client\";\r\n\r\nimport { Button } from \"@/components/ui/button\";\r\nimport { saveAs } from \"file-saver\";\r\nimport { DownloadCloud } from \"lucide-react\";\r\nimport { useTranslations } from \"next-intl\";\r\nimport React, { useCallback } from \"react\";\r\nimport { FaFileCsv } from \"react-icons/fa\";\r\n\r\nexport default function ExportBtn({\r\n  headers,\r\n  data,\r\n  hideId = false,\r\n  exportName\r\n}: {\r\n  exportName?: string;\r\n  headers: string[];\r\n  data: any[];\r\n  hideId?: boolean;\r\n}) {\r\n  const t = useTranslations();\r\n\r\n  // Cells can hold JSX trees; server-rendered ones arrive with lazy/client references that are not\r\n  // valid elements, so only keep text and skip any other object instead of printing \"[object Object]\".\r\n  const getValueFromReactElement = (value: React.ReactNode): string => {\r\n    if (value === null || value === undefined || typeof value === \"boolean\") return \"\";\r\n    if (typeof value === \"string\" || typeof value === \"number\" || typeof value === \"bigint\") {\r\n      return String(value);\r\n    }\r\n    if (Array.isArray(value)) return value.map(getValueFromReactElement).join(\"\");\r\n    if (React.isValidElement<{ children?: React.ReactNode }>(value)) {\r\n      return getValueFromReactElement(value.props.children);\r\n    }\r\n    return \"\";\r\n  };\r\n\r\n  const exportToCSV = useCallback(() => {\r\n    const csvHeaders = headers\r\n      .filter((_, index) => !(index === 0 && hideId))\r\n      .map(header => t(header))\r\n      .join(\",\");\r\n\r\n    const csvRows = data.map(row =>\r\n      headers\r\n        .filter((_, index) => !(index === 0 && hideId))\r\n        .map(header => {\r\n          const value = getValueFromReactElement(row[header]);\r\n          return `\"${value.replace(/\"/g, '\"\"')}\"`;\r\n        })\r\n        .join(\",\")\r\n    );\r\n\r\n    // \"sep=,\" makes Excel split on commas regardless of the OS regional list separator (e.g. \";\" in ar/pl/uk)\r\n    const csvContent = `\\uFEFFsep=,\\n${csvHeaders}\\n${csvRows.join(\"\\n\")}`;\r\n    saveAs(\r\n      new Blob([csvContent], { type: \"text/csv;charset=utf-8\" }),\r\n      `${exportName ?? \"export\"}.csv`\r\n    );\r\n  }, [headers, data, hideId, getValueFromReactElement]);\r\n\r\n  return (\r\n    <Button onClick={exportToCSV} variant=\"outline\" size=\"sm\">\r\n      <FaFileCsv className=\"h-4 w-4 text-gray-600 \" />\r\n      <DownloadCloud className=\"h-4 w-4 text-gray-600\" />\r\n    </Button>\r\n  );\r\n}\r\n","usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\table\\tableActions\\SelectStatus.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\table\\tableActions\\TableActions.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\table\\tableActions\\ToggleStatus.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\table\\tableFilters\\TableFilters.tsx","messages":[{"ruleId":"react-hooks/set-state-in-effect","severity":2,"message":"Error: Calling setState synchronously within an effect can trigger cascading renders\n\nEffects are intended to synchronize state between React and external systems such as manually updating the DOM, state management libraries, or other platform APIs. In general, the body of an effect should do one or both of the following:\n* Update external systems with the latest state from React.\n* Subscribe for updates from some external system, calling setState in a callback function when external state changes.\n\nCalling setState synchronously within an effect body causes cascading renders that can hurt performance, and is not recommended. (https://react.dev/learn/you-might-not-need-an-effect).\n\nD:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\table\\tableFilters\\TableFilters.tsx:69:5\n  67 |       newFilterValues[filter.name] = searchParams.get(filter.name);\n  68 |     });\n> 69 |     setFilterValues(newFilterValues);\n     |     ^^^^^^^^^^^^^^^ Avoid calling setState() directly within an effect\n  70 |   }, []);\n  71 |   return (\n  72 |     isFiltersOpen && (","line":69,"column":5,"nodeType":null,"endLine":69,"endColumn":20},{"ruleId":"react-hooks/exhaustive-deps","severity":1,"message":"React Hook useEffect has missing dependencies: 'filters' and 'searchParams'. Either include them or remove the dependency array.","line":70,"column":6,"nodeType":"ArrayExpression","endLine":70,"endColumn":8,"suggestions":[{"desc":"Update the dependencies array to be: [filters, searchParams]","fix":{"range":[2472,2474],"text":"[filters, searchParams]"}}]}],"suppressedMessages":[],"errorCount":1,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"\"use client\";\r\nimport { useTranslations } from \"next-intl\";\r\nimport { usePathname, useRouter, useSearchParams } from \"next/navigation\";\r\nimport { useEffect, useState } from \"react\";\r\n\r\nimport { Button } from \"@/components/ui/button\";\r\nimport { FormInput } from \"../../Form/CustomFormTypes.types\";\r\nimport FormCardContainer from \"../../Form/FormCardContainer\";\r\nimport FormInputContainer from \"../../Form/FormInputContainer\";\r\nimport { renderInputComponent } from \"../../Form/inputRenderers\";\r\n\r\nfunction TableFilters({\r\n  filters,\r\n  isFiltersOpen,\r\n  setIsFiltersOpen\r\n}: {\r\n  isFiltersOpen: boolean;\r\n  filters: FormInput[];\r\n  setIsFiltersOpen: (value: boolean) => void;\r\n}) {\r\n  const searchParams = useSearchParams();\r\n  const router = useRouter();\r\n  const oldSearchParams: any = {};\r\n  searchParams.forEach((value, key) => {\r\n    oldSearchParams[key] = value;\r\n  });\r\n  const [filterValues, setFilterValues] = useState<{\r\n    [key: string]: string | Date | undefined;\r\n  }>({});\r\n  const t = useTranslations();\r\n\r\n  const onFilterSubmit = () => {\r\n    const filterValue = Object.fromEntries(\r\n      Object.entries(filterValues).filter(\r\n        ([, value]: any) =>\r\n          value !== null && value !== \"\" && value !== undefined && value?.length !== 0\r\n      )\r\n    );\r\n    // new filters change the result set, so go back to the first page\r\n    // a cleared field is not in `filterValue`, so drop this panel's old values first\r\n    const { page: _page, ...rest } = oldSearchParams;\r\n    filters.forEach(filter => delete rest[filter.name]);\r\n    const newSearchParams = { ...rest, ...filterValue };\r\n    Object.keys(newSearchParams).forEach(key => {\r\n      if (newSearchParams[key] instanceof Date) {\r\n        newSearchParams[key] = newSearchParams[key].toISOString();\r\n      }\r\n    });\r\n    router.push(`?${new URLSearchParams(newSearchParams).toString()}`);\r\n  };\r\n  const pathName = usePathname();\r\n  const filterReset = () => {\r\n    setFilterValues({});\r\n    router.push(pathName);\r\n    setIsFiltersOpen(false);\r\n  };\r\n  useEffect(() => {\r\n    const newFilterValues: any = {};\r\n    filters.forEach(filter => {\r\n      if (filter.type == \"selectPaginated\" && filter.isMulti) {\r\n        newFilterValues[filter.name] = searchParams.getAll(filter.name);\r\n        return;\r\n      }\r\n      if (filter.type == \"date\") {\r\n        return;\r\n      }\r\n      newFilterValues[filter.name] = searchParams.get(filter.name);\r\n    });\r\n    setFilterValues(newFilterValues);\r\n  }, []);\r\n  return (\r\n    isFiltersOpen && (\r\n      <div className=\"flex flex-col gap-4\">\r\n        <FormCardContainer index={2} width={6}>\r\n          {filters.map((filter, index) => {\r\n            return (\r\n              <>\r\n                <FormInputContainer index={index} width={filter.width || 3}>\r\n                  {renderInputComponent({\r\n                    item: filter,\r\n                    // label: filter.label ?? filter.name,\r\n                    field: {\r\n                      value: filterValues[filter.name] || \"\",\r\n                      onChange: (e: any) => {\r\n                        if (filter.type == \"selectPaginated\" && filter.isMulti) {\r\n                          setFilterValues({\r\n                            ...filterValues,\r\n                            [filter.name]: e\r\n                          });\r\n                          return;\r\n                        }\r\n                        if (filter.type === \"date\") {\r\n                          setFilterValues({\r\n                            ...filterValues,\r\n                            [filter.name]: e\r\n                          });\r\n                          return;\r\n                        }\r\n                        setFilterValues({\r\n                          ...filterValues,\r\n                          [filter.name]: typeof e == \"string\" ? e : e.target.value\r\n                        });\r\n                      }\r\n                    },\r\n                    errors: {}\r\n                  })}\r\n                </FormInputContainer>\r\n              </>\r\n            );\r\n          })}\r\n        </FormCardContainer>\r\n        {isFiltersOpen && (\r\n          <div className=\" flex gap-2 w-full\">\r\n            <Button\r\n              type=\"button\"\r\n              onClick={onFilterSubmit}\r\n              className=\"mb-5 bg-orange-600 w-[50%] hover:bg-orange-800 active:bg-orange-700 border border-orange-500 px-3 py-1 rounded\"\r\n            >\r\n              {t(\"Apply\")}\r\n            </Button>\r\n            <Button\r\n              type=\"button\"\r\n              onClick={filterReset}\r\n              className=\"mb-5 bg-gray-600 w-[50%] hover:bg-gray-800 active:bg-gray-700 border border-gray-500 px-3 py-1 rounded\"\r\n            >\r\n              {t(\"reset\")}\r\n            </Button>\r\n          </div>\r\n        )}\r\n      </div>\r\n    )\r\n  );\r\n}\r\n\r\nexport default TableFilters;\r\n","usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\table\\tableFilters\\TableSearch.tsx","messages":[{"ruleId":"react-hooks/set-state-in-effect","severity":2,"message":"Error: Calling setState synchronously within an effect can trigger cascading renders\n\nEffects are intended to synchronize state between React and external systems such as manually updating the DOM, state management libraries, or other platform APIs. In general, the body of an effect should do one or both of the following:\n* Update external systems with the latest state from React.\n* Subscribe for updates from some external system, calling setState in a callback function when external state changes.\n\nCalling setState synchronously within an effect body causes cascading renders that can hurt performance, and is not recommended. (https://react.dev/learn/you-might-not-need-an-effect).\n\nD:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\table\\tableFilters\\TableSearch.tsx:29:5\n  27 |   };\n  28 |   useEffect(() => {\n> 29 |     setFilterValue(searchParams.get(searchFilter.name));\n     |     ^^^^^^^^^^^^^^ Avoid calling setState() directly within an effect\n  30 |   }, [searchParams.get(searchFilter.name)]);\n  31 |   return (\n  32 |     <form","line":29,"column":5,"nodeType":null,"endLine":29,"endColumn":19},{"ruleId":"react-hooks/exhaustive-deps","severity":1,"message":"React Hook useEffect has missing dependencies: 'searchFilter.name' and 'searchParams'. Either include them or remove the dependency array. If 'setFilterValue' needs the current value of 'searchFilter.name', you can also switch to useReducer instead of useState and read 'searchFilter.name' in the reducer.","line":30,"column":6,"nodeType":"ArrayExpression","endLine":30,"endColumn":43,"suggestions":[{"desc":"Update the dependencies array to be: [searchFilter.name, searchParams]","fix":{"range":[1420,1457],"text":"[searchFilter.name, searchParams]"}}]},{"ruleId":"react-hooks/exhaustive-deps","severity":1,"message":"React Hook useEffect has a complex expression in the dependency array. Extract it to a separate variable so it can be statically checked.","line":30,"column":7,"nodeType":"CallExpression","endLine":30,"endColumn":42}],"suppressedMessages":[],"errorCount":1,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":"import { Button } from \"@/components/ui/button\";\r\nimport { Input } from \"@/components/ui/input\";\r\nimport { useRouter, useSearchParams } from \"next/navigation\";\r\nimport { useEffect, useState } from \"react\";\r\nimport { IoSearch } from \"react-icons/io5\";\r\nfunction TableSearch({ searchFilter }: { searchFilter: SearchFilterInterface }) {\r\n  const searchParams = useSearchParams();\r\n\r\n  const [filterValue, setFilterValue] = useState(searchParams.get(searchFilter.name));\r\n  const router = useRouter();\r\n  const oldSearchParams: any = {};\r\n  searchParams.forEach((value, key) => {\r\n    oldSearchParams[key] = value;\r\n  });\r\n  const onFilterSubmit = (filterValue: any) => {\r\n    // a new search changes the result set, so go back to the first page\r\n    const { page: _page, [searchFilter.name]: _previous, ...rest } = oldSearchParams;\r\n    // an empty search must remove the param, not leave the old value or `name=`\r\n    const value = String(filterValue[searchFilter.name] ?? \"\").trim();\r\n    const newSearchParams = value ? { ...rest, [searchFilter.name]: value } : rest;\r\n    Object.keys(newSearchParams).forEach(key => {\r\n      if (newSearchParams[key] instanceof Date) {\r\n        newSearchParams[key] = newSearchParams[key].toISOString();\r\n      }\r\n    });\r\n    router.push(`?${new URLSearchParams(newSearchParams).toString()}`);\r\n  };\r\n  useEffect(() => {\r\n    setFilterValue(searchParams.get(searchFilter.name));\r\n  }, [searchParams.get(searchFilter.name)]);\r\n  return (\r\n    <form\r\n      className=\" relative pe-[10px]\"\r\n      onSubmit={(e: any) => {\r\n        e.preventDefault();\r\n        onFilterSubmit({ [searchFilter.name]: e.target[`${searchFilter.name}`].value });\r\n      }}\r\n    >\r\n      <Input\r\n        type={searchFilter.type}\r\n        name={searchFilter.name}\r\n        placeholder={searchFilter.placeholder}\r\n        value={filterValue || \"\"}\r\n        onChange={(e: any) => setFilterValue(e.target.value)}\r\n      />\r\n      <Button\r\n        type=\"submit\"\r\n        className=\" absolute top-0 -end-[10px] bg-Base hover:bg-[#dd5528] rounded-s-none h-[98%]\"\r\n      >\r\n        <IoSearch />\r\n      </Button>\r\n    </form>\r\n  );\r\n}\r\n\r\nexport default TableSearch;\r\n","usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\table\\tableHelperComponents\\TablePagination.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\table\\tableHelperComponents\\TablePagination.v2.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\table\\tableHelperComponents\\TableStatusBadge.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\common\\table\\tableHelperComponents\\TableTopSection.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\components-date-picker-demo.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\forget-password-form.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\intl-provider.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\layouts\\header\\CustomHeader.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\layouts\\header\\MainHeader.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\layouts\\header\\components\\CurrenModule.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\layouts\\header\\components\\HeaderActions.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\layouts\\header\\components\\MainNav.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\layouts\\header\\components\\ModulePopover.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\layouts\\header\\components\\SettingsPopover.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\layouts\\showOne\\BussinesSettingsDetails.tsx","messages":[{"ruleId":"react-hooks/exhaustive-deps","severity":1,"message":"React Hook useEffect has a missing dependency: 'setValue'. Either include it or remove the dependency array.","line":49,"column":6,"nodeType":"ArrayExpression","endLine":49,"endColumn":21,"suggestions":[{"desc":"Update the dependencies array to be: [defaultValues, setValue]","fix":{"range":[1426,1441],"text":"[defaultValues, setValue]"}}]}],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"\"use client\";\r\nimport CustomForm from \"@/components/common/Form/CustomForm\";\r\nimport { FormInput } from \"@/components/common/Form/CustomFormTypes.types\";\r\nimport { API_ENDPOINTS } from \"@/utils/config\";\r\nimport { FormAction } from \"@/utils/FormActions\";\r\nimport { useTranslations } from \"next-intl\";\r\nimport { useRouter } from \"next/navigation\";\r\nimport { useEffect } from \"react\";\r\nimport { useForm } from \"react-hook-form\";\r\n\r\nexport default function BusinessSettingsDetails({\r\n  inputs,\r\n  defaultValues\r\n}: {\r\n  defaultValues: any;\r\n  inputs: FormInput[];\r\n}) {\r\n  const t = useTranslations();\r\n  const router = useRouter();\r\n  const { control, handleSubmit, setValue } = useForm({\r\n    mode: \"onChange\"\r\n  });\r\n  const onSubmit = async (formData: any) => {\r\n    const formattedData = Object.keys(formData).map(key => {\r\n      return {\r\n        setting: key,\r\n        value: formData[key]\r\n      };\r\n    });\r\n\r\n    // stopRedirect: redirectServer drops the ?domain= query, which hides the form\r\n    const res = await FormAction({\r\n      data: {\r\n        id: \"nan\"\r\n      },\r\n      noId: true,\r\n      stopRedirect: true,\r\n      formData: { settings: formattedData },\r\n      endpoint: API_ENDPOINTS.settings,\r\n      t\r\n    });\r\n    if (res.success) router.refresh();\r\n  };\r\n  useEffect(() => {\r\n    defaultValues &&\r\n      Object.keys(defaultValues).map(key => {\r\n        setValue(key, defaultValues[key]);\r\n      });\r\n  }, [defaultValues]);\r\n  return (\r\n    <div className=\"container mx-auto p-6 space-y-6\">\r\n      <CustomForm\r\n        inputs={inputs}\r\n        control={control}\r\n        handleSubmit={handleSubmit(onSubmit)}\r\n        btnName={t(\"Submit\")}\r\n        cardConfig={[\r\n          {\r\n            id: \"default\",\r\n            title: t(\"Settings\"),\r\n            width: 6\r\n          }\r\n        ]}\r\n      />\r\n    </div>\r\n  );\r\n}\r\n","usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\layouts\\showOne\\OrderDetails.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\layouts\\sidebar\\SideBarItem.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\login-form.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_EmailForgetPassword\\EmailForgetPassword.inputs.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_EmailForgetPassword\\EmailForgetPassword.schema.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_EmailForgetPassword\\EmailForgetPasswordForm.page.tsx","messages":[{"ruleId":"react-hooks/incompatible-library","severity":1,"message":"Compilation Skipped: Use of incompatible library\n\nThis API returns functions which cannot be memoized without leading to stale UI. To prevent this, by default React Compiler will skip memoizing this component/hook. However, you may see issues if values from this API are passed to other components/hooks that are memoized.\n\nD:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_EmailForgetPassword\\EmailForgetPasswordForm.page.tsx:62:28\n  60 |     }\n  61 |   }, [data, setValue]);\n> 62 |   const socialMediaLinks = watch(\"socialMediaLinks\");\n     |                            ^^^^^ React Hook Form's `useForm()` API returns a `watch()` function which cannot be memoized safely.\n  63 |   const socialIcons = useMemo(() => {\n  64 |     const media =\n  65 |       socialMedia?.filter(item => socialMediaLinks?.includes(item.platform)) ||","line":62,"column":28,"nodeType":null,"endLine":62,"endColumn":33},{"ruleId":"react-hooks/exhaustive-deps","severity":1,"message":"React Hook useMemo has a missing dependency: 'socialMedia'. Either include it or remove the dependency array.","line":69,"column":6,"nodeType":"ArrayExpression","endLine":69,"endColumn":24,"suggestions":[{"desc":"Update the dependencies array to be: [socialMedia, socialMediaLinks]","fix":{"range":[2282,2300],"text":"[socialMedia, socialMediaLinks]"}}]}],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":"\"use client\";\r\n\r\nimport CustomForm from \"@/components/common/Form/CustomForm\";\r\nimport InputLangSwitcher from \"@/components/common/Form/InputLangSwitcher\";\r\nimport useFormErrorLang from \"@/components/common/Form/hooks/useFormErrorLang\";\r\nimport { FormAction } from \"@/utils/FormActions\";\r\nimport { API_ENDPOINTS } from \"@/utils/config\";\r\nimport { zodResolver } from \"@hookform/resolvers/zod\";\r\nimport { useTranslations } from \"next-intl\";\r\nimport { useSearchParams } from \"next/navigation\";\r\nimport { useCallback, useEffect, useMemo, useState } from \"react\";\r\nimport { useForm } from \"react-hook-form\";\r\nimport { EmailForgetPasswordInputs } from \"./EmailForgetPassword.inputs\";\r\nimport { EmailForgetPasswordSchema } from \"./EmailForgetPassword.schema\";\r\nimport EmailForgetPasswordFormPreview from \"./EmailForgetPasswordFormPreview\";\r\nimport {\r\n  EMAIL_FORGET_PASSWORD_HTML,\r\n  EMAIL_FORGET_PASSWORD_HTML_ar,\r\n  emailPlaceHolder\r\n} from \"./config\";\r\nimport handleSocialIcons from \"./handleSocialIcons\";\r\n\r\nexport default function EmailForgetPasswordFormPage({\r\n  data,\r\n  socialMedia\r\n}: {\r\n  socialMedia?: {\r\n    platform: string;\r\n    link: string;\r\n    image: string;\r\n    isActive: boolean;\r\n  }[];\r\n  data?: EmailTemplate;\r\n}) {\r\n  const t = useTranslations();\r\n  const searchParams = useSearchParams();\r\n  const inputs = EmailForgetPasswordInputs({ socialMedia });\r\n\r\n  // Memoize social icons calculation\r\n  const [html, setHtml] = useState<Record<\"En\" | \"Ar\", string>>({\r\n    En: data?.templateEn ?? EMAIL_FORGET_PASSWORD_HTML,\r\n    Ar: data?.templateAr ?? EMAIL_FORGET_PASSWORD_HTML_ar\r\n  });\r\n\r\n  const {\r\n    control,\r\n    handleSubmit,\r\n    watch,\r\n    setValue,\r\n    getValues,\r\n    formState: { errors }\r\n  } = useForm({\r\n    mode: \"onSubmit\",\r\n    resolver: zodResolver(EmailForgetPasswordSchema(t))\r\n  });\r\n  useEffect(() => {\r\n    if (data) {\r\n      setValue(\"subjectEn\", data.subjectEn);\r\n      setValue(\"subjectAr\", data.subjectAr);\r\n    }\r\n  }, [data, setValue]);\r\n  const socialMediaLinks = watch(\"socialMediaLinks\");\r\n  const socialIcons = useMemo(() => {\r\n    const media =\r\n      socialMedia?.filter(item => socialMediaLinks?.includes(item.platform)) ||\r\n      [];\r\n    //  socialMediaLinks || [];\r\n    return handleSocialIcons({ socialMedia: media });\r\n  }, [socialMediaLinks]);\r\n\r\n  const [selectedLang, setSelectedLang] = useState<\"En\" | \"Ar\">(\"En\");\r\n\r\n  // Get watched values for current language\r\n  const title = watch(`title${selectedLang}`);\r\n  const copyWright = watch(`copyrightContent${selectedLang}`);\r\n  const emailContent = watch(`messageBody${selectedLang}`);\r\n  const footerText = watch(`footerText${selectedLang}`);\r\n\r\n  // Optimized HTML generation effect\r\n  useEffect(() => {\r\n    const baseHTML =\r\n      selectedLang === \"En\"\r\n        ? EMAIL_FORGET_PASSWORD_HTML\r\n        : EMAIL_FORGET_PASSWORD_HTML_ar;\r\n\r\n    const replacements = {\r\n      [emailPlaceHolder.socialMedia.toString()]: socialIcons,\r\n      [emailPlaceHolder.emailTitle.toString()]: title || \"\",\r\n      [emailPlaceHolder.copyWright.toString()]: copyWright || \"\",\r\n      [emailPlaceHolder.emailContent.toString()]: emailContent || \"\",\r\n      [emailPlaceHolder.footer.toString()]: footerText || \"\"\r\n    };\r\n\r\n    const regex = new RegExp(Object.keys(replacements).join(\"|\"), \"g\");\r\n    const newHtml = baseHTML.replace(regex, match => replacements[match]);\r\n\r\n    setHtml(prev => {\r\n      if (prev[selectedLang] === newHtml) return prev;\r\n      return { ...prev, [selectedLang]: newHtml };\r\n    });\r\n  }, [title, copyWright, emailContent, footerText, selectedLang, socialIcons]);\r\n\r\n  const onSubmit = useCallback(async () => {\r\n    const subjectAr = getValues(\"subjectAr\");\r\n    const subjectEn = getValues(\"subjectEn\");\r\n\r\n    await FormAction({\r\n      data: undefined,\r\n      formData: {\r\n        templateEn: html.En.replaceAll('\"', '\"'),\r\n        templateAr: html.Ar.replaceAll('\"', '\"'),\r\n        keys: [\r\n          \"EMAIL_TITLE\",\r\n          \"EMAIL_CONTENT\",\r\n          \"COPY_RIGHT_CONTENT\",\r\n          \"EMAIL_FOOTER\"\r\n        ],\r\n        subjectEn,\r\n        subjectAr,\r\n        receiver: searchParams.get(\"reciver\"),\r\n        email: searchParams.get(\"mailType\")\r\n      },\r\n      endpoint: API_ENDPOINTS.email,\r\n      t\r\n    });\r\n  }, [html, getValues, searchParams, t]);\r\n\r\n  const { lang } = useFormErrorLang({\r\n    errors,\r\n    name: [\"address\"]\r\n  });\r\n  return (\r\n    <div className=\"flex lg:flex-row flex-col gap-2\">\r\n      <div className=\"lg:w-[55%]\">\r\n        <CustomForm\r\n          handleSubmit={handleSubmit(onSubmit)}\r\n          changeLang={\r\n            selectedLang === \"Ar\"\r\n              ? \"changeToAr\"\r\n              : selectedLang === \"En\"\r\n                ? \"changeToEn\"\r\n                : \"changeToDefault\"\r\n          }\r\n          control={control}\r\n          cardConfig={[\r\n            {\r\n              id: \"lang\",\r\n              title: t(\"EmailForgetPassword Information\"),\r\n              multiLang: true,\r\n              width: 6\r\n            }\r\n          ]}\r\n          inputs={inputs}\r\n        />\r\n      </div>\r\n      <div className=\"lg:w-[45%]\">\r\n        <InputLangSwitcher\r\n          selectedLang={selectedLang}\r\n          setSelectedLang={setSelectedLang as any}\r\n        />\r\n        <EmailForgetPasswordFormPreview\r\n          html={html[selectedLang as \"En\" | \"Ar\"]}\r\n        />\r\n      </div>\r\n    </div>\r\n  );\r\n}\r\n","usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_EmailForgetPassword\\EmailForgetPasswordFormPreview.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_EmailForgetPassword\\config.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_EmailForgetPassword\\handleSocialIcons.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_Referral\\Referral.inputs.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_Referral\\Referral.schema.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_Referral\\ReferralForm.page.tsx","messages":[{"ruleId":"react-hooks/set-state-in-effect","severity":2,"message":"Error: Calling setState synchronously within an effect can trigger cascading renders\n\nEffects are intended to synchronize state between React and external systems such as manually updating the DOM, state management libraries, or other platform APIs. In general, the body of an effect should do one or both of the following:\n* Update external systems with the latest state from React.\n* Subscribe for updates from some external system, calling setState in a callback function when external state changes.\n\nCalling setState synchronously within an effect body causes cascading renders that can hurt performance, and is not recommended. (https://react.dev/learn/you-might-not-need-an-effect).\n\nD:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_Referral\\ReferralForm.page.tsx:46:4\n  44 |\n  45 | \t\tif (Object.keys(errors).includes(\"name\")) {\n> 46 | \t\t\tsetLang(\"changeToEn\");\n     | \t\t\t^^^^^^^ Avoid calling setState() directly within an effect\n  47 | \t\t}\n  48 | \t\telse if (Object.keys(errors).includes(\"nameAr\")) {\n  49 | \t\t\tsetLang(\"changeToAr\");","line":46,"column":4,"nodeType":null,"endLine":46,"endColumn":11}],"suppressedMessages":[],"errorCount":1,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":"\r\n\"use client\";\r\n\r\nimport CustomForm from \"@/components/common/Form/CustomForm\";\r\nimport { API_ENDPOINTS } from \"@/utils/config\";\r\nimport { extractFormDefaultInputs } from \"@/utils/extractFormDefaultInputs\";\r\nimport { extractFormNameInputs } from \"@/utils/extractFormNameInputs\";\r\nimport { FormAction } from \"@/utils/FormActions\";\r\nimport { zodResolver } from \"@hookform/resolvers/zod\";\r\nimport { useTranslations } from \"next-intl\";\r\nimport { useEffect, useState } from \"react\";\r\nimport { useForm } from \"react-hook-form\";\r\nimport { ReferralInputs } from \"./Referral.inputs\";\r\nimport { ReferralSchema } from \"./Referral.schema\";\r\nimport { FormLangs } from \"@/components/common/Form/CustomFormTypes.types\";\r\n\r\nexport default function ReferralFormPage({ data }: { data?: any }) {\r\n\tconst t = useTranslations();\r\n\tconst inputs = ReferralInputs();\r\n\tconst {\r\n\t\tcontrol,\r\n\t\tformState: { errors },\r\n\t\thandleSubmit,\r\n\t\treset,\r\n\t} = useForm({\r\n\t\tmode: \"onSubmit\",\r\n\t\tresolver: zodResolver(ReferralSchema(t)),\r\n\t\tdefaultValues: extractFormDefaultInputs(inputs, data),\r\n\t});\r\n\r\n\tconst onSubmit = async (formData: any) => {\r\n\t\tawait FormAction({\r\n\t\t\tdata,\r\n\t\t\tformData: extractFormNameInputs(inputs, formData),\r\n\t\t\tendpoint: API_ENDPOINTS.Referral,\r\n\t\t\treset: reset,\r\n\t\t\t// redirectLink: \"referral\",\r\n\t\t\tt,\r\n\t\t});\r\n\t};\r\n\r\n\tconst [lang, setLang] = useState<FormLangs>(\"default\");\r\n\tuseEffect(() => {\r\n\r\n\t\tif (Object.keys(errors).includes(\"name\")) {\r\n\t\t\tsetLang(\"changeToEn\");\r\n\t\t}\r\n\t\telse if (Object.keys(errors).includes(\"nameAr\")) {\r\n\t\t\tsetLang(\"changeToAr\");\r\n\t\t}\r\n\t\telse if (Object.keys(errors).includes(\"nameDefault\")) {\r\n\t\t\tsetLang(\"changeToDefault\");\r\n\t\t}\r\n\r\n\t}, [errors]);\r\n\treturn (\r\n\t\t<CustomForm\r\n\t\t\thandleSubmit={handleSubmit(onSubmit)}\r\n\t\t\tchangeLang={lang}\r\n\t\t\tcontrol={control}\r\n\t\t\tcardConfig={[\r\n\t\t\t\t{\r\n\t\t\t\t\tid: \"lang\",\r\n\t\t\t\t\ttitle: t(\"Referral Information\"),\r\n\t\t\t\t\tmultiLang: true,\r\n\t\t\t\t\twidth: 6,\r\n\t\t\t\t},\r\n\t\t\t]}\r\n\t\t\tinputs={inputs}\r\n\t\t/>\r\n\t);\r\n}\r\n\r\n","usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_addFund\\addFund.inputs.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_addFund\\addFund.schema.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_addFund\\addFundForm.page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_addVariant\\AddVariant.inputs.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_addVariant\\AddVariant.schema.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_addVariant\\AddVariantForm.page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_addons\\addons.inputs.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_addons\\addons.schema.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_addons\\addonsForm.page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_autenti\\ContractActions.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_autenti\\CreateContractForm.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_banner\\Banner.inputs.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_banner\\Banner.schema.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_banner\\BannerForm.page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_basiccCmpaign\\BasiccCmpaign.inputs.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_basiccCmpaign\\BasiccCmpaign.schema.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_basiccCmpaign\\BasiccCmpaignForm.page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_brand\\brand.inputs.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_brand\\brand.schema.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_brand\\brandForm.page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_cashback\\Cashback.inputs.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_cashback\\Cashback.schema.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_cashback\\CashbackForm.page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_category\\Category.inputs.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_category\\Category.schema.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_category\\CategoryForm.page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_city\\city.inputs.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_city\\city.schema.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_city\\cityForm.page.tsx","messages":[{"ruleId":"react-hooks/set-state-in-effect","severity":2,"message":"Error: Calling setState synchronously within an effect can trigger cascading renders\n\nEffects are intended to synchronize state between React and external systems such as manually updating the DOM, state management libraries, or other platform APIs. In general, the body of an effect should do one or both of the following:\n* Update external systems with the latest state from React.\n* Subscribe for updates from some external system, calling setState in a callback function when external state changes.\n\nCalling setState synchronously within an effect body causes cascading renders that can hurt performance, and is not recommended. (https://react.dev/learn/you-might-not-need-an-effect).\n\nD:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_city\\cityForm.page.tsx:44:7\n  42 |   useEffect(() => {\n  43 |     if (Object.keys(errors).includes(\"nameEn\")) {\n> 44 |       setLang(\"changeToEn\");\n     |       ^^^^^^^ Avoid calling setState() directly within an effect\n  45 |     } else if (Object.keys(errors).includes(\"nameAr\")) {\n  46 |       setLang(\"changeToAr\");\n  47 |     }","line":44,"column":7,"nodeType":null,"endLine":44,"endColumn":14}],"suppressedMessages":[],"errorCount":1,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":"\"use client\";\r\n\r\nimport CustomForm from \"@/components/common/Form/CustomForm\";\r\nimport { API_ENDPOINTS } from \"@/utils/config\";\r\nimport { extractFormDefaultInputs } from \"@/utils/extractFormDefaultInputs\";\r\nimport { extractFormNameInputs } from \"@/utils/extractFormNameInputs\";\r\nimport { FormAction } from \"@/utils/FormActions\";\r\nimport { zodResolver } from \"@hookform/resolvers/zod\";\r\nimport { useTranslations } from \"next-intl\";\r\nimport { useEffect, useState } from \"react\";\r\nimport { useForm } from \"react-hook-form\";\r\nimport { CityInputs } from \"./city.inputs\";\r\nimport { CitySchema } from \"./city.schema\";\r\nimport { FormLangs } from \"@/components/common/Form/CustomFormTypes.types\";\r\n\r\nexport default function CityFormPage({ data }: { data?: any }) {\r\n  const t = useTranslations();\r\n  const inputs = CityInputs();\r\n  const {\r\n    control,\r\n    formState: { errors },\r\n    handleSubmit,\r\n    reset\r\n  } = useForm({\r\n    mode: \"onSubmit\",\r\n    resolver: zodResolver(CitySchema(t)),\r\n    defaultValues: extractFormDefaultInputs(inputs, data)\r\n  });\r\n\r\n  const onSubmit = async (formData: any) => {\r\n    await FormAction({\r\n      data,\r\n      formData: extractFormNameInputs(inputs, formData),\r\n      endpoint: API_ENDPOINTS.city,\r\n      reset: reset,\r\n      redirectLink: \"settingsBussinessManagementCountry\",\r\n      t\r\n    });\r\n  };\r\n\r\n  const [lang, setLang] = useState<FormLangs>(\"default\");\r\n  useEffect(() => {\r\n    if (Object.keys(errors).includes(\"nameEn\")) {\r\n      setLang(\"changeToEn\");\r\n    } else if (Object.keys(errors).includes(\"nameAr\")) {\r\n      setLang(\"changeToAr\");\r\n    }\r\n  }, [errors]);\r\n  return (\r\n    <CustomForm\r\n      handleSubmit={handleSubmit(onSubmit)}\r\n      changeLang={lang}\r\n      control={control}\r\n      cardConfig={[\r\n        {\r\n          id: \"lang\",\r\n          title: t(\"City Information\"),\r\n          multiLang: true,\r\n          width: 6\r\n        }\r\n      ]}\r\n      inputs={inputs}\r\n    />\r\n  );\r\n}\r\n","usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_country\\country.inputs.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_country\\country.schema.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_country\\countryForm.page.tsx","messages":[{"ruleId":"react-hooks/set-state-in-effect","severity":2,"message":"Error: Calling setState synchronously within an effect can trigger cascading renders\n\nEffects are intended to synchronize state between React and external systems such as manually updating the DOM, state management libraries, or other platform APIs. In general, the body of an effect should do one or both of the following:\n* Update external systems with the latest state from React.\n* Subscribe for updates from some external system, calling setState in a callback function when external state changes.\n\nCalling setState synchronously within an effect body causes cascading renders that can hurt performance, and is not recommended. (https://react.dev/learn/you-might-not-need-an-effect).\n\nD:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_country\\countryForm.page.tsx:44:7\n  42 |   useEffect(() => {\n  43 |     if (Object.keys(errors).includes(\"nameEn\")) {\n> 44 |       setLang(\"changeToEn\");\n     |       ^^^^^^^ Avoid calling setState() directly within an effect\n  45 |     } else if (Object.keys(errors).includes(\"nameAr\")) {\n  46 |       setLang(\"changeToAr\");\n  47 |     }","line":44,"column":7,"nodeType":null,"endLine":44,"endColumn":14}],"suppressedMessages":[],"errorCount":1,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":"\"use client\";\r\n\r\nimport CustomForm from \"@/components/common/Form/CustomForm\";\r\nimport { API_ENDPOINTS } from \"@/utils/config\";\r\nimport { extractFormDefaultInputs } from \"@/utils/extractFormDefaultInputs\";\r\nimport { extractFormNameInputs } from \"@/utils/extractFormNameInputs\";\r\nimport { FormAction } from \"@/utils/FormActions\";\r\nimport { zodResolver } from \"@hookform/resolvers/zod\";\r\nimport { useTranslations } from \"next-intl\";\r\nimport { useEffect, useState } from \"react\";\r\nimport { useForm } from \"react-hook-form\";\r\nimport { CountryInputs } from \"./country.inputs\";\r\nimport { CountrySchema } from \"./country.schema\";\r\nimport { FormLangs } from \"@/components/common/Form/CustomFormTypes.types\";\r\n\r\nexport default function CountryFormPage({ data }: { data?: any }) {\r\n  const t = useTranslations();\r\n  const inputs = CountryInputs();\r\n  const {\r\n    control,\r\n    formState: { errors },\r\n    handleSubmit,\r\n    reset\r\n  } = useForm({\r\n    mode: \"onSubmit\",\r\n    resolver: zodResolver(CountrySchema(t)),\r\n    defaultValues: extractFormDefaultInputs(inputs, data)\r\n  });\r\n\r\n  const onSubmit = async (formData: any) => {\r\n    await FormAction({\r\n      data,\r\n      formData: extractFormNameInputs(inputs, formData),\r\n      endpoint: API_ENDPOINTS.country,\r\n      reset: reset,\r\n      // redirectLink: \"settingsBussinessManagementCountry\",\r\n      t\r\n    });\r\n  };\r\n\r\n  const [lang, setLang] = useState<FormLangs>(\"Ar\");\r\n  useEffect(() => {\r\n    if (Object.keys(errors).includes(\"nameEn\")) {\r\n      setLang(\"changeToEn\");\r\n    } else if (Object.keys(errors).includes(\"nameAr\")) {\r\n      setLang(\"changeToAr\");\r\n    }\r\n  }, [errors]);\r\n  return (\r\n    <CustomForm\r\n      handleSubmit={handleSubmit(onSubmit)}\r\n      changeLang={lang}\r\n      control={control}\r\n      cardConfig={[\r\n        {\r\n          id: \"lang\",\r\n          title: t(\"Country Information\"),\r\n          multiLang: true,\r\n          width: 6\r\n        }\r\n      ]}\r\n      inputs={inputs}\r\n    />\r\n  );\r\n}\r\n","usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_coupons\\Coupons.inputs.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_coupons\\Coupons.schema.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_coupons\\CouponsForm.page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_delivery\\delivery.inputs.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_delivery\\delivery.schema.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_delivery\\deliveryForm.page.tsx","messages":[{"ruleId":"jsx-a11y/alt-text","severity":1,"message":"Image elements must have an alt prop, either with meaningful text, or an empty string for decorative images.","line":65,"column":17,"nodeType":"JSXOpeningElement","endLine":65,"endColumn":26}],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"\"use client\";\r\n\r\nimport CustomForm from \"@/components/common/Form/CustomForm\";\r\nimport { API_ENDPOINTS } from \"@/utils/config\";\r\nimport { extractFormDefaultInputs } from \"@/utils/extractFormDefaultInputs\";\r\nimport { extractFormNameInputs } from \"@/utils/extractFormNameInputs\";\r\nimport { FormAction } from \"@/utils/FormActions\";\r\nimport { zodResolver } from \"@hookform/resolvers/zod\";\r\nimport { IdCard, Image, Wallet } from \"lucide-react\";\r\nimport { useTranslations } from \"next-intl\";\r\nimport { useForm } from \"react-hook-form\";\r\nimport { DeliveryInputs } from \"./delivery.inputs\";\r\nimport { DeliverySchema, DeliveryType } from \"./delivery.schema\";\r\n\r\nexport default function DeliveryFormPage({ data }: { data?: DeliveryType }) {\r\n  const t = useTranslations();\r\n  const isEdit = Boolean(data);\r\n  const inputs = DeliveryInputs(isEdit);\r\n  const { control, handleSubmit, reset } = useForm<DeliveryType>({\r\n    mode: \"onSubmit\",\r\n    resolver: zodResolver(DeliverySchema(t, isEdit)),\r\n    defaultValues: extractFormDefaultInputs(inputs, data)\r\n  });\r\n\r\n  const onSubmit = async (formData: DeliveryType) => {\r\n    if (!formData.password) {\r\n      delete formData.password;\r\n    }\r\n    await FormAction({\r\n      data,\r\n      formData: extractFormNameInputs(inputs, formData),\r\n      endpoint: API_ENDPOINTS.delivery,\r\n      reset: reset,\r\n      // redirectLink: \"delivery\",\r\n      t\r\n    });\r\n  };\r\n\r\n  return (\r\n    <CustomForm\r\n      handleSubmit={handleSubmit(onSubmit)}\r\n      control={control}\r\n      defaultConfig={{\r\n        title: t(\"Delivery Information\"),\r\n        width: 6,\r\n        icon: <IdCard />\r\n      }}\r\n      cardConfig={[\r\n        {\r\n          id: \"login information\",\r\n          title: t(\"Delivery Information\"),\r\n          width: 6,\r\n          icon: <IdCard />\r\n        },\r\n        {\r\n          id: \"work\",\r\n          title: t(\"Work & commission\"),\r\n          width: 6,\r\n          icon: <Wallet />\r\n        },\r\n        {\r\n          id: \"images\",\r\n          title: t(\"Images\"),\r\n          width: 6,\r\n          icon: <Image />\r\n        }\r\n      ]}\r\n      inputs={inputs}\r\n    />\r\n  );\r\n}\r\n","usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_driverCompany\\DriverCompanyStatusActions.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_driverCompany\\EditRequestReviewActions.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_driverCompany\\SendCompanyNotificationForm.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_driverCompany\\SupportMessageActions.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_driverCompany\\SupportMessagesBell.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_driverCompany\\SupportMessagesNavLabel.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_driverCompany\\useNewSupportMessages.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_editProfile\\editProfile.inputs.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_editProfile\\editProfile.schema.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_editProfile\\editProfileForm.page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_employeeRole\\employeeRole.inputs.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_employeeRole\\employeeRole.schema.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_employeeRole\\employeeRoleForm.page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_employee\\Employee.inputs.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_employee\\Employee.schema.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_employee\\employeeForm.page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_itemCampiagn\\ItemCampaign.inputs.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_itemCampiagn\\ItemCampaign.schema.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_itemCampiagn\\ItemCampiagnForm.page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_landingText\\landingText.inputs.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_landingText\\landingText.schema.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_landingText\\landingTextForm.page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_landingText\\useLandingTextForm.logic.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_modules\\modules.inputs.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_modules\\modules.schema.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_modules\\modulesForm.page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_orderSetting\\orderSetting.inputs.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_orderSetting\\orderSetting.logic.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_orderSetting\\orderSetting.schema.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_orderSetting\\orderSettingForm.page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_productReview\\productReview.inputs.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_productReview\\productReview.schema.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_productReview\\productReviewForm.page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_product\\ProductVaraintsTable.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_product\\product.inputs.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_product\\product.schema.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_product\\productForm.page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_product\\showOne\\ShowOneProduct.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_pushNotification\\PushNotification.inputs.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_pushNotification\\PushNotification.page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_pushNotification\\PushNotification.schema.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_reel\\reel.inputs.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_reel\\reel.schema.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_reel\\reelForm.page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_refundSettings\\refundSettings.inputs.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_refundSettings\\refundSettings.schema.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_refundSettings\\refundSettingsForm.page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_rewards\\Rewards.inputs.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_rewards\\Rewards.schema.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_rewards\\RewardsForm.page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_socialMedia\\socialMedia.inputs.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_socialMedia\\socialMedia.schema.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_socialMedia\\socialMediaForm.page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_store\\info\\store-information.tsx","messages":[{"ruleId":"@next/next/no-img-element","severity":1,"message":"Using `<img>` could result in slower LCP and higher bandwidth. Consider using `<Image />` from `next/image` or a custom image loader to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element","line":58,"column":15,"nodeType":"JSXOpeningElement","endLine":64,"endColumn":17}],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"import GoogleMapInput from \"@/components/common/Inputs/GoogleMapInput\";\r\nimport GoogleMapZoneInput from \"@/components/common/Inputs/GoogleMapZoneInput\";\r\nimport { mediaUrl } from \"@/utils/config\";\r\nimport { Building2, Landmark, Mail, Phone, User, User2 } from \"lucide-react\";\r\nimport { getTranslations } from \"next-intl/server\";\r\n\r\ninterface StoreInformationProps {\r\n  storeName: string;\r\n  /** Official company name from the GUS registry (Polish stores); may be empty. */\r\n  companyName?: string;\r\n  storeAddress: string;\r\n  storeEmail: string;\r\n  storePhone: string;\r\n  storeLogoUrl: string;\r\n  owner: {\r\n    name: string;\r\n    email: string;\r\n    phone: string;\r\n  };\r\n  bankInformation?: string;\r\n  points?: { lat: string; lng: string } | { lat: string; lng: string }[];\r\n  StoreBank:\r\n    | {\r\n        Bank: {\r\n          name: string;\r\n        };\r\n        name: string;\r\n        ownerName: string;\r\n        phone: string;\r\n        iban: string;\r\n      }\r\n    | undefined;\r\n}\r\n\r\nexport default async function StoreInformation({\r\n  storeName,\r\n  companyName,\r\n  storeAddress,\r\n  storeEmail,\r\n  points,\r\n  storePhone,\r\n  storeLogoUrl,\r\n  owner,\r\n  bankInformation = \"NO DATA FOUND\",\r\n  StoreBank\r\n}: StoreInformationProps) {\r\n  const t = await getTranslations();\r\n  console.log(points);\r\n  console.log(StoreBank);\r\n\r\n  return (\r\n    <div className=\"w-full max-w-6xl mx-auto p-4 space-y-8\">\r\n      {/* Store Information Section */}\r\n      <div className=\"rounded-lg border bg-card text-card-foreground shadow-sm\">\r\n        <div className=\"p-6 flex flex-col gap-4 justify-between\">\r\n          <div className=\"flex flex-col md:flex-row gap-6 items-start\">\r\n            <div className=\"flex-shrink-0\">\r\n              <img\r\n                src={mediaUrl(storeLogoUrl) || \"/placeholder.svg\"}\r\n                alt={t(\"Store Logo\")}\r\n                width={100}\r\n                height={100}\r\n                className=\"rounded-lg h-[100px] w-[100px] object-cover\"\r\n              />\r\n            </div>\r\n            <div className=\"space-y-4 flex-grow\">\r\n              <h2 className=\"text-2xl font-bold\">{storeName}</h2>\r\n              <div className=\"space-y-2\">\r\n                {companyName && (\r\n                  <div className=\"flex items-center gap-2\">\r\n                    <Landmark className=\"h-4 w-4 text-muted-foreground\" />\r\n                    <span>\r\n                      {t(\"Company Name\")}: {companyName}\r\n                    </span>\r\n                  </div>\r\n                )}\r\n                <div className=\"flex items-center gap-2\">\r\n                  <Building2 className=\"h-4 w-4 text-muted-foreground\" />\r\n                  <span>\r\n                    {t(\"Address\")}: {storeAddress}\r\n                  </span>\r\n                </div>\r\n                <div className=\"flex items-center gap-2\">\r\n                  <Mail className=\"h-4 w-4 text-muted-foreground\" />\r\n                  <span>\r\n                    {t(\"Email\")}: {storeEmail || \"-\"}\r\n                  </span>\r\n                </div>\r\n                <div className=\"flex items-center gap-2\">\r\n                  <Phone className=\"h-4 w-4 text-muted-foreground\" />\r\n                  <span>\r\n                    {t(\"Phone\")}: <span dir=\"ltr\">{storePhone}</span>\r\n                  </span>\r\n                </div>\r\n              </div>\r\n            </div>\r\n          </div>\r\n          <div className=\"w-full h-full\">\r\n            {points &&\r\n              (Array.isArray(points) ? (\r\n                <>\r\n                  {\" \"}\r\n                  <GoogleMapZoneInput\r\n                    value={points?.map(item => ({\r\n                      lat: Number(item.lat),\r\n                      lng: Number(item.lng)\r\n                    }))}\r\n                    center={{\r\n                      lat: Number(points[0].lat),\r\n                      lng: Number(points[0].lng)\r\n                    }}\r\n                  />\r\n                </>\r\n              ) : (\r\n                <>\r\n                  <GoogleMapInput\r\n                    center={{\r\n                      lat: Number(points.lat),\r\n                      lng: Number(points.lng)\r\n                    }}\r\n                  />\r\n                </>\r\n              ))}\r\n          </div>\r\n        </div>\r\n      </div>\r\n      <div className=\"grid md:grid-cols-2 gap-8\">\r\n        {/* Owner Information */}\r\n        <div className=\"rounded-lg border bg-card text-card-foreground shadow-sm\">\r\n          <div className=\"p-6\">\r\n            <h3 className=\"text-lg font-semibold mb-4 flex items-center gap-2\">\r\n              <User className=\"h-5 w-5\" />\r\n              {t(\"Owner Information\")}\r\n            </h3>\r\n            <div className=\"space-y-2\">\r\n              <div className=\"flex items-center gap-2 font-medium\">\r\n                <User2 className=\"h-4 w-4 text-muted-foreground\" />\r\n                <span>{owner.name || \"-\"}</span>\r\n              </div>\r\n              <div className=\"flex items-center gap-2\">\r\n                <Mail className=\"h-4 w-4 text-muted-foreground\" />\r\n                <span>{owner.email || \"-\"}</span>\r\n              </div>\r\n              <div className=\"flex items-center gap-2\">\r\n                <Phone className=\"h-4 w-4 text-muted-foreground\" />\r\n                <span dir=\"ltr\">{owner.phone || \"-\"}</span>\r\n              </div>\r\n            </div>\r\n          </div>\r\n        </div>\r\n        {/* Bank Information */}\r\n        <div className=\"rounded-lg border bg-card text-card-foreground shadow-sm\">\r\n          <div className=\"p-6\">\r\n            <h3 className=\"text-lg font-semibold mb-4 flex items-center gap-2\">\r\n              <Landmark className=\"h-5 w-5\" />\r\n              {t(\"Bank Information\")}\r\n            </h3>\r\n\r\n            {StoreBank != undefined ? (\r\n              <div className=\"space-y-4\">\r\n                <div className=\"space-y-2\">\r\n                  <div className=\"flex items-center gap-2\">\r\n                    <span className=\"font-medium\">{t(\"Bank Name\")}:</span>\r\n                    <span>{StoreBank.Bank.name}</span>\r\n                  </div>\r\n                  <div className=\"flex items-center gap-2\">\r\n                    <span className=\"font-medium\">{t(\"Owner Name\")}:</span>\r\n                    <span>{StoreBank.ownerName}</span>\r\n                  </div>\r\n                  <div className=\"flex items-center gap-2\">\r\n                    <span className=\"font-medium\">{t(\"IBAN\")}:</span>\r\n                    <span>{StoreBank.iban}</span>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            ) : (\r\n              <span\r\n                className=\"flex justify-center items-center text-center\"\r\n                style={{ marginTop: \"30px\" }}\r\n              >\r\n                {t(\"NoBankInformationAvailable\")}\r\n              </span>\r\n            )}\r\n          </div>\r\n        </div>\r\n      </div>\r\n    </div>\r\n  );\r\n}\r\n","usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_store\\info\\store-statistics.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_store\\store.inputs.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_store\\store.schema.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_store\\storeForm.page.tsx","messages":[{"ruleId":"jsx-a11y/alt-text","severity":1,"message":"Image elements must have an alt prop, either with meaningful text, or an empty string for decorative images.","line":166,"column":19,"nodeType":"JSXOpeningElement","endLine":166,"endColumn":28}],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"\"use client\";\r\n\r\nimport CustomForm from \"@/components/common/Form/CustomForm\";\r\nimport { API_ENDPOINTS } from \"@/utils/config\";\r\nimport { extractFormDefaultInputs } from \"@/utils/extractFormDefaultInputs\";\r\nimport { extractFormNameInputs } from \"@/utils/extractFormNameInputs\";\r\nimport { FormAction } from \"@/utils/FormActions\";\r\nimport { zodResolver } from \"@hookform/resolvers/zod\";\r\nimport { useTranslations } from \"next-intl\";\r\nimport { FieldErrors, useForm } from \"react-hook-form\";\r\nimport { toast } from \"sonner\";\r\nimport { StoreSchema, StoreSchemaType } from \"./store.schema\";\r\n\r\nimport useFormErrorLang from \"@/components/common/Form/hooks/useFormErrorLang\";\r\nimport { Image, MapIcon, User } from \"lucide-react\";\r\nimport { RiAdminFill } from \"react-icons/ri\";\r\nimport { formatStoredPhone } from \"@/utils/phone\";\r\nimport { StoreInputs } from \"./store.inputs\";\r\nimport { useState } from \"react\";\r\nexport default function StoreListFormPage({\r\n  data,\r\n  moduleId\r\n}: {\r\n  moduleId: string;\r\n  data?: StoreSchemaType;\r\n}) {\r\n  const t = useTranslations();\r\n  // Poland is recognised by the selected country's dial code (48).\r\n  const [countryPhoneCode, setCountryPhoneCode] = useState<string | null>(\r\n    (data as { countryPhoneCode?: string } | undefined)?.countryPhoneCode ?? null\r\n  );\r\n  const isPoland = countryPhoneCode === \"48\";\r\n  const inputs = StoreInputs(\r\n    {\r\n      isPoland,\r\n      nipLocked: !!(data as { nip?: string } | undefined)?.nip,\r\n      onCountryPhoneCode: setCountryPhoneCode,\r\n      isEditPage: !data,\r\n      posValue: data?.pos,\r\n      deliverySourceValue: (\r\n        data as { defaultDeliverySource?: string } | undefined\r\n      )?.defaultDeliverySource\r\n    },\r\n    { isCreate: !!data }\r\n  );\r\n  const {\r\n    control,\r\n    formState: { errors, dirtyFields },\r\n    handleSubmit,\r\n    getValues,\r\n    reset\r\n  } = useForm<StoreSchemaType>({\r\n    mode: \"onSubmit\",\r\n    resolver: zodResolver(StoreSchema(t, !data, isPoland)),\r\n    defaultValues: extractFormDefaultInputs(inputs, data)\r\n  });\r\n  const onSubmit = async (formData: StoreSchemaType) => {\r\n    const values = getValues();\r\n    const nextStorePhone = formatStoredPhone(values.phone || formData.phone);\r\n    const nextVendorPhone = formatStoredPhone(values.vendorPhone || formData.vendorPhone);\r\n    if (nextStorePhone) {\r\n      formData.phone = nextStorePhone;\r\n    }\r\n    if (formData?.email) {\r\n      delete formData.email;\r\n    }\r\n    if (formData?.vendorPhone) {\r\n      delete formData.vendorPhone;\r\n    }\r\n    if (formData.password) {\r\n      delete formData.password;\r\n    }\r\n    if (formData.cityId) {\r\n      delete formData.cityId;\r\n    }\r\n    if (formData.countryId) {\r\n      delete formData.countryId;\r\n    }\r\n    if (formData.name) {\r\n      delete formData.name;\r\n    }\r\n    if (formData.hasSystem) {\r\n      delete formData.hasSystem;\r\n    }\r\n    // A NIP typed before the country was switched away from Poland is dropped.\r\n    if (!isPoland) {\r\n      delete formData.nip;\r\n    }\r\n    const formattedData = extractFormNameInputs(inputs, formData, dirtyFields);\r\n    if (nextStorePhone) {\r\n      formattedData.set(\"phone\", nextStorePhone);\r\n    }\r\n    data == undefined && formattedData.append(\"moduleId\", Number(moduleId));\r\n    formattedData.delete(\"point\");\r\n\r\n    values?.point?.lat != null &&\r\n      values?.point?.lng != null &&\r\n      formattedData.append(\r\n        \"point\",\r\n        JSON.stringify({ lat: values.point.lat, lng: values.point.lng })\r\n      );\r\n\r\n    if (!data) {\r\n      formattedData.append(\r\n        \"vendor\",\r\n        JSON.stringify({\r\n          email: values?.email,\r\n          password: values?.password,\r\n          phone: nextVendorPhone,\r\n          name: values?.name\r\n        })\r\n      );\r\n    } else if (nextVendorPhone) {\r\n      const originalVendorPhone = formatStoredPhone(\r\n        (data as { vendorPhone?: string }).vendorPhone\r\n      );\r\n      if (nextVendorPhone !== originalVendorPhone) {\r\n        formattedData.set(\"vendor\", JSON.stringify({ phone: nextVendorPhone }));\r\n      }\r\n    }\r\n\r\n    const response = await FormAction({\r\n      data,\r\n      formData: formattedData,\r\n      endpoint: API_ENDPOINTS.store,\r\n      reset: reset,\r\n      // redirectLink: \"storeList\",\r\n      t\r\n    });\r\n    console.log(\"responsefdggf\", response);\r\n  };\r\n  const onInvalid = (formErrors: FieldErrors<StoreSchemaType>) => {\r\n    const lines = Object.entries(formErrors).flatMap(([key, value]) => {\r\n      const message = (value as { message?: string } | undefined)?.message;\r\n      if (!message) return [];\r\n      const label = t(key);\r\n      return [message.startsWith(label) ? message : `${label}: ${message}`];\r\n    });\r\n    if (lines.length) {\r\n      toast.error(lines[0], { description: lines.slice(1, 4).join(\"\\n\") });\r\n    }\r\n    const firstKey = Object.keys(formErrors)[0];\r\n    document\r\n      .querySelector(`[data-testid=\"${firstKey}\"]`)\r\n      ?.scrollIntoView({ behavior: \"smooth\", block: \"center\" });\r\n  };\r\n  const { lang } = useFormErrorLang({\r\n    errors,\r\n    name: []\r\n  });\r\n  return (\r\n    <>\r\n      <CustomForm\r\n        handleSubmit={handleSubmit(onSubmit, onInvalid)}\r\n        changeLang={lang}\r\n        control={control}\r\n        defaultConfig={{\r\n          width: 6,\r\n          icon: <User />,\r\n          title: t(\"client\")\r\n        }}\r\n        cardConfig={[\r\n          {\r\n            id: \"img\",\r\n            title: t(\"images\"),\r\n            icon: <Image />,\r\n            width: 6\r\n          },\r\n          {\r\n            id: \"vendor\",\r\n            title: t(\"Vendor Information\"),\r\n            width: 6,\r\n            icon: <RiAdminFill />\r\n          },\r\n          {\r\n            id: \"location\",\r\n            title: t(\"Information\"),\r\n            icon: <MapIcon />,\r\n            width: 6\r\n          },\r\n          {\r\n            id: \"map\",\r\n            title: t(\"map\"),\r\n            icon: <MapIcon />,\r\n            width: 6\r\n          },\r\n          {\r\n            id: \"delivery\",\r\n            title: t(\"Delivery source\"),\r\n            icon: <MapIcon />,\r\n            width: 6\r\n          }\r\n        ]}\r\n        inputs={inputs}\r\n      />\r\n    </>\r\n  );\r\n}\r\n","usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_subCategory\\subCategory.inputs.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_subCategory\\subCategory.schema.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_subCategory\\subCategoryForm.page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_subscription-package\\subscription-package.inputs.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_subscription-package\\subscription-package.schema.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_subscription-package\\subscription-packageForm.page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_tableReservation\\ReservationActions.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_testimonial\\testimonial.inputs.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_testimonial\\testimonial.schema.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_testimonial\\testimonialForm.page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_unit\\unit.inputs.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_unit\\unit.schema.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_unit\\unitForm.page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_withdraw\\withdraw.inputs.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_withdraw\\withdraw.schema.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_withdraw\\withdrawForm.page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_zoneReport\\ZoneReport.tsx","messages":[{"ruleId":"react-hooks/set-state-in-effect","severity":2,"message":"Error: Calling setState synchronously within an effect can trigger cascading renders\n\nEffects are intended to synchronize state between React and external systems such as manually updating the DOM, state management libraries, or other platform APIs. In general, the body of an effect should do one or both of the following:\n* Update external systems with the latest state from React.\n* Subscribe for updates from some external system, calling setState in a callback function when external state changes.\n\nCalling setState synchronously within an effect body causes cascading renders that can hurt performance, and is not recommended. (https://react.dev/learn/you-might-not-need-an-effect).\n\nD:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_zoneReport\\ZoneReport.tsx:37:7\n  35 |   useEffect(() => {\n  36 |     if (searchParams.zoneId) {\n> 37 |       selectedZoneChange(searchParams.zoneId);\n     |       ^^^^^^^^^^^^^^^^^^ Avoid calling setState() directly within an effect\n  38 |     }\n  39 |   }, [searchParams.zoneId]);\n  40 |   return (","line":37,"column":7,"nodeType":null,"endLine":37,"endColumn":25},{"ruleId":"react-hooks/exhaustive-deps","severity":1,"message":"React Hook useEffect has a missing dependency: 'selectedZoneChange'. Either include it or remove the dependency array.","line":39,"column":6,"nodeType":"ArrayExpression","endLine":39,"endColumn":27,"suggestions":[{"desc":"Update the dependencies array to be: [searchParams.zoneId, selectedZoneChange]","fix":{"range":[1351,1372],"text":"[searchParams.zoneId, selectedZoneChange]"}}]}],"suppressedMessages":[],"errorCount":1,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"\"use client\";\r\nimport { fetchHelper } from \"@/api/fetch\";\r\nimport { DateInput } from \"@/components/common/Inputs/DateInput\";\r\nimport SelectPaginated from \"@/components/common/Inputs/SelectPaginatedInput\";\r\nimport { Card, CardContent, CardHeader, CardTitle } from \"@/components/ui/card\";\r\nimport { API_ENDPOINTS } from \"@/utils/config\";\r\nimport { CatIcon, MapIcon } from \"lucide-react\";\r\nimport { useTranslations } from \"next-intl\";\r\nimport { useRouter } from \"next/navigation\";\r\nimport { useEffect, useState } from \"react\";\r\nimport ZoneReportMapView from \"./ZoneReportMapView\";\r\n\r\nexport default function ZoneReport({\r\n  searchParams\r\n}: {\r\n  searchParams: Awaited<ContextT[\"searchParams\"]>;\r\n}) {\r\n  const router = useRouter();\r\n  const t = useTranslations();\r\n  const [selectedZone, setSelectedZone] = useState<{\r\n    Point: { lat: number; lng: number }[];\r\n    name?: string;\r\n    deliveryCount?: number;\r\n    activeDrivers?: number;\r\n  } | null>(null);\r\n\r\n  const selectedZoneChange = async (e: string) => {\r\n    const data = await fetchHelper({\r\n      endPoint: API_ENDPOINTS.zone + \"/\" + e,\r\n      method: \"GET\"\r\n    });\r\n    setSelectedZone(data.data);\r\n    router.push(`?${new URLSearchParams({ zoneId: e }).toString()}`);\r\n  };\r\n  useEffect(() => {\r\n    if (searchParams.zoneId) {\r\n      selectedZoneChange(searchParams.zoneId);\r\n    }\r\n  }, [searchParams.zoneId]);\r\n  return (\r\n    <div className=\"space-y-6 p-6\">\r\n      <Card>\r\n        <CardHeader>\r\n          <CardTitle className=\"flex items-center gap-2\">\r\n            <MapIcon className=\"h-6 w-6\" />\r\n            {t(\"Zone Report\")}\r\n          </CardTitle>\r\n        </CardHeader>\r\n        <CardContent>\r\n          <div className=\"grid gap-6\">\r\n            <div className=\"grid grid-cols-3 gap-4 w-full \">\r\n              <div>\r\n                <label className=\"text-sm font-medium mb-2 block\">{t(\"Select Zone\")}</label>\r\n                <SelectPaginated\r\n                  name=\"zoneId\"\r\n                  onChange={e => selectedZoneChange(e as string)}\r\n                  apiUrl={API_ENDPOINTS.zone}\r\n                  value={searchParams.zoneId}\r\n                />\r\n              </div>\r\n              {searchParams.zoneId && (\r\n                <div>\r\n                  <label className=\"text-sm font-medium mb-2 block\">\r\n                    {t(\"transactionDateFrom\")}\r\n                  </label>\r\n                  <DateInput\r\n                    name=\"transactionDateFrom\"\r\n                    onChange={e => {\r\n                      const params = { ...searchParams } as Record<string, string>;\r\n                      if (e) params.transactionDateFrom = e.toString();\r\n                      else delete params.transactionDateFrom;\r\n                      router.push(`?${new URLSearchParams(params).toString()}`);\r\n                    }}\r\n                    value={searchParams.transactionDateFrom as Date}\r\n                  />\r\n                </div>\r\n              )}\r\n              {searchParams.zoneId && (\r\n                <div>\r\n                  <label className=\"text-sm font-medium mb-2 block\">{t(\"transactionDateTo\")}</label>\r\n                  <DateInput\r\n                    name=\"transactionDateTo\"\r\n                    onChange={e => {\r\n                      const params = { ...searchParams } as Record<string, string>;\r\n                      if (e) params.transactionDateTo = e.toString();\r\n                      else delete params.transactionDateTo;\r\n                      router.push(`?${new URLSearchParams(params).toString()}`);\r\n                    }}\r\n                    value={searchParams.transactionDateTo as Date}\r\n                  />\r\n                </div>\r\n              )}\r\n            </div>\r\n\r\n            {selectedZone?.Point && (\r\n              <div className=\"space-y-6\">\r\n                <div className=\"grid grid-cols-1 md:grid-cols-3 gap-4\"></div>\r\n\r\n                <Card>\r\n                  <CardContent className=\"pt-6\">\r\n                    <ZoneReportMapView\r\n                      zonePoints={selectedZone.Point.map(point => ({\r\n                        lat: Number(point.lat),\r\n                        lng: Number(point.lng)\r\n                      }))}\r\n                      info={[\r\n                        {\r\n                          icon: <CatIcon />,\r\n                          name: selectedZone.name || t(\"Unnamed Zone\"),\r\n                          position: {\r\n                            lat: selectedZone.Point[0].lat,\r\n                            lng: selectedZone.Point[0].lng\r\n                          },\r\n                          value: `${selectedZone.deliveryCount || 0} ${t(\"deliveries\")}`\r\n                        }\r\n                      ]}\r\n                    />\r\n                  </CardContent>\r\n                </Card>\r\n              </div>\r\n            )}\r\n          </div>\r\n        </CardContent>\r\n      </Card>\r\n    </div>\r\n  );\r\n}\r\n","usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_zoneReport\\ZoneReportMapView.tsx","messages":[{"ruleId":"react-hooks/set-state-in-effect","severity":2,"message":"Error: Calling setState synchronously within an effect can trigger cascading renders\n\nEffects are intended to synchronize state between React and external systems such as manually updating the DOM, state management libraries, or other platform APIs. In general, the body of an effect should do one or both of the following:\n* Update external systems with the latest state from React.\n* Subscribe for updates from some external system, calling setState in a callback function when external state changes.\n\nCalling setState synchronously within an effect body causes cascading renders that can hurt performance, and is not recommended. (https://react.dev/learn/you-might-not-need-an-effect).\n\nD:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_zoneReport\\ZoneReportMapView.tsx:73:5\n  71 |\n  72 |   useEffect(() => {\n> 73 |     setMapCenter(calculateCenter());\n     |     ^^^^^^^^^^^^ Avoid calling setState() directly within an effect\n  74 |   }, [calculateCenter]);\n  75 |\n  76 |   return (","line":73,"column":5,"nodeType":null,"endLine":73,"endColumn":17}],"suppressedMessages":[],"errorCount":1,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":"\"use client\";\r\nimport { GoogleMap, Libraries, LoadScript, Polygon } from \"@react-google-maps/api\";\r\nimport { useCallback, useEffect, useState } from \"react\";\r\n\r\nconst containerStyle = {\r\n  width: \"100%\",\r\n  height: \"550px\" // Increased height for better visibility\r\n};\r\n\r\ninterface ZoneReportProps {\r\n  zonePoints?: google.maps.LatLngLiteral[];\r\n  info?: {\r\n    name: string;\r\n    value: string;\r\n    icon: React.ReactNode;\r\n    position: { lat: number; lng: number };\r\n  }[]; // Information to display on the map\r\n}\r\n\r\nconst ZoneReportMapView = ({ zonePoints, info }: ZoneReportProps) => {\r\n  const [loadError, setLoadError] = useState<Error | null>(null);\r\n  const [mapLoaded, setMapLoaded] = useState(false);\r\n  const libraries: Libraries = [\"places\"];\r\n  const [selectedMarker, setSelectedMarker] = useState<number | null>(null);\r\n  const [mapCenter, setMapCenter] = useState<{ lat: number; lng: number }>({ lat: 0, lng: 0 });\r\n\r\n  const onMapLoad = () => {\r\n    setMapLoaded(true);\r\n  };\r\n\r\n  const polygonOptions = {\r\n    fillColor: \"#FF0000\",\r\n    fillOpacity: 0.3,\r\n    strokeColor: \"#FF0000\",\r\n    strokeOpacity: 1,\r\n    strokeWeight: 2,\r\n    clickable: false // Make the polygon non-clickable\r\n  };\r\n\r\n  useEffect(() => {\r\n    if (loadError) {\r\n      console.error(\"Google Maps API load error:\", loadError);\r\n    }\r\n  }, [loadError]);\r\n\r\n  const handleMarkerClick = useCallback(\r\n    (index: number) => {\r\n      setSelectedMarker(selectedMarker === index ? null : index);\r\n    },\r\n    [selectedMarker]\r\n  );\r\n\r\n  const calculateCenter = useCallback(() => {\r\n    if (!zonePoints || zonePoints.length === 0) {\r\n      return { lat: 0, lng: 0 };\r\n    }\r\n\r\n    let latSum = 0;\r\n    let lngSum = 0;\r\n\r\n    for (const point of zonePoints) {\r\n      latSum += point.lat;\r\n      lngSum += point.lng;\r\n    }\r\n\r\n    const latCenter = latSum / zonePoints.length;\r\n    const lngCenter = lngSum / zonePoints.length;\r\n\r\n    return { lat: latCenter, lng: lngCenter };\r\n  }, [zonePoints]);\r\n\r\n  useEffect(() => {\r\n    setMapCenter(calculateCenter());\r\n  }, [calculateCenter]);\r\n\r\n  return (\r\n    <div className=\"relative\">\r\n      <LoadScript\r\n        libraries={libraries}\r\n        googleMapsApiKey={process.env.NEXT_PUBLIC_GOOGLE_MAPS_API_KEY as string}\r\n        onError={error => setLoadError(error)}\r\n        loadingElement={<div>Loading map...</div>}\r\n        onLoad={() => setMapLoaded(true)}\r\n        preventGoogleFontsLoading\r\n      >\r\n        <GoogleMap\r\n          mapContainerStyle={containerStyle}\r\n          center={mapCenter}\r\n          zoom={10}\r\n          onLoad={onMapLoad}\r\n          options={{\r\n            streetViewControl: false,\r\n            mapTypeControl: false, // Disable map type control\r\n            fullscreenControl: false, // Disable fullscreen control\r\n            zoomControl: true\r\n          }}\r\n        >\r\n          {zonePoints && zonePoints.length > 0 && (\r\n            <Polygon paths={zonePoints} options={polygonOptions} />\r\n          )}\r\n          {/* {info &&\r\n            info.map((item, index) => (\r\n              <div\r\n                key={index}\r\n                style={{\r\n                  position: \"absolute\",\r\n                  top: \"5%\",\r\n                  left: item.position.lng,\r\n                  transform: \"translate(-50%, -50%)\",\r\n                  backgroundColor: \"white\",\r\n                  padding: \"5px\",\r\n                  borderRadius: \"5px\",\r\n                  boxShadow: \"0 2px 4px rgba(0,0,0,0.2)\"\r\n                }}\r\n              >\r\n                {item.value}\r\n              </div>\r\n            ))} */}\r\n        </GoogleMap>\r\n      </LoadScript>\r\n    </div>\r\n  );\r\n};\r\n\r\nexport default ZoneReportMapView;\r\n","usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_zoneSetup\\zoneSetup.inputs.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_zoneSetup\\zoneSetup.schema.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\_zoneSetup\\zoneSetupForm.page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\customer\\CustomerInfoSection.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\customer\\ShowOneCustomer.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\customer\\ShowOneOrderCustomerSection.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\dashboard\\AnalyticCard.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\dashboard\\CardStatisticsSection.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\dashboard\\CountsStatistics.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\dashboard\\MonthlyStatistics.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\dashboard\\UserStatisticsSection.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\delivery\\AdjustDeliveryRatingForm.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\delivery\\ChangeDriverCompany.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\delivery\\DeliveryAnaliticsCards.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\delivery\\DeliveryAssignmentCard.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\delivery\\DeliveryDocumentsCard.tsx","messages":[],"suppressedMessages":[{"ruleId":"@next/next/no-img-element","severity":1,"message":"Using `<img>` could result in slower LCP and higher bandwidth. Consider using `<Image />` from `next/image` or a custom image loader to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element","line":77,"column":19,"nodeType":"JSXOpeningElement","endLine":81,"endColumn":21,"suppressions":[{"kind":"directive","justification":""}]}],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\delivery\\DeliveryInfoSection.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\delivery\\ShowOneDelivery.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\delivery\\ShowOneDeliverySection.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\emailTemplate\\MailNavigations.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\emailTemplate\\MailPreview.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\emailTemplate\\MailSection.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\emailTemplate\\ReciverSelectMenu.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\emailTemplate\\form\\TitleEnInput.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\emailTemplate\\form\\mail.inputs.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\emailTemplate\\form\\mail.schema.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\emailTemplate\\form\\mailForm.page.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\emailTemplate\\mail.store.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\order\\AssinDelivery.tsx","messages":[{"ruleId":"react-hooks/set-state-in-effect","severity":2,"message":"Error: Calling setState synchronously within an effect can trigger cascading renders\n\nEffects are intended to synchronize state between React and external systems such as manually updating the DOM, state management libraries, or other platform APIs. In general, the body of an effect should do one or both of the following:\n* Update external systems with the latest state from React.\n* Subscribe for updates from some external system, calling setState in a callback function when external state changes.\n\nCalling setState synchronously within an effect body causes cascading renders that can hurt performance, and is not recommended. (https://react.dev/learn/you-might-not-need-an-effect).\n\nD:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\order\\AssinDelivery.tsx:44:5\n  42 |   // The order's saved source can arrive after the first render.\n  43 |   useEffect(() => {\n> 44 |     setDeliverySource(initialSource);\n     |     ^^^^^^^^^^^^^^^^^ Avoid calling setState() directly within an effect\n  45 |   }, [initialSource]);\n  46 |\n  47 |   useEffect(() => {","line":44,"column":5,"nodeType":null,"endLine":44,"endColumn":22},{"ruleId":"react-hooks/set-state-in-effect","severity":2,"message":"Error: Calling setState synchronously within an effect can trigger cascading renders\n\nEffects are intended to synchronize state between React and external systems such as manually updating the DOM, state management libraries, or other platform APIs. In general, the body of an effect should do one or both of the following:\n* Update external systems with the latest state from React.\n* Subscribe for updates from some external system, calling setState in a callback function when external state changes.\n\nCalling setState synchronously within an effect body causes cascading renders that can hurt performance, and is not recommended. (https://react.dev/learn/you-might-not-need-an-effect).\n\nD:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\order\\AssinDelivery.tsx:49:5\n  47 |   useEffect(() => {\n  48 |     let cancelled = false;\n> 49 |     setLoadingDrivers(true);\n     |     ^^^^^^^^^^^^^^^^^ Avoid calling setState() directly within an effect\n  50 |     setSelectedDriverId(\"\");\n  51 |     fetchHelper({\n  52 |       endPoint: API_ENDPOINTS.deliveryAvailableForAssign,","line":49,"column":5,"nodeType":null,"endLine":49,"endColumn":22}],"suppressedMessages":[],"errorCount":2,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":"\"use client\";\r\nimport { RevalidatePathServer } from \"@/api/avtions\";\r\nimport { fetchHelper } from \"@/api/fetch\";\r\nimport { Button } from \"@/components/ui/button\";\r\nimport {\r\n  Select,\r\n  SelectContent,\r\n  SelectItem,\r\n  SelectTrigger,\r\n  SelectValue\r\n} from \"@/components/ui/select\";\r\nimport { useToast } from \"@/hooks/use-toast\";\r\nimport { API_ENDPOINTS } from \"@/utils/config\";\r\nimport { useTranslations } from \"next-intl\";\r\nimport { useParams, usePathname, useRouter } from \"next/navigation\";\r\nimport { useEffect, useState } from \"react\";\r\n\r\ntype DeliverySource = \"PLATFORM\" | \"STORE_FLEET\";\r\n\r\ntype AvailableDriver = {\r\n  id: number;\r\n  name: string;\r\n};\r\n\r\nfunction AssinDelivery({\r\n  deliverySource: initialSource = \"PLATFORM\"\r\n}: {\r\n  deliverySource?: DeliverySource;\r\n}) {\r\n  const { id: orderId } = useParams();\r\n  const t = useTranslations();\r\n  const [deliverySource, setDeliverySource] = useState<DeliverySource>(initialSource);\r\n  const [drivers, setDrivers] = useState<AvailableDriver[]>([]);\r\n  const [emptyReason, setEmptyReason] = useState<string | null>(null);\r\n  const [selectedDriverId, setSelectedDriverId] = useState(\"\");\r\n  const [loadingDrivers, setLoadingDrivers] = useState(false);\r\n  const [loading, setLoading] = useState(false);\r\n  const toaster = useToast();\r\n  const pathname = usePathname();\r\n  const router = useRouter();\r\n\r\n  // The order's saved source can arrive after the first render.\r\n  useEffect(() => {\r\n    setDeliverySource(initialSource);\r\n  }, [initialSource]);\r\n\r\n  useEffect(() => {\r\n    let cancelled = false;\r\n    setLoadingDrivers(true);\r\n    setSelectedDriverId(\"\");\r\n    fetchHelper({\r\n      endPoint: API_ENDPOINTS.deliveryAvailableForAssign,\r\n      method: \"GET\",\r\n      params: { orderId, source: deliverySource }\r\n    })\r\n      .then(res => {\r\n        if (cancelled) return;\r\n        const rows = Array.isArray(res?.data) ? res.data : [];\r\n        setEmptyReason(res?.emptyReason ?? null);\r\n        setDrivers(\r\n          rows\r\n            .filter((row: AvailableDriver) => row?.id != null)\r\n            .map((row: AvailableDriver) => ({\r\n              id: row.id,\r\n              name: row.name || String(row.id)\r\n            }))\r\n        );\r\n      })\r\n      .catch(() => {\r\n        if (!cancelled) {\r\n          setDrivers([]);\r\n          setEmptyReason(null);\r\n        }\r\n      })\r\n      .finally(() => {\r\n        if (!cancelled) setLoadingDrivers(false);\r\n      });\r\n    return () => {\r\n      cancelled = true;\r\n    };\r\n  }, [deliverySource, orderId]);\r\n\r\n  const showError = (res: { message?: string; result?: { message?: string } }) => {\r\n    toaster.toast({\r\n      title: t(\"Error\"),\r\n      variant: \"destructive\",\r\n      description: res?.message || res?.result?.message\r\n    });\r\n  };\r\n\r\n  const refreshOrder = async () => {\r\n    await RevalidatePathServer(pathname);\r\n    router.refresh();\r\n  };\r\n\r\n  const onAutoAssign = () => {\r\n    setLoading(true);\r\n    fetchHelper({\r\n      endPoint: `${API_ENDPOINTS.order}/${orderId}/auto-assign`,\r\n      method: \"POST\",\r\n      body: { deliverySource }\r\n    }).then(async res => {\r\n      setLoading(false);\r\n      if (!res.success) {\r\n        showError(res);\r\n      } else {\r\n        toaster.toast({\r\n          title: t(\"Deliveryman assigned\"),\r\n          description: res?.message\r\n        });\r\n        await refreshOrder();\r\n      }\r\n    });\r\n  };\r\n\r\n  const onAssignSelected = async () => {\r\n    if (!selectedDriverId) return;\r\n    setLoading(true);\r\n    if (deliverySource !== initialSource) {\r\n      const sourceRes = await fetchHelper({\r\n        endPoint: `${API_ENDPOINTS.order}/${orderId}/delivery-source`,\r\n        method: \"PATCH\",\r\n        body: { deliverySource }\r\n      });\r\n      if (!sourceRes.success) {\r\n        setLoading(false);\r\n        showError(sourceRes);\r\n        return;\r\n      }\r\n    }\r\n    const res = await fetchHelper({\r\n      endPoint: API_ENDPOINTS.assignDelivery,\r\n      method: \"POST\",\r\n      body: { id: Number(orderId), deliveryManId: Number(selectedDriverId) }\r\n    });\r\n    setLoading(false);\r\n    if (!res.success) {\r\n      showError(res);\r\n    } else {\r\n      toaster.toast({\r\n        title: t(\"Deliveryman assigned\"),\r\n        description: res?.message\r\n      });\r\n      await refreshOrder();\r\n    }\r\n  };\r\n\r\n  return (\r\n    <div className=\" flex flex-col items-center justify-center mx-auto gap-[10px]\">\r\n      <div className=\"w-full space-y-2\">\r\n        <p className=\"text-sm font-medium\">{t(\"Delivery source\")}</p>\r\n        <p className=\"text-xs text-gray-500\">\r\n          {t(\"Pick a driver, or let the system assign the highest-rated available one\")}\r\n        </p>\r\n        <div className=\"flex gap-2\">\r\n          <Button\r\n            type=\"button\"\r\n            size=\"sm\"\r\n            variant={deliverySource === \"PLATFORM\" ? \"default\" : \"outline\"}\r\n            disabled={loading}\r\n            onClick={() => setDeliverySource(\"PLATFORM\")}\r\n          >\r\n            {t(\"Platform drivers\")}\r\n          </Button>\r\n          <Button\r\n            type=\"button\"\r\n            size=\"sm\"\r\n            variant={deliverySource === \"STORE_FLEET\" ? \"default\" : \"outline\"}\r\n            disabled={loading}\r\n            onClick={() => setDeliverySource(\"STORE_FLEET\")}\r\n          >\r\n            {t(\"Store fleet\")}\r\n          </Button>\r\n        </div>\r\n        <p className=\"text-sm font-medium\">{t(\"Choose a driver\")}</p>\r\n        <Select\r\n          value={selectedDriverId || undefined}\r\n          onValueChange={setSelectedDriverId}\r\n          disabled={loading || loadingDrivers || drivers.length === 0}\r\n        >\r\n          <SelectTrigger className=\"w-full\">\r\n            <SelectValue\r\n              placeholder={\r\n                loadingDrivers\r\n                  ? t(\"Select a driver\")\r\n                  : drivers.length === 0\r\n                    ? emptyReason\r\n                      ? t(`assignEmpty.${emptyReason}`)\r\n                      : t(\"No available driver for this delivery source\")\r\n                    : t(\"Select a driver\")\r\n              }\r\n            />\r\n          </SelectTrigger>\r\n          <SelectContent>\r\n            {drivers.map(driver => (\r\n              <SelectItem key={driver.id} value={String(driver.id)}>\r\n                {driver.name}\r\n              </SelectItem>\r\n            ))}\r\n          </SelectContent>\r\n        </Select>\r\n        {!loadingDrivers && drivers.length === 0 && emptyReason ? (\r\n          <p className=\"text-xs text-amber-700 dark:text-amber-400\">\r\n            {t(`assignEmpty.${emptyReason}`)}\r\n          </p>\r\n        ) : null}\r\n      </div>\r\n      <Button disabled={loading || !selectedDriverId} onClick={onAssignSelected} className=\"w-full\">\r\n        {t(\"Assign selected driver\")}\r\n      </Button>\r\n      <Button disabled={loading} onClick={onAutoAssign} variant=\"outline\" className=\"w-full\">\r\n        {t(\"Assign highest rated driver\")}\r\n      </Button>\r\n    </div>\r\n  );\r\n}\r\n\r\nexport default AssinDelivery;\r\n","usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\order\\OrderInfoResetPriceDetails.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\order\\OrderInfoSection.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\order\\OrderStatusActions.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\order\\ShowOneOrderCustomerSection.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\order\\ShowOneOrderItemsDataSection.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\order\\ShowOneOrderStoreInfo.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\order\\ShowOneOrderTopSection.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\order\\ShowOneOrderV2.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\pages\\pushNotification\\TableBody.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\reset-password-form.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\search-form.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\sidebar-footer.tsx","messages":[{"ruleId":null,"message":"Unused eslint-disable directive (no problems were reported from 'jsx-a11y/click-events-have-key-events').","line":1,"column":1,"severity":1,"nodeType":null,"fix":{"range":[0,58],"text":" "}},{"ruleId":null,"message":"Unused eslint-disable directive (no problems were reported from 'jsx-a11y/no-static-element-interactions').","line":2,"column":1,"severity":1,"nodeType":null,"fix":{"range":[60,120],"text":" "}}],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":2,"source":"/* eslint-disable jsx-a11y/click-events-have-key-events */\r\n/* eslint-disable jsx-a11y/no-static-element-interactions */\r\n\"use client\";\r\nimport { removeToken } from \"@/api/avtions\";\r\nimport { API_IMG_URL } from \"@/utils/config\";\r\nimport { routes } from \"@/utils/routes\";\r\nimport {\r\n  DropdownMenu,\r\n  DropdownMenuContent,\r\n  DropdownMenuItem,\r\n  DropdownMenuTrigger\r\n} from \"@radix-ui/react-dropdown-menu\";\r\nimport { ChevronUp, LogOut } from \"lucide-react\";\r\nimport { useLocale, useTranslations } from \"next-intl\";\r\nimport Image from \"next/image\";\r\nimport Link from \"next/link\";\r\nimport { FaUserFriends } from \"react-icons/fa\";\r\nimport { SidebarMenu, SidebarMenuButton, SidebarMenuItem } from \"./ui/sidebar\";\r\n\r\n// ...existing code...\r\n\r\nexport const SideBarFooter = ({\r\n  user\r\n}: {\r\n  user: {\r\n    name: string;\r\n    email: string;\r\n    image?: string;\r\n    id: string;\r\n  };\r\n}) => {\r\n  const t = useTranslations();\r\n  const locale = useLocale();\r\n  return (\r\n    <>\r\n      <SidebarMenu>\r\n        <SidebarMenuItem>\r\n          <DropdownMenu>\r\n            <DropdownMenuTrigger asChild>\r\n              <SidebarMenuButton className=\"flex items-center space-x-3 p-2 hover:bg-gray-100 rounded-md transition-colors duration-150\">\r\n                <Image\r\n                  className=\"rounded-full border border-gray-300 shadow-sm\"\r\n                  src={`${API_IMG_URL + user.image}`}\r\n                  alt={user.name}\r\n                  width={30}\r\n                  height={30}\r\n                  objectFit=\"cover\"\r\n                />\r\n                <div className=\"flex flex-col\">\r\n                  <p className=\"text-sm font-medium text-gray-900\">{user.name}</p>\r\n                  {/* Uncomment below if you wish to show user email */}\r\n                  {/* <p className=\"text-xs text-gray-500\">{user.email}</p> */}\r\n                </div>\r\n                <ChevronUp className=\"ml-auto text-gray-600\" />\r\n              </SidebarMenuButton>\r\n            </DropdownMenuTrigger>\r\n            <DropdownMenuContent\r\n              side=\"top\"\r\n              align=\"start\"\r\n              className=\"w-56 bg-white rounded-md shadow-lg p-2 border border-gray-200\"\r\n            >\r\n              <DropdownMenuItem className=\"rounded-md hover:bg-gray-100\">\r\n                <Link\r\n                  href={`/${locale}${routes.editProfile}`}\r\n                  className=\"flex items-center px-3 py-2 text-sm font-semibold text-gray-700\"\r\n                >\r\n                  <FaUserFriends className=\"mr-2 text-gray-600\" />\r\n                  {t(\"My Account\")}\r\n                </Link>\r\n              </DropdownMenuItem>\r\n              <DropdownMenuItem className=\"rounded-md hover:bg-gray-100\">\r\n                <button\r\n                  onClick={async () => {\r\n                    await removeToken();\r\n                  }}\r\n                  className=\"flex w-full items-center px-3 py-2 text-sm font-semibold text-gray-700\"\r\n                >\r\n                  <LogOut className=\"mr-2 h-4 w-4 text-gray-600\" />\r\n                  {t(\"Logout\")}\r\n                </button>\r\n              </DropdownMenuItem>\r\n            </DropdownMenuContent>\r\n          </DropdownMenu>\r\n        </SidebarMenuItem>\r\n      </SidebarMenu>\r\n    </>\r\n    // ...existing code...\r\n  );\r\n};\r\n\r\n// '''  <div className=\"flex items-center justify-between p-4\">\r\n//         <div>\r\n//           <Popover.Root>\r\n//             <Popover.Trigger asChild>\r\n//               <button className=\"flex w-full items-center justify-between p-2\">\r\n//                 <div className=\"flex items-center justify-start space-x-2\">\r\n//                   <div className=\"w-6 h-6 rounded-full overflow-hidden\">\r\n//                     <Image\r\n//                       className=\"\"\r\n//                       src={`${API_IMG_URL + user.image}`}\r\n//                       alt={user.name}\r\n//                       width={24}\r\n//                       height={24}\r\n//                       objectFit=\"cover\"\r\n//                     />\r\n//                   </div>\r\n//                   <div className=\"flex flex-col items-start justify-center\">\r\n//                     <p className=\"text-sm font-medium ms-2\">{user.name}</p>\r\n//                     <p className=\"text-xs text-muted-foreground\">{user.email}</p>\r\n//                   </div>\r\n//                   <ChevronUp\r\n//                     className={cn(\r\n//                       \"h-4 w-4 transition-transform duration-200\",\r\n//                       \"data-[state=open]:rotate-180\"\r\n//                     )}\r\n//                   />\r\n//                 </div>\r\n//               </button>\r\n//             </Popover.Trigger>\r\n//             <Popover.Portal>\r\n//               <Popover.Content\r\n//                 className=\"z-50 min-w-[200px] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\"\r\n//                 sideOffset={5}\r\n//               >\r\n//                 <div className=\"flex flex-col gap-0.5\"></div>\r\n\r\n//                 <div className=\"flex flex-col gap-0.5 p-2\">\r\n//                   <Link\r\n//                     href={`/${locale}${routes.editProfile}`}\r\n//                     className=\"flex items-center px-2 py-1.5 text-sm font-semibold\"\r\n//                   >\r\n//                     <FaUser className=\"mr-2\" /> {/* Icon with some margin to the right */}\r\n//                     {t(\"My Account\")}\r\n//                   </Link>\r\n//                   <div className=\"h-px bg-muted my-1\" />\r\n//                   <Button\r\n//                     onClick={async () => {\r\n//                       await removeToken();\r\n//                     }}\r\n//                     className=\"relative flex  select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground text-red-600\"\r\n//                   >\r\n//                     <LogOut className=\"mr-2 h-4 w-4\" />\r\n//                     <span>{t(\"Logout\")}</span>\r\n//                   </Button>\r\n//                 </div>\r\n//               </Popover.Content>\r\n//             </Popover.Portal>\r\n//           </Popover.Root>\r\n//         </div>'''\r\n","usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\sidebarItem.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\ui\\BackArrow.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\ui\\ErrorMessage.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\ui\\KeyLabel.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\ui\\PrintButton.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\ui\\ShowLocationOnMap.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\ui\\alert.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\ui\\avatar.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\ui\\badge.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\ui\\breadcrumb.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\ui\\button.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\ui\\calendar.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\ui\\card.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\ui\\chart.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\ui\\checkbox.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\ui\\collapsible.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\ui\\command.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\ui\\dialog.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\ui\\dropdown-menu.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\ui\\input.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\ui\\label.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\ui\\multSelectInfinite.tsx","messages":[{"ruleId":"react-hooks/set-state-in-effect","severity":2,"message":"Error: Calling setState synchronously within an effect can trigger cascading renders\n\nEffects are intended to synchronize state between React and external systems such as manually updating the DOM, state management libraries, or other platform APIs. In general, the body of an effect should do one or both of the following:\n* Update external systems with the latest state from React.\n* Subscribe for updates from some external system, calling setState in a callback function when external state changes.\n\nCalling setState synchronously within an effect body causes cascading renders that can hurt performance, and is not recommended. (https://react.dev/learn/you-might-not-need-an-effect).\n\nD:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\ui\\multSelectInfinite.tsx:53:5\n  51 |   };\n  52 |   useEffect(() => {\n> 53 |     setOptionsFetcher();\n     |     ^^^^^^^^^^^^^^^^^ Avoid calling setState() directly within an effect\n  54 |   }, [searchTerm]);\n  55 |   return (\n  56 |     <div className=\"flex w-full flex-col gap-3\">","line":53,"column":5,"nodeType":null,"endLine":53,"endColumn":22},{"ruleId":"react-hooks/exhaustive-deps","severity":1,"message":"React Hook useEffect has a missing dependency: 'setOptionsFetcher'. Either include it or remove the dependency array.","line":54,"column":6,"nodeType":"ArrayExpression","endLine":54,"endColumn":18,"suggestions":[{"desc":"Update the dependencies array to be: [searchTerm, setOptionsFetcher]","fix":{"range":[1425,1437],"text":"[searchTerm, setOptionsFetcher]"}}]}],"suppressedMessages":[],"errorCount":1,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"\"use client\";\r\nimport { fetchHelper } from \"@/api/fetch\";\r\nimport { useTranslations } from \"next-intl\";\r\nimport { useEffect, useState } from \"react\";\r\nimport Select from \"react-select\";\r\nimport { Option } from \"../common/Form/CustomFormTypes.types\";\r\n\r\nexport default function MultiSelect({\r\n  value,\r\n  placeholder,\r\n  onChange,\r\n  name,\r\n  // pageSize = 5,\r\n  idKey = \"id\",\r\n  labelKey = \"name\",\r\n  apiUrl\r\n}: // searchTermKey = \"search\",\r\n{\r\n  value: string;\r\n  placeholder?: string;\r\n  onChange?: (value: { label: string; value: number }[]) => void;\r\n  name: string;\r\n  // pageSize?: number;\r\n  idKey?: string;\r\n  labelKey?: string;\r\n  apiUrl: string;\r\n  // searchTermKey?: string;\r\n}) {\r\n  const t = useTranslations();\r\n  const [displayedOptions, setDisplayedOptions] = useState<Option[]>([]);\r\n  const [isLoading, setIsLoading] = useState(false);\r\n  const [searchTerm, setSearchTerm] = useState(\"\");\r\n  const setOptionsFetcher = async () => {\r\n    setIsLoading(true);\r\n\r\n    const data = await fetchHelper({\r\n      endPoint: apiUrl,\r\n      method: \"GET\",\r\n      params: {\r\n        limit: Number(displayedOptions?.length ?? 0) + 15\r\n        // [searchTermKey]:searchTerm\r\n      }\r\n    });\r\n    setDisplayedOptions(\r\n      data?.data?.map((item: any) => ({\r\n        label: item[labelKey],\r\n        value: item[idKey]\r\n      }))\r\n    );\r\n    setIsLoading(false);\r\n  };\r\n  useEffect(() => {\r\n    setOptionsFetcher();\r\n  }, [searchTerm]);\r\n  return (\r\n    <div className=\"flex w-full flex-col gap-3\">\r\n      <Select\r\n        isMulti={true}\r\n        onChange={e => {\r\n          const selectedOptions = e as { label: string; value: number }[];\r\n          if (selectedOptions) {\r\n            onChange?.(selectedOptions);\r\n          }\r\n        }}\r\n        options={displayedOptions}\r\n        value={displayedOptions?.find(opt => opt.value == value)}\r\n        placeholder={placeholder || t(\"select\")}\r\n        name={name}\r\n        classNames={{\r\n          control: state => \"border-0 shadow-none\"\r\n        }}\r\n        styles={{\r\n          control: (baseStyles, state) => ({\r\n            ...baseStyles,\r\n            border: \"none\",\r\n            boxShadow: \"none\",\r\n            \"&:hover\": {\r\n              border: \"none\"\r\n            }\r\n          })\r\n        }}\r\n        className=\"text-orange-600 w-full\"\r\n        onMenuScrollToBottom={() => {\r\n          if (!isLoading) {\r\n            setOptionsFetcher();\r\n          }\r\n        }}\r\n        isLoading={isLoading}\r\n        onInputChange={e => setSearchTerm(e)}\r\n      />\r\n    </div>\r\n  );\r\n}\r\n","usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\ui\\pagination.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\ui\\popover.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\ui\\progress.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\ui\\radio-group.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\ui\\scroll-area.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\ui\\select.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\ui\\separator.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\ui\\sheet.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\ui\\sidebar.tsx","messages":[{"ruleId":"react-hooks/purity","severity":2,"message":"Error: Cannot call impure function during render\n\n`Math.random` is an impure function. Calling an impure function can produce unstable results that update unpredictably when the component happens to re-render. (https://react.dev/reference/rules/components-and-hooks-must-be-pure#components-and-hooks-must-be-idempotent).\n\nD:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\ui\\sidebar.tsx:628:26\n  626 |   // Random width between 50 to 90%.\n  627 |   const width = React.useMemo(() => {\n> 628 |     return `${Math.floor(Math.random() * 40) + 50}%`;\n      |                          ^^^^^^^^^^^^^ Cannot call impure function\n  629 |   }, []);\n  630 |\n  631 |   return (","line":628,"column":26,"nodeType":null,"endLine":628,"endColumn":39}],"suppressedMessages":[],"errorCount":1,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":"\"use client\";\r\nimport { Button } from \"@/components/ui/button\";\r\nimport { Input } from \"@/components/ui/input\";\r\nimport { Separator } from \"@/components/ui/separator\";\r\nimport { Sheet, SheetContent } from \"@/components/ui/sheet\";\r\nimport { Skeleton } from \"@/components/ui/skeleton\";\r\nimport { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from \"@/components/ui/tooltip\";\r\nimport { useIsMobile } from \"@/hooks/use-mobile\";\r\nimport { cn } from \"@/lib/utils\";\r\nimport { ViewVerticalIcon } from \"@radix-ui/react-icons\";\r\nimport { Slot } from \"@radix-ui/react-slot\";\r\nimport { VariantProps, cva } from \"class-variance-authority\";\r\nimport * as React from \"react\";\r\n\r\nconst SIDEBAR_COOKIE_NAME = \"sidebar:state\";\r\nconst SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;\r\nconst SIDEBAR_WIDTH = \"22rem\";\r\nconst SIDEBAR_WIDTH_MOBILE = \"18rem\";\r\nconst SIDEBAR_WIDTH_ICON = \"3rem\";\r\nconst SIDEBAR_KEYBOARD_SHORTCUT = \"b\";\r\n\r\ntype SidebarContext = {\r\n  state: \"expanded\" | \"collapsed\";\r\n  open: boolean;\r\n  setOpen: (open: boolean) => void;\r\n  openMobile: boolean;\r\n  setOpenMobile: (open: boolean) => void;\r\n  isMobile: boolean;\r\n  toggleSidebar: () => void;\r\n};\r\n\r\nconst SidebarContext = React.createContext<SidebarContext | null>(null);\r\n\r\nfunction useSidebar() {\r\n  const context = React.useContext(SidebarContext);\r\n  if (!context) {\r\n    throw new Error(\"useSidebar must be used within a SidebarProvider.\");\r\n  }\r\n\r\n  return context;\r\n}\r\n\r\nconst SidebarProvider = React.forwardRef<\r\n  HTMLDivElement,\r\n  React.ComponentProps<\"div\"> & {\r\n    defaultOpen?: boolean;\r\n    open?: boolean;\r\n    onOpenChange?: (open: boolean) => void;\r\n  }\r\n>(\r\n  (\r\n    {\r\n      defaultOpen = true,\r\n      open: openProp,\r\n      onOpenChange: setOpenProp,\r\n      className,\r\n      style,\r\n      children,\r\n      ...props\r\n    },\r\n    ref\r\n  ) => {\r\n    const isMobile = useIsMobile();\r\n    const [openMobile, setOpenMobile] = React.useState(false);\r\n\r\n    // This is the internal state of the sidebar.\r\n    // We use openProp and setOpenProp for control from outside the component.\r\n    const [_open, _setOpen] = React.useState(defaultOpen);\r\n    const open = openProp ?? _open;\r\n    const setOpen = React.useCallback(\r\n      (value: boolean | ((value: boolean) => boolean)) => {\r\n        const openState = typeof value === \"function\" ? value(open) : value;\r\n        if (setOpenProp) {\r\n          setOpenProp(openState);\r\n        } else {\r\n          _setOpen(openState);\r\n        }\r\n\r\n        // This sets the cookie to keep the sidebar state.\r\n        document.cookie = `${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`;\r\n      },\r\n      [setOpenProp, open]\r\n    );\r\n\r\n    // Helper to toggle the sidebar.\r\n    const toggleSidebar = React.useCallback(() => {\r\n      return isMobile ? setOpenMobile(open => !open) : setOpen(open => !open);\r\n    }, [isMobile, setOpen, setOpenMobile]);\r\n\r\n    // Adds a keyboard shortcut to toggle the sidebar.\r\n    React.useEffect(() => {\r\n      const handleKeyDown = (event: KeyboardEvent) => {\r\n        if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {\r\n          event.preventDefault();\r\n          toggleSidebar();\r\n        }\r\n      };\r\n\r\n      window.addEventListener(\"keydown\", handleKeyDown);\r\n      return () => window.removeEventListener(\"keydown\", handleKeyDown);\r\n    }, [toggleSidebar]);\r\n\r\n    // We add a state so that we can do data-state=\"expanded\" or \"collapsed\".\r\n    // This makes it easier to style the sidebar with Tailwind classes.\r\n    const state = open ? \"expanded\" : \"collapsed\";\r\n\r\n    const contextValue = React.useMemo<SidebarContext>(\r\n      () => ({\r\n        state,\r\n        open,\r\n        setOpen,\r\n        isMobile,\r\n        openMobile,\r\n        setOpenMobile,\r\n        toggleSidebar\r\n      }),\r\n      [state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]\r\n    );\r\n\r\n    return (\r\n      <SidebarContext.Provider value={contextValue}>\r\n        <TooltipProvider delayDuration={0}>\r\n          <div\r\n            style={\r\n              {\r\n                \"--sidebar-width\": SIDEBAR_WIDTH,\r\n                \"--sidebar-width-icon\": SIDEBAR_WIDTH_ICON,\r\n                ...style\r\n              } as React.CSSProperties\r\n            }\r\n            className={cn(\r\n              \"group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar\",\r\n              className\r\n            )}\r\n            ref={ref}\r\n            {...props}\r\n          >\r\n            {children}\r\n          </div>\r\n        </TooltipProvider>\r\n      </SidebarContext.Provider>\r\n    );\r\n  }\r\n);\r\nSidebarProvider.displayName = \"SidebarProvider\";\r\n\r\nconst Sidebar = React.forwardRef<\r\n  HTMLDivElement,\r\n  React.ComponentProps<\"div\"> & {\r\n    side?: \"left\" | \"right\";\r\n    variant?: \"sidebar\" | \"floating\" | \"inset\";\r\n    collapsible?: \"offcanvas\" | \"icon\" | \"none\";\r\n  }\r\n>(\r\n  (\r\n    {\r\n      side = \"left\",\r\n      variant = \"sidebar\",\r\n      collapsible = \"offcanvas\",\r\n      className,\r\n      children,\r\n      ...props\r\n    },\r\n    ref\r\n  ) => {\r\n    const { isMobile, state, openMobile, setOpenMobile } = useSidebar();\r\n\r\n    if (collapsible === \"none\") {\r\n      return (\r\n        <div\r\n          className={cn(\r\n            \"flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground\",\r\n            className\r\n          )}\r\n          ref={ref}\r\n          {...props}\r\n        >\r\n          {children}\r\n        </div>\r\n      );\r\n    }\r\n\r\n    if (isMobile) {\r\n      return (\r\n        <Sheet open={openMobile} onOpenChange={setOpenMobile} {...props}>\r\n          <SheetContent\r\n            data-sidebar=\"sidebar\"\r\n            data-mobile=\"true\"\r\n            className=\"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden\"\r\n            style={\r\n              {\r\n                \"--sidebar-width\": SIDEBAR_WIDTH_MOBILE\r\n              } as React.CSSProperties\r\n            }\r\n            side={side}\r\n          >\r\n            <div className=\"flex h-full w-full flex-col\">{children}</div>\r\n          </SheetContent>\r\n        </Sheet>\r\n      );\r\n    }\r\n\r\n    return (\r\n      <div\r\n        ref={ref}\r\n        className=\"group peer hidden md:block text-sidebar-foreground\"\r\n        data-state={state}\r\n        data-collapsible={state === \"collapsed\" ? collapsible : \"\"}\r\n        data-variant={variant}\r\n        data-side={side}\r\n      >\r\n        {/* This is what handles the sidebar gap on desktop */}\r\n        <div\r\n          className={cn(\r\n            \"duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear\",\r\n            \"group-data-[collapsible=offcanvas]:w-0\",\r\n            \"group-data-[side=right]:rotate-180\",\r\n            variant === \"floating\" || variant === \"inset\"\r\n              ? \"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]\"\r\n              : \"group-data-[collapsible=icon]:w-[--sidebar-width-icon]\"\r\n          )}\r\n        />\r\n        <div\r\n          className={cn(\r\n            \"duration-200 fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex\",\r\n            side === \"left\"\r\n              ? \"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]\"\r\n              : \"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]\",\r\n            // Adjust the padding for floating and inset variants.\r\n            variant === \"floating\" || variant === \"inset\"\r\n              ? \"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]\"\r\n              : \"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l\",\r\n            className\r\n          )}\r\n          {...props}\r\n        >\r\n          <div\r\n            data-sidebar=\"sidebar\"\r\n            className=\"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow\"\r\n          >\r\n            {children}\r\n          </div>\r\n        </div>\r\n      </div>\r\n    );\r\n  }\r\n);\r\nSidebar.displayName = \"Sidebar\";\r\n\r\nconst SidebarTrigger = React.forwardRef<\r\n  React.ElementRef<typeof Button>,\r\n  React.ComponentProps<typeof Button>\r\n>(({ className, onClick, ...props }, ref) => {\r\n  const { toggleSidebar } = useSidebar();\r\n\r\n  return (\r\n    <Button\r\n      ref={ref}\r\n      data-sidebar=\"trigger\"\r\n      variant=\"ghost\"\r\n      size=\"icon\"\r\n      className={cn(\"h-7 w-7\", className)}\r\n      onClick={event => {\r\n        onClick?.(event);\r\n        toggleSidebar();\r\n      }}\r\n      {...props}\r\n    >\r\n      <ViewVerticalIcon />\r\n      <span className=\"sr-only\">Toggle Sidebar</span>\r\n    </Button>\r\n  );\r\n});\r\nSidebarTrigger.displayName = \"SidebarTrigger\";\r\n\r\nconst SidebarRail = React.forwardRef<HTMLButtonElement, React.ComponentProps<\"button\">>(\r\n  ({ className, ...props }, ref) => {\r\n    const { toggleSidebar } = useSidebar();\r\n\r\n    return (\r\n      <button\r\n        ref={ref}\r\n        data-sidebar=\"rail\"\r\n        aria-label=\"Toggle Sidebar\"\r\n        tabIndex={-1}\r\n        onClick={toggleSidebar}\r\n        title=\"Toggle Sidebar\"\r\n        className={cn(\r\n          \"absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex\",\r\n          \"[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize\",\r\n          \"[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize\",\r\n          \"group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar\",\r\n          \"[[data-side=left][data-collapsible=offcanvas]_&]:-right-2\",\r\n          \"[[data-side=right][data-collapsible=offcanvas]_&]:-left-2\",\r\n          className\r\n        )}\r\n        {...props}\r\n      />\r\n    );\r\n  }\r\n);\r\nSidebarRail.displayName = \"SidebarRail\";\r\n\r\nconst SidebarInset = React.forwardRef<HTMLDivElement, React.ComponentProps<\"main\">>(\r\n  ({ className, ...props }, ref) => {\r\n    return (\r\n      <main\r\n        ref={ref}\r\n        className={cn(\r\n          \"relative flex min-h-svh flex-1 flex-col bg-transparent overflow-x-hidden\",\r\n          \"peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow\",\r\n          className\r\n        )}\r\n        {...props}\r\n      />\r\n    );\r\n  }\r\n);\r\nSidebarInset.displayName = \"SidebarInset\";\r\n\r\nconst SidebarInput = React.forwardRef<\r\n  React.ElementRef<typeof Input>,\r\n  React.ComponentProps<typeof Input>\r\n>(({ className, ...props }, ref) => {\r\n  return (\r\n    <Input\r\n      ref={ref}\r\n      data-sidebar=\"input\"\r\n      className={cn(\r\n        \"h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring\",\r\n        className\r\n      )}\r\n      {...props}\r\n    />\r\n  );\r\n});\r\nSidebarInput.displayName = \"SidebarInput\";\r\n\r\nconst SidebarHeader = React.forwardRef<HTMLDivElement, React.ComponentProps<\"div\">>(\r\n  ({ className, ...props }, ref) => {\r\n    return (\r\n      <div\r\n        ref={ref}\r\n        data-sidebar=\"header\"\r\n        className={cn(\"flex flex-col gap-2 p-2\", className)}\r\n        {...props}\r\n      />\r\n    );\r\n  }\r\n);\r\nSidebarHeader.displayName = \"SidebarHeader\";\r\n\r\nconst SidebarFooter = React.forwardRef<HTMLDivElement, React.ComponentProps<\"div\">>(\r\n  ({ className, ...props }, ref) => {\r\n    return (\r\n      <div\r\n        ref={ref}\r\n        data-sidebar=\"footer\"\r\n        className={cn(\"flex flex-col gap-2 p-2\", className)}\r\n        {...props}\r\n      />\r\n    );\r\n  }\r\n);\r\nSidebarFooter.displayName = \"SidebarFooter\";\r\n\r\nconst SidebarSeparator = React.forwardRef<\r\n  React.ElementRef<typeof Separator>,\r\n  React.ComponentProps<typeof Separator>\r\n>(({ className, ...props }, ref) => {\r\n  return (\r\n    <Separator\r\n      ref={ref}\r\n      data-sidebar=\"separator\"\r\n      className={cn(\"mx-2 w-auto bg-sidebar-border\", className)}\r\n      {...props}\r\n    />\r\n  );\r\n});\r\nSidebarSeparator.displayName = \"SidebarSeparator\";\r\n\r\nconst SidebarContent = React.forwardRef<HTMLDivElement, React.ComponentProps<\"div\">>(\r\n  ({ className, ...props }, ref) => {\r\n    return (\r\n      <div\r\n        ref={ref}\r\n        data-sidebar=\"content\"\r\n        className={cn(\r\n          \"flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden\",\r\n          className\r\n        )}\r\n        {...props}\r\n      />\r\n    );\r\n  }\r\n);\r\nSidebarContent.displayName = \"SidebarContent\";\r\n\r\nconst SidebarGroup = React.forwardRef<HTMLDivElement, React.ComponentProps<\"div\">>(\r\n  ({ className, ...props }, ref) => {\r\n    return (\r\n      <div\r\n        ref={ref}\r\n        data-sidebar=\"group\"\r\n        className={cn(\"relative flex w-full min-w-0 flex-col p-2\", className)}\r\n        {...props}\r\n      />\r\n    );\r\n  }\r\n);\r\nSidebarGroup.displayName = \"SidebarGroup\";\r\n\r\nconst SidebarGroupLabel = React.forwardRef<\r\n  HTMLDivElement,\r\n  React.ComponentProps<\"div\"> & { asChild?: boolean }\r\n>(({ className, asChild = false, ...props }, ref) => {\r\n  const Comp = asChild ? Slot : \"div\";\r\n\r\n  return (\r\n    <Comp\r\n      ref={ref}\r\n      data-sidebar=\"group-label\"\r\n      className={cn(\r\n        \"duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0\",\r\n        \"group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0\",\r\n        className\r\n      )}\r\n      {...props}\r\n    />\r\n  );\r\n});\r\nSidebarGroupLabel.displayName = \"SidebarGroupLabel\";\r\n\r\nconst SidebarGroupAction = React.forwardRef<\r\n  HTMLButtonElement,\r\n  React.ComponentProps<\"button\"> & { asChild?: boolean }\r\n>(({ className, asChild = false, ...props }, ref) => {\r\n  const Comp = asChild ? Slot : \"button\";\r\n\r\n  return (\r\n    <Comp\r\n      ref={ref}\r\n      data-sidebar=\"group-action\"\r\n      className={cn(\r\n        \"absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0\",\r\n        \"after:absolute after:-inset-2 after:md:hidden\",\r\n        \"group-data-[collapsible=icon]:hidden\",\r\n        className\r\n      )}\r\n      {...props}\r\n    />\r\n  );\r\n});\r\nSidebarGroupAction.displayName = \"SidebarGroupAction\";\r\n\r\nconst SidebarGroupContent = React.forwardRef<HTMLDivElement, React.ComponentProps<\"div\">>(\r\n  ({ className, ...props }, ref) => (\r\n    <div\r\n      ref={ref}\r\n      data-sidebar=\"group-content\"\r\n      className={cn(\"w-full text-sm\", className)}\r\n      {...props}\r\n    />\r\n  )\r\n);\r\nSidebarGroupContent.displayName = \"SidebarGroupContent\";\r\n\r\nconst SidebarMenu = React.forwardRef<HTMLUListElement, React.ComponentProps<\"ul\">>(\r\n  ({ ...props }, ref) => (\r\n    <ul\r\n      ref={ref}\r\n      data-sidebar=\"menu\"\r\n      className={cn(\"flex w-full min-w-0 flex-col gap-1\")}\r\n      {...props}\r\n    />\r\n  )\r\n);\r\nSidebarMenu.displayName = \"SidebarMenu\";\r\n\r\nconst SidebarMenuItem = React.forwardRef<HTMLLIElement, React.ComponentProps<\"li\">>(\r\n  ({ ...props }, ref) => (\r\n    <li ref={ref} data-sidebar=\"menu-item\" className={cn(\"group/menu-items relative\")} {...props} />\r\n  )\r\n);\r\nSidebarMenuItem.displayName = \"SidebarMenuItem\";\r\n\r\nconst sidebarMenuButtonVariants = cva(\r\n  \"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2  active:text-sidebar-accent-foreground disabled:pointer-events-none active:bg-gray-300 disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-gray-200 data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0\",\r\n  {\r\n    variants: {\r\n      variant: {\r\n        default: \"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground\",\r\n        outline:\r\n          \"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]\"\r\n      },\r\n      size: {\r\n        default: \"h-8 text-sm\",\r\n        sm: \"h-7 text-xs\",\r\n        lg: \"h-12 text-sm group-data-[collapsible=icon]:!p-0\",\r\n        xlg: \"h-20 text-sm group-data-[collapsible=icon]:!p-0\"\r\n      }\r\n    },\r\n    defaultVariants: {\r\n      variant: \"default\",\r\n      size: \"default\"\r\n    }\r\n  }\r\n);\r\n\r\nconst SidebarMenuButton = React.forwardRef<\r\n  HTMLButtonElement,\r\n  React.ComponentProps<\"button\"> & {\r\n    asChild?: boolean;\r\n    isActive?: boolean;\r\n    tooltip?: string | React.ComponentProps<typeof TooltipContent>;\r\n  } & VariantProps<typeof sidebarMenuButtonVariants>\r\n>(\r\n  (\r\n    {\r\n      asChild = false,\r\n      isActive = false,\r\n      variant = \"default\",\r\n      size = \"default\",\r\n      tooltip,\r\n      className,\r\n      ...props\r\n    },\r\n    ref\r\n  ) => {\r\n    const Comp = asChild ? Slot : \"button\";\r\n    const { isMobile, state } = useSidebar();\r\n\r\n    const button = (\r\n      <Comp\r\n        ref={ref}\r\n        data-sidebar=\"menu-button\"\r\n        data-size={size}\r\n        data-active={isActive}\r\n        className={cn(sidebarMenuButtonVariants({ variant, size }), className)}\r\n        {...props}\r\n      />\r\n    );\r\n\r\n    if (!tooltip) {\r\n      return button;\r\n    }\r\n\r\n    if (typeof tooltip === \"string\") {\r\n      tooltip = {\r\n        children: tooltip\r\n      };\r\n    }\r\n\r\n    return (\r\n      <Tooltip>\r\n        <TooltipTrigger asChild>{button}</TooltipTrigger>\r\n        <TooltipContent\r\n          side=\"right\"\r\n          align=\"center\"\r\n          hidden={state !== \"collapsed\" || isMobile}\r\n          {...tooltip}\r\n        />\r\n      </Tooltip>\r\n    );\r\n  }\r\n);\r\nSidebarMenuButton.displayName = \"SidebarMenuButton\";\r\n\r\nconst SidebarMenuAction = React.forwardRef<\r\n  HTMLButtonElement,\r\n  React.ComponentProps<\"button\"> & {\r\n    asChild?: boolean;\r\n    showOnHover?: boolean;\r\n  }\r\n>(({ className, asChild = false, showOnHover = false, ...props }, ref) => {\r\n  const Comp = asChild ? Slot : \"button\";\r\n\r\n  return (\r\n    <Comp\r\n      ref={ref}\r\n      data-sidebar=\"menu-action\"\r\n      className={cn(\r\n        \"absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0\",\r\n        // Increases the hit area of the button on mobile.\r\n        \"after:absolute after:-inset-2 after:md:hidden\",\r\n        \"peer-data-[size=sm]/menu-button:top-1\",\r\n        \"peer-data-[size=default]/menu-button:top-1.5\",\r\n        \"peer-data-[size=lg]/menu-button:top-2.5\",\r\n        \"group-data-[collapsible=icon]:hidden\",\r\n        showOnHover &&\r\n          \"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0\",\r\n        className\r\n      )}\r\n      {...props}\r\n    />\r\n  );\r\n});\r\nSidebarMenuAction.displayName = \"SidebarMenuAction\";\r\n\r\nconst SidebarMenuBadge = React.forwardRef<HTMLDivElement, React.ComponentProps<\"div\">>(\r\n  ({ className, ...props }, ref) => (\r\n    <div\r\n      ref={ref}\r\n      data-sidebar=\"menu-badge\"\r\n      className={cn(\r\n        \"absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none\",\r\n        \"peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground\",\r\n        \"peer-data-[size=sm]/menu-button:top-1\",\r\n        \"peer-data-[size=default]/menu-button:top-1.5\",\r\n        \"peer-data-[size=lg]/menu-button:top-2.5\",\r\n        \"group-data-[collapsible=icon]:hidden\",\r\n        className\r\n      )}\r\n      {...props}\r\n    />\r\n  )\r\n);\r\nSidebarMenuBadge.displayName = \"SidebarMenuBadge\";\r\n\r\nconst SidebarMenuSkeleton = React.forwardRef<\r\n  HTMLDivElement,\r\n  React.ComponentProps<\"div\"> & {\r\n    showIcon?: boolean;\r\n  }\r\n>(({ className, showIcon = false, ...props }, ref) => {\r\n  // Random width between 50 to 90%.\r\n  const width = React.useMemo(() => {\r\n    return `${Math.floor(Math.random() * 40) + 50}%`;\r\n  }, []);\r\n\r\n  return (\r\n    <div\r\n      ref={ref}\r\n      data-sidebar=\"menu-skeleton\"\r\n      className={cn(\"rounded-md h-8 flex gap-2 px-2 items-center\", className)}\r\n      {...props}\r\n    >\r\n      {showIcon && <Skeleton className=\"size-4 rounded-md\" data-sidebar=\"menu-skeleton-icon\" />}\r\n      <Skeleton\r\n        className=\"h-4 flex-1 max-w-[--skeleton-width]\"\r\n        data-sidebar=\"menu-skeleton-text\"\r\n        style={\r\n          {\r\n            \"--skeleton-width\": width\r\n          } as React.CSSProperties\r\n        }\r\n      />\r\n    </div>\r\n  );\r\n});\r\nSidebarMenuSkeleton.displayName = \"SidebarMenuSkeleton\";\r\n\r\nconst SidebarMenuSub = React.forwardRef<HTMLUListElement, React.ComponentProps<\"ul\">>(\r\n  ({ className, ...props }, ref) => (\r\n    <ul\r\n      ref={ref}\r\n      data-sidebar=\"menu-sub\"\r\n      className={cn(\r\n        \"mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5\",\r\n        \"group-data-[collapsible=icon]:hidden\",\r\n        className\r\n      )}\r\n      {...props}\r\n    />\r\n  )\r\n);\r\nSidebarMenuSub.displayName = \"SidebarMenuSub\";\r\n\r\nconst SidebarMenuSubItem = React.forwardRef<HTMLLIElement, React.ComponentProps<\"li\">>(\r\n  ({ ...props }, ref) => <li ref={ref} {...props} />\r\n);\r\nSidebarMenuSubItem.displayName = \"SidebarMenuSubItem\";\r\n\r\nconst SidebarMenuSubButton = React.forwardRef<\r\n  HTMLAnchorElement,\r\n  React.ComponentProps<\"a\"> & {\r\n    asChild?: boolean;\r\n    size?: \"sm\" | \"md\";\r\n    isActive?: boolean;\r\n  }\r\n>(({ asChild = false, size = \"md\", isActive, className, ...props }, ref) => {\r\n  const Comp = asChild ? Slot : \"a\";\r\n\r\n  return (\r\n    <Comp\r\n      ref={ref}\r\n      data-sidebar=\"menu-sub-button\"\r\n      data-size={size}\r\n      data-active={isActive}\r\n      className={cn(\r\n        `flex min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-red-500 active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate \r\n        [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground`,\r\n        \"data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground\",\r\n        size === \"sm\" && \"text-xs\",\r\n        size === \"md\" && \"text-sm\",\r\n        \"group-data-[collapsible=icon]:hidden\",\r\n        className\r\n      )}\r\n      {...props}\r\n    />\r\n  );\r\n});\r\nSidebarMenuSubButton.displayName = \"SidebarMenuSubButton\";\r\n\r\nexport {\r\n  Sidebar,\r\n  SidebarContent,\r\n  SidebarFooter,\r\n  SidebarGroup,\r\n  SidebarGroupAction,\r\n  SidebarGroupContent,\r\n  SidebarGroupLabel,\r\n  SidebarHeader,\r\n  SidebarInput,\r\n  SidebarInset,\r\n  SidebarMenu,\r\n  SidebarMenuAction,\r\n  SidebarMenuBadge,\r\n  SidebarMenuButton,\r\n  SidebarMenuItem,\r\n  SidebarMenuSkeleton,\r\n  SidebarMenuSub,\r\n  SidebarMenuSubButton,\r\n  SidebarMenuSubItem,\r\n  SidebarProvider,\r\n  SidebarRail,\r\n  SidebarSeparator,\r\n  SidebarTrigger,\r\n  useSidebar\r\n};\r\n","usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\ui\\skeleton.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\ui\\sonner.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\ui\\switch.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\ui\\table.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\ui\\tabs.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\ui\\textarea.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\ui\\toast.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\ui\\toaster.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\ui\\tooltip.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\update-password-form.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\components\\version-switcher.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\createCRUD.js","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\eslint.config.mjs","messages":[{"ruleId":"import/no-anonymous-default-export","severity":1,"message":"Assign array to a variable before exporting as module default","line":2,"column":1,"nodeType":"ExportDefaultDeclaration","endLine":2,"endColumn":32}],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"﻿import nextVitals from \"eslint-config-next/core-web-vitals\";\nexport default [...nextVitals];\r\n","usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\hooks\\use-mobile.tsx","messages":[{"ruleId":"react-hooks/set-state-in-effect","severity":2,"message":"Error: Calling setState synchronously within an effect can trigger cascading renders\n\nEffects are intended to synchronize state between React and external systems such as manually updating the DOM, state management libraries, or other platform APIs. In general, the body of an effect should do one or both of the following:\n* Update external systems with the latest state from React.\n* Subscribe for updates from some external system, calling setState in a callback function when external state changes.\n\nCalling setState synchronously within an effect body causes cascading renders that can hurt performance, and is not recommended. (https://react.dev/learn/you-might-not-need-an-effect).\n\nD:\\Projects\\delivery\\deliver-us-admin-frontend\\hooks\\use-mobile.tsx:14:5\n  12 |     }\n  13 |     mql.addEventListener(\"change\", onChange)\n> 14 |     setIsMobile(window.innerWidth < MOBILE_BREAKPOINT)\n     |     ^^^^^^^^^^^ Avoid calling setState() directly within an effect\n  15 |     return () => mql.removeEventListener(\"change\", onChange)\n  16 |   }, [])\n  17 |","line":14,"column":5,"nodeType":null,"endLine":14,"endColumn":16}],"suppressedMessages":[],"errorCount":1,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":"import * as React from \"react\"\r\n\r\nconst MOBILE_BREAKPOINT = 768\r\n\r\nexport function useIsMobile() {\r\n  const [isMobile, setIsMobile] = React.useState<boolean | undefined>(undefined)\r\n\r\n  React.useEffect(() => {\r\n    const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`)\r\n    const onChange = () => {\r\n      setIsMobile(window.innerWidth < MOBILE_BREAKPOINT)\r\n    }\r\n    mql.addEventListener(\"change\", onChange)\r\n    setIsMobile(window.innerWidth < MOBILE_BREAKPOINT)\r\n    return () => mql.removeEventListener(\"change\", onChange)\r\n  }, [])\r\n\r\n  return !!isMobile\r\n}\r\n","usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\hooks\\use-toast.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\hooks\\useRouterLang.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\hooks\\useTablePagination.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\i18n\\request.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\i18n\\routing.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\lib\\enums.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\lib\\utils.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\next.config.mjs","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\postcss.config.mjs","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\proxy.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\spell-check.mjs","messages":[{"ruleId":null,"message":"Unused eslint-disable directive (no problems were reported from 'no-console').","line":1,"column":1,"severity":1,"nodeType":null,"fix":{"range":[0,31],"text":" "}}],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":1,"source":"/* eslint-disable no-console */\r\nimport chalk from \"chalk\";\r\nimport { exec, execSync } from \"child_process\";\r\nimport { promisify } from \"util\";\r\n\r\nconst execPromise = promisify(exec);\r\n\r\n// Configure ignore patterns (can be expanded as needed)\r\nconst ignorePatterns = [\r\n  /package\\.json$/i,\r\n  /package-lock\\.json$/i,\r\n  /ar.json$/i, // Ignore Arabic translation files\r\n  /en\\.json$/i, // Ignore Chinese translation files\r\n  /\\.redir$/i // Ignore files ending with .redir\r\n];\r\n/**\r\n * Returns an array of edited file names that are not deleted.\r\n * Uses \"git diff --cached --name-status\" to filter out deleted files.\r\n */\r\nconst getEditedFiles = () => {\r\n  try {\r\n    // Get status and names of staged files\r\n    const output = execSync(\"git diff --cached --name-status\").toString().trim();\r\n    const files = output\r\n      .split(\"\\n\")\r\n      .map(line => {\r\n        const [status, filename] = line.split(/\\s+/);\r\n        // Only include files that are not deleted (status code \"D\")\r\n        return status === \"D\" ? null : filename;\r\n      })\r\n      .filter(file => file); // Remove null or empty values\r\n\r\n    // Filter out files matching the ignore patterns\r\n    return files.filter(file => !ignorePatterns.some(pattern => pattern.test(file)));\r\n  } catch (error) {\r\n    console.error(chalk.red(\"⚠️ Error getting edited files:\"), error);\r\n    process.exit(1);\r\n  }\r\n};\r\n\r\n// Add timestamp to logs\r\nconst getTimestamp = () => chalk.gray(`[${new Date().toLocaleTimeString()}]`);\r\n\r\nconsole.log(chalk.cyan(\"\\n🔍 Starting spell check...\\n\"));\r\n\r\nconst editedFiles = getEditedFiles();\r\n\r\nif (editedFiles.length === 0) {\r\n  console.log(chalk.yellow(\"ℹ️ No edited files to check.\"));\r\n  process.exit(0);\r\n}\r\n\r\nconsole.log(chalk.cyan(`📝 Checking ${editedFiles.length} file(s)...\\n`));\r\n\r\n// Process all files concurrently\r\nconst checkFile = async (file, index, totalFiles) => {\r\n  try {\r\n    await execPromise(`npx cspell --no-progress --no-summary \"${file}\"`);\r\n    console.log(\r\n      `${getTimestamp()} ${chalk.green(\"✓\")} ${chalk.green(`[${index + 1}/${totalFiles}]`)} ${file}`\r\n    );\r\n    return { file, ok: true };\r\n  } catch (error) {\r\n    console.error(\r\n      `${getTimestamp()} ${chalk.red(\"✗\")} ${chalk.red(`[${index + 1}/${totalFiles}]`)} ${file}`\r\n    );\r\n    console.error(chalk.yellow(error.stdout || error.message));\r\n    return { file, ok: false };\r\n  }\r\n};\r\n\r\n(async () => {\r\n  const results = await Promise.allSettled(\r\n    editedFiles.map((file, index) => checkFile(file, index, editedFiles.length))\r\n  );\r\n\r\n  const errorResults = results.filter(res => res.status === \"fulfilled\" && res.value.ok === false);\r\n\r\n  console.log(\"\\n\" + \"=\".repeat(50) + \"\\n\");\r\n  if (errorResults.length > 0) {\r\n    console.error(\r\n      chalk.red(`❌ Spell check failed with ${errorResults.length} file(s) having errors`)\r\n    );\r\n    process.exit(1);\r\n  } else {\r\n    console.log(chalk.green(\"✅ Spell check passed successfully!\"));\r\n  }\r\n})();\r\n","usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\tailwind.config.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\types.d.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\utils\\ChangeTimeFormat.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\utils\\FormActions.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\utils\\GlobalLoading.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\utils\\actions\\getModuleType.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\utils\\actions\\handleGetParams.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\utils\\camel-pad.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\utils\\cells.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\utils\\changeTimeFormatServer.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\utils\\config.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\utils\\extractFormDefaultInputs.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\utils\\extractFormInputsLanding.ts","messages":[{"ruleId":null,"message":"Unused eslint-disable directive (no problems were reported from '@typescript-eslint/no-explicit-any').","line":8,"column":5,"severity":1,"nodeType":null,"fix":{"range":[207,269],"text":" "}}],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":1,"source":"import type { FormInput } from \"@/components/common/Form/CustomFormTypes.types\";\r\nexport function extractFormNameInputsLanding({\r\n    inputs,\r\n    data,\r\n    dirtyFields\r\n}: {\r\n    inputs: FormInput[];\r\n    // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n    data: any;\r\n    dirtyFields?: Record<string, boolean | boolean[]> | undefined;\r\n}): FormData | Record<string, unknown> {\r\n    const formdata = new FormData();\r\n    const isFormData = inputs.some(\r\n        input =>\r\n            input.type == \"file\" ||\r\n            input.type == \"img\" ||\r\n            input.type == \"video\"\r\n    );\r\n    if (isFormData) {\r\n        Object.keys(data).map((item: string) => {\r\n            if (dirtyFields && !dirtyFields[item]) return;\r\n            else if (data[item] == undefined) return;\r\n            if (inputs.find(input => input.name === item.slice(0, -2))?.multiLang) {\r\n                // if (formdata.has(`${item.slice(0, -2)}`)) return;\r\n                formdata.append(`${item}`, data[`${item}`]);\r\n            } else if (\r\n                data[item] &&\r\n                (data[item][0] instanceof File ||\r\n                    data[item][0] instanceof Blob ||\r\n                    (typeof data[item][0] == \"string\" && data[item][0]?.includes(\"uploads/\")))\r\n            ) {\r\n                data[item].forEach((file: File | Blob | string) => {\r\n                    if (file instanceof File || file instanceof Blob) {\r\n                        formdata.append(item, file);\r\n                    } else if (typeof file === \"string\" && file.includes(\"uploads/\")) {\r\n                        // formdata.append(item, file);\r\n                    }\r\n                });\r\n            } else formdata.append(item, data[item]);\r\n        });\r\n        return formdata;\r\n    } else {\r\n        const formdata: Record<\r\n            string,\r\n            | {\r\n                nameAr: string;\r\n                nameEn: string;\r\n            }\r\n            | string\r\n            | boolean\r\n        > = {};\r\n        Object.keys(data).map((item: string) => {\r\n            if (dirtyFields && !dirtyFields[item]) return;\r\n            if (inputs.find(input => input.name === item.slice(0, -2))?.multiLang) {\r\n                formdata[`${item}`] = data[`${item}`];\r\n            } else if (typeof data[item] === \"boolean\") {\r\n                formdata[item] = Boolean(data[item]);\r\n            } else formdata[item as keyof typeof formdata] = data[item];\r\n            // isNaN(Number(data[item]))\r\n            //  ? data[item]\r\n            //  : Number(data[item]);\r\n        });\r\n        return formdata;\r\n    }\r\n}\r\n","usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\utils\\extractFormNameInputs.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\utils\\extractSearchParams.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\utils\\extractTableHeaderFromRes.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\utils\\getBgColorOfStatus.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\utils\\getReciverMailNavigations.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\utils\\isStringStaus.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\utils\\localizedField.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\utils\\middleware\\auth-redirect.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\utils\\nip.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\utils\\options\\RecipientOptions.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\utils\\options\\bannerTypeOptions.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\utils\\options\\booleanOptions.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\utils\\options\\discountTypeOptions.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\utils\\options\\driverCompanyStatus.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\utils\\options\\genderOptions.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\utils\\options\\orderStatusFlow.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\utils\\options\\priorityOptions.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\utils\\options\\promotionOptions.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\utils\\options\\roleTypes.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\utils\\options\\statusTypeOptions.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\utils\\options\\typesOptions.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\utils\\phone.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\utils\\redirectServer.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\utils\\routes.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\utils\\routing\\handleLink.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\utils\\routing\\handleLinkClient.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\utils\\viewLinks\\dispatchManagement.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\utils\\viewLinks\\moduleViewLinks.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\utils\\viewLinks\\settingsViewLinks.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\utils\\viewLinks\\transactionsReportsViewLinks.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\utils\\viewLinks\\userViewLinks.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\utils\\viewLinks\\viewLinks.tsx","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\validations\\Date.schema.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\validations\\Link.schema.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\validations\\Number.schema.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\validations\\PhoneInputSchema.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\validations\\Select.schema.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\validations\\String.schemas.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"D:\\Projects\\delivery\\deliver-us-admin-frontend\\validations\\file.schema.ts","messages":[],"suppressedMessages":[],"errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]}]