Files
proxy_web_site/static/js/4856-81284dbb4abc4d90.js

1 line
58 KiB
JavaScript
Raw Normal View History

2025-07-12 15:34:14 +08:00
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4856],{1477:(e,t,n)=>{n.d(t,{ElementCard:()=>l});var r=n(54568),a=n(77785),i=n.n(a),s=n(56836);function l(e){let{element:t,children:n,icon:a,hint:l,buttons:o}=e,c=(0,s.d)();return(0,r.jsxs)("div",{className:i()("contentkit-card",t.onPress?"contentkit-card-pressable":null),onClick:()=>{t.onPress&&c.dispatchAction(t.onPress)},children:[t.title?(0,r.jsxs)("div",{className:i()("contentkit-card-header"),children:[a?(0,r.jsx)("div",{className:i()("contentkit-card-icon"),children:a}):null,(0,r.jsxs)("div",{className:i()("contentkit-card-header-content"),children:[(0,r.jsx)("div",{className:i()("contentkit-card-title"),children:t.title}),l?(0,r.jsx)("div",{className:i()("contentkit-card-hint"),children:l}):null]}),o&&o.length>0?(0,r.jsx)("div",{className:i()("contentkit-card-buttons"),children:o}):null]}):null,n?(0,r.jsx)("div",{className:i()("contentkit-card-body"),children:n}):null]})}},3259:(e,t,n)=>{n.d(t,{OpenAPICodeSampleBody:()=>p});var r=n(54568),a=n(7620),i=n(13368),s=n(42775);function l(e){var t,n,a,i,l,o,c=e.data,u=e.context,d=e.withServer,p=void 0===d||d,m=e.canCopy,h=c.method,f=c.path,x=c.operation,y=(o=c.servers[0])?(function(e){for(var t=e.split(/{([^}]+)}/g),n=[],r=0;r<t.length;r++){var a=t[r];a&&(r%2==0?n.push({kind:"text",text:a}):n.push({kind:"variable",name:a}))}return n})(null!=(n=null==(t=o)?void 0:t.url)?n:"").map(function(e){var n,r,a;return"text"===e.kind?e.text:null!=(a=null==(r=null==(n=t.variables)?void 0:n[e.name])?void 0:r.default)?a:"{".concat(e.name,"}")}).join(""):"",v=(i=[],l=0,(a=f).replace(/\{\s*(\w+)\s*\}|:\w+/g,function(e,t,n){return n>l&&i.push(a.slice(l,n)),i.push((0,r.jsx)("span",{className:"openapi-path-variable",children:e},"offset-".concat(n))),l=n+e.length,e}),l<a.length&&i.push(a.slice(l)),i.map(function(e,t){return"string"==typeof e?(0,r.jsx)("span",{children:e},"part-".concat(t)):e})),b=(0,r.jsxs)(r.Fragment,{children:[p?(0,r.jsx)("span",{className:"openapi-path-server",children:y}):null,v]});return(0,r.jsxs)("div",{className:"openapi-path",children:[(0,r.jsx)("div",{className:"openapi-method openapi-method-".concat(h),children:h}),(0,r.jsx)(s.OpenAPICopyButton,{value:"".concat(p?y:"").concat(f),className:"openapi-path-title","data-deprecated":x.deprecated,isDisabled:!(void 0===m||m),context:{translation:u.translation,icons:u.icons,defaultInteractiveOpened:u.defaultInteractiveOpened,blockKey:u.blockKey,id:u.id,$$isClientContext$$:!0},children:b})]})}var o=n(35092),c=n(93039),u=n(22658);function d(e){var t=e.data,n=e.items,a=e.selectIcon,i=e.context;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l,{context:i,canCopy:!1,withServer:!1,data:t}),n.length>1?(0,r.jsx)(o.Py,{icon:a,items:n,stateKey:"codesample",placement:"bottom end",children:n.map(function(e){return(0,r.jsx)(o.Qt,{id:e.key,value:e,children:e.label},e.key)})}):n[0]?(0,r.jsx)("span",{className:"openapi-codesample-label",children:n[0].label}):null]})}function p(e){var t,n,s,l=e.items,o=e.data,p=e.selectIcon,m=e.context;if(!l[0])throw Error("No items provided");var h=(void 0===(t=null==(s=l[0])?void 0:s.key)&&(t="default"),{key:(n=(0,i.P)((0,u.H)("codesample",t))).key,setKey:(0,a.useCallback)(function(e){return n.setKey(e)},[n.setKey])}),f=l.find(function(e){return e.key===h.key})||l[0];return f?(0,r.jsx)(c.ce,{header:(0,r.jsx)(d,{context:m,selectIcon:p,data:o,items:l}),className:"openapi-codesample",children:(0,r.jsxs)("div",{id:f.key,className:"openapi-codesample-panel",children:[f.body?f.body:null,f.footer?f.footer:null]})}):null}},5412:(e,t,n)=>{n.d(t,{X:()=>s,_:()=>l});var r=n(54568),a=n(99102),i=n(86295);function s(e){return(0,r.jsx)(a.OpenAPISchemaPropertiesFromServer,{id:e.id,properties:JSON.stringify(e.properties,(0,i.Y)()),context:e.context})}function l(e){return(0,r.jsx)(a.OpenAPIRootSchemaFromServer,{schema:JSON.stringify(e.schema,(0,i.Y)()),context:e.context})}},7035:(e,t,n)=>{n.d(t,{G:()=>r});function r(e,t,n){return JSON.stringify(e,function(e,n){if(!e.startsWith("x-gitbook-"))return t?t(e,n):n},n)}},7399:(e,t,n)=>{n.d(t,{o:()=>i});var