PageSourceSearch

https://www.chinalove.com/app/12d3121d0a83181d.js

js chinalove.com collected 2026-10-04 08:19:53 UTC 4,435 bytes, 5 lines download raw bytes

1"use strict";
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="dde0d70e-e5e3-5855-8de5-08d73c90c509")}catch(e){}}();
3(self.webpackChunkclient=self.webpackChunkclient||[]).push([["1931"],{10269(e,a,t){t.d(a,{DialogsVoiceMessageTranslationTargetLanguagePrompt:()=>L});var n=t(42062),r=t(75841),s=t(66691),l=t(79942),o=t(26874),i=t(28138),g=t(26672),c=t(81924),u=t(99870),d=t.n(u),m=t(97314),v=t(78903),p=t(20345),h=t(54361),f=t(15782),x=t(92495),C=t(31085);let k=(0,n.memo)(e=>{var{languages:a,preselectedValue:t,onSaveAndRecord:r,onDropdownClick:s,onCloseClick:l}=e,[o,i]=(0,n.useState)(!1),[u,k]=(0,n.useState)(t),j=(0,n.useCallback)(e=>k(e),[]),b=(0,n.useRef)(null),_=(0,x.Zm)(x.zh.Mobile),L=(0,n.useMemo)(()=>{var e,t=null==a?void 0:a.find(e=>e.code===u);return null!=(e=null==t?void 0:t.name)?e:""},[a,u]),T=(0,n.useCallback)(()=>{i(e=>!e),s()},[s]),z=(0,n.useCallback)(()=>{r(u)},[r,u]),I=(0,f.A)("/dialogs/voice-messages/translation/target-language","save-button-title"),N=d()("chat-voice-message-translation-target-language-prompt__trigger",{"chat-voice-message-translation-target-language-prompt__triggerOpen":o});return(0,C.jsxs)("div",{className:"chat-voice-message-translation-target-language-prompt__container",children:[(0,C.jsxs)("div",{className:"chat-voice-message-translation-target-language-prompt__header",children:[(0,C.jsxs)("div",{className:"chat-voice-message-translation-target-language-prompt__title",children:[(0,C.jsx)(v.Icon,{name:"sound-on-bold",size:"normal"}),(0,C.jsx)(c.LocalizedText,{href:"/dialogs/voice-messages/translation/target-language#title",variant:"h1",color:"dark"})]}),(0,C.jsx)(c.LocalizedText,{href:"/dialogs/voice-messages/translation/target-language#description",variant:"body-2",color:"transparent-dark-active"})]}),(0,C.jsxs)("div",{className:"chat-voice-message-translation-target-language-prompt__content",children:[(0,C.jsxs)("div",{className:N,onClick:T,ref:b,children:[(0,C.jsx)(v.Icon,{name:"translate-rounded",size:"normal",color:"var(--sdv-light-color)"}),(0,C.jsxs)("span",{className:"chat-voice-message-translation-target-language-prompt__triggerText",children:[(0,C.jsx)(c.LocalizedText,{href:"/dialogs/voice-messages/translation/target-language#language-label",variant:"footnote-2",color:"light"}),(0,C.jsx)(m.E,{content:L,variant:"footnote-1",color:"light"})]}),(0,C.jsx)(v.Icon,{name:"arrow",size:"normal",color:"var(--sdv-light-color)",className:"chat-voice-message-translation-target-language-prompt__triggerIcon"})]}),(0,C.jsx)(h.S,{reference:b,open:o,onOpenChange:i,languages:a,selectedValue:u,onSelect:j})]}),(0,C.jsx)(p.$,{variant:"primary",title:I,onClick:z,size:_?"medium":"large",blockLevel:_}),(0,C.jsx)(g.J,{onClick:l})]})});var j=t(99785),b=["userId","attendeeId","preselectedValue","onSaveAndRecord","onCloseClick"],_=(0,n.memo)(e=>{var{userId:a,attendeeId:t,preselectedValue:r,onSaveAndRecord:s,onCloseClick:l}=e,o=function(e,a){if(null==e)return{};var t={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(a.includes(n))continue;t[n]=e[n]}return t}(e,b),i=(0,n.useCallback)(e=>{j.B.shared(a).logTargetLanguagePromptCtaClicked({attendeeId:t,language:e}),s(e)},[t,s,a]),g=(0,n.useCallback)(function(){j.B.shared(a).logTargetLanguagePromptClosed({attendeeId:t}),l(...arguments)},[t,l,a]),c=(0,n.useCallback)(()=>{j.B.shared(a).logTargetLanguageDropdownClicked({attendeeId:t})},[t,a]),u=(0,n.useRef)(!1);return(0,n.useEffect)(()=>{u.current||(j.B.shared(a).logTargetLanguagePromptOpen({attendeeId:t,preselectedLanguage:r}),u.current=!0)},[t,r,a]),(0,C.jsx)(k,Object.assign({},o,{preselectedValue:r,onCloseClick:g,onSaveAndRecord:i,onDropdownClick:c}))}),L=(0,n.memo)(e=>{var{onSave:a,onClose:t,userId:n,attendeeId:g,messageLanguage:c}=e,u=(0,s.J2)(()=>n?o.b.shared(n).translationPreselectedLanguage:(0,r.of)(void 0),[n]),d=(0,s.J2)(()=>n?o.b.shared(n).translationLanguages.pipe((0,i.T)(e=>e.filter(e=>e.code!==c))):(0,r.of)([]),[n,c],[]),m=(0,s.uN)(e=>
3o.b.shared(n).setTranslationLanguage(e).pipe((0,l.ex)(()=>a())),[n,a],!1);return u?(0,C.jsx)(_,{userId:n,attendeeId:g,languages:d,preselectedValue:u,onSaveAndRecord:m,onCloseClick:t}):null})}}]);
4//# sourceMappingURL=sourcemaps/12d3121d0a83181d.js.map
5//# debugId=dde0d70e-e5e3-5855-8de5-08d73c90c509

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.