PageSourceSearch

https://www.cccb.org/o/frontend-js-clay-web/__liferay__/exports/@clayui$localized-input.js

js cccb.org collected 2026-09-24 07:57:06 UTC 3,273 bytes, 2 lines download raw bytes

1import{Body as O,Button as M,ButtonWithIcon as R,Cell as G,FocusTrap as B,Head as F,Heading as z,Icon as D,IconSelector as H,LanguagePicker as f,Modal as U,ModalContext as V,Nav as w,Option as A,OverlayMask as W,Picker as q,Provider as X,Row as Y,SidePanel as j,SidePanelWithDrilldown as J,Table as K,Text as Q,TextHighlight as Z,TreeView as $,VerticalBar as ee,VerticalNav as te,__EXPERIMENTAL_MENU as ae,__NOT_PUBLIC_COLLECTION as re,__NOT_PUBLIC_LIVE_ANNOUNCER as ne,useModal as oe,useProvider as le}from"../../../frontend-js-clay-web/__liferay__/exports/@clayui$core.js";import{ClayCheckbox as pe,ClayInput as a,ClayDualListBox as de,ClayRadio as me,ClayRadioGroup as ce,ClaySelect as Ie,ClaySelectBox as ge,ClaySelectWithOption as fe,ClayToggle as Ce}from"../../../frontend-js-clay-web/__liferay__/exports/@clayui$form.js";import N from"../../../frontend-js-clay-web/__liferay__/exports/@clayui$form.js";var p=N;import{Children as xe,Component as Le,Fragment as Ee,Profiler as he,PureComponent as Pe,StrictMode as be,Suspense as Ne,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED as Se,cloneElement as ke,createContext as ve,createElement as Oe,createFactory as Me,createRef as Re,forwardRef as Ge,isValidElement as Be,lazy as Fe,memo as ze,startTransition as De,unstable_act as He,useCallback as Ue,useContext as Ve,useDebugValue as we,useDeferredValue as Ae,useEffect as We,useId as qe,useImperativeHandle as Xe,useInsertionEffect as Ye,useLayoutEffect as je,useMemo as d,useReducer as Je,useRef as Ke,useState as Qe,useSyncExternalStore as Ze,useTransition as $e,version as et}from"../../../frontend-js-react-web/__liferay__/exports/react.js";import S from"../../../frontend-js-react-web/__liferay__/exports/react.js";var e=S;var C=e.forwardRef(({ariaLabels:o={default:"Default",openLocalizations:"Open Localizations",translated:"Translated",untranslated:"Untranslated"},helpText:m,id:c,label:I="Check for translations",locales:l,onSelectedLocaleChange:_,onTranslationsChange:y,placeholder:x="Text to translate...",prependContent:i,resultFormatter:L=n=>n,selectedLocale:u,spritemap:E,translations:r,...h},P)=>{let n=l[0],g=d(()=>l.map(t=>({id:t.label,...t})),[]),b=d(()=>{let t={};return l.forEach(s=>{t[s.label]={total:1,translated:r[s.label]?1:0}}),t},[l,r]);return e.createElement(e.Fragment,null,I&&e.createElement("label",{htmlFor:c},I),m&&e.createElement(p.Text,null,m),e.createElement(a.Group,null,i&&e.createElement(a.GroupItem,{prepend:!0,shrink:!0},e.createElement(a.GroupText,null,i)),e.createElement(a.GroupItem,{append:!!i},e.createElement(a,{...h,id:c,onChange:t=>{y({...r,[u.label]:t.target.value})},placeholder:x,ref:P,type:"text",value:r[u.label]||""})),e.createElement(a.GroupItem,{shrink:!0},e.createElement(f,{defaultLocaleId:n.id,hideTriggerText:!0,locales:g,messages:{default:o.default,option:"{0} language: {1}.",translated:o.translated,translating:"Translating {0}/{1}",trigger:o.openLocalizations,untranslated:o.untranslated},onSelectedLocaleChange:t=>{_(g.find(({id:s})=>s===t))},spritemap:E,translations:b}))),u.symbol!==n.symbol&&e.createElement(p.Text,{className:"blockquote"},L(r[n.label])))});C.displayName="ClayLocalizedInput";var T=C;var lt=T;export{lt as default};
2//# sourceMappingURL=@clayui$localized-input.(WTQC56BZ).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.