PageSourceSearch

https://static.jobright.ai/_next/static/chunks/30244-8c4dc4ab22fb2872.js

js jobright.ai collected 2026-09-24 11:18:59 UTC 30,345 bytes, 1 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6d565ac7-13ef-4ace-9db9-f91fdfd56dbe",e._sentryDebugIdIdentifier="sentry-dbid-6d565ac7-13ef-4ace-9db9-f91fdfd56dbe")}()}catch(e){}!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(null!=n)for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:sentry-custom-application-key":!0})}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[30244],{8861:e=>{e.exports={"chat-thinking":"index_chat-thinking__KsqCD","chat-thinking-label":"index_chat-thinking-label__MN_jr","chat-thinking-shine":"index_chat-thinking-shine__mmQyc","chat-thinking-indicator":"index_chat-thinking-indicator__n64KS","chat-thinking-analysis":"index_chat-thinking-analysis__vWeMn"}},11200:e=>{e.exports={"chat-feedback-actions":"index_chat-feedback-actions__8VBDK","chat-feedback-button":"index_chat-feedback-button__lTtmx","chat-feedback-button-selected":"index_chat-feedback-button-selected__Fj64Y"}},14314:e=>{e.exports={"chat-markdown":"index_chat-markdown__5yX9F"}},20001:e=>{e.exports={"chat-input-wrapper":"index_chat-input-wrapper__0yoE1","chat-input":"index_chat-input___agJP","chat-input-container":"index_chat-input-container__vVyoy","chat-input-container-voice":"index_chat-input-container-voice__TbmCG","chat-input-container-over":"index_chat-input-container-over__CKxUA","chat-input-textarea":"index_chat-input-textarea__rZgRK","chat-input-textarea-over":"index_chat-input-textarea-over__6Ss3I","chat-input-textarea-fade-top":"index_chat-input-textarea-fade-top__mkVsX","chat-input-textarea-fade-bottom":"index_chat-input-textarea-fade-bottom__EDz8l","chat-input-readonly-text":"index_chat-input-readonly-text___5y4f","chat-input-placeholder":"index_chat-input-placeholder__vw__i","chat-input-actions-row":"index_chat-input-actions-row__XwkVe","chat-input-actions":"index_chat-input-actions__nNbjm","chat-input-action":"index_chat-input-action__r3lMr","chat-input-microphone":"index_chat-input-microphone__f7leU","chat-input-cancel":"index_chat-input-cancel__0r49r","chat-input-stop":"index_chat-input-stop__YBAN3","chat-input-send":"index_chat-input-send__yheA3","chat-input-confirm":"index_chat-input-confirm__wIpSH","chat-input-action-disabled":"index_chat-input-action-disabled__HnfeN","chat-input-counter":"index_chat-input-counter__TNPbW","chat-input-counter-over":"index_chat-input-counter-over__Nd1Ni","chat-input-voice-pill":"index_chat-input-voice-pill__YGzbC","chat-input-voice-wave":"index_chat-input-voice-wave__8Mmno","chat-input-voice-wave-active":"index_chat-input-voice-wave-active__8JKEB","chat-input-wave-jump":"index_chat-input-wave-jump__AU1kP","chat-input-voice-countdown":"index_chat-input-voice-countdown__CC2Tr","chat-input-hint":"index_chat-input-hint__LfrR2"}},30244:(e,t,n)=>{"use strict";n.d(t,{RO:()=>l,VV:()=>_,oL:()=>b,Bj:()=>y,iM:()=>w,VA:()=>q,c:()=>ee,zO:()=>er,KE:()=>ei,aF:()=>ef});var r=n(94458),a=n(71623),i=n(68658),c=n(57683),o=n.n(c);let l=function(e){var t=e.role,n=e.tone,i=e.className,c=e.style,l=e.children;return(0,r.jsx)("div",{style:c,className:(0,a.A)(o()["chat-bubble"],o()["chat-bubble-".concat(t)],"error"===(void 0===n?"default":n)&&o()["chat-bubble-error"],i),children:l})};var s=n(17844),u=n(93629),d=n(17459),h=n(51957),p=n.n(h),f=function(e){var t=(0,a.A)(p()["chat-button"],e.emphasized&&p()["chat-button-emphasized"],e.className);if("string"==typeof e.href){var n=e.children,i=(e.className,e.disabled),c=(e.emphasized,e.href),o=e.onClick,l=e.rel,h=e.target,f=(0,d._)(e,["children","className","disabled","emphasized","href","onClick","rel","target"]);return(0,r.jsx)("a",(0,u._)((0,s._)({},f),{href:c,rel:"_blank"===h?l||"noreferrer":l,target:h,"aria-disabled":i||void 0,className:t,tabIndex:i?-1:f.tabIndex,onClick:function(e){if(i){e.preventDefault(),e.stopPropagation();return}null==o||o(e)},children:(0,r.jsx)("span",{className:p()["chat-button-content"],
1children:n})}))}var _=e.children,v=(e.className,e.disabled),x=(e.emphasized,e.type),b=(0,d._)(e,["children","className","disabled","emphasized","type"]);return(0,r.jsx)("button",(0,u._)((0,s._)({},b),{type:void 0===x?"button":x,disabled:v,className:t,children:(0,r.jsx)("span",{className:p()["chat-button-content"],children:_})}))};f.Group=function(e){var t=e.children,n=e.className,i=e.role,c=(0,d._)(e,["children","className","role"]);return(0,r.jsx)("div",(0,u._)((0,s._)({},c),{className:(0,a.A)(p()["chat-button-group"],n),role:void 0===i?"group":i,children:t}))};let _=f;var v=n(64034),x=n.n(v);let b=function(e){var t=e.icon,n=e.title,a=e.divided,i=e.children;return(0,r.jsxs)("section",{className:x()["chat-card-section"],children:[void 0!==a&&a&&(0,r.jsx)("div",{className:x()["chat-card-section-divider"],"aria-hidden":"true",children:(0,r.jsx)("span",{})}),(0,r.jsxs)("div",{className:x()["chat-card-section-title"],children:[t&&(0,r.jsx)("span",{className:x()["chat-card-section-icon"],"aria-hidden":"true",children:t}),(0,r.jsx)("span",{children:n})]}),(0,r.jsx)("div",{className:x()["chat-card-section-content"],children:i})]})},m=function(e){var t=e.action,n=e.selected?"var(--brand, #00f0a0)":"white";return"like"===t?(0,r.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[(0,r.jsx)("path",{d:"M9.74111 5.52192L13.6594 5.87813C14.4622 5.95111 15.131 6.52391 15.3265 7.30596C15.4341 7.73654 15.308 8.19203 14.9941 8.50586L14.8543 8.64571C14.6274 8.87256 14.5 9.18023 14.5 9.50104V10.3107C14.5 10.7602 14.367 11.1996 14.1176 11.5735L13.7846 12.0732C13.605 12.3425 13.5599 12.6796 13.6622 12.9867C13.8616 13.5849 13.636 14.2427 13.1112 14.5925L13.0397 14.6402C12.684 14.8774 12.2819 15.0363 11.8602 15.1066L11.2038 15.216C10.0773 15.4038 8.92608 15.3852 7.80622 15.1612C7.27548 15.0551 6.77525 14.8314 6.34225 14.5067L5.55106 13.9133C5.18786 13.6409 4.77076 13.4491 4.32757 13.3506L1.99052 12.8312C1.14737 12.6439 0.587646 11.8427 0.701799 10.9865L1.26894 6.73299C1.39776 5.7668 2.26975 5.07698 3.23965 5.17396L3.96314 5.24631C5.40256 5.39026 6.7163 4.41851 7 3L7.19683 2.21268C7.37501 1.49998 8.01537 1 8.75 1H8.89739C9.5454 1 10.1103 1.44103 10.2674 2.06969C10.4186 2.67448 10.3754 3.31154 10.1439 3.89036L9.58992 5.27521C9.54507 5.38732 9.62086 5.51099 9.74111 5.52192Z",fill:n,stroke:"currentColor",strokeWidth:"1.16"}),(0,r.jsx)("path",{d:"M4.6 5.5 3.5 13",stroke:"currentColor",strokeWidth:"1.16"})]}):"dislike"===t?(0,r.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[(0,r.jsx)("path",{d:"M6.25889 10.4781L2.34063 10.1219C1.53782 10.0489 0.869021 9.47609 0.67351 8.69404C0.565865 8.26346 0.692027 7.80797 1.00586 7.49414L1.14571 7.35429C1.37256 7.12744 1.5 6.81977 1.5 6.49896V5.68931C1.5 5.23985 1.63304 4.80044 1.88236 4.42646L2.21545 3.92683C2.39499 3.65752 2.44013 3.3204 2.33778 3.01334C2.13835 2.41506 2.36403 1.75731 2.88876 1.40749L2.96029 1.3598C3.31605 1.12263 3.71808 0.963654 4.13982 0.893363L4.79618 0.78397C5.92268 0.59622 7.07392 0.614784 8.19378 0.838756C8.72452 0.944903 9.22475 1.16856 9.65775 1.49331L10.4489 2.0867C10.8121 2.3591 11.2292 2.55094 11.6724 2.64943L14.0095 3.16877C14.8526 3.35614 15.4124 4.15734 15.2982 5.01349L14.7311 9.26701C14.6022 10.2332 13.7302 10.923 12.7604 10.826L12.0369 10.7537C10.5974 10.6097 9.2837 11.5815 9 13L8.80317 13.7873C8.62499 14.5 7.98463 15 7.25 15H7.10261C6.4546 15 5.88974 14.559 5.73258 13.9303C5.58138 13.3255 5.62462 12.6885 5.85614 12.1096L6.41008 10.7248C6.45493 10.6127 6.37914 10.489 6.25889 10.4781Z",fill:n,stroke:"currentColor",strokeWidth:"1.16"}),(0,r.jsx)("path",{d:"m11.4 10.5 1.1-7.5",stroke:"currentColor",strokeWidth:"1.16"})]}):"copy"===t?(0,r.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[(0,r.jsx)("path",{d:"M5 0.5V6H9.5L10.5 7.5V11H14V0.5H5Z",fill:"white"}),(0,r.jsx)("path",{d:"M12.5999 0C13.9252 0.000146597 15.0002 1.075 15.0002 2.40039V9.59961C15.0002 10.925 13.9252 11.9999 12.5999 12H11.0002V10.8398H12.5999C13.2846 10.8397 13.8401 10.2844 13.8401 9.59961V2.40039C13.8401 1.71565 13.2846 1.1603 12.5999 1.16016H6.40063C5.7158 1.16016 5.1604 1.71556 5.1604 2.40039V5H4.00024V2.40039C4.00024 1.15787 4.94449 0.135758 6.15454 0.0126953L6.40063 0H12.5999Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M3.40039 4.58008H9.59961C10.6048 4.58008 11.4199 5.39523 11.4199 6.40039V13.5996C11.4199 14.6048 10.6048 15.4199 9.59961 15.4199H3.40039C2.39523 15.4199 1.58008 14.6048 1.58008 13.5996V6.40039C1.58008 5.39523 2.39523 4.58008 3.40039 4.58008Z",fill:"white",stroke:"currentColor",strokeWidth:"1.16",strokeLinejoin:"round"})]}):(0,r.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M11.4636 6.28571L13.1985 6.87198C13.5656 6.99605 13.9292 6.68855 13.8196 6.31683C13.0846 3.82243 10.7573 2 8 2C5.25418 2 2.93479 3.8073 2.18963 6.28571M4.53633 9.71428L2.80155 9.12802C2.43442 9.00395 2.07083 9.31145 2.18037 9.68318C2.91541 12.1776 5.2427 14 8 14C10.7458 14 13.0652 12.1927 13.8104 9.71428",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})};var g=n(11200),k=n.n(g),C={like:"Helpful",dislike:"Not helpful",copy:"Copy response",refresh:"Refresh response"},y=function(e){var t=e.className,n=e.children,i=(0,d._)(e,["className","children"]);return(0,r.jsx)("div",(0,u._)((0,s._)({},i),{className:(0,a.A)(k()["chat-feedback-actions"],t),children:n}))},w=function(e){var t=e.action,n=e.selected,i=void 0!==n&&n,c=e.className,o=e.type,l=e["aria-label"],h=(0,d._)(e,["action","selected","className","type","aria-label"]),p="like"===t||"dislike"===t;return(0,r.jsx)("button",(0,u._)((0,s._)({},h),{type:void 0===o?"button":o,"aria-label":null!=l?l:C[t],"aria-pressed":p?i:void 0,className:(0,a.A)(k()["chat-feedback-button"],p&&i&&k()["chat-feedback-button-selected"],c),children:(0,r.jsx)(m,{action:t,selected:p&&i})}))},j=n(29935),N=n(12694),A=n(82643),L=n(27478);let M=function(e){var t=e.name;return"cancel"===t?(0,r.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M4.5 4.5 11.5 11.5M11.5 4.5 4.5 11.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})}):"confirm"===t?(0,r.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M5 8c.66.66 1.18 1.45 1.53 2.31L7 11.5l.54-1.21A30.4 30.4 0 0 1 11 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}):"microphone"===t?(0,r.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[(0,r.jsx)("path",{d:"M5 3a3 3 0 0 1 6 0v5a3 3 0 0 1-6 0V3Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M6 7H4a1 1 0 0 0-1 1 5 5 0 0 0 10 0 1 1 0 0 0-1-1H9M8 13v2",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})]}):"stop"===t?(0,r.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[(0,r.jsx)("rect",{x:"4",y:"3",width:"3",height:"10",rx:"1.5",fill:"currentColor"}),(0,r.jsx)("rect",{x:"9",y:"3",width:"3",height:"10",rx:"1.5",fill:"currentColor"})]}):(0,r.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:(0,r.jsx)("path",{d:"m3.5 7.5 4.5-4.5 4.5 4.5M8 3.5V13",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})};var E=n(60872),R=n.n(E);let B=function(){return(0,r.jsxs)("span",{className:R()["chat-transcribing"],role:"status","aria-live":"polite",children:[(0,r.jsx)("span",{className:R()["chat-transcribing-label"],children:"Transcribing…"}),(0,r.jsx)("span",{className:R()["chat-transcribing-indicator"],"aria-hidden":"true"})]})};var T=n(20001),S=n.n(T);let P=function(e){var t=e.active,n=e.countdown,c=(0,i.useRef)(null),o=(0,N._)((0,i.useState)(44),2),l=o[0],s=o[1];return(0,i.useEffect)(function(){var e=c.current;if(e&&"undefined"!=typeof ResizeObserver){var t=function(){var t;return s((t=e.clientWidth)>0?Math.max(1,Math.floor((t+2)/4)):44)};t();var n=new ResizeObserver(t);return n.observe(e),function(){return n.disconnect()}}},[]),(0,r.jsxs)("div",{className:S()["chat-input-voice-pill"],children:[(0,r.jsx)("div",{ref:c,className:(0,a.A)(S()["chat-input-voice-wave"],t&&S()["chat-input-voice-wave-active"]),"aria-hidden":"true",children:Array.from({length:l},function(e,t){return(0,r.jsx)("span",{style:{animationDelay:"".concat((37*t%23/23*.12).toFixed(2),"s"),"--chat-wave-peak":"".concat((10+53*t%13/13*6).toFixed(0),"px")}},t)})}),null!==n&&(0,r.jsxs)("span",{className:S()["chat-input-voice-countdown"],children:["Ends in ",n,"s"]})]})};var z=function(){var e;return"undefined"==typeof MediaRecorder?"":null!=(e=["audio/webm;codecs=opus","audio/webm","audio/mp4","audio/ogg;
1codecs=opus"].find(function(e){var t,n;return null==(t=(n=MediaRecorder).isTypeSupported)?void 0:t.call(n,e)}))?e:""},H=function(){var e;return"undefined"!=typeof navigator&&!!(null==(e=navigator.mediaDevices)?void 0:e.getUserMedia)&&"undefined"!=typeof MediaRecorder},V=function(){var e=(0,N._)((0,i.useState)(!1),2),t=e[0],n=e[1],r=(0,N._)((0,i.useState)(!1),2),a=r[0],c=r[1],o=(0,N._)((0,i.useState)(!1),2),l=o[0],s=o[1],u=(0,i.useRef)(null),d=(0,i.useRef)(null),h=(0,i.useRef)([]),p=(0,i.useRef)(null),f=(0,i.useRef)(null),_=(0,i.useRef)(null),v=(0,i.useRef)(0),x=(0,i.useRef)(!1);(0,i.useEffect)(function(){s(H())},[]);var b=(0,i.useCallback)(function(){var e,t,n;null!==f.current&&(cancelAnimationFrame(f.current),f.current=null),null==(t=p.current)||null==(e=t.close)||e.call(t).catch(function(){}),p.current=null,null==(n=u.current)||n.getTracks().forEach(function(e){return e.stop()}),u.current=null,d.current=null},[]);return(0,i.useEffect)(function(){return function(){var e;v.current+=1,x.current=!1,b(),null==(e=_.current)||e.call(_,null),_.current=null}},[b]),{recording:t,active:a,start:(0,i.useCallback)(function(){return(0,j._)(function(){var e,t,r,a,i,o,l,s,m,g,k;return(0,A.__generator)(this,function(C){switch(C.label){case 0:if(!H()||d.current||x.current)return[2,!1];e=v.current+1,v.current=e,x.current=!0,C.label=1;case 1:return C.trys.push([1,3,4,5]),[4,navigator.mediaDevices.getUserMedia({audio:!0})];case 2:if(t=C.sent(),e!==v.current)return t.getTracks().forEach(function(e){return e.stop()}),[2,!1];return u.current=t,(a=null!=(r=window.AudioContext)?r:window.webkitAudioContext)&&(p.current=i=new a,(o=i.createAnalyser()).fftSize=512,i.createMediaStreamSource(t).connect(o),l=new Uint8Array(o.fftSize),s=0,m=function(){o.getByteTimeDomainData(l);var e=0,t=!0,n=!1,r=void 0;try{for(var a,i=l[Symbol.iterator]();!(t=(a=i.next()).done);t=!0){var u=(a.value-128)/128;e+=u*u}}catch(e){n=!0,r=e}finally{try{t||null==i.return||i.return()}finally{if(n)throw r}}var d=Math.sqrt(e/l.length),h=performance.now();d>.04&&(s=h),c(h-s<80),f.current=requestAnimationFrame(m)},f.current=requestAnimationFrame(m)),d.current=k=(g=z())?new MediaRecorder(t,{mimeType:g}):new MediaRecorder(t),h.current=[],k.ondataavailable=function(e){e.data.size>0&&h.current.push(e.data)},k.onstop=function(){var e,t=k.mimeType||"audio/webm",n=h.current.length?new Blob(h.current,{type:t}):null;h.current=[],b(),c(!1),null==(e=_.current)||e.call(_,n),_.current=null},k.start(),n(!0),[2,!0];case 3:return C.sent(),e===v.current&&(b(),n(!1),c(!1)),[2,!1];case 4:return e===v.current&&(x.current=!1),[7];case 5:return[2]}})})()},[b]),stop:(0,i.useCallback)(function(){v.current+=1,x.current=!1,n(!1);var e=d.current;return e&&"inactive"!==e.state?new Promise(function(t){_.current=t;try{e.stop()}catch(e){b(),c(!1),_.current=null,t(null)}}):(b(),c(!1),Promise.resolve(null))},[b]),supported:l}},F=function(){var e=document.activeElement;if(!e||e===document.body)return!1;if(["INPUT","TEXTAREA","SELECT","BUTTON","A"].includes(e.tagName)||e.isContentEditable)return!0;var t=e.getAttribute("role");return"button"===t||"textbox"===t||"combobox"===t||"link"===t},D=function(e){return"Space"===e.code||" "===e.key},I=function(e){var t=e.start,n=e.stop,r=e.isReleased;return(0,j._)(function(){return(0,A.__generator)(this,function(e){switch(e.label){case 0:return[4,t()];case 1:if(!e.sent())return[2,!1];if(!r())return[3,3];return[4,n()];case 2:return e.sent(),[2,!1];case 3:return[2,!0]}})})()},O=function(e){var t=(0,i.useRef)(e);t.current=e,(0,i.useEffect)(function(){var e=null,n=!1,r=!1,a=!1,i=function(i){if(D(i)&&!i.repeat&&!n){var c=t.current;!c.enabled||c.recording||c.transcribing||F()||(n=!0,i.preventDefault(),e=setTimeout(function(){e=null,I({start:t.current.start,stop:t.current.stop,isReleased:function(){return a||!n}}).then(function(e){r=e})},500))}},c=function(a){D(a)&&n&&(n=!1,e?(clearTimeout(e),e=null):r&&(r=!1,t.current.stop()))};return document.addEventListener("keydown",i),document.addEventListener("keyup",c),function(){a=!0,n=!1,e&&clearTimeout(e),document.removeEventListener("keydown",i),document.removeEventListener("keyup",c)}},[])},U=function(e){var t,n,r;return null!=(r=null==(n=e.current)||null==(t=n.resizableTextArea)?void 0:t.textArea)?r:null},W=function(e,t,n){if(!n||n.start>e.length){var r="".concat(e.trim()).concat(e.trim()?" ":"").concat(t);return{value:r,caret:r.length}}var a=e.slice(0,n.start),i=e.slice(n.end),c=a&&!/\s$/.test(a)?"".concat(a," "):a,o=i&&!/^\s/.test(i)?" ".concat(i):i;return{value:"".concat(c).concat(t).concat(o),caret:(c+t).length}}
1,K=function(e){var t=e.value,n=e.onChange,r=e.disabled,a=e.loading,c=e.textAreaRef,o=e.voice,l=(0,i.useRef)(t);l.current=t;var s=(0,i.useRef)(null),u=(0,i.useRef)(null),d=(0,i.useRef)(null),h=(0,i.useRef)(null),p=(0,i.useRef)(null),f=(0,N._)((0,i.useState)(!1),2),_=f[0],v=f[1],x=(0,N._)((0,i.useState)(null),2),b=x[0],m=x[1],g=V(),k=g.recording,C=g.active,y=g.start,w=g.stop,L=g.supported,M=!!((null==o?void 0:o.transcribe)&&!1!==o.enabled&&L),E=(0,i.useCallback)(function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];d.current&&clearTimeout(d.current),h.current&&clearInterval(h.current),d.current=null,h.current=null,e&&m(null)},[]);(0,i.useEffect)(function(){return function(){return E(!1)}},[E]);var R=(0,i.useCallback)(function(){return(0,j._)(function(){var e;return(0,A.__generator)(this,function(t){switch(t.label){case 0:return E(),[4,w()];case 1:return t.sent(),null==o||null==(e=o.onEvent)||e.call(o,"cancel"),[2]}})})()},[E,w,o]),B=(0,i.useCallback)(function(){if(p.current)return p.current;var e=(0,j._)(function(){var e,t,r,a,i,c,d;return(0,A.__generator)(this,function(h){switch(h.label){case 0:return E(),[4,w()];case 1:if(!(t=h.sent())||!(null==o?void 0:o.transcribe))return[2];null==(e=o.onEvent)||e.call(o,"save"),v(!0),h.label=2;case 2:return h.trys.push([2,4,5,6]),[4,o.transcribe(t)];case 3:if(!(a=null==(r=h.sent())?void 0:r.trim()))return[2];return u.current=(i=W(l.current,a,s.current)).caret,n(i.value),[3,6];case 4:return c=h.sent(),null==(d=o.onError)||d.call(o,c),[3,6];case 5:return v(!1),[7];case 6:return[2]}})})().finally(function(){p.current=null});return p.current=e,e},[E,n,w,o]),T=(0,i.useCallback)(function(){return(0,j._)(function(){var e,t,n,i,l,u,p;return(0,A.__generator)(this,function(f){switch(f.label){case 0:if(!M||r||a||_)return[2,!1];return s.current=(t=U(c))?{start:t.selectionStart,end:t.selectionEnd}:null,[4,y()];case 1:if(!f.sent())return[2,!1];return null==o||null==(e=o.onEvent)||e.call(o,"start"),E(),i=null!=(n=null==o?void 0:o.maxDurationMs)?n:6e4,u=null!=(l=null==o?void 0:o.countdownSeconds)?l:10,p=performance.now(),d.current=setTimeout(function(){B()},i),h.current=setInterval(function(){var e=Math.ceil((i-(performance.now()-p))/1e3);m(e<=u?Math.max(e,0):null)},250),[2,!0]}})})()},[E,r,a,y,B,c,_,o,M]);return(0,i.useEffect)(function(){if(!_&&null!==u.current){var e=u.current;u.current=null,requestAnimationFrame(function(){var t=U(c);if(t){var n=Math.min(e,t.value.length);t.focus(),t.setSelectionRange(n,n)}})}},[c,_,t]),(0,i.useEffect)(function(){if(k){var e=function(e){"Escape"!==e.key&&("Enter"!==e.key||e.shiftKey)||(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),"Escape"===e.key?R():B())};return document.addEventListener("keydown",e,!0),function(){return document.removeEventListener("keydown",e,!0)}}},[R,k,B]),O({enabled:!!(M&&(null==o?void 0:o.enableGlobalHoldShortcut)&&!r&&!a),recording:k,transcribing:_,start:T,stop:B}),{cancelVoice:R,countdown:b,recording:k,startVoice:T,stopVoice:B,transcribing:_,voiceActive:C,voiceEnabled:M,voiceMode:k||_}},G=L.A.TextArea,Z=(0,i.forwardRef)(function(e,t){var n=e.value,c=e.onChange,o=e.onSend,l=e.onStop,d=e.loading,h=void 0!==d&&d,p=e.disabled,f=void 0!==p&&p,_=e.placeholder,v=void 0===_?"Ask me anything...":_,x=e.inputId,b=e.className,m=e.prefix,g=e.actionsPrefix,k=e.hint,C=e.maxLength,y=void 0===C?3e3:C,w=e.counterThreshold,L=e.autoSize,E=e.trimOnPaste,R=void 0!==E&&E,T=e.voice,z=e.textAreaProps,H=e.onContainerClick,V=(0,i.useRef)(null),F=(0,N._)((0,i.useState)({top:!1,bottom:!1}),2),D=F[0],I=F[1],O=K({value:n,onChange:c,disabled:f,loading:h,textAreaRef:V,voice:T}),W=O.cancelVoice,Z=O.countdown,q=O.recording,Y=O.startVoice,J=O.stopVoice,Q=O.transcribing,X=O.voiceActive,$=O.voiceEnabled,ee=O.voiceMode,et=n.length>y,en=f||h||et||!n.trim(),er=(0,i.useCallback)(function(e){var t;null==(t=V.current)||t.focus(e?{cursor:e}:void 0)},[]);(0,i.useImperativeHandle)(t,function(){return{focus:er,getTextArea:function(){return U(V)}}},[er]);var ea=(0,i.useCallback)(function(){var e=U(V);if(!e)return void I({top:!1,bottom:!1});var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight,a=n>r+1;I({top:a&&t>1,bottom:a&&t+r<n-1})},[]);(0,i.useEffect)(function(){return ea()},[ea,n]),(0,i.useEffect)(function(){var e=U(V);if(e&&"undefined"!=typeof ResizeObserver){var t=new ResizeObserver(ea);return t.observe(e),function(){return t.disconnect()}}},[ea,ee]);var ei=function(){return(0,j._)(function(){return(0,A.__generator)(this,function(e){switch(e.label){case 0:if(en)return[2];return[4,o(n.trim())];case 1:return e.sent(),[2]}})})()};return(0,r.jsx)("div",{className:(0,a.A)(S()["chat-input-wrapper"],b),children:(0,r.jsxs)("div",{className:S()["chat-input"],children:[(0,r.jsxs)("div",{className:(0,a.A)(S()["chat-input-container"],ee&&S()["chat-input-container-voice"],et&&!ee&&S()["chat-input-container-over"]),"data-state":q?"recording":Q?"transcribing":"idle",onClick:function(){ee||(er(),null==H||H())},children:[m,ee?(0,r.jsx)("div",{className:S()["chat-input-readonly-text"],children:n||(0,r.jsx)("span",{className:S()["chat-input-placeholder"],children:v})}):(0,r.jsx)(G,(0,u._)((0,s._)({},z),{ref:V,id:x,className:(0,a.A)(S()["chat-input-textarea"],et&&S()["chat-input-textarea-over"],D.top&&S()["chat-input-textarea-fade-top"],D.bottom&&S()["chat-input-textarea-fade-bottom"]),value:n,autoSize:void 0===L?{minRows:2,maxRows:4}:L,placeholder:v,readOnly:f||h,onChange:function(e){return c(e.target.value)},onScroll:function(e){var t;null==z||null==(t=z.onScroll)||t.call(z,e),ea()}
1,onKeyDown:function(e){!e.nativeEvent.isComposing&&229!==e.keyCode&&("Enter"!==e.key||e.shiftKey||(e.preventDefault(),ei()))},onPaste:function(e){var t;null==z||null==(t=z.onPaste)||t.call(z,e),R&&setTimeout(function(){var e,t=null==(e=U(V))?void 0:e.value;void 0!==t&&c(t.trim())},0)}})),(0,r.jsx)("div",{className:S()["chat-input-actions-row"],children:q?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(P,{active:X,countdown:Z}),(0,r.jsxs)("div",{className:S()["chat-input-actions"],children:[(0,r.jsx)("button",{type:"button",className:(0,a.A)(S()["chat-input-action"],S()["chat-input-cancel"]),"aria-label":"Cancel voice input",onClick:function(e){e.stopPropagation(),W()},children:(0,r.jsx)(M,{name:"cancel"})}),(0,r.jsx)("button",{type:"button",className:(0,a.A)(S()["chat-input-action"],S()["chat-input-confirm"]),"aria-label":"Finish voice input",onClick:function(e){e.stopPropagation(),J()},children:(0,r.jsx)(M,{name:"confirm"})})]})]}):Q?(0,r.jsx)(B,{}):(0,r.jsxs)(r.Fragment,{children:[g,(0,r.jsx)("div",{className:(0,a.A)(S()["chat-input-counter"],et&&S()["chat-input-counter-over"]),children:n.length>=y-(void 0===w?50:w)?"".concat(n.length,"/").concat(y):""}),(0,r.jsxs)("div",{className:S()["chat-input-actions"],children:[$&&(0,r.jsx)("button",{type:"button",className:(0,a.A)(S()["chat-input-action"],S()["chat-input-microphone"]),"aria-label":"Start voice input",disabled:f||h,onClick:function(e){e.stopPropagation(),Y()},children:(0,r.jsx)(M,{name:"microphone"})}),h&&l?(0,r.jsx)("button",{type:"button",className:(0,a.A)(S()["chat-input-action"],S()["chat-input-stop"]),"aria-label":"Stop generating",onClick:function(e){e.stopPropagation(),l()},children:(0,r.jsx)(M,{name:"stop"})}):(0,r.jsx)("button",{type:"button",className:(0,a.A)(S()["chat-input-action"],S()["chat-input-send"],en&&S()["chat-input-action-disabled"]),"aria-label":"Send message",disabled:en,onClick:function(e){e.stopPropagation(),ei()},children:(0,r.jsx)(M,{name:"send"})})]})]})})]}),k&&(0,r.jsx)("div",{className:S()["chat-input-hint"],children:k})]})})});Z.displayName="ChatInput";let q=Z;var Y=n(7439),J=n(47663),Q=n(29161),X=n(14314),$=n.n(X);let ee=function(e){var t=e.content,n=e.className;return(0,r.jsx)(Y.o,{className:(0,a.A)($()["chat-markdown"],n),remarkPlugins:[Q.A,J.A],components:{a:function(e){var t=e.children,n=(0,d._)(e,["children"]);return(0,r.jsx)("a",(0,u._)((0,s._)({},n),{target:"_blank",rel:"noreferrer noopener",children:t}))}},children:t})};var et=n(8861),en=n.n(et);let er=function(e){var t=e.label,n=e.className;return(0,r.jsxs)("span",{className:[en()["chat-thinking"],n].filter(Boolean).join(" "),role:"status","aria-live":"polite",children:[(0,r.jsx)("span",{className:en()["chat-thinking-label"],children:void 0===t?"Thinking":t}),(0,r.jsx)("span",{className:en()["chat-thinking-indicator"],"aria-hidden":"true"})]})};var ea=n(48280),ei=n.n(ea)()(function(){return Promise.all([n.e(46275),n.e(13378),n.e(55054),n.e(15600),n.e(89483)]).then(n.bind(n,6447))},{loadableGenerated:{webpack:function(){return[6447]}},ssr:!1}),ec=n(83846),eo=n(75538),el=n(76989),es=n(44276),eu=n.n(es);let ed={src:"https://static.jobright.ai/_next/static/media/close.16876372.svg"};var eh=n(73923),ep=n.n(eh),ef=function(e){var t,n,c=e.rootClassName,o=e.className,l=e.footer,h=e.footerLayout,p=void 0===h?"horizontal":h,f=e.footerActions,_=e.okText,v=void 0===_?"确定":_,x=e.cancelText,b=void 0===x?"取消":x,m=e.title,g=e.onOk,k=e.onCancel,C=e.okButtonProps,y=e.cancelButtonProps,w=e.addUnderline,L=e.addMargin,M=(0,d._)(e,["rootClassName","className","footer","footerLayout","footerActions","okText","cancelText","title","onOk","onCancel","okButtonProps","cancelButtonProps","addUnderline","addMargin"]),E=(0,N._)((0,i.useState)(!1),2),R=E[0],B=E[1],T=function(e){return(0,j._)(function(){var t;return(0,A.__generator)(this,function(n){switch(n.label){case 0:if(!g)return[2];n.label=1;case 1:if(n.trys.push([1,4,5,6]),B(!0),!((t=g(e))&&"function"==typeof t.then))return[3,3];return[4,t];case 2:n.sent(),n.label=3;case 3:return[3,6];case 4:return console.error("Modal onOk error:",n.sent()),[3,6];case 5:return B(!1),[7];case 6:return[2]}})})()},S=(f&&f.length>0?f:"vertical"===p?["ok","cancel"]:["cancel","ok"]).map(function(e){return"ok"===e?(0,r.jsx)(eo.Ay,(0,u._)((0,s._)({type:"primary",className:"".concat(ep().modalFooterBtn," ").concat(ep().okBtn),loading:R,disabled:R,onClick:T},C),{children:v}),"ok"):(0,r.jsx)(eo.Ay,(0,u._)((0,s._)({className:"".concat(ep().modalFooterBtn," ").concat(ep().cancelBtn),onClick:k}
1,y),{children:b}),"cancel")}),P=(0,r.jsxs)("div",{className:(0,a.A)(ep().modalHeader,(t={},(0,ec._)(t,ep().noUnderline,!(void 0===w||w)),(0,ec._)(t,ep().marginBottom,!!(void 0===L||L)),t)),children:[(0,r.jsx)("div",{className:ep().modalTitle,children:m}),(0,r.jsx)("div",{className:ep().closeBtn,onClick:k,children:(0,r.jsx)(eu(),{src:ed.src,alt:"close-icon",width:16,height:16})})]}),z=(0,r.jsx)("div",{className:"".concat(ep().modalFooter," ").concat(ep()[p]," "),children:S});return n=null===l||!1===l?null:void 0!==l?l:z,(0,r.jsxs)(el.A,(0,u._)((0,s._)({},M),{rootClassName:(0,a.A)(ep().modalRoot,c),className:(0,a.A)(ep().modalContainer,o),title:null,closeIcon:null,footer:n,onOk:g,onCancel:k,children:[P,M.children]}))}},51957:e=>{e.exports={"chat-button-group":"index_chat-button-group__0SEL_","chat-button":"index_chat-button__DqzrS","chat-button-emphasized":"index_chat-button-emphasized__UAEsi","chat-button-content":"index_chat-button-content__QHFPB"}},57683:e=>{e.exports={"chat-bubble":"index_chat-bubble__b_fzI","chat-bubble-assistant":"index_chat-bubble-assistant__SROtM","chat-bubble-user":"index_chat-bubble-user__G86Qr","chat-bubble-error":"index_chat-bubble-error__oC5w_"}},60872:e=>{e.exports={"chat-transcribing":"index_chat-transcribing__oygqB","chat-transcribing-label":"index_chat-transcribing-label__MRGl_","chat-transcribing-shine":"index_chat-transcribing-shine__MmJ2r","chat-transcribing-indicator":"index_chat-transcribing-indicator__pC0_B","chat-transcribing-analysis":"index_chat-transcribing-analysis__UbEUo"}},64034:e=>{e.exports={"chat-card-section":"index_chat-card-section__PQxoC","chat-card-section-divider":"index_chat-card-section-divider__iGAbT","chat-card-section-title":"index_chat-card-section-title__lLszo","chat-card-section-icon":"index_chat-card-section-icon__8EBkH","chat-card-section-content":"index_chat-card-section-content__i_Mdu"}},73923:e=>{e.exports={modalRoot:"index_modalRoot__O_iIn",modalContainer:"index_modalContainer__B7cfi",modalHeader:"index_modalHeader__JH5wp",noUnderline:"index_noUnderline__R7Npc",marginBottom:"index_marginBottom__5sfkY",modalTitle:"index_modalTitle__8ScG0",closeBtn:"index_closeBtn__p6Rpv",modalFooter:"index_modalFooter__LYi5P",vertical:"index_vertical__Y4Ll3",horizontal:"index_horizontal__ps3ZF",modalFooterBtn:"index_modalFooterBtn__8K0BM",okBtn:"index_okBtn__0yhgD",cancelBtn:"index_cancelBtn__SL_h2"}}}]);

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.