????
Current Path : C:/inetpub/vhost/qlhncn.gdtsolutions.vn/www/assets/ |
Current File : C:/inetpub/vhost/qlhncn.gdtsolutions.vn/www/assets/Typography-fdb2b74a.js |
import{Y as C,W as s,r as P,P as r}from"./index-63f91612.js";import{i as I,k as J,l as Y,m as N,n as q,o as G,p as H,b as K,g as Q,s as X,d as Z,f as ee,j as te,c as oe,a as re}from"./styled-0cf6ddbb.js";const ne=["ownerState"],se=["variants"],ae=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function ie(e){return Object.keys(e).length===0}function pe(e){return typeof e=="string"&&e.charCodeAt(0)>96}function M(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const le=Y(),V=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function _({defaultTheme:e,theme:t,themeId:o}){return ie(t)?e:t[o]||t}function ce(e){return e?(t,o)=>o[e]:null}function j(e,t){let{ownerState:o}=t,a=C(t,ne);const i=typeof e=="function"?e(s({ownerState:o},a)):e;if(Array.isArray(i))return i.flatMap(h=>j(h,s({ownerState:o},a)));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:h=[]}=i;let u=C(i,se);return h.forEach(n=>{let p=!0;typeof n.props=="function"?p=n.props(s({ownerState:o},a,o)):Object.keys(n.props).forEach(y=>{(o==null?void 0:o[y])!==n.props[y]&&a[y]!==n.props[y]&&(p=!1)}),p&&(Array.isArray(u)||(u=[u]),u.push(typeof n.style=="function"?n.style(s({ownerState:o},a,o)):n.style))}),u}return i}function Se(e={}){const{themeId:t,defaultTheme:o=le,rootShouldForwardProp:a=M,slotShouldForwardProp:i=M}=e,h=l=>G(s({},l,{theme:_(s({},l,{defaultTheme:o,themeId:t}))}));return h.__mui_systemSx=!0,(l,u={})=>{I(l,f=>f.filter(d=>!(d!=null&&d.__mui_systemSx)));const{name:n,slot:p,skipVariantsResolver:y,skipSx:T,overridesResolver:g=ce(V(p))}=u,S=C(u,ae),E=y!==void 0?y:p&&p!=="Root"&&p!=="root"||!1,R=T||!1;let w;n&&(w=`${n}-${V(p||"Root")}`);let v=M;p==="Root"||p==="root"?v=a:p?v=i:pe(l)&&(v=void 0);const $=J(l,s({shouldForwardProp:v,label:w},S)),k=f=>typeof f=="function"&&f.__emotion_real!==f||H(f)?d=>j(f,s({},d,{theme:_({theme:d.theme,defaultTheme:o,themeId:t})})):f,A=(f,...d)=>{let W=k(f);const b=d?d.map(k):[];n&&g&&b.push(c=>{const m=_(s({},c,{defaultTheme:o,themeId:t}));if(!m.components||!m.components[n]||!m.components[n].styleOverrides)return null;const x=m.components[n].styleOverrides,O={};return Object.entries(x).forEach(([U,z])=>{O[U]=j(z,s({},c,{theme:m}))}),g(c,O)}),n&&!E&&b.push(c=>{var m;const x=_(s({},c,{defaultTheme:o,themeId:t})),O=x==null||(m=x.components)==null||(m=m[n])==null?void 0:m.variants;return j({variants:O},s({},c,{theme:x}))}),R||b.push(h);const F=b.length-d.length;if(Array.isArray(f)&&F>0){const c=new Array(F).fill("");W=[...f,...c],W.raw=[...f.raw,...c]}const B=$(W,...b);{let c;n&&(c=`${n}${N(p||"")}`),c===void 0&&(c=`Styled(${q(l)})`),B.displayName=c}return l.muiName&&(B.muiName=l.muiName),B};return $.withConfig&&(A.withConfig=$.withConfig),A}}const ue=typeof window<"u"?P.useLayoutEffect:P.useEffect,Re=ue;function we(e,t){return function(...a){return e(...a)||t(...a)}}const fe=r.oneOfType([r.func,r.object]),Oe=fe;function he(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function _e(...e){return P.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(o=>{he(o,t)})},e)}function me(e){return K("MuiTypography",e)}Q("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const ye=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],de=e=>{const{align:t,gutterBottom:o,noWrap:a,paragraph:i,variant:h,classes:l}=e,u={root:["root",h,e.align!=="inherit"&&`align${N(t)}`,o&&"gutterBottom",a&&"noWrap",i&&"paragraph"]};return re(u,me,l)},ge=X("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.variant&&t[o.variant],o.align!=="inherit"&&t[`align${N(o.align)}`],o.noWrap&&t.noWrap,o.gutterBottom&&t.gutterBottom,o.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>s({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),L={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ve={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},be=e=>ve[e]||e,D=P.forwardRef(function(t,o){const a=Z({props:t,name:"MuiTypography"}),i=be(a.color),h=ee(s({},a,{color:i})),{align:l="inherit",className:u,component:n,gutterBottom:p=!1,noWrap:y=!1,paragraph:T=!1,variant:g="body1",variantMapping:S=L}=h,E=C(h,ye),R=s({},h,{align:l,color:i,className:u,component:n,gutterBottom:p,noWrap:y,paragraph:T,variant:g,variantMapping:S}),w=n||(T?"p":S[g]||L[g])||"span",v=de(R);return te.jsx(ge,s({as:w,ref:o,ownerState:R,className:oe(v.root,u)},E))});D.propTypes={align:r.oneOf(["center","inherit","justify","left","right"]),children:r.node,classes:r.object,className:r.string,component:r.elementType,gutterBottom:r.bool,noWrap:r.bool,paragraph:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOfType([r.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),r.string]),variantMapping:r.object};const je=D;export{je as T,Re as a,M as b,we as c,Se as d,Oe as r,he as s,_e as u};