PageSourceSearch

https://airawath.com/_next/static/chunks/7346.d6033eb0a56b2420.js

js airawath.com collected 2026-10-02 01:23:07 UTC 2,553 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7346],{17346:function(a,e,t){t.r(e);var i=t(57437),l=t(2265),s=t(31691),n=t(35791),r=t(79507),o=t(5002),c=t(77468),d=t(9026),m=t(76631),h=t(7261);t(2648);var u=t(29501),p=t(34422),v=t(95713),f=t(57580),x=t(67855);e.default=a=>{var e;let{chat:t,open:g,onClose:N,airaFlag:b,onSessionUpdate:y}=a,[w,j]=(0,l.useState)(!1),C=p.Ry().shape({chatName:p.Z_().required("Chat name is required").max(30,"Chat name must be 30 characters or less").min(1,"Chat name cannot be empty").transform(a=>null==a?void 0:a.trim())}),{control:Z,handleSubmit:k,formState:{errors:_}}=(0,u.cI)({defaultValues:{chatName:(null==t?void 0:t.chat_name)||""},resolver:(0,v.X)(C),mode:"onBlur"}),z=(0,s.Z)(),S=async a=>{try{var e,i,l,s;j(!0);let n=await (0,f.aG)(t.uuid,a,b);return h.Am.success((null==n?void 0:null===(e=n.data)||void 0===e?void 0:e.message)||"Chat name updated successfully!",{position:"top-right"}),n&&N(),y&&y(),(null===(i=window.sessionManagement)||void 0===i?void 0:i.fetchSessionList)&&await window.sessionManagement.fetchSessionList(),(null==n?void 0:null===(s=n.data)||void 0===s?void 0:null===(l=s.data)||void 0===l?void 0:l.chat_name)||a}catch(e){return h.Am.error("Failed to update chat name. Please try again.",{position:"top-right"}),a}finally{j(!1)}},R=async a=>{let e=a.chatName.trim();await S(e)&&N()};return(0,i.jsxs)(n.Z,{maxWidth:"xs",fullWidth:!0,open:g,onClose:N,"aria-labelledby":"form-dialog-title",children:[(0,i.jsxs)(r.Z,{className:"p-6 text-center font-medium relative",id:"form-dialog-title",children:[(0,i.jsx)("div",{onClick:N,className:"cursor-pointer absolute right-1 -translate-x-1/2 w-6 h-6",children:(0,i.jsx)("i",{className:"tabler-x absolute right-2 top-2 text-[#aaaaaa]"})}),(0,i.jsx)(o.Z,{variant:"h6",sx:{color:z.palette.primary.main},children:"Rename this chat?"})]}),(0,i.jsx)(c.Z,{className:"px-6",children:(0,i.jsxs)("form",{onSubmit:k(R),children:[(0,i.jsx)(x.Z,{...Z.register("chatName"),placeholder:"Enter chat name",required:!0,fullWidth:!0,disabled:w,size:"small",error:!!_.chatName,helperText:null===(e=_.chatName)||void 0===e?void 0:e.message}),(0,i.jsxs)(d.Z,{className:"dialog-actions-dense p-0 pt-6",children:[(0,i.jsx)(m.Z,{variant:"tonal",size:"large",color:"secondary",className:"w-full capitalize",sx:{color:z.palette.primary.main,backgroundColor:"#f5f5f5"},onClick:N,children:"Cancel"}),(0,i.jsx)(m.Z,{disabled:w,variant:"contained",size:"large",className:"w-full capitalize",type:"submit",children:w?"Renaming...":"Rename"})]})]})})]})}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.