PageSourceSearch

https://rosely.ai/_next/static/chunks/6463.91ac9f581827934e.js

js rosely.ai collected 2026-10-05 12:33:54 UTC 3,962 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6463],{76463:(e,r,t)=>{t.r(r),t.d(r,{default:()=>d});var a=t(95155),n=t(12115);function d({isOpen:e,warningId:r,onAcknowledged:t,apiBaseUrl:d="",getAuthToken:s}){let[o,i]=(0,n.useState)(!1),[l,c]=(0,n.useState)(!1),[m,u]=(0,n.useState)(null),x=(0,n.useRef)(null);if((0,n.useEffect)(()=>{e&&(i(!1),u(null),requestAnimationFrame(()=>x.current?.focus()))},[e,r]),!e)return null;let b=async()=>{if(o&&!l&&r){c(!0),u(null);try{let e=s?s():localStorage.getItem("access_token"),a=await fetch(`${d}/api/v1/moderation/warnings/${r}/acknowledge`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:e?`Bearer ${e}`:""}});if(!a.ok){let e=await a.json().catch(()=>({}));throw Error(e.detail||"Failed to acknowledge warning.")}t()}catch(e){u(e.message||"An error occurred. Please try again.")}finally{c(!1)}}};return(0,a.jsxs)("div",{className:"modal-viewport-safe fixed inset-0 flex items-center justify-center z-[10000] p-4 sm:p-6 overflow-y-auto motion-safe:animate-in motion-safe:fade-in motion-safe:duration-200",role:"dialog","aria-modal":"true","aria-labelledby":"moderation-warning-title","aria-describedby":"moderation-warning-description",children:[(0,a.jsx)("div",{className:"fixed inset-0 bg-black/80 backdrop-blur-md transition-opacity"}),(0,a.jsxs)("div",{className:"relative bg-white dark:bg-zinc-900 border border-red-500/40 dark:border-red-500/50 rounded-3xl p-6 sm:p-8 max-w-md w-full shadow-2xl z-10 text-center transform transition-all animate-in zoom-in-95 duration-200 my-auto",children:[(0,a.jsx)("div",{className:"w-16 h-16 sm:w-20 sm:h-20 rounded-full bg-red-100 dark:bg-red-950/70 border-2 border-red-500/50 dark:border-red-500/70 text-red-600 dark:text-red-400 mx-auto mb-4 flex items-center justify-center shadow-lg shadow-red-500/20",children:(0,a.jsx)("svg",{className:"w-8 h-8 sm:w-10 sm:h-10",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),(0,a.jsx)("h3",{id:"moderation-warning-title",className:"text-xl sm:text-2xl font-bold text-gray-900 dark:text-white mb-3",children:"This chat was closed for a safety violation"}),(0,a.jsx)("p",{id:"moderation-warning-description",className:"text-xs sm:text-sm text-gray-600 dark:text-zinc-300 mb-5 leading-relaxed",children:"A message in your previous chat violated Rosely’s safety rules. That chat has been closed, and a new session has been created. Please review and acknowledge this warning before continuing."}),m&&(0,a.jsx)("div",{className:"mb-4 p-3 bg-red-50 dark:bg-red-950/50 border border-red-200 dark:border-red-900 rounded-xl text-xs text-red-700 dark:text-red-300 text-left",children:m}),(0,a.jsxs)("label",{className:"flex items-start gap-3 p-3.5 bg-gray-50 dark:bg-zinc-800/70 rounded-2xl border border-gray-200 dark:border-zinc-700/60 text-left cursor-pointer mb-6 hover:bg-gray-100 dark:hover:bg-zinc-800 transition",children:[(0,a.jsx)("input",{ref:x,type:"checkbox",checked:o,onChange:e=>i(e.target.checked),className:"mt-0.5 w-4 h-4 rounded text-[#DE0D79] focus:ring-[#DE0D79] border-gray-300 dark:border-zinc-600 dark:bg-zinc-900 cursor-pointer"}),(0,a.jsx)("span",{className:"text-xs sm:text-sm font-medium text-gray-800 dark:text-zinc-200 leading-snug",children:"I have read and understood Rosely’s safety rules."})]}),(0,a.jsx)("button",{type:"button",disabled:!o||l,onClick:b,className:`w-full py-3.5 rounded-full font-bold transition text-sm shadow-md cursor-pointer ${o&&!l?"bg-[#DE0D79] hover:bg-[#c40b6a] active:scale-[0.98] text-white":"bg-gray-200 dark:bg-zinc-800 text-gray-400 dark:text-zinc-500 cursor-not-allowed"}`,children:l?"Acknowledging...":"I understand and continue"})]})]})}}}]);
2//# sourceMappingURL=6463.91ac9f581827934e.js.map

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.