Module 783608

903 characters · in no known chunk
Dependencies
Required by (2)
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(627968),i=n(64700),s=n(397927),a=n(985018),o=n(4589),l=function(e){return e[e.VIEW_MORE=0]="VIEW_MORE",e[e.VIEW_LESS=1]="VIEW_LESS",e}(l||{});function u(e){let{title:t,buttonType:n,onClickViewButton:i}=e;return(0,r.jsxs)("div",{className:o.wx,children:[(0,r.jsx)(s.Text,{variant:"text-md/medium",color:"text-strong",children:t}),null!=n&&null!=i&&(0,r.jsx)(s.DUT,{className:o.Vc,onClick:i,"aria-label":a.intl.formatToPlainString(a.t["bj/2kV"],{title:t}),children:(0,r.jsx)(s.Text,{variant:"text-md/medium",color:"text-brand",children:0===n?a.intl.format(a.t.gVw57p,{}):a.intl.string(a.t.nPGLFQ)})})]})}u.buttonTypes=l,u.Loading=function(){let e=i.useMemo(()=>({width:`${10+20*Math.random()}%`}),[]);return(0,r.jsx)("div",{className:o.uH,style:e,children:(0,r.jsx)(s.Text,{className:o.R,variant:"text-md/medium",color:"text-strong",children:"_"})})}}