aboutsummaryrefslogtreecommitdiff
path: root/build/assets/js/17896441.6c0b3b39.js
blob: 769092f9a7ed4bb1f6ee2aa5cc4126f6d8627b44 (plain)
1
"use strict";(self.webpackChunkdocuments=self.webpackChunkdocuments||[]).push([[7918],{65326:(n,e,i)=>{i.d(e,{Z:()=>I});i(67294);var t=i(94697),a=i(86010),s=i(95999),o=i(35281),r=i(9423),c=i(48944),l=i(85893);function d(n){let{type:e,className:i,children:t}=n;return(0,l.jsx)("div",{className:(0,a.Z)(o.k.common.admonition,o.k.common.admonitionType(e),r.Z.admonition,i),children:t})}function h(n){let{icon:e,id:i,title:t}=n;const s=t.match?(t.match(/^#+/)||[""])[0].length:0,o=s>0?t.replace(/^#+/,"").trim():t,d=(0,a.Z)("anchor","title",c.Z.anchorWithStickyNavbar);return(0,l.jsxs)("div",{className:r.Z.admonitionHeading,children:[(0,l.jsx)("span",{className:r.Z.admonitionIcon,children:e}),3==s?(0,l.jsx)("h3",{id:i,className:d,children:o}):4==s?(0,l.jsx)("h4",{id:i,className:d,children:o}):5==s?(0,l.jsx)("h5",{id:i,className:d,children:o}):6==s?(0,l.jsx)("h6",{id:i,className:d,children:o}):(0,l.jsx)(l.Fragment,{children:o})]})}function m(n){let{children:e}=n;return e?(0,l.jsx)("div",{className:r.Z.admonitionContent,children:e}):null}function u(n){const{type:e,icon:i,title:t,children:a,className:s,id:o}=n;return(0,l.jsxs)(d,{type:e,className:s,children:[(0,l.jsx)(h,{title:t,icon:i,id:o}),(0,l.jsx)(m,{children:a})]})}var f=i(54931);const j={icon:(0,l.jsx)(f.Z,{}),title:(0,l.jsx)(s.Z,{id:"theme.admonition.note",description:"The default label used for the Note admonition (:::note)",children:"note"})};function x(n){return(0,l.jsx)(u,{...j,...n,className:(0,a.Z)("alert alert--secondary",n.className),children:n.children})}var g=i(21764);const Z={icon:(0,l.jsx)(g.Z,{}),title:(0,l.jsx)(s.Z,{id:"theme.admonition.tip",description:"The default label used for the Tip admonition (:::tip)",children:"tip"})};function p(n){return(0,l.jsx)(u,{...Z,...n,className:(0,a.Z)("alert alert--success",n.className),children:n.children})}var N=i(39658);const b={icon:(0,l.jsx)(N.Z,{}),title:(0,l.jsx)(s.Z,{id:"theme.admonition.info",description:"The default label used for the Info admonition (:::info)",children:"info"})};function y(n){return(0,l.jsx)(u,{...b,...n,className:(0,a.Z)("alert alert--info",n.className),children:n.children})}var v=i(16712);const k={icon:(0,l.jsx)(v.Z,{}),title:(0,l.jsx)(s.Z,{id:"theme.admonition.warning",description:"The default label used for the Warning admonition (:::warning)",children:"warning"})};var w=i(3264);const _={icon:(0,l.jsx)(w.Z,{}),title:(0,l.jsx)(s.Z,{id:"theme.admonition.danger",description:"The default label used for the Danger admonition (:::danger)",children:"danger"})};const T={icon:(0,l.jsx)(v.Z,{}),title:(0,l.jsx)(s.Z,{id:"theme.admonition.caution",description:"The default label used for the Caution admonition (:::caution)",children:"caution"})};const C={...{note:x,tip:p,info:y,warning:function(n){return(0,l.jsx)(u,{...k,...n,className:(0,a.Z)("alert alert--warning",n.className),children:n.children})},danger:function(n){return(0,l.jsx)(u,{..._,...n,className:(0,a.Z)("alert alert--danger",n.className),children:n.children})}},...{secondary:n=>(0,l.jsx)(x,{title:"secondary",...n}),important:n=>(0,l.jsx)(y,{title:"important",...n}),success:n=>(0,l.jsx)(p,{title:"success",...n}),caution:function(n){return(0,l.jsx)(u,{...T,...n,className:(0,a.Z)("alert alert--warning",n.className),children:n.children})}}};function I(n){const e=(0,t.X)(n),i=(a=e.type,C[a]||(console.warn(`No admonition component found for admonition type "${a}". Using Info as fallback.`),C.info));var a;return(0,l.jsx)(i,{...e})}},45127:(n,e,i)=>{i.d(e,{Z:()=>o});i(67294);var t=i(57983);const a={bln:"bln_ckWC",bleft:"bleft_lBjk",gityo:"gityo_f5mA",bright:"bright_RGpM",thought:"thought_gn5Z",smile:"smile_ibE5",weary:"weary_f8GU",anger:"anger_rz37",sorry:"sorry_kSJN",search:"search_uoYu"};var s=i(85893);const o={...t.Z,MessageBubble:function(n){let{children:e,speaker:i,align:t,id:o}=n,r="left"===t?[a.bln,a.bleft].join(" "):[a.bln,a.bright].join(" ");return(0,s.jsx)("div",{className:r,"data-speaker":i,id:o,children:e})}}}}]);