{"version":3,"sources":["webpack:///./docs/guide/global-component.md"],"names":["makeShortcode","name","MDXDefaultShortcode","props","console","warn","Button","Switch","Alert","SiteCustomer","layoutProps","MDXLayout","MDXContent","components","marginTop","ctx","path","isMDXComponent","hot","module"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA;AACA;AACA;AACA;AAEA;;AAGA,IAAMA,aAAa,GAAG,SAAhBA,aAAgB,CAAAC,IAAI;AAAA,SAAI,SAASC,mBAAT,CAA6BC,KAA7B,EAAoC;AAChEC,WAAO,CAACC,IAAR,CAAa,eAAeJ,IAAf,GAAsB,yEAAnC;AACA,WAAO,iEAASE,KAAT,CAAP;AACD,GAHyB;AAAA,CAA1B;;AAIA,IAAMG,MAAM,GAAGN,aAAa,CAAC,QAAD,CAA5B;AACA,IAAMO,MAAM,GAAGP,aAAa,CAAC,QAAD,CAA5B;AACA,IAAMQ,KAAK,GAAGR,aAAa,CAAC,OAAD,CAA3B;AACA,IAAMS,YAAY,GAAGT,aAAa,CAAC,cAAD,CAAlC;AACA,IAAMU,WAAW,GAAG,EAApB;AAGA,IAAMC,SAAS,GAAG,SAAlB;AACe,SAASC,UAAT,OAGZ;AAAA,MAFDC,UAEC,QAFDA,UAEC;AAAA,MADEV,KACF;;AACD,SAAO,0DAAC,SAAD,eAAeO,WAAf,EAAgCP,KAAhC;AAAuC,cAAU,EAAEU,UAAnD;AAA+D,WAAO,EAAC;AAAvE,MACL,gEAAQ;AACN,iBAAa,YADP;AAEN,UAAM;AAFA,GAAR,uBAGwB;AAAG,cAAU,EAAC;AAAd,KAAuB;AAC3C,YAAQ,oBADmC;AAE3C,mBAAe,IAF4B;AAG3C,iBAAa;AAH8B,GAAvB,OAHxB,CADK,EASL,8EACE;AAAG,cAAU,EAAC;AAAd,kGADF,CATK,EAYL,gEAAQ;AACN,iBAAa,YADP;AAEN,UAAM;AAFA,GAAR,oBAGqB;AAAG,cAAU,EAAC;AAAd,KAAuB;AACxC,YAAQ,gBADg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,OArCK,EAuCgB;AAAM,cAAU,EAAC;AAAjB,KAA4B;AACzC,iBAAa;AAD4B,GAA5B,OAvChB,QA0CP;AAAM,cAAU,EAAC;AAAjB,KAA4B;AAClB,iBAAa;AADK,GAA5B,OA1CO,EA4CgB;AAAM,cAAU,EAAC;AAAjB,KAA4B;AACzC,iBAAa;AAD4B,GAA5B,OA5ChB,kBA8CgC;AAAM,cAAU,EAAC;AAAjB,KAA4B;AACzD,iBAAa;AAD4C,GAA5B,OA9ChC,CAFF,CAHH,CA5FK,EAkJL,0DAAC,YAAD;AAAc,WAAO,EAAC;AAAtB,KACG,UAAAC,GAAG,EAAI;AACN,6DAAkDA,GAAG,CAACC,IAAtD;AACD,GAHH,CAlJK,CAAP;AAwJD;AAED;AACAJ,UAAU,CAACK,cAAX,GAA4B,IAA5B;AAEAL,UAAU,GAAGM,4DAAG,CAACC,MAAD,CAAH,CAAYP,UAAZ,CAAb;;;;;;;;;;0BA7KMZ,a;0BAIAM,M;0BACAC,M;0BACAC,K;0BACAC,Y;0BACAC,W;0BAGAC,S;0BACkBC,U","file":"guide/global-component.md.server-bundle.js","sourcesContent":["\nimport { hot } from 'react-hot-loader'; \nimport '@temp//rhlConfig';\nimport React from 'react';\nimport { mdx } from '@mdx-js/react'; \n\n/* @jsx mdx */\n\n\nconst makeShortcode = name => function MDXDefaultShortcode(props) {\n  console.warn(\"Component \" + name + \" was not imported, exported, or provided by MDXProvider as global scope\")\n  return <div {...props}/>\n};\nconst Button = makeShortcode(\"Button\");\nconst Switch = makeShortcode(\"Switch\");\nconst Alert = makeShortcode(\"Alert\");\nconst SiteCustomer = makeShortcode(\"SiteCustomer\");\nconst layoutProps = {\n  \n};\nconst MDXLayout = \"wrapper\"\nexport default function MDXContent({\n  components,\n  ...props\n}) {\n  return <MDXLayout {...layoutProps} {...props} components={components} mdxType=\"MDXLayout\">\n    <h1 {...{\n      \"className\": \"__internal\",\n      \"id\": \"global-components\"\n    }}>{`Global Components`}<a parentName=\"h1\" {...{\n        \"href\": \"#global-components\",\n        \"aria-hidden\": true,\n        \"className\": \"anchor\"\n      }}>{`#`}</a></h1>\n    <blockquote>\n      <p parentName=\"blockquote\">{`You can set up a global component that can be referenced directly anywhere in the markdown`}</p>\n    </blockquote>\n    <h2 {...{\n      \"className\": \"__internal\",\n      \"id\": \"how-to-set-up\"\n    }}>{`How to set up?`}<a parentName=\"h2\" {...{\n        \"href\": \"#how-to-set-up\",\n        \"aria-hidden\": true,\n        \"className\": \"anchor\"\n      }}>{`#`}</a></h2>\n    <p>{`Create a new file with the path: `}<inlineCode parentName=\"p\">{`.rcpress/globalComponent.js`}</inlineCode>{`. Import the global component you want to set and export a default Object. E.g:`}</p>\n    <div {...{\n      \"className\": \"rcpress-highlight\",\n      \"data-language\": \"js\"\n    }}><pre parentName=\"div\" {...{\n        \"className\": \"language-js\"\n      }}><code parentName=\"pre\" {...{\n          \"className\": \"language-js\"\n        }}><span parentName=\"code\" {...{\n            \"className\": \"token keyword\"\n          }}>{`import`}</span>{` `}<span parentName=\"code\" {...{\n            \"className\": \"token punctuation\"\n          }}>{`{`}</span>{` Alert`}<span parentName=\"code\" {...{\n            \"className\": \"token punctuation\"\n          }}>{`,`}</span>{` Button`}<span parentName=\"code\" {...{\n            \"className\": \"token punctuation\"\n          }}>{`,`}</span>{` Switch `}<span parentName=\"code\" {...{\n            \"className\": \"token punctuation\"\n          }}>{`}`}</span>{` `}<span parentName=\"code\" {...{\n            \"className\": \"token keyword\"\n          }}>{`from`}</span>{` `}<span parentName=\"code\" {...{\n            \"className\": \"token string\"\n          }}>{`'antd'`}</span><span parentName=\"code\" {...{\n            \"className\": \"token punctuation\"\n          }}>{`;`}</span>{`\n`}<span parentName=\"code\" {...{\n            \"className\": \"token keyword\"\n          }}>{`export`}</span>{` `}<span parentName=\"code\" {...{\n            \"className\": \"token keyword\"\n          }}>{`default`}</span>{` `}<span parentName=\"code\" {...{\n            \"className\": \"token punctuation\"\n          }}>{`{`}</span>{`\n  Alert`}<span parentName=\"code\" {...{\n            \"className\": \"token punctuation\"\n          }}>{`,`}</span>{`\n  Button`}<span parentName=\"code\" {...{\n            \"className\": \"token punctuation\"\n          }}>{`,`}</span>{`\n  Switch\n`}<span parentName=\"code\" {...{\n            \"className\": \"token punctuation\"\n          }}>{`}`}</span><span parentName=\"code\" {...{\n            \"className\": \"token punctuation\"\n          }}>{`;`}</span></code></pre></div>\n    <p>{`At this time, you can use it directly in `}<inlineCode parentName=\"p\">{`markdown`}</inlineCode>{`.`}</p>\n    <Button mdxType=\"Button\">\nGlobal component\n    </Button>\n    <br />\n    <Switch defaultChecked style={{\n      marginTop: '15px'\n    }} mdxType=\"Switch\" />\n    <br />\n    <Alert message=\"success\" style={{\n      marginTop: '15px'\n    }} description=\"Successful use of global components\" type=\"success\" showIcon mdxType=\"Alert\" />\n    <h2 {...{\n      \"className\": \"__internal\",\n      \"id\": \"default-global-component\"\n    }}>{`Default global component`}<a parentName=\"h2\" {...{\n        \"href\": \"#default-global-component\",\n        \"aria-hidden\": true,\n        \"className\": \"anchor\"\n      }}>{`#`}</a></h2>\n    <h3 {...{\n      \"className\": \"__internal\",\n      \"id\": \"sitecustomer\"\n    }}>{`SiteCustomer`}<a parentName=\"h3\" {...{\n        \"href\": \"#sitecustomer\",\n        \"aria-hidden\": true,\n        \"className\": \"anchor\"\n      }}>{`#`}</a></h3>\n    <div {...{\n      \"className\": \"rcpress-highlight\",\n      \"data-language\": \"js\"\n    }}><pre parentName=\"div\" {...{\n        \"className\": \"language-js\"\n      }}><code parentName=\"pre\" {...{\n          \"className\": \"language-js\"\n        }}><span parentName=\"code\" {...{\n            \"className\": \"token operator\"\n          }}>{`<`}</span>{`SiteCustomer`}<span parentName=\"code\" {...{\n            \"className\": \"token operator\"\n          }}>{`>`}</span>{`\n  `}<span parentName=\"code\" {...{\n            \"className\": \"token punctuation\"\n          }}>{`{`}</span><span parentName=\"code\" {...{\n            \"className\": \"token parameter\"\n          }}>{`ctx`}</span>{` `}<span parentName=\"code\" {...{\n            \"className\": \"token operator\"\n          }}>{`=>`}</span>{` `}<span parentName=\"code\" {...{\n            \"className\": \"token punctuation\"\n          }}>{`{`}</span>{`\n    `}<span parentName=\"code\" {...{\n            \"className\": \"token keyword\"\n          }}>{`return`}</span>{` `}<span parentName=\"code\" {...{\n            \"className\": \"token template-string\"\n          }}><span parentName=\"span\" {...{\n              \"className\": \"token template-punctuation string\"\n            }}>{`\\``}</span><span parentName=\"span\" {...{\n              \"className\": \"token string\"\n            }}>{`Current page path (not including base): `}</span><span parentName=\"span\" {...{\n              \"className\": \"token interpolation\"\n            }}><span parentName=\"span\" {...{\n                \"className\": \"token interpolation-punctuation punctuation\"\n              }}>{`\\${`}</span>{`ctx`}<span parentName=\"span\" {...{\n                \"className\": \"token punctuation\"\n              }}>{`.`}</span>{`path`}<span parentName=\"span\" {...{\n                \"className\": \"token interpolation-punctuation punctuation\"\n              }}>{`}`}</span></span><span parentName=\"span\" {...{\n              \"className\": \"token template-punctuation string\"\n            }}>{`\\``}</span></span><span parentName=\"code\" {...{\n            \"className\": \"token punctuation\"\n          }}>{`;`}</span>{`\n  `}<span parentName=\"code\" {...{\n            \"className\": \"token punctuation\"\n          }}>{`}`}</span><span parentName=\"code\" {...{\n            \"className\": \"token punctuation\"\n          }}>{`}`}</span>{`\n`}<span parentName=\"code\" {...{\n            \"className\": \"token operator\"\n          }}>{`<`}</span><span parentName=\"code\" {...{\n            \"className\": \"token operator\"\n          }}>{`/`}</span>{`SiteCustomer`}<span parentName=\"code\" {...{\n            \"className\": \"token operator\"\n          }}>{`>`}</span></code></pre></div>\n    <SiteCustomer mdxType=\"SiteCustomer\">\n      {ctx => {\n        return `Current page path (not including base): ${ctx.path}`;\n      }}\n    </SiteCustomer>\n    </MDXLayout>;\n}\n\n;\nMDXContent.isMDXComponent = true;\n\nMDXContent = hot(module)(MDXContent);\n"],"sourceRoot":""}