403Webshell
Server IP : 35.80.110.71  /  Your IP : 216.73.216.221
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/elite-events-storybook/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/elite-events-storybook/5657.6291ead4.iframe.bundle.js
"use strict";(self.webpackChunkelite_events_nextjs=self.webpackChunkelite_events_nextjs||[]).push([[5657],{"./src/components/features/support/SupportPortal/SurveyForm.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>SurveyForm});var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/next/dist/compiled/react/jsx-runtime.js"),react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/next/dist/compiled/react/index.js"),_constants_support__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/constants/support.ts"),_lib_logging_clientLogger__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/lib/logging/clientLogger.ts"),_components_ui_icons__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/components/ui/icons/index.ts");function SurveyForm({ticketId,onSubmitted}){const[rating,setRating]=(0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null),[hoveredRating,setHoveredRating]=(0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null),[feedback,setFeedback]=(0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(""),[wasHelpful,setWasHelpful]=(0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null),[isSubmitting,setIsSubmitting]=(0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(!1),[isSubmitted,setIsSubmitted]=(0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(!1),[error,setError]=(0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null);return isSubmitted?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:"bg-green-50 border border-green-200 rounded-lg p-6 mb-6 text-center",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components_ui_icons__WEBPACK_IMPORTED_MODULE_4__.In,{name:"check-circle",size:48,className:"mx-auto mb-4 text-green-500"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("h3",{className:"text-lg font-semibold text-green-800 mb-2",children:"Thank you for your feedback!"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("p",{className:"text-green-600",children:"Your feedback helps us improve our support."})]}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-6 mb-6",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"How was your experience?"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("p",{className:"text-gray-600 mb-4",children:"We'd love to hear your feedback about this support interaction."}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("form",{onSubmit:async e=>{if(e.preventDefault(),null!==rating){setIsSubmitting(!0),setError(null);try{const response=await fetch(`/api/support/tickets/${ticketId}/survey`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({rating,feedback:feedback.trim()||void 0,wasHelpful})});if(!response.ok){const data=await response.json();throw new Error(data.error||"Failed to submit survey")}setIsSubmitted(!0),onSubmitted?.()}catch(err){_lib_logging_clientLogger__WEBPACK_IMPORTED_MODULE_3__.q.error("Survey submission error",err instanceof Error?err:new Error(String(err)),{ticketId}),setError(err instanceof Error?err.message:"Failed to submit survey")}finally{setIsSubmitting(!1)}}},className:"space-y-4",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Rate your experience"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:"flex gap-1",children:[1,2,3,4,5].map(value=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("button",{type:"button",onClick:()=>setRating(value),onMouseEnter:()=>setHoveredRating(value),onMouseLeave:()=>setHoveredRating(null),className:"p-1 focus:outline-none","aria-label":`Rate ${value} stars`,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components_ui_icons__WEBPACK_IMPORTED_MODULE_4__.In,{name:(null!==hoveredRating?value<=hoveredRating:value<=(rating||0))?"star":"star-outline",size:32,className:"transition-colors "+((null!==hoveredRating?value<=hoveredRating:value<=(rating||0))?"text-yellow-400":"text-gray-300")})},value))}),(rating||hoveredRating)&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("p",{className:"text-sm text-gray-600 mt-1",children:_constants_support__WEBPACK_IMPORTED_MODULE_2__._d[hoveredRating||rating||0]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Was your issue resolved?"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:"flex gap-4",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("button",{type:"button",onClick:()=>setWasHelpful(!0),className:`\n                px-4 py-2 rounded-lg border transition-colors\n                ${!0===wasHelpful?"bg-green-100 border-green-500 text-green-700":"border-gray-300 text-gray-600 hover:bg-gray-50"}\n              `,children:"Yes"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("button",{type:"button",onClick:()=>setWasHelpful(!1),className:`\n                px-4 py-2 rounded-lg border transition-colors\n                ${!1===wasHelpful?"bg-red-100 border-red-500 text-red-700":"border-gray-300 text-gray-600 hover:bg-gray-50"}\n              `,children:"No"})]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("label",{htmlFor:"feedback",className:"block text-sm font-medium text-gray-700 mb-1",children:"Additional feedback (optional)"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("textarea",{id:"feedback",value:feedback,onChange:e=>setFeedback(e.target.value),rows:3,className:"   w-full px-4 py-2 border border-gray-300 rounded-lg   focus:outline-none focus:ring-2 focus:ring-blue-500   resize-none   ",placeholder:"Tell us more about your experience..."})]}),error&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:"text-sm text-red-600",children:error}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("button",{type:"submit",disabled:null===rating||isSubmitting,className:"   px-6 py-2 bg-blue-600 text-white rounded-lg   hover:bg-blue-700 transition-colors   disabled:bg-gray-300 disabled:cursor-not-allowed   ",children:isSubmitting?"Submitting...":"Submit Feedback"})]})]})}},"./src/constants/support.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{F1:()=>MESSAGE_SENDER_CONFIG,Je:()=>TICKET_CATEGORY_CONFIG,Lm:()=>TICKET_STATUS_CONFIG,_d:()=>RATING_LABELS,fh:()=>TICKET_PRIORITY_CONFIG,iW:()=>CHATBOT});var _types_support__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./src/types/support.ts");const TICKET_STATUS_CONFIG={[_types_support__WEBPACK_IMPORTED_MODULE_0__.Hs.OPEN]:{label:"Open",color:"text-blue-700",bgColor:"bg-blue-100",description:"Ticket is awaiting initial response"},[_types_support__WEBPACK_IMPORTED_MODULE_0__.Hs.IN_PROGRESS]:{label:"In Progress",color:"text-yellow-700",bgColor:"bg-yellow-100",description:"Agent is actively working on this ticket"},[_types_support__WEBPACK_IMPORTED_MODULE_0__.Hs.AWAITING_CUSTOMER]:{label:"Awaiting Customer",color:"text-orange-700",bgColor:"bg-orange-100",description:"Waiting for customer response"},[_types_support__WEBPACK_IMPORTED_MODULE_0__.Hs.AWAITING_AGENT]:{label:"Awaiting Agent",color:"text-purple-700",bgColor:"bg-purple-100",description:"Waiting for agent response"},[_types_support__WEBPACK_IMPORTED_MODULE_0__.Hs.RESOLVED]:{label:"Resolved",color:"text-green-700",bgColor:"bg-green-100",description:"Issue has been resolved"},[_types_support__WEBPACK_IMPORTED_MODULE_0__.Hs.CLOSED]:{label:"Closed",color:"text-gray-700",bgColor:"bg-gray-100",description:"Ticket is closed"},[_types_support__WEBPACK_IMPORTED_MODULE_0__.Hs.CANCELLED]:{label:"Cancelled",color:"text-red-700",bgColor:"bg-red-100",description:"Ticket was cancelled"}},TICKET_PRIORITY_CONFIG={[_types_support__WEBPACK_IMPORTED_MODULE_0__.LH.LOW]:{label:"Low",color:"text-gray-600",bgColor:"bg-gray-100",icon:"arrow-down",order:1},[_types_support__WEBPACK_IMPORTED_MODULE_0__.LH.MEDIUM]:{label:"Medium",color:"text-blue-600",bgColor:"bg-blue-100",icon:"minus",order:2},[_types_support__WEBPACK_IMPORTED_MODULE_0__.LH.HIGH]:{label:"High",color:"text-orange-600",bgColor:"bg-orange-100",icon:"arrow-up",order:3},[_types_support__WEBPACK_IMPORTED_MODULE_0__.LH.URGENT]:{label:"Urgent",color:"text-red-600",bgColor:"bg-red-100",icon:"alert-triangle",order:4}},TICKET_CATEGORY_CONFIG={[_types_support__WEBPACK_IMPORTED_MODULE_0__.Rm.ORDER_ISSUE]:{label:"Order Issue",icon:"package",description:"Problems with your order"},[_types_support__WEBPACK_IMPORTED_MODULE_0__.Rm.PRODUCT_INQUIRY]:{label:"Product Inquiry",icon:"help-circle",description:"Questions about products"},[_types_support__WEBPACK_IMPORTED_MODULE_0__.Rm.SHIPPING]:{label:"Shipping",icon:"truck",description:"Shipping and delivery questions"},[_types_support__WEBPACK_IMPORTED_MODULE_0__.Rm.RETURNS_REFUNDS]:{label:"Returns & Refunds",icon:"refresh-cw",description:"Return or refund requests"},[_types_support__WEBPACK_IMPORTED_MODULE_0__.Rm.PAYMENT]:{label:"Payment",icon:"credit-card",description:"Payment and billing issues"},[_types_support__WEBPACK_IMPORTED_MODULE_0__.Rm.ACCOUNT]:{label:"Account",icon:"user",description:"Account-related issues"},[_types_support__WEBPACK_IMPORTED_MODULE_0__.Rm.TECHNICAL]:{label:"Technical",icon:"settings",description:"Technical problems"},[_types_support__WEBPACK_IMPORTED_MODULE_0__.Rm.FEEDBACK]:{label:"Feedback",icon:"message-square",description:"General feedback or suggestions"},[_types_support__WEBPACK_IMPORTED_MODULE_0__.Rm.OTHER]:{label:"Other",icon:"more-horizontal",description:"Other inquiries"}},MESSAGE_SENDER_CONFIG={[_types_support__WEBPACK_IMPORTED_MODULE_0__.$h.CUSTOMER]:{label:"Customer",color:"text-blue-700",bgColor:"bg-blue-50"},[_types_support__WEBPACK_IMPORTED_MODULE_0__.$h.AGENT]:{label:"Support Agent",color:"text-green-700",bgColor:"bg-green-50"},[_types_support__WEBPACK_IMPORTED_MODULE_0__.$h.SYSTEM]:{label:"System",color:"text-gray-700",bgColor:"bg-gray-50"},[_types_support__WEBPACK_IMPORTED_MODULE_0__.$h.BOT]:{label:"Assistant",color:"text-purple-700",bgColor:"bg-purple-50"}},CHATBOT=(_types_support__WEBPACK_IMPORTED_MODULE_0__.LH.URGENT,_types_support__WEBPACK_IMPORTED_MODULE_0__.LH.HIGH,_types_support__WEBPACK_IMPORTED_MODULE_0__.LH.MEDIUM,_types_support__WEBPACK_IMPORTED_MODULE_0__.LH.LOW,{maxSuggestedArticles:3,minMatchScore:.3,quickActions:[{id:"track_order",label:"Track Order",icon:"package"},{id:"view_faq",label:"View FAQ",icon:"book-open"},{id:"create_ticket",label:"Create Ticket",icon:"ticket"},{id:"contact_agent",label:"Contact Agent",icon:"headphones"}],welcomeMessage:"Hello! I'm here to help. You can ask me a question, or choose one of the options below.",fallbackMessage:"I'm sorry, I couldn't find an answer to your question. Would you like to create a support ticket to speak with one of our agents?"}),RATING_LABELS={1:"Very Poor",2:"Poor",3:"Average",4:"Good",5:"Excellent"};_types_support__WEBPACK_IMPORTED_MODULE_0__.Hs.OPEN,_types_support__WEBPACK_IMPORTED_MODULE_0__.Hs.IN_PROGRESS,_types_support__WEBPACK_IMPORTED_MODULE_0__.Hs.AWAITING_CUSTOMER,_types_support__WEBPACK_IMPORTED_MODULE_0__.Hs.RESOLVED,_types_support__WEBPACK_IMPORTED_MODULE_0__.Hs.CANCELLED,_types_support__WEBPACK_IMPORTED_MODULE_0__.Hs.IN_PROGRESS,_types_support__WEBPACK_IMPORTED_MODULE_0__.Hs.AWAITING_CUSTOMER,_types_support__WEBPACK_IMPORTED_MODULE_0__.Hs.AWAITING_AGENT,_types_support__WEBPACK_IMPORTED_MODULE_0__.Hs.RESOLVED,_types_support__WEBPACK_IMPORTED_MODULE_0__.Hs.CANCELLED,_types_support__WEBPACK_IMPORTED_MODULE_0__.Hs.AWAITING_CUSTOMER,_types_support__WEBPACK_IMPORTED_MODULE_0__.Hs.IN_PROGRESS,_types_support__WEBPACK_IMPORTED_MODULE_0__.Hs.AWAITING_AGENT,_types_support__WEBPACK_IMPORTED_MODULE_0__.Hs.RESOLVED,_types_support__WEBPACK_IMPORTED_MODULE_0__.Hs.CLOSED,_types_support__WEBPACK_IMPORTED_MODULE_0__.Hs.CANCELLED,_types_support__WEBPACK_IMPORTED_MODULE_0__.Hs.AWAITING_AGENT,_types_support__WEBPACK_IMPORTED_MODULE_0__.Hs.IN_PROGRESS,_types_support__WEBPACK_IMPORTED_MODULE_0__.Hs.AWAITING_CUSTOMER,_types_support__WEBPACK_IMPORTED_MODULE_0__.Hs.RESOLVED,_types_support__WEBPACK_IMPORTED_MODULE_0__.Hs.CANCELLED,_types_support__WEBPACK_IMPORTED_MODULE_0__.Hs.RESOLVED,_types_support__WEBPACK_IMPORTED_MODULE_0__.Hs.CLOSED,_types_support__WEBPACK_IMPORTED_MODULE_0__.Hs.IN_PROGRESS,_types_support__WEBPACK_IMPORTED_MODULE_0__.Hs.CLOSED,_types_support__WEBPACK_IMPORTED_MODULE_0__.Hs.OPEN,_types_support__WEBPACK_IMPORTED_MODULE_0__.Hs.CANCELLED},"./src/types/support.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{$h:()=>MessageSenderType,Hs:()=>TicketStatus,LH:()=>TicketPriority,Rm:()=>TicketCategory});var TicketStatus=function(TicketStatus){return TicketStatus.OPEN="OPEN",TicketStatus.IN_PROGRESS="IN_PROGRESS",TicketStatus.AWAITING_CUSTOMER="AWAITING_CUSTOMER",TicketStatus.AWAITING_AGENT="AWAITING_AGENT",TicketStatus.RESOLVED="RESOLVED",TicketStatus.CLOSED="CLOSED",TicketStatus.CANCELLED="CANCELLED",TicketStatus}({}),TicketPriority=function(TicketPriority){return TicketPriority.LOW="LOW",TicketPriority.MEDIUM="MEDIUM",TicketPriority.HIGH="HIGH",TicketPriority.URGENT="URGENT",TicketPriority}({}),TicketCategory=function(TicketCategory){return TicketCategory.ORDER_ISSUE="ORDER_ISSUE",TicketCategory.PRODUCT_INQUIRY="PRODUCT_INQUIRY",TicketCategory.SHIPPING="SHIPPING",TicketCategory.RETURNS_REFUNDS="RETURNS_REFUNDS",TicketCategory.PAYMENT="PAYMENT",TicketCategory.ACCOUNT="ACCOUNT",TicketCategory.TECHNICAL="TECHNICAL",TicketCategory.FEEDBACK="FEEDBACK",TicketCategory.OTHER="OTHER",TicketCategory}({}),MessageSenderType=function(MessageSenderType){return MessageSenderType.CUSTOMER="CUSTOMER",MessageSenderType.AGENT="AGENT",MessageSenderType.SYSTEM="SYSTEM",MessageSenderType.BOT="BOT",MessageSenderType}({})}}]);

Youez - 2016 - github.com/yon3zu
LinuXploit