1import{r as S,n as c,j as s,a as e}from"./index.7613290f.js";import{s as y}from"./[email protected]";import{B}from"./Button.5e3edbef.js";import{S as N}from"./SectionTitle.851f4667.js";import{T as f}from"./Title.93c85d07.js";import{u as C}from"./index.esm.28ca4d4f.js";import{C as F}from"./Confirm.1238800a.js";import{A as M}from"./APIOther.d2eeae1a.js";import"./appInsights.79eb1af4.js";import"./Button.module.5bbc35fb.js";const w="/assets/[email protected]";function D(){const t=sessionStorage.getItem("token"),o=sessionStorage.getItem("userName"),a=sessionStorage.getItem("groupName"),{PostOtherSentMessageTeams:n}=M({tokenParam:t}),[u,d]=S.exports.useState(!1),{handleSubmit:g,register:p,reset:h}=C();async function A(r){if(!await F({Message:"\u78BA\u5B9A\u8981\u9001\u51FA\u55CE?"}))return;const{messagebody:l}=r,x={UserName:o,messagebody:l};d(!0);try{const{result:m}=await n({UnitName:a,Params:x});if(!m)return c.error("\u8A0A\u606F\u9001\u51FA\u5931\u6557");c.success("\u8A0A\u606F\u5DF2\u9001\u51FA"),h()}catch(m){console.log(m)}finally{d(!1)}}function b(r){console.log(r);let i=`\u8ACB\u78BA\u8A8D\u4E0B\u5217\u6B04\u4F4D 2`;for(const l in r)i+=`${r[l].message} 3`;c.error(i)}return{isLoading:u,handleSubmit:g,register:p,HandlePostOtherSentMessageTeams:A,HandleSubmitErrors:b}}function U(){const{isLoading:t,handleSubmit:o,register:a,HandlePostOtherSentMessageTeams:n,HandleSubmitErrors:u}=D();return s("div",{className:"MDMCall",children:[e(N,{children:"\u547C\u53EB"}),s("form",{className:"w-full grid grid-cols-2 gap-x-[6%]",onSubmit:o(n,u),children:[s("div",{className:"w-full",children:[e(f,{children:"\u547C\u53EB\u8A2D\u5099\u7D44\u9577"}),s("div",{className:"w-full flex justify-center items-center flex-col gap-y-2.5 border-moe-grey border-1 h-[480px]",children:[e("img",{src:w,className:"h-[150px] w-[150px]"}),e("span",{children:"\u547C\u53EB"})]})]}),s("div",{className:"w-full",children:[e(f,{children:"\u7559\u8A00"}),s("div",{className:"w-full flex justify-center items-center flex-col gap-y-5 border-moe-grey border-1 h-[480px] p-5",children:[e("textarea",{type:"text",disabled:t,className:"w-full flex-1 border-1 border-moe-blue3 rounded resize-none",...a("messagebody",{required:"\u8ACB\u8F38\u5165\u8A0A\u606F"})}),s(B,{type:"submit",disabled:t,children:[e("img",{src:y}),e("span",{children:"\u9001\u51FA"})]})]})]})]})]})}export{U as default};
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.