PageSourceSearch

https://www.sssd.co.kr/m/assets/chat-badge-De-gG0HS.js

js sssd.co.kr collected 2026-09-24 09:52:52 UTC 2,841 bytes, 1 lines download raw bytes

1import{n as e}from"./user-store-BCU9q91e.js";import{a as t,o as n,s as r}from"./client-DRnc_qrR.js";async function i(e,t){return n(`ReqChatList`,{userId:e,masterAuthorId:t??null})}async function a(e,t,r){return n(`ReqChattingDetail`,{userId:e,msgUserId:t,masterAuthorId:r??null})}async function o(e){return t(`ReqChattingMsg`,{messageText:e.messageText??null,messageTime:e.messageTime,imgUrl:e.imgUrl??null,imgWidth:e.imgWidth??null,imgHeight:e.imgHeight??null,imgJsonData:e.imgJsonData??null,myUserId:e.myUserId,myUserProfileUrl:e.myUserProfileUrl??null,myUserName:e.myUserName??null,youUserId:e.youUserId,masterAuthorId:e.masterAuthorId??null})}async function s(e){return n(`ReqChattingOtherInfo`,{senderUserId:e.senderUserId,receiveUserId:e.receiveUserId,masterAuthorId:e.masterAuthorId??null,classIdx:e.classIdx??null,itemIdx:e.itemIdx??null,paymentIdx:e.paymentIdx??null,chatType:e.chatType??null})}async function c(e){return n(`ReqAuthorAcceptSmartReservation`,{authorId:e.authorId,masterAuthorId:e.masterAuthorId??null,toUserId:e.toUserId,classIdx:Number(e.classIdx),lessonDate:Number(e.lessonDate),numberOf:Number(e.numberOf)})}async function l(e,t,r,i){return n(`ReqChatMessageRead`,{userId:e,msgUserId:t,readMsgTime:r,masterAuthorId:i??null})}async function u(e){return r(`chatting`,e)}async function d(e){return n(`ReqGetStoreItemReturnInfo`,{paymentIdx:Number(e)})}async function f(e,t,r){return n(`ReqLeaveChattingRoom`,{userId:e,msgUserId:t,masterAuthorId:r??null})}var p=`sssd_chat_read`;function m(e){return`${p}:${e??`guest`}`}function h(e){try{let t=localStorage.getItem(m(e));if(!t)return{};let n=JSON.parse(t);return n&&typeof n==`object`?n:{}}catch{return{}}}function g(e,t,n){let r=String(t??``).trim();if(!(!r||!Number.isFinite(n)||n<=0))try{let t=h(e);if((t[r]??0)>=n)return;t[r]=n,localStorage.setItem(m(e),JSON.stringify(t))}catch{}}function _(e,t,n){let r=String(t??``).trim();return!r||!Number.isFinite(n)||n<=0?!1:(h(e)[r]??0)>=n}function v(e){return e===!0||e===`1`||e===`Y`||e===`true`}function y(e){return String(e.userIdx||e.msgUserId||``)}function b(e){let t=e.modifyDate||e.messageTime;if(t==null||t===``)return 0;let n=typeof t==`number`||/^\d+$/.test(String(t))?Number(t):new Date(String(t)).getTime();return Number.isFinite(n)?n:0}function x(t){if(v(t.isRead)||v(t.isMyMessage))return!1;let n=e.getState().userId;return!_(n,y(t),b(t))}function S(e){return e?.length?e.reduce((e,t)=>x(t)?e+1:e,0):0}async function C(){let{isLoggedIn:t,userId:n,masterUserId:r,setUnreadChatCount:a}=e.getState();if(!t||!n){a(0);return}try{a(S((await i(n,r??void 0))?.chatMessageList))}catch{}}function w(){let t=e.persist;if(!t||t.hasHydrated())return C(),()=>{};let n=t.onFinishHydration(()=>{C()});return()=>n?.()}export{g as a,i as c,l as d,o as f,x as i,d as l,u as m,C as n,c as o,s as p,S as r,a as s,w as t,f as u};

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.