mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-08-29 11:19:41 +02:00
1 line
12 KiB
JavaScript
1 line
12 KiB
JavaScript
"use strict";(globalThis.webpackChunkOpenSign_Docs=globalThis.webpackChunkOpenSign_Docs||[]).push([[1912],{78478(e,n,t){t.r(n),t.d(n,{default:()=>c});t(96540);var s=t(92303),o=t(74848);function c({children:e,fallback:n}){return(0,s.default)()?(0,o.jsx)(o.Fragment,{children:e?.()}):n??null}},13472(e,n,t){t.d(n,{A:()=>L});t(96540);var s=t(88473),o=t(18215),c=t(21312),a=t(17559);const i="admonition_xJq3",l="admonitionHeading_Gvgb",r="admonitionIcon_Rf37",d="admonitionContent_BuS1";var u=t(74848);function m({type:e,className:n,children:t}){return(0,u.jsx)("div",{className:(0,o.A)(a.G.common.admonition,a.G.common.admonitionType(e),i,n),children:t})}function h({icon:e,title:n}){return(0,u.jsxs)("div",{className:l,children:[(0,u.jsx)("span",{className:r,children:e}),n]})}function f({children:e}){return e?(0,u.jsx)("div",{className:d,children:e}):null}function p(e){const{type:n,icon:t,title:s,children:o,className:c}=e;return(0,u.jsxs)(m,{type:n,className:c,children:[s||t?(0,u.jsx)(h,{title:s,icon:t}):null,(0,u.jsx)(f,{children:o})]})}function x(e){return(0,u.jsx)("svg",{viewBox:"0 0 14 16",...e,children:(0,u.jsx)("path",{fillRule:"evenodd",d:"M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"})})}const j={icon:(0,u.jsx)(x,{}),title:(0,u.jsx)(c.default,{id:"theme.admonition.note",description:"The default label used for the Note admonition (:::note)",children:"note"})};function g(e){return(0,u.jsx)(p,{...j,...e,className:(0,o.A)("alert alert--secondary",e.className),children:e.children})}function N(e){return(0,u.jsx)("svg",{viewBox:"0 0 12 16",...e,children:(0,u.jsx)("path",{fillRule:"evenodd",d:"M6.5 0C3.48 0 1 2.19 1 5c0 .92.55 2.25 1 3 1.34 2.25 1.78 2.78 2 4v1h5v-1c.22-1.22.66-1.75 2-4 .45-.75 1-2.08 1-3 0-2.81-2.48-5-5.5-5zm3.64 7.48c-.25.44-.47.8-.67 1.11-.86 1.41-1.25 2.06-1.45 3.23-.02.05-.02.11-.02.17H5c0-.06 0-.13-.02-.17-.2-1.17-.59-1.83-1.45-3.23-.2-.31-.42-.67-.67-1.11C2.44 6.78 2 5.65 2 5c0-2.2 2.02-4 4.5-4 1.22 0 2.36.42 3.22 1.19C10.55 2.94 11 3.94 11 5c0 .66-.44 1.78-.86 2.48zM4 14h5c-.23 1.14-1.3 2-2.5 2s-2.27-.86-2.5-2z"})})}const v={icon:(0,u.jsx)(N,{}),title:(0,u.jsx)(c.default,{id:"theme.admonition.tip",description:"The default label used for the Tip admonition (:::tip)",children:"tip"})};function b(e){return(0,u.jsx)(p,{...v,...e,className:(0,o.A)("alert alert--success",e.className),children:e.children})}function y(e){return(0,u.jsx)("svg",{viewBox:"0 0 14 16",...e,children:(0,u.jsx)("path",{fillRule:"evenodd",d:"M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"})})}const C={icon:(0,u.jsx)(y,{}),title:(0,u.jsx)(c.default,{id:"theme.admonition.info",description:"The default label used for the Info admonition (:::info)",children:"info"})};function w(e){return(0,u.jsx)(p,{...C,...e,className:(0,o.A)("alert alert--info",e.className),children:e.children})}function B(e){return(0,u.jsx)("svg",{viewBox:"0 0 16 16",...e,children:(0,u.jsx)("path",{fillRule:"evenodd",d:"M8.893 1.5c-.183-.31-.52-.5-.887-.5s-.703.19-.886.5L.138 13.499a.98.98 0 0 0 0 1.001c.193.31.53.501.886.501h13.964c.367 0 .704-.19.877-.5a1.03 1.03 0 0 0 .01-1.002L8.893 1.5zm.133 11.497H6.987v-2.003h2.039v2.003zm0-3.004H6.987V5.987h2.039v4.006z"})})}const A={icon:(0,u.jsx)(B,{}),title:(0,u.jsx)(c.default,{id:"theme.admonition.warning",description:"The default label used for the Warning admonition (:::warning)",children:"warning"})};function k(e){return(0,u.jsx)("svg",{viewBox:"0 0 12 16",...e,children:(0,u.jsx)("path",{fillRule:"evenodd",d:"M5.05.31c.81 2.17.41 3.38-.52 4.31C3.55 5.67 1.98 6.45.9 7.98c-1.45 2.05-1.7 6.53 3.53 7.7-2.2-1.16-2.67-4.52-.3-6.61-.61 2.03.53 3.33 1.94 2.86 1.39-.47 2.3.53 2.27 1.67-.02.78-.31 1.44-1.13 1.81 3.42-.59 4.78-3.42 4.78-5.56 0-2.84-2.53-3.22-1.25-5.61-1.52.13-2.03 1.13-1.89 2.75.09 1.08-1.02 1.8-1.86 1.33-.67-.41-.66-1.19-.06-1.78C8.18 5.31 8.68 2.45 5.05.32L5.03.3l.02.01z"})})}const _={icon:(0,u.jsx)(k,{}),title:(0,u.jsx)(c.default,{id:"theme.admonition.danger",description:"The default label used for the Danger admonition (:::danger)",children:"danger"})};const T={icon:(0,u.jsx)(B,{}),title:(0,u.jsx)(c.default,{id:"theme.admonition.caution",description:"The default label used for the Caution admonition (:::caution)",children:"caution"})};const M={...{note:g,tip:b,info:w,warning:function(e){return(0,u.jsx)(p,{...A,...e,className:(0,o.A)("alert alert--warning",e.className),children:e.children})},danger:function(e){return(0,u.jsx)(p,{..._,...e,className:(0,o.A)("alert alert--danger",e.className),children:e.children})}},...{secondary:e=>(0,u.jsx)(g,{title:"secondary",...e}),important:e=>(0,u.jsx)(w,{title:"important",...e}),success:e=>(0,u.jsx)(b,{title:"success",...e}),caution:function(e){return(0,u.jsx)(p,{...T,...e,className:(0,o.A)("alert alert--warning",e.className),children:e.children})}}};function L(e){const n=(0,s.c)(e),t=(o=n.type,M[o]||(console.warn(`No admonition component found for admonition type "${o}". Using Info as fallback.`),M.info));var o;return(0,u.jsx)(t,{...n})}},90446(e,n,t){t.r(n),t.d(n,{default:()=>O});var s=t(96540),o=t(92303),c=t(18215),a=t(26058),i=t(17559),l=t(34291);const r="codeBlockContainer_Ckt0";var d=t(74848);function u({as:e,...n}){const t=(0,a.A)(),s=(0,l.M$)(t);return(0,d.jsx)(e,{...n,style:s,className:(0,c.A)(n.className,r,i.G.common.codeBlock)})}const m="codeBlock_bY9V",h="codeBlockStandalone_MEMb",f="codeBlockLines_e6Vv",p="codeBlockLinesWithNumbering_o6Pm";function x({children:e,className:n}){return(0,d.jsx)(u,{as:"pre",tabIndex:0,className:(0,c.A)(h,"thin-scrollbar",n),children:(0,d.jsx)("code",{className:f,children:e})})}var j=t(6342),g=t(96591);function N({children:e}){return e}var v=t(78181);function b({line:e,token:n,...t}){return(0,d.jsx)("span",{...t})}const y="codeLine_lJS_",C="codeLineNumber_Tfdd",w="codeLineContent_feaV";function B({line:e,classNames:n,showLineNumbers:t,getLineProps:s,getTokenProps:o}){const a=function(e){const n=1===e.length&&"\n"===e[0].content?e[0]:void 0;return n?[{...n,content:""}]:e}(e),i=s({line:a,className:(0,c.A)(n,t&&y)}),l=a.map((e,n)=>{const t=o({token:e});return(0,d.jsx)(b,{...t,line:a,token:e,children:t.children},n)});return(0,d.jsxs)("span",{...i,children:[t?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{className:C}),(0,d.jsx)("span",{className:w,children:l})]}):l,(0,d.jsx)("br",{})]})}const A=s.forwardRef((e,n)=>(0,d.jsx)("pre",{ref:n,tabIndex:0,...e,className:(0,c.A)(e.className,m,"thin-scrollbar")}));function k(e){const{metadata:n}=(0,l.Ph)();return(0,d.jsx)("code",{...e,className:(0,c.A)(e.className,f,void 0!==n.lineNumbersStart&&p),style:{...e.style,counterReset:void 0===n.lineNumbersStart?void 0:"line-count "+(n.lineNumbersStart-1)}})}function _({className:e}){const{metadata:n,wordWrap:t}=(0,l.Ph)(),s=(0,a.A)(),{code:o,language:i,lineNumbersStart:r,lineClassNames:u}=n;return(0,d.jsx)(v.Highlight,{theme:s,code:o,language:i,children:({className:n,style:s,tokens:o,getLineProps:a,getTokenProps:i})=>(0,d.jsx)(A,{ref:t.codeBlockRef,className:(0,c.A)(e,n),style:s,children:(0,d.jsx)(k,{children:o.map((e,n)=>(0,d.jsx)(B,{line:e,getLineProps:a,getTokenProps:i,classNames:u[n],showLineNumbers:void 0!==r},n))})})})}var T=t(78478),M=t(21312);function L({className:e,...n}){return(0,d.jsx)("button",{type:"button",...n,className:(0,c.A)("clean-btn",e)})}function H(e){return(0,d.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,d.jsx)("path",{fill:"currentColor",d:"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"})})}function z(e){return(0,d.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,d.jsx)("path",{fill:"currentColor",d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"})})}const S={copyButtonCopied:"copyButtonCopied_Vdqa",copyButtonIcons:"copyButtonIcons_IEyt",copyButtonIcon:"copyButtonIcon_TrPX",copyButtonSuccessIcon:"copyButtonSuccessIcon_cVMy"};function I(e){return e?(0,M.translate)({id:"theme.CodeBlock.copied",message:"Copied",description:"The copied button label on code blocks"}):(0,M.translate)({id:"theme.CodeBlock.copyButtonAriaLabel",message:"Copy code to clipboard",description:"The ARIA label for copy code blocks button"})}function V({className:e}){const{copyCode:n,isCopied:t}=function(){const{metadata:{code:e}}=(0,l.Ph)(),[n,t]=(0,s.useState)(!1),o=(0,s.useRef)(void 0),c=(0,s.useCallback)(()=>{navigator.clipboard.writeText(e).then(()=>{t(!0),o.current=window.setTimeout(()=>{t(!1)},1e3)})},[e]);return(0,s.useEffect)(()=>()=>window.clearTimeout(o.current),[]),{copyCode:c,isCopied:n}}();return(0,d.jsx)(L,{"aria-label":I(t),title:(0,M.translate)({id:"theme.CodeBlock.copy",message:"Copy",description:"The copy button label on code blocks"}),className:(0,c.A)(e,S.copyButton,t&&S.copyButtonCopied),onClick:n,children:(0,d.jsxs)("span",{className:S.copyButtonIcons,"aria-hidden":"true",children:[(0,d.jsx)(H,{className:S.copyButtonIcon}),(0,d.jsx)(z,{className:S.copyButtonSuccessIcon})]})})}function P(e){return(0,d.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,d.jsx)("path",{fill:"currentColor",d:"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"})})}const R="wordWrapButtonIcon_b1P5",E="wordWrapButtonEnabled_uzNF";function W({className:e}){const{wordWrap:n}=(0,l.Ph)();if(!(n.isEnabled||n.isCodeScrollable))return!1;const t=(0,M.translate)({id:"theme.CodeBlock.wordWrapToggle",message:"Toggle word wrap",description:"The title attribute for toggle word wrapping button of code block lines"});return(0,d.jsx)(L,{onClick:()=>n.toggle(),className:(0,c.A)(e,n.isEnabled&&E),"aria-label":t,title:t,children:(0,d.jsx)(P,{className:R,"aria-hidden":"true"})})}const D="buttonGroup_M5ko";function G({className:e}){return(0,d.jsx)(T.default,{children:()=>(0,d.jsxs)("div",{className:(0,c.A)(e,D),children:[(0,d.jsx)(W,{}),(0,d.jsx)(V,{})]})})}const q="codeBlockContent_QJqH",U="codeBlockTitle_OeMC";function F({className:e}){const{metadata:n}=(0,l.Ph)();return(0,d.jsxs)(u,{as:"div",className:(0,c.A)(e,n.className),children:[n.title&&(0,d.jsx)("div",{className:U,children:(0,d.jsx)(N,{children:n.title})}),(0,d.jsxs)("div",{className:q,children:[(0,d.jsx)(_,{}),(0,d.jsx)(G,{})]})]})}function J(e){const n=function(e){const{prism:n}=(0,j.p)();return(0,l.mU)({code:e.children,className:e.className,metastring:e.metastring,magicComments:n.magicComments,defaultLanguage:n.defaultLanguage,language:e.language,title:e.title,showLineNumbers:e.showLineNumbers})}(e),t=(0,g.f)();return(0,d.jsx)(l.l8,{metadata:n,wordWrap:t,children:(0,d.jsx)(F,{})})}function O({children:e,...n}){const t=(0,o.default)(),c=function(e){return s.Children.toArray(e).some(e=>(0,s.isValidElement)(e))?e:Array.isArray(e)?e.join(""):e}(e),a="string"==typeof c?J:x;return(0,d.jsx)(a,{...n,children:c},String(t))}},41622(e,n,t){t.r(n),t.d(n,{default:()=>j});var s=t(96540),o=t(18215),c=t(15066),a=t(63427),i=t(92303),l=t(41422);const r="details_lb9f",d="isBrowser_bmU9",u="collapsibleContent_i85q";var m=t(74848);function h(e){return!!e&&("SUMMARY"===e.tagName||h(e.parentElement))}function f(e,n){return!!e&&(e===n||f(e.parentElement,n))}function p({summary:e,children:n,...t}){(0,a.A)().collectAnchor(t.id);const o=(0,i.default)(),p=(0,s.useRef)(null),{collapsed:x,setCollapsed:j}=(0,l.u)({initialState:!t.open}),[g,N]=(0,s.useState)(t.open),v=s.isValidElement(e)?e:(0,m.jsx)("summary",{children:e??"Details"});return(0,m.jsxs)("details",{...t,ref:p,open:g,"data-collapsed":x,className:(0,c.A)(r,o&&d,t.className),onMouseDown:e=>{h(e.target)&&e.detail>1&&e.preventDefault()},onClick:e=>{e.stopPropagation();const n=e.target;h(n)&&f(n,p.current)&&(e.preventDefault(),x?(j(!1),N(!0)):j(!0))},children:[v,(0,m.jsx)(l.N,{lazy:!1,collapsed:x,onCollapseTransitionEnd:e=>{j(e),N(!e)},children:(0,m.jsx)("div",{className:u,children:n})})]})}const x="details_b_Ee";function j({...e}){return(0,m.jsx)(p,{...e,className:(0,o.A)("alert alert--info",x,e.className)})}}}]); |