PageSourceSearch

https://mockoon.com/_next/static/chunks/pages/docs/%5B...slug%5D-d72259576086e62b.js

js mockoon.com collected 2026-09-25 14:22:42 UTC 7,472 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9363],{16030:(e,s,l)=>{"use strict";l.r(s),l.d(s,{__N_SSG:()=>h,default:()=>u});var t=l(37876),a=l(48230),i=l.n(a),r=l(89099),c=l(14232),n=l(62035),d=l(79120),o=l(98642),m=l(33076),h=!0;function u(e){let s=(0,r.useRouter)(),l=s.asPath.split("/")[2],[a,h]=(0,c.useState)(l),u=(0,n.rsort)(e.versions.filter(e=>"latest"!==e));u.unshift("latest");let x=u.map(s=>{let l=s;return"latest"===s&&(l=`v${e.latestVersion} (${s})`),"v1.7.0"===s&&(l=`${s} (and older)`),{value:s,label:l}});return(0,t.jsxs)(m.A,{footerBanner:"contact",children:[(0,t.jsx)(o.A,{title:e.topicData.meta.title,description:e.topicData.meta.description,ogType:"article",url:`/${e.slug}/`}),(0,t.jsx)("div",{className:"container-fluid",children:(0,t.jsxs)("div",{className:"row justify-content-center gx-0 mx-lg-0 mb-5",children:[(0,t.jsx)("div",{className:"col-12 col-lg-2 me-lg-5",children:(0,t.jsxs)("aside",{className:"flex-grow-1 py-8 py-lg-10",children:[(0,t.jsxs)("div",{className:"content mb-5",children:[(0,t.jsx)("h3",{children:"Mockoon's documentation"}),(0,t.jsx)("div",{className:"select",children:(0,t.jsx)("select",{className:"form-select form-select-xs","aria-label":"Versions menu",value:a,onChange:e=>{h(e.target.value),s.push(`/docs/${e.target.value}/about/`)},children:x.map((e,s)=>(0,t.jsx)("option",{"aria-label":`Version ${e.label}`,value:e.value,children:e.label},`version${s}`))})})]}),(0,t.jsx)("hr",{}),(0,t.jsx)("ul",{className:"card-list list",children:e.navItems.map((e,l)=>{let a=("category"===e.type?e.items:[e]).map((l,a)=>(0,t.jsx)("li",{className:`list-item py-1 ${"category"===e.type?"ps-2":""} ${s.asPath.includes(l.slug)?"active":""}`,children:(0,t.jsx)(i(),{href:`${l.slug}/`,className:"list-link",children:(0,t.jsx)(t.Fragment,{children:l.title})})},`link${a}`));return["category"===e.type&&(0,t.jsx)("h6",{className:"fw-bold text-uppercase mt-5 mb-2",children:e.title},`category${l}`),a]})})]})}),(0,t.jsx)("div",{className:"col-12 col-lg-7 ps-lg-5 pb-8",children:(0,t.jsxs)("section",{className:"mt-lg-10 position-relative",children:[e.topicData.badges?.length>0&&(0,t.jsxs)("div",{className:"position-absolute top-0 end-0",children:[e.topicData.badges.includes("cloud")&&(0,t.jsx)("span",{className:"badge text-bg-warning ms-2",children:(0,t.jsxs)("span",{className:"d-none d-md-inline",children:[(0,t.jsx)("i",{className:"icon-cloud"})," Cloud"]})}),e.topicData.badges.includes("early-access")&&(0,t.jsxs)("span",{className:"badge text-bg-info ms-2",children:[(0,t.jsx)("i",{className:"icon-science"})," ",(0,t.jsx)("span",{className:"d-none d-md-inline",children:"Early access"})]})]}),(0,t.jsx)(d.A,{body:e.topicBody,version:l,slug:e.slug})]})})]})})]})}},20471:(e,s,l)=>{"use strict";l.d(s,{A:()=>a});var t=l(37876);let a=function({colorScheme:e,children:s}){return(0,t.jsx)("div",{className:`quote bg-${e}-subtle border-start border-${e} border-4 p-4 my-4`,role:"alert",children:s})}},39542:(e,s,l)=>{"use strict";l.d(s,{A:()=>r});var t=l(37876),a=l(50902),i=l(80825);let r=function({code:e,language:s,maxHeight:l,lineBreak:r}){let c={style:i.E1};return(0,t.jsxs)("div",{className:"code-block",children:[(0,t.jsx)("div",{className:"code-block-copy btn btn-xs btn-light-subtle",style:{right:l?"15px":0},onClick:s=>{navigator.clipboard.writeText(e).then(()=>{s.target.textContent="Copied!",setTimeout(()=>{s.target.textContent="Copy"},5e3)}).catch(()=>{})},children:"Copy"}),(0,t.jsx)(a.A,{lineProps:r&&{style:{wordBreak:"break-all",whiteSpace:"pre-wrap"}},wrapLongLines:!0,language:s,PreTag:"div",className:"code m-0",customStyle:{maxHeight:l},...c,children:e})]})}},53826:(e,s,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/docs/[...slug]",function(){return l(16030)}])},79120:(e,s,l)=>{"use strict";l.d(s,{A:()=>x});var t=l(37876),a=l(94419),i=l(14232),r=l(64150),c=l(52640),n=l(87979),d=l(39542);let o=function({quotation:e}){return(0,t.jsxs)("div",{className:"mx-md-8 my-8",children:[(0,t.jsx)("p",{className:"quotation p-5 mb-0 text-gray-700 lead text-center",children:e.citation}),(0,t.jsxs)("div",{className:"d-flex align-items-center",children:[e.pictureUrl&&(0,t.jsx)("img",{className:"avatar avatar-xl img-thumbnail rounded-circle",src:`/images/${e.pictureUrl}`,alt:e.authorRole,width:128,height:128}),(0,t.jsxs)("div",{className:"ms-5",children:[e.author&&(0,t.jsx)("div",{className:"fw-bold fs-sm",children:e.author}),e.authorRole&&(0,t.jsx)("div",{className:"text-gray-700 fs-sm",children:e.authorRole})]})]})]})};var m=l(20471);let h=(e,s)=>"string"==typeof s?e+s:i.Children.toArray(s.props.children).reduce(h,e),u=e=>{let s="",l=i.Children.toArray(e.children).reduce(h,"");s=(0,a.y)(l);let r=e=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("a",{href:`#${s}
1`,className:"fw-bold text-gray-700 text-decoration-none anchor-link",children:["\xa0",(0,t.jsx)("i",{className:"icon-link"})]}),e]});switch(e.node.tagName){case"h1":return(0,t.jsx)("h1",{id:s,className:"fw-medium position-relative ",children:r(e.children)});case"h2":return(0,t.jsx)("h2",{id:s,className:"fw-medium position-relative mt-8",children:r(e.children)});case"h3":return(0,t.jsx)("h3",{id:s,className:"fw-medium position-relative mt-6",children:r(e.children)});case"h4":return(0,t.jsx)("h4",{id:s,className:"fw-medium position-relative mt-6",children:r(e.children)});case"h5":return(0,t.jsx)("h5",{id:s,className:"fw-medium position-relative mt-4",children:r(e.children)});case"h6":return(0,t.jsx)("h6",{id:s,className:"fw-medium position-relative mt-4",children:r(e.children)})}},x=function(e){let s;return(0,t.jsx)(r.oz,{children:e.body,rehypePlugins:[c.A],remarkPlugins:[n.A],components:{code:({node:e,className:s,children:l,...a})=>{let i=/language-(\w+)/.exec(s||"");return i?(0,t.jsx)(d.A,{code:String(l).replace(/\n$/,""),language:i[1]}):(0,t.jsx)("code",{className:s,...a,children:l})},hr:()=>(0,t.jsx)("hr",{className:"my-8"}),img:({alt:s,src:l,width:a})=>{s=s||"";let[i,r,c]=/\{([0-9]{1,})x([0-9]{1,})\}/gi.exec(s)||[],n=s.includes("#sub#"),d=s.replace(i,"").replace("#sub#",""),o=l.startsWith("cloud-docs-img:");return(l.startsWith("docs-img:")||o)&&(l=`/images/${o?e.slug.replace(/^docs\//,"docs/cloud/"):e.slug}/${l.replace("cloud-docs-img:","").replace("docs-img:","")}`),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("img",{alt:d,src:l,width:r??a,height:c,className:`img-fluid mx-auto d-block img-shadow mt-6 ${n?"mb-2":"mb-8"} rounded`}),n&&(0,t.jsx)("span",{className:"d-block text-center text-gray-700 mb-8",children:d})]})},table:({children:e,node:s})=>s.properties?.className?.includes("no-style")?(0,t.jsx)("table",{className:"table table-borderless",children:e}):(0,t.jsx)("div",{className:"card p-4 my-6 border shadow-lg",children:(0,t.jsx)("div",{className:"table-responsive",children:(0,t.jsx)("table",{className:"table",children:e})})}),blockquote:e=>{let s=e?.node?.children?.[1]?.children?.[0]?.value;return s&&s.includes("##quotation##")?(0,t.jsx)(o,{quotation:JSON.parse(s)}):(0,t.jsx)(m.A,{colorScheme:"secondary",children:e.children})},h1:u,h2:u,h3:u,h4:u,h5:u,h6:u},urlTransform:(s=e.version,e=>{if(e.startsWith("docs:")){let l=e.split(":")[1].split("#"),t="";return t=s?`/${s}`:"/latest",`/docs${t}/${l[0]}/${l[1]?"#"+l[1]:""}`.replace(/\/{2,}/g,"/")}if(e.startsWith("cloud-docs:")){let s=e.split(":")[1].split("#");return`/cloud/docs/${s[0]}/${s[1]?"#"+s[1]:""}`.replace(/\/{2,}/g,"/")}return e})})}}},e=>{e.O(0,[5366,1325,6302,8873,2035,9299,636,6593,8792],()=>e(e.s=53826)),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.