@diplodoc/client 2.5.0 → 2.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.6.2](https://github.com/diplodoc-platform/client/compare/v2.6.1...v2.6.2) (2024-04-22)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * Fix navigation hosted urls ([2e6a06a](https://github.com/diplodoc-platform/client/commit/2e6a06a3cd181b897652e7f27034df01897bf8e0))
9
+ * Remove nav items normalization ([2778728](https://github.com/diplodoc-platform/client/commit/2778728ef5f7cf4767eab4633cc2c2accb1049d0))
10
+
11
+ ## [2.6.1](https://github.com/diplodoc-platform/client/compare/v2.6.0...v2.6.1) (2024-04-15)
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * preprocess types ([#45](https://github.com/diplodoc-platform/client/issues/45)) ([6b21901](https://github.com/diplodoc-platform/client/commit/6b2190124915e6723256b32de39a54ff022bbe45))
17
+
18
+ ## [2.6.0](https://github.com/diplodoc-platform/client/compare/v2.5.0...v2.6.0) (2024-04-15)
19
+
20
+
21
+ ### Features
22
+
23
+ * transform yfm in PC ([#43](https://github.com/diplodoc-platform/client/issues/43)) ([ec8f0d4](https://github.com/diplodoc-platform/client/commit/ec8f0d487c35093419b9cc4608621fc5f3b63f6a))
24
+
3
25
  ## [2.5.0](https://github.com/diplodoc-platform/client/compare/v2.4.0...v2.5.0) (2024-04-10)
4
26
 
5
27
 
@@ -1,2 +1,2 @@
1
- (()=>{var e,t={7276:(e,t,n)=>{"use strict";var o=n(6540),r=n(5338),a=n(7658),c=n(3233),i=n(7028),l=n(8184),s=n(4957),d=n(9269),m=n(6141),u=n(5379);const h=(0,o.memo)((({mobileView:e,theme:t,onChangeTheme:n,textSize:r,onChangeTextSize:a,wideFormat:c,onChangeWideFormat:i,showMiniToc:s,onChangeShowMiniToc:d,lang:h,langs:f,onChangeLang:g})=>o.createElement(m.n,{controlClassName:"Control",controlSize:l.Uv.L,isWideView:e,isMobileView:e},o.createElement(u.A,{className:"Controls",theme:t,onChangeTheme:n,wideFormat:c,onChangeWideFormat:i,showMiniToc:s,onChangeShowMiniToc:d,textSize:r,onChangeTextSize:a,lang:h,langs:f,onChangeLang:g}))));h.displayName="HeaderControls";const f=["ar","arc","ckb","dv","fa","ha","he","khw","ks","ps","sd","ur","uz_AF","yi"];let g=function(e){return e.RTL="rtl",e.LTR="ltr",e}({});function p(e){return"boolean"==typeof e?e:!!e&&"true"===e}new Set(["href","src","url","href","icon","image","desktop","mobile","tablet","previewImg","image","avatar","logo","light","dark"]);var w=n(3614);const S=(0,w.A)("Layout");function E(){return null}function b(){return null}function v(){return null}const y=e=>{const{children:t,doc:n}=e;let r,a,c;return o.Children.forEach(t,(e=>{switch(e.type){case E:r=e.props.children;break;case b:a=e.props.children;break;case v:c=e.props.children}})),o.createElement("div",{className:S()},r&&o.createElement("div",{className:S("header")},r),o.createElement("div",{className:S("body")},a&&o.createElement("div",{className:S("content")},a),c&&o.createElement("div",{className:S("footer",{doc:n})},c)))};y.displayName="Layout",y.defaultProps={doc:!1},y.Header=E,y.Content=b,y.Footer=v;const C={theme:l.Sx.Light,textSize:l.ov.M,showMiniToc:!0,wideFormat:!0,fullScreen:!1};function T(e){if("undefined"==typeof sessionStorage)return C[e];try{return sessionStorage.getItem(e)||C[e]}catch{return C[e]}}function k(e,t){return n=>{!function(e,t){try{sessionStorage.setItem(e,String(t))}catch{}}(e,n),t(n)}}n(4186),n(553);var M=n(5905),F=n(358),x=n(8432),_=n(8058),N=n(2445),O=n(3259),z=n(1998),j=n(2945),A=n(4012);const L=(0,w.A)("pc-page-constructor"),P=(0,w.A)("pc-constructor-row"),I=({children:e})=>e?o.createElement(_.f,{className:P()},o.createElement(N.f,null,e)):null;function W({data:{data:e},theme:t}){const n=(0,O.d)(e?.background,t);return o.createElement("div",{className:L("docs")},o.createElement("div",{className:L("wrapper")},e?.blocks&&n&&o.createElement(z.A,Object.assign({},n,{className:L("background")})),o.createElement(j.x,null,o.createElement(I,null,o.createElement(A.F,{items:e?.blocks})))))}function H(e){const{theme:t}=e;return o.createElement(o.Fragment,null,o.createElement(x.v,null),o.createElement(F.l,null),o.createElement(M.A,{theme:t===l.Sx.Dark?"dark":"neutral",zoom:{showMenu:!0,bindKeys:!0}}))}function V(e){const{data:t,...n}=e,r=(0,s.$T)(e?.type);return o.createElement(y,null,o.createElement(y.Content,null,o.createElement(r,Object.assign({},t,n))))}function K(e){const t={...e};return function(e){return Array.isArray(e.items)}(e)&&(t.items=e.items.map(K)),void 0!==e.url&&(t.url=e.url.replace(/^\/?/,"/")),t}function R(e){const{data:t,router:n,lang:r,langs:m}=e,{navigation:u}=t.toc;(0,d.jK)({lang:r});const w=function(){const e=function(){const e=T("theme"),t=T("textSize"),n=T("showMiniToc"),o=T("wideFormat"),r=T("fullScreen");return{theme:e,textSize:t,showMiniToc:p(n),wideFormat:p(o),fullScreen:p(r)}}(),[t,n]=(0,o.useState)(e.wideFormat),[r,a]=(0,o.useState)(e.fullScreen),[c,i]=(0,o.useState)(e.showMiniToc),[l,s]=(0,o.useState)(e.theme),[d,m]=(0,o.useState)(e.textSize);return{theme:l,onChangeTheme:k("theme",s),textSize:d,onChangeTextSize:k("textSize",m),wideFormat:t,onChangeWideFormat:k("wideFormat",n),showMiniToc:c,onChangeShowMiniToc:k("showMiniToc",i),fullScreen:r,onChangeFullScreen:k("fullScreen",a)}}(),S=function(){const[e,t]=(0,o.useState)("undefined"!=typeof document&&document.body.clientWidth<769),n=(0,o.useCallback)((()=>{t(document.body.clientWidth<769)}),[]);return(0,o.useEffect)(n,[n]),(0,o.useEffect)((()=>(window.addEventListener("resize",n),()=>window.removeEventListener("resize",n))),[n]),e}(),E=(0,o.useCallback)((e=>{const t=(0,s.UZ)(n,e);window.location.replace(t)}),[n]),{theme:b,textSize:v,wideFormat:y,fullScreen:C,showMiniToc:M,onChangeFullScreen:F}=w,x=!C&&Boolean(u),_=x?64:0,N=(0,s.M5)(t),O={headerHeight:_,data:t,router:n,lang:r,langs:m,wideFormat:y,showMiniToc:M,theme:b,textSize:v,fullScreen:C,onChangeFullScreen:F,type:N},z=function(e){return f.includes(e)?g.RTL:g.LTR}(r),j=N===l.KG.PageConstructor&&"data"in t&&"fullScreen"in t.data&&t.data.fullScreen,A="App "+(j?"fullscreen-mode":"document-mode");(0,o.useEffect)((()=>{!function({theme:e,mobileView:t=!1,wideFormat:n=!1,fullHeader:o=!1}){document.body.className=["g-root",t?"mobile":"desktop",n&&"dc-root_wide-format",o&&"dc-root_full-header","light"===e&&"g-root_theme_light","dark"===e&&"g-root_theme_dark"].filter(Boolean).join(" ")}({theme:b,mobileView:S,wideFormat:y,fullHeader:x})}),[b,S,y,x]);const L={...w,onChangeLang:E};if(!u)return o.createElement("div",{className:A},o.createElement(i.N,{theme:b,direction:z},o.createElement(V,Object.assign({},O,L),N===l.KG.PageConstructor&&o.createElement(a.Z,{theme:b},o.createElement(c.i,{custom:{blocks:{page:()=>o.createElement(W,{data:t,theme:b})}},content:j?t.data:{blocks:[{type:"page",resetPaddings:!0}]}}))),o.createElement(H,{theme:b})));const{header:P={},logo:I}=u,{leftItems:R=[],rightItems:B=[]}=P,$=B.some((e=>"controls"===e.type));return o.createElement("div",{className:A},o.createElement(i.N,{theme:b,direction:z},o.createElement(a.Z,{theme:b},o.createElement(c.i,{custom:{navigation:{controls:()=>o.createElement(h,Object.assign({},L,O,{onChangeLang:E,mobileView:S}))},blocks:{page:()=>o.createElement(V,Object.assign({},O,$?{}:L),N===l.KG.PageConstructor&&"data"in t&&o.createElement(W,{data:t,theme:b}))}},content:j?t.data:{blocks:[{type:"page",resetPaddings:!0}]},navigation:x?{header:{withBorder:!0,leftItems:R.map(K),rightItems:B.map(K)},logo:I}:void 0}))),o.createElement(H,{theme:b}))}const B=document.getElementById("root"),$=window.__DATA__;if(!B)throw new Error("Root element not found!");window.STATIC_CONTENT?(0,r.c)(B,o.createElement(R,$)):(0,r.H)(B).render(o.createElement(R,$))},4186:()=>{"undefined"!=typeof Element&&function(e){const t=e.matches||e.matchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector;e.matches=e.matchesSelector=t||function(e){const t=this;return Array.prototype.some.call(document.querySelectorAll(e),(e=>e===t))}}(Element.prototype),"undefined"!=typeof document&&document.addEventListener("click",(e=>{const t=e.target.href,n=window.location.origin;if(e.target.matches(".dc-doc-layout__center a")&&t.startsWith(n)){e.preventDefault();const n="index",o=".html";if(t.endsWith("/"))return void(window.location.href=`${t}${n}${o}`);const r=t.split("#");if(r.length>0&&!r[0].endsWith(o))return r[0]+=o,void(window.location.href=r.join("#"));window.location.href=t}}))},7040:(e,t,n)=>{"use strict";function o(){}n.d(t,{A:()=>o})},2634:()=>{}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var a=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(a.exports,a,a.exports,o),a.loaded=!0,a.exports}o.m=t,o.amdO={},e=[],o.O=(t,n,r,a)=>{if(!n){var c=1/0;for(d=0;d<e.length;d++){for(var[n,r,a]=e[d],i=!0,l=0;l<n.length;l++)(!1&a||c>=a)&&Object.keys(o.O).every((e=>o.O[e](n[l])))?n.splice(l--,1):(i=!1,a<c&&(c=a));if(i){e.splice(d--,1);var s=r();void 0!==s&&(t=s)}}return t}a=a||0;for(var d=e.length;d>0&&e[d-1][2]>a;d--)e[d]=e[d-1];e[d]=[n,r,a]},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={524:0};o.O.j=t=>0===e[t];var t=(t,n)=>{var r,a,[c,i,l]=n,s=0;if(c.some((t=>0!==e[t]))){for(r in i)o.o(i,r)&&(o.m[r]=i[r]);if(l)var d=l(o)}for(t&&t(n);s<c.length;s++)a=c[s],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return o.O(d)},n=self.webpackChunk_diplodoc_client=self.webpackChunk_diplodoc_client||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var r=o.O(void 0,[644,121],(()=>o(7276)));r=o.O(r)})();
1
+ (()=>{var e,t={7276:(e,t,n)=>{"use strict";var o=n(6540),r=n(5338),a=n(7658),c=n(3233),i=n(7028),l=n(8184),s=n(4957),d=n(9269),m=n(6141),u=n(5379);const h=(0,o.memo)((({mobileView:e,theme:t,onChangeTheme:n,textSize:r,onChangeTextSize:a,wideFormat:c,onChangeWideFormat:i,showMiniToc:s,onChangeShowMiniToc:d,lang:h,langs:f,onChangeLang:g})=>o.createElement(m.n,{controlClassName:"Control",controlSize:l.Uv.L,isWideView:e,isMobileView:e},o.createElement(u.A,{className:"Controls",theme:t,onChangeTheme:n,wideFormat:c,onChangeWideFormat:i,showMiniToc:s,onChangeShowMiniToc:d,textSize:r,onChangeTextSize:a,lang:h,langs:f,onChangeLang:g}))));h.displayName="HeaderControls";const f=["ar","arc","ckb","dv","fa","ha","he","khw","ks","ps","sd","ur","uz_AF","yi"];let g=function(e){return e.RTL="rtl",e.LTR="ltr",e}({});function w(e){return"boolean"==typeof e?e:!!e&&"true"===e}new Set(["href","src","url","href","icon","image","desktop","mobile","tablet","previewImg","image","avatar","logo","light","dark"]);var p=n(3614);const S=(0,p.A)("Layout");function E(){return null}function b(){return null}function v(){return null}const y=e=>{const{children:t,doc:n}=e;let r,a,c;return o.Children.forEach(t,(e=>{switch(e.type){case E:r=e.props.children;break;case b:a=e.props.children;break;case v:c=e.props.children}})),o.createElement("div",{className:S()},r&&o.createElement("div",{className:S("header")},r),o.createElement("div",{className:S("body")},a&&o.createElement("div",{className:S("content")},a),c&&o.createElement("div",{className:S("footer",{doc:n})},c)))};y.displayName="Layout",y.defaultProps={doc:!1},y.Header=E,y.Content=b,y.Footer=v;const C={theme:l.Sx.Light,textSize:l.ov.M,showMiniToc:!0,wideFormat:!0,fullScreen:!1};function T(e){if("undefined"==typeof sessionStorage)return C[e];try{return sessionStorage.getItem(e)||C[e]}catch{return C[e]}}function k(e,t){return n=>{!function(e,t){try{sessionStorage.setItem(e,String(t))}catch{}}(e,n),t(n)}}n(4186),n(553);var M=n(5905),F=n(358),x=n(8432),_=n(8058),N=n(2445),O=n(3259),z=n(1998),j=n(2945),L=n(4012);const A=(0,p.A)("pc-page-constructor"),P=(0,p.A)("pc-constructor-row"),I=({children:e})=>e?o.createElement(_.f,{className:P()},o.createElement(N.f,null,e)):null;function W({data:{data:e},theme:t}){const n=(0,O.d)(e?.background,t);return o.createElement("div",{className:A("docs")},o.createElement("div",{className:A("wrapper")},e?.blocks&&n&&o.createElement(z.A,Object.assign({},n,{className:A("background")})),o.createElement(j.x,null,o.createElement(I,null,o.createElement(L.F,{items:e?.blocks})))))}function H(e){const{theme:t}=e;return o.createElement(o.Fragment,null,o.createElement(x.v,null),o.createElement(F.l,null),o.createElement(M.A,{theme:t===l.Sx.Dark?"dark":"neutral",zoom:{showMenu:!0,bindKeys:!0}}))}function V(e){const{data:t,...n}=e,r=(0,s.$T)(e?.type);return o.createElement(y,null,o.createElement(y.Content,null,o.createElement(r,Object.assign({},t,n))))}function K(e){const{data:t,router:n,lang:r,langs:m}=e,{navigation:u}=t.toc;(0,d.jK)({lang:r});const p=function(){const e=function(){const e=T("theme"),t=T("textSize"),n=T("showMiniToc"),o=T("wideFormat"),r=T("fullScreen");return{theme:e,textSize:t,showMiniToc:w(n),wideFormat:w(o),fullScreen:w(r)}}(),[t,n]=(0,o.useState)(e.wideFormat),[r,a]=(0,o.useState)(e.fullScreen),[c,i]=(0,o.useState)(e.showMiniToc),[l,s]=(0,o.useState)(e.theme),[d,m]=(0,o.useState)(e.textSize);return{theme:l,onChangeTheme:k("theme",s),textSize:d,onChangeTextSize:k("textSize",m),wideFormat:t,onChangeWideFormat:k("wideFormat",n),showMiniToc:c,onChangeShowMiniToc:k("showMiniToc",i),fullScreen:r,onChangeFullScreen:k("fullScreen",a)}}(),S=function(){const[e,t]=(0,o.useState)("undefined"!=typeof document&&document.body.clientWidth<769),n=(0,o.useCallback)((()=>{t(document.body.clientWidth<769)}),[]);return(0,o.useEffect)(n,[n]),(0,o.useEffect)((()=>(window.addEventListener("resize",n),()=>window.removeEventListener("resize",n))),[n]),e}(),E=(0,o.useCallback)((e=>{const t=(0,s.UZ)(n,e);window.location.replace(t)}),[n]),{theme:b,textSize:v,wideFormat:y,fullScreen:C,showMiniToc:M,onChangeFullScreen:F}=p,x=!C&&Boolean(u),_=x?64:0,N=(0,s.M5)(t),O={headerHeight:_,data:t,router:n,lang:r,langs:m,wideFormat:y,showMiniToc:M,theme:b,textSize:v,fullScreen:C,onChangeFullScreen:F,type:N},z=function(e){return f.includes(e)?g.RTL:g.LTR}(r),j=N===l.KG.PageConstructor&&"data"in t&&"fullScreen"in t.data&&t.data.fullScreen,L="App "+(j?"fullscreen-mode":"document-mode");(0,o.useEffect)((()=>{!function({theme:e,mobileView:t=!1,wideFormat:n=!1,fullHeader:o=!1}){document.body.className=["g-root",t?"mobile":"desktop",n&&"dc-root_wide-format",o&&"dc-root_full-header","light"===e&&"g-root_theme_light","dark"===e&&"g-root_theme_dark"].filter(Boolean).join(" ")}({theme:b,mobileView:S,wideFormat:y,fullHeader:x})}),[b,S,y,x]);const A={...p,onChangeLang:E};if(!u)return o.createElement("div",{className:L},o.createElement(i.N,{theme:b,direction:z},o.createElement(V,Object.assign({},O,A),N===l.KG.PageConstructor&&o.createElement(a.Z,{theme:b},o.createElement(c.i,{custom:{blocks:{page:()=>o.createElement(W,{data:t,theme:b})}},content:j?t.data:{blocks:[{type:"page",resetPaddings:!0}]}}))),o.createElement(H,{theme:b})));const{header:P={},logo:I}=u,{leftItems:K=[],rightItems:R=[]}=P,B=R.some((e=>"controls"===e.type));return o.createElement("div",{className:L},o.createElement(i.N,{theme:b,direction:z},o.createElement(a.Z,{theme:b},o.createElement(c.i,{custom:{navigation:{controls:()=>o.createElement(h,Object.assign({},A,O,{onChangeLang:E,mobileView:S}))},blocks:{page:()=>o.createElement(V,Object.assign({},O,B?{}:A),N===l.KG.PageConstructor&&"data"in t&&o.createElement(W,{data:t,theme:b}))}},content:j?t.data:{blocks:[{type:"page",resetPaddings:!0}]},navigation:x?{header:{withBorder:!0,leftItems:K,rightItems:R},logo:I}:void 0}))),o.createElement(H,{theme:b}))}const R=document.getElementById("root"),B=window.__DATA__;if(!R)throw new Error("Root element not found!");window.STATIC_CONTENT?(0,r.c)(R,o.createElement(K,B)):(0,r.H)(R).render(o.createElement(K,B))},4186:()=>{"undefined"!=typeof Element&&function(e){const t=e.matches||e.matchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector;e.matches=e.matchesSelector=t||function(e){const t=this;return Array.prototype.some.call(document.querySelectorAll(e),(e=>e===t))}}(Element.prototype),"undefined"!=typeof document&&document.addEventListener("click",(e=>{const t=e.target.href,n=window.location.origin;if(e.target.matches(".dc-doc-layout__center a")&&t.startsWith(n)){e.preventDefault();const n="index",o=".html";if(t.endsWith("/"))return void(window.location.href=`${t}${n}${o}`);const r=t.split("#");if(r.length>0&&!r[0].endsWith(o))return r[0]+=o,void(window.location.href=r.join("#"));window.location.href=t}}))},7040:(e,t,n)=>{"use strict";function o(){}n.d(t,{A:()=>o})},2634:()=>{}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var a=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(a.exports,a,a.exports,o),a.loaded=!0,a.exports}o.m=t,o.amdO={},e=[],o.O=(t,n,r,a)=>{if(!n){var c=1/0;for(d=0;d<e.length;d++){for(var[n,r,a]=e[d],i=!0,l=0;l<n.length;l++)(!1&a||c>=a)&&Object.keys(o.O).every((e=>o.O[e](n[l])))?n.splice(l--,1):(i=!1,a<c&&(c=a));if(i){e.splice(d--,1);var s=r();void 0!==s&&(t=s)}}return t}a=a||0;for(var d=e.length;d>0&&e[d-1][2]>a;d--)e[d]=e[d-1];e[d]=[n,r,a]},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={524:0};o.O.j=t=>0===e[t];var t=(t,n)=>{var r,a,[c,i,l]=n,s=0;if(c.some((t=>0!==e[t]))){for(r in i)o.o(i,r)&&(o.m[r]=i[r]);if(l)var d=l(o)}for(t&&t(n);s<c.length;s++)a=c[s],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return o.O(d)},n=self.webpackChunk_diplodoc_client=self.webpackChunk_diplodoc_client||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var r=o.O(void 0,[644,121],(()=>o(7276)));r=o.O(r)})();
2
2
  //# sourceMappingURL=app.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.js","mappings":"UAAIA,E,uICuBG,MAAMC,GAAiBC,EAAAA,EAAAA,OAC1B,EACIC,aAEAC,QACAC,gBAEAC,WACAC,mBAEA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EAAO,EAGjCyJ,EAAqBC,KAAmC,6BAAIA,KAAmC,8BAAK,GACxGD,EAAmB5M,QAAQwM,EAAqBM,KAAK,KAAM,IAC3DF,EAAmBG,KAAOP,EAAqBM,KAAK,KAAMF,EAAmBG,KAAKD,KAAKF,G,KC7CvF,IAAII,EAAsBtD,EAAoBU,OAAE5G,EAAW,CAAC,IAAI,MAAM,IAAOkG,EAAoB,QACjGsD,EAAsBtD,EAAoBU,EAAE4C,E","sources":["webpack://@diplodoc/client/webpack/runtime/chunk loaded","webpack://@diplodoc/client/./src/components/HeaderControls/index.tsx","webpack://@diplodoc/client/./src/constants.ts","webpack://@diplodoc/client/./src/utils.ts","webpack://@diplodoc/client/./src/components/Layout/index.tsx","webpack://@diplodoc/client/./src/hooks/useSettings.ts","webpack://@diplodoc/client/./src/components/ConstructorPage/index.tsx","webpack://@diplodoc/client/./src/components/App/App.tsx","webpack://@diplodoc/client/./src/hooks/useMobile.ts","webpack://@diplodoc/client/./src/index.tsx","webpack://@diplodoc/client/./src/interceptors/leading-page-links.js","webpack://@diplodoc/client/./src/stub/empty-module.js","webpack://@diplodoc/client/webpack/bootstrap","webpack://@diplodoc/client/webpack/runtime/amd options","webpack://@diplodoc/client/webpack/runtime/compat get default export","webpack://@diplodoc/client/webpack/runtime/define property getters","webpack://@diplodoc/client/webpack/runtime/global","webpack://@diplodoc/client/webpack/runtime/hasOwnProperty shorthand","webpack://@diplodoc/client/webpack/runtime/make namespace object","webpack://@diplodoc/client/webpack/runtime/node module decorator","webpack://@diplodoc/client/webpack/runtime/jsonp chunk loading","webpack://@diplodoc/client/webpack/startup"],"sourcesContent":["var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","import React, {memo} from 'react';\n\nimport {ControlSizes, Controls, ControlsLayout, Lang, TextSizes, Theme} from '@diplodoc/components';\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype OnChangeCallback = (value: any) => void;\n\ntype Props = {\n mobileView: boolean;\n\n theme: Theme;\n onChangeTheme: OnChangeCallback;\n textSize: TextSizes;\n onChangeTextSize: OnChangeCallback;\n wideFormat: boolean;\n onChangeWideFormat: OnChangeCallback;\n showMiniToc: boolean;\n onChangeShowMiniToc: OnChangeCallback;\n lang: Lang;\n langs: Lang[];\n onChangeLang?: (lang: Lang) => void;\n};\n\nexport const HeaderControls = memo<Props>(\n ({\n mobileView,\n\n theme,\n onChangeTheme,\n\n textSize,\n onChangeTextSize,\n\n wideFormat,\n onChangeWideFormat,\n\n showMiniToc,\n onChangeShowMiniToc,\n\n lang,\n langs,\n onChangeLang,\n }) => {\n return (\n <ControlsLayout\n controlClassName={'Control'}\n controlSize={ControlSizes.L}\n isWideView={mobileView}\n isMobileView={mobileView}\n >\n <Controls\n className={'Controls'}\n theme={theme}\n onChangeTheme={onChangeTheme}\n wideFormat={wideFormat}\n onChangeWideFormat={onChangeWideFormat}\n showMiniToc={showMiniToc}\n onChangeShowMiniToc={onChangeShowMiniToc}\n textSize={textSize}\n onChangeTextSize={onChangeTextSize}\n lang={lang}\n langs={langs}\n onChangeLang={onChangeLang}\n />\n </ControlsLayout>\n );\n },\n);\n\nHeaderControls.displayName = 'HeaderControls';\n","export const RTL_LANGS = [\n 'ar',\n 'arc',\n 'ckb',\n 'dv',\n 'fa',\n 'ha',\n 'he',\n 'khw',\n 'ks',\n 'ps',\n 'sd',\n 'ur',\n 'uz_AF',\n 'yi',\n];\n\nexport enum TextDirection {\n RTL = 'rtl',\n LTR = 'ltr',\n}\n\nexport const LINK_KEYS_LEADING_CONFIG = ['href'];\nexport const LINK_KEYS_PAGE_CONSTRUCTOR_CONFIG = [\n 'src',\n 'url',\n 'href',\n 'icon',\n 'image',\n 'desktop',\n 'mobile',\n 'tablet',\n 'previewImg',\n 'image',\n 'avatar',\n 'logo',\n 'light',\n 'dark',\n];\n\nexport const LINK_KEYS = [\n ...new Set([...LINK_KEYS_LEADING_CONFIG, ...LINK_KEYS_PAGE_CONSTRUCTOR_CONFIG]),\n];\n","import {Lang, Theme} from '@diplodoc/components';\nimport {RTL_LANGS, TextDirection} from './constants';\n\nexport function strToBoolean(str: string | boolean) {\n if (typeof str === 'boolean') {\n return str;\n }\n\n return str ? str === 'true' : false;\n}\n\nexport function updateRootClassName({\n theme,\n mobileView = false,\n wideFormat = false,\n fullHeader = false,\n}: {\n theme: Theme;\n mobileView: boolean;\n wideFormat: boolean;\n fullHeader: boolean;\n}) {\n document.body.className = [\n 'g-root',\n mobileView ? 'mobile' : 'desktop',\n wideFormat && 'dc-root_wide-format',\n fullHeader && 'dc-root_full-header',\n theme === 'light' && 'g-root_theme_light',\n theme === 'dark' && 'g-root_theme_dark',\n ]\n .filter(Boolean)\n .join(' ');\n}\n\nexport function getDirection(lang: Lang): TextDirection {\n const isRTL = RTL_LANGS.includes(lang);\n\n return isRTL ? TextDirection.RTL : TextDirection.LTR;\n}\n","import React, {FC, PropsWithChildren, ReactElement} from 'react';\nimport block from 'bem-cn-lite';\n\nimport './Layout.scss';\n\nconst b = block('Layout');\n\nfunction Header() {\n return null;\n}\n\nfunction Content() {\n return null;\n}\n\nfunction Footer() {\n return null;\n}\n\ntype LayoutStatics = {\n Header: FC<PropsWithChildren>;\n Content: FC<PropsWithChildren>;\n Footer: FC<PropsWithChildren>;\n};\n\nexport const Layout: LayoutStatics & FC<PropsWithChildren<{doc?: boolean}>> = (props) => {\n const {children, doc} = props;\n let header, content, footer;\n\n React.Children.forEach(children as ReactElement[], (child: ReactElement) => {\n switch (child.type) {\n case Header:\n header = child.props.children;\n break;\n case Content:\n content = child.props.children;\n break;\n case Footer:\n footer = child.props.children;\n break;\n }\n });\n\n return (\n <div className={b()}>\n {header && <div className={b('header')}>{header}</div>}\n <div className={b('body')}>\n {content && <div className={b('content')}>{content}</div>}\n {footer && <div className={b('footer', {doc})}>{footer}</div>}\n </div>\n </div>\n );\n};\n\nLayout.displayName = 'Layout';\n\nLayout.defaultProps = {\n doc: false,\n};\n\nLayout.Header = Header;\nLayout.Content = Content;\nLayout.Footer = Footer;\n","import {strToBoolean} from '../utils';\nimport {useState} from 'react';\n\nimport {TextSizes, Theme} from '@diplodoc/components';\n\nconst DEFAULT_USER_SETTINGS = {\n theme: Theme.Light,\n textSize: TextSizes.M,\n showMiniToc: true,\n wideFormat: true,\n fullScreen: false,\n};\n\nexport function useSettings() {\n const settings = getSettings();\n\n const [wideFormat, setWideFormat] = useState(settings.wideFormat);\n const [fullScreen, setFullScreen] = useState(settings.fullScreen);\n const [showMiniToc, setShowMiniToc] = useState(settings.showMiniToc);\n const [theme, setTheme] = useState(settings.theme);\n const [textSize, setTextSize] = useState(settings.textSize);\n\n return {\n theme,\n onChangeTheme: withSavingSetting('theme', setTheme),\n textSize,\n onChangeTextSize: withSavingSetting('textSize', setTextSize),\n wideFormat,\n onChangeWideFormat: withSavingSetting('wideFormat', setWideFormat),\n showMiniToc,\n onChangeShowMiniToc: withSavingSetting('showMiniToc', setShowMiniToc),\n fullScreen,\n onChangeFullScreen: withSavingSetting('fullScreen', setFullScreen),\n };\n}\n\nfunction getSettings() {\n const theme = getSetting('theme');\n const textSize = getSetting('textSize');\n const showMiniToc = getSetting('showMiniToc');\n const wideFormat = getSetting('wideFormat');\n const fullScreen = getSetting('fullScreen');\n\n return {\n theme,\n textSize,\n showMiniToc: strToBoolean(showMiniToc),\n wideFormat: strToBoolean(wideFormat),\n fullScreen: strToBoolean(fullScreen),\n };\n}\n\ntype TSettings = typeof DEFAULT_USER_SETTINGS;\n\nfunction getSetting<T extends keyof TSettings>(name: T): TSettings[T] {\n if (typeof sessionStorage === 'undefined') {\n return DEFAULT_USER_SETTINGS[name];\n }\n\n try {\n return (sessionStorage.getItem(name) as TSettings[T]) || DEFAULT_USER_SETTINGS[name];\n } catch {\n return DEFAULT_USER_SETTINGS[name];\n }\n}\n\nfunction setSetting<T>(name: string, value: T) {\n try {\n sessionStorage.setItem(name, String(value));\n } catch {}\n}\n\nfunction withSavingSetting<T>(settingName: string, onChange: (value: T) => void) {\n return (value: T) => {\n setSetting<T>(settingName, value);\n\n onChange(value);\n };\n}\n","import React from 'react';\n\nimport block from 'bem-cn-lite';\nimport {\n BackgroundMedia,\n Col,\n ConstructorBlocks,\n Grid,\n Row,\n Theme,\n getThemedValue,\n} from '@gravity-ui/page-constructor';\nimport {PageContentData} from '../App/App';\n\nexport type WithChildren<T = {}> = T & {children?: React.ReactNode};\n\nconst bPC = block('pc-page-constructor');\nconst bPCRow = block('pc-constructor-row');\n\nexport const ConstructorRow = ({children}: WithChildren<{}>) =>\n children ? (\n <Row className={bPCRow()}>\n <Col>{children}</Col>\n </Row>\n ) : null;\n\nexport function ConstructorPage({data: {data}, theme}: {data: PageContentData; theme: Theme}) {\n const themedBackground = getThemedValue(data?.background, theme);\n\n return (\n <div className={bPC('docs')}>\n <div className={bPC('wrapper')}>\n {data?.blocks && themedBackground && (\n <BackgroundMedia {...themedBackground} className={bPC('background')} />\n )}\n <Grid>\n <ConstructorRow>\n <ConstructorBlocks items={data?.blocks} />\n </ConstructorRow>\n </Grid>\n </div>\n </div>\n );\n}\n","import React, {ReactElement, useCallback, useEffect} from 'react';\n\nimport {\n NavigationData,\n NavigationDropdownItem,\n NavigationItemModel,\n PageConstructor,\n PageConstructorProvider,\n PageContent,\n} from '@gravity-ui/page-constructor';\nimport {ThemeProvider} from '@gravity-ui/uikit';\nimport {\n DocContentPageData,\n DocLeadingPageData,\n DocPageData,\n DocumentType,\n Lang,\n Router,\n Theme,\n configure,\n getLangPath,\n getPageByType,\n getPageType,\n} from '@diplodoc/components';\n\nimport {HeaderControls} from '../HeaderControls';\nimport {getDirection, updateRootClassName} from '../../utils';\nimport {Layout} from '../Layout';\nimport {useSettings} from '../../hooks/useSettings';\nimport {useMobile} from '../../hooks/useMobile';\n\nimport '../../interceptors/leading-page-links';\n\nimport '@diplodoc/transform/dist/js/yfm';\nimport {MermaidRuntime} from '@diplodoc/mermaid-extension/react';\nimport {LatexRuntime} from '@diplodoc/latex-extension/react';\nimport {Runtime as OpenapiSandbox} from '@diplodoc/openapi-extension/runtime';\n\nimport './App.scss';\nimport {ConstructorPage} from '../ConstructorPage';\n\nexport interface AppProps {\n lang: Lang;\n langs: Lang[];\n router: Router;\n type: DocumentType;\n}\n\nexport interface PageContentData extends DocContentPageData {\n data: PageContent & {fullScreen?: boolean};\n}\n\nexport type DocInnerProps<Data = DocLeadingPageData | DocPageData | PageContentData> = {\n data: Data;\n} & AppProps;\n\nexport type {DocLeadingPageData, DocPageData};\n\ntype RuntimeProps = {\n theme: Theme;\n};\n\nfunction Runtime(props: RuntimeProps) {\n const {theme} = props;\n\n return (\n <>\n <OpenapiSandbox />\n <LatexRuntime />\n <MermaidRuntime\n theme={theme === Theme.Dark ? 'dark' : 'neutral'}\n zoom={{\n showMenu: true,\n bindKeys: true,\n }}\n />\n </>\n );\n}\n\nexport function Page(props: DocInnerProps) {\n const {data, ...pageProps} = props;\n const Page = getPageByType(props?.type);\n\n return (\n <Layout>\n <Layout.Content>\n {/*@ts-ignore*/}\n <Page {...data} {...pageProps} />\n </Layout.Content>\n </Layout>\n );\n}\n\nfunction isDropdownItem(item: NavigationItemModel): item is NavigationDropdownItem {\n return Array.isArray((item as NavigationDropdownItem).items);\n}\n\nfunction rebaseNavItem<T extends NavigationItemModel>(item: T) {\n const result: T = {...item};\n\n if (isDropdownItem(item)) {\n (result as NavigationDropdownItem).items = item.items.map(rebaseNavItem);\n }\n\n if (item.url !== undefined) {\n result.url = item.url.replace(/^\\/?/, '/');\n }\n\n return result;\n}\n\ntype TocData = DocPageData['toc'] & {\n navigation?: NavigationData;\n};\n\nexport function App(props: DocInnerProps): ReactElement {\n const {data, router, lang, langs} = props;\n const {navigation} = data.toc as TocData;\n\n configure({\n lang,\n });\n\n const settings = useSettings();\n const mobileView = useMobile();\n\n const onChangeLang = useCallback(\n (lang: Lang) => {\n const path = getLangPath(router, lang);\n window.location.replace(path);\n },\n [router],\n );\n\n const {theme, textSize, wideFormat, fullScreen, showMiniToc, onChangeFullScreen} = settings;\n const fullHeader = !fullScreen && Boolean(navigation);\n const headerHeight = fullHeader ? 64 : 0;\n const type = getPageType(data);\n\n const pageProps = {\n headerHeight,\n data,\n router,\n lang,\n langs,\n wideFormat,\n showMiniToc,\n theme,\n textSize,\n fullScreen,\n onChangeFullScreen,\n type,\n };\n const direction = getDirection(lang);\n const fullScreenPC =\n type === DocumentType.PageConstructor &&\n 'data' in data &&\n 'fullScreen' in data.data &&\n data.data.fullScreen;\n const appClassName = `App ${fullScreenPC ? 'fullscreen-mode' : 'document-mode'}`;\n\n useEffect(() => {\n updateRootClassName({\n theme,\n mobileView,\n wideFormat,\n fullHeader,\n });\n }, [theme, mobileView, wideFormat, fullHeader]);\n\n const pageContext = {\n ...settings,\n onChangeLang,\n };\n\n if (!navigation) {\n return (\n <div className={appClassName}>\n <ThemeProvider theme={theme} direction={direction}>\n <Page {...pageProps} {...pageContext}>\n {type === DocumentType.PageConstructor && (\n <PageConstructorProvider theme={theme}>\n <PageConstructor\n custom={{\n blocks: {\n page: () => (\n <ConstructorPage\n data={data as PageContentData}\n theme={theme}\n />\n ),\n },\n }}\n content={\n fullScreenPC\n ? (data.data as PageContent)\n : {\n blocks: [\n {\n type: 'page',\n resetPaddings: true,\n },\n ],\n }\n }\n />\n </PageConstructorProvider>\n )}\n </Page>\n <Runtime theme={theme} />\n </ThemeProvider>\n </div>\n );\n }\n\n const {header = {}, logo} = navigation;\n const {leftItems = [], rightItems = []} = header as NavigationData['header'];\n const headerWithControls = rightItems.some((item: {type: string}) => item.type === 'controls');\n\n return (\n <div className={appClassName}>\n <ThemeProvider theme={theme} direction={direction}>\n <PageConstructorProvider theme={theme}>\n <PageConstructor\n custom={{\n navigation: {\n controls: () => (\n <HeaderControls\n {...pageContext}\n {...pageProps}\n onChangeLang={onChangeLang}\n mobileView={mobileView}\n />\n ),\n },\n blocks: {\n page: () => (\n <Page\n {...pageProps}\n {...(headerWithControls ? {} : pageContext)}\n >\n {type === DocumentType.PageConstructor &&\n 'data' in data && (\n <ConstructorPage\n data={data as PageContentData}\n theme={theme}\n />\n )}\n </Page>\n ),\n },\n }}\n content={\n fullScreenPC\n ? (data.data as PageContent)\n : {\n blocks: [\n {\n type: 'page',\n resetPaddings: true,\n },\n ],\n }\n }\n navigation={\n fullHeader\n ? {\n header: {\n withBorder: true,\n leftItems: leftItems.map(rebaseNavItem),\n rightItems: rightItems.map(rebaseNavItem),\n },\n logo,\n }\n : undefined\n }\n />\n </PageConstructorProvider>\n </ThemeProvider>\n <Runtime theme={theme} />\n </div>\n );\n}\n","import {useCallback, useEffect, useState} from 'react';\n\nconst MOBILE_VIEW_WIDTH_BREAKPOINT = 769;\n\nexport function useMobile() {\n const [mobileView, setMobileView] = useState<boolean>(\n typeof document !== 'undefined' && document.body.clientWidth < MOBILE_VIEW_WIDTH_BREAKPOINT,\n );\n\n const onResizeHandler = useCallback(() => {\n setMobileView(document.body.clientWidth < MOBILE_VIEW_WIDTH_BREAKPOINT);\n }, []);\n\n useEffect(onResizeHandler, [onResizeHandler]);\n\n useEffect(() => {\n window.addEventListener('resize', onResizeHandler);\n\n return () => window.removeEventListener('resize', onResizeHandler);\n }, [onResizeHandler]);\n\n return mobileView;\n}\n","import React from 'react';\nimport {createRoot, hydrateRoot} from 'react-dom/client';\n\nimport {App, DocInnerProps, DocLeadingPageData, DocPageData} from './components/App/App';\n\nexport type {DocInnerProps, DocPageData, DocLeadingPageData};\n\ndeclare global {\n interface Window {\n STATIC_CONTENT: boolean;\n __DATA__: DocInnerProps;\n }\n}\n\nconst root = document.getElementById('root');\nconst props = window.__DATA__;\n\nif (!root) {\n throw new Error('Root element not found!');\n}\n\nif (window.STATIC_CONTENT) {\n hydrateRoot(root, <App {...props} />);\n} else {\n createRoot(root).render(<App {...props} />);\n}\n","(function () {\n /**\n * Element.matches() polyfill.\n * @link https://developer.mozilla.org/ru/docs/Web/API/Element/matches\n */\n if (typeof Element !== 'undefined') {\n (function (e) {\n const matches =\n e.matches ||\n e.matchesSelector ||\n e.webkitMatchesSelector ||\n e.mozMatchesSelector ||\n e.msMatchesSelector ||\n e.oMatchesSelector;\n\n if (matches) {\n e.matches = e.matchesSelector = matches;\n } else {\n e.matches = e.matchesSelector = function (selector) {\n const th = this;\n return Array.prototype.some.call(document.querySelectorAll(selector), (el) => {\n return el === th;\n });\n };\n }\n })(Element.prototype);\n }\n\n if (typeof document !== 'undefined') {\n document.addEventListener('click', (event) => {\n const href = event.target.href;\n const locationOrigin = window.location.origin;\n\n if (\n event.target.matches('.dc-doc-layout__center a') &&\n href.startsWith(locationOrigin)\n ) {\n event.preventDefault();\n\n const mainFileName = 'index';\n const extention = '.html';\n\n if (href.endsWith('/')) {\n window.location.href = `${href}${mainFileName}${extention}`;\n return;\n }\n\n // https://../file-name, https://../file-name#fragment\n const splitedHref = href.split('#');\n if (splitedHref.length > 0 && !splitedHref[0].endsWith(extention)) {\n splitedHref[0] += extention;\n window.location.href = splitedHref.join('#');\n return;\n }\n\n window.location.href = href;\n }\n });\n }\n})();\n","export default function () {}\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","__webpack_require__.amdO = {};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = (module) => {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t524: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunk_diplodoc_client\"] = self[\"webpackChunk_diplodoc_client\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [644,121], () => (__webpack_require__(7276)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["deferred","HeaderControls","memo","mobileView","theme","onChangeTheme","textSize","onChangeTextSize","wideFormat","onChangeWideFormat","showMiniToc","onChangeShowMiniToc","lang","langs","onChangeLang","React","ControlsLayout","controlClassName","controlSize","ControlSizes","L","isWideView","isMobileView","Controls","className","displayName","RTL_LANGS","TextDirection","strToBoolean","str","Set","b","block","Header","Content","Footer","Layout","props","children","doc","header","content","footer","forEach","child","type","defaultProps","DEFAULT_USER_SETTINGS","Theme","Light","TextSizes","M","fullScreen","getSetting","name","sessionStorage","getItem","withSavingSetting","settingName","onChange","value","setItem","String","setSetting","bPC","bPCRow","ConstructorRow","Row","Col","ConstructorPage","data","themedBackground","getThemedValue","background","blocks","BackgroundMedia","Object","assign","Grid","ConstructorBlocks","items","Runtime","OpenapiSandbox","LatexRuntime","MermaidRuntime","Dark","zoom","showMenu","bindKeys","Page","pageProps","getPageByType","rebaseNavItem","item","result","Array","isArray","isDropdownItem","map","undefined","url","replace","App","router","navigation","toc","configure","settings","getSettings","setWideFormat","useState","setFullScreen","setShowMiniToc","setTheme","setTextSize","onChangeFullScreen","useSettings","setMobileView","document","body","clientWidth","onResizeHandler","useCallback","useEffect","window","addEventListener","removeEventListener","useMobile","path","getLangPath","location","fullHeader","Boolean","headerHeight","getPageType","direction","includes","RTL","LTR","getDirection","fullScreenPC","DocumentType","PageConstructor","appClassName","filter","join","updateRootClassName","pageContext","ThemeProvider","PageConstructorProvider","custom","page","resetPaddings","logo","leftItems","rightItems","headerWithControls","some","controls","withBorder","root","getElementById","__DATA__","Error","STATIC_CONTENT","hydrateRoot","createRoot","render","Element","e","matches","matchesSelector","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector","selector","th","this","prototype","call","querySelectorAll","el","event","href","target","locationOrigin","origin","startsWith","preventDefault","mainFileName","extention","endsWith","splitedHref","split","length","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","exports","module","id","loaded","__webpack_modules__","m","amdO","O","chunkIds","fn","priority","notFulfilled","Infinity","i","fulfilled","j","keys","every","key","splice","r","n","getter","__esModule","d","a","definition","o","defineProperty","enumerable","get","g","globalThis","Function","obj","prop","hasOwnProperty","Symbol","toStringTag","nmd","paths","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","chunkLoadingGlobal","self","bind","push","__webpack_exports__"],"sourceRoot":""}
1
+ {"version":3,"file":"app.js","mappings":"UAAIA,E,uICuBG,MAAMC,GAAiBC,EAAAA,EAAAA,OAC1B,EACIC,aAEAC,QACAC,gBAEAC,WACAC,mBAEAC,aACAC,qBAEAC,cACAC,sBAEAC,OACAC,QACAC,kBAGIC,EAAAA,cAACC,EAAAA,EAAc,CACXC,iBAAkB,UAClBC,YAAaC,EAAAA,GAAaC,EAC1BC,WAAYlB,EACZmB,aAAcnB,GAEdY,EAAAA,cAACQ,EAAAA,EAAQ,CACLC,UAAW,WACXpB,MAAOA,EACPC,cAAeA,EACfG,WAAYA,EACZC,mBAAoBA,EACpBC,YAAaA,EACbC,oBAAqBA,EACrBL,SAAUA,EACVC,iBAAkBA,EAClBK,KAAMA,EACNC,MAAOA,EACPC,aAAcA,OAOlCb,EAAewB,YAAc,iBCrEtB,MAAMC,EAAY,CACrB,KACA,MACA,MACA,KACA,KACA,KACA,KACA,MACA,KACA,KACA,KACA,KACA,QACA,MAGG,IAAKC,EAAa,SAAbA,GAAa,OAAbA,EAAa,UAAbA,EAAa,UAAbA,CAAa,MCdlB,SAASC,EAAaC,GACzB,MAAmB,kBAARA,EACAA,IAGJA,GAAc,SAARA,CACjB,CDgCO,IAAIC,IAAI,CAnB0B,OAErC,MACA,MACA,OACA,OACA,QACA,UACA,SACA,SACA,aACA,QACA,SACA,OACA,QACA,S,cEhCJ,MAAMC,GAAIC,EAAAA,EAAAA,GAAM,UAEhB,SAASC,IACL,OAAO,IACX,CAEA,SAASC,IACL,OAAO,IACX,CAEA,SAASC,IACL,OAAO,IACX,CAQO,MAAMC,EAAkEC,IAC3E,MAAM,SAACC,EAAQ,IAAEC,GAAOF,EACxB,IAAIG,EAAQC,EAASC,EAgBrB,OA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BC,KAAmC,6BAAIA,KAAmC,8BAAK,GACxGD,EAAmBvM,QAAQmM,EAAqBM,KAAK,KAAM,IAC3DF,EAAmBG,KAAOP,EAAqBM,KAAK,KAAMF,EAAmBG,KAAKD,KAAKF,G,KC7CvF,IAAII,EAAsBvD,EAAoBU,OAAEjD,EAAW,CAAC,IAAI,MAAM,IAAOuC,EAAoB,QACjGuD,EAAsBvD,EAAoBU,EAAE6C,E","sources":["webpack://@diplodoc/client/webpack/runtime/chunk loaded","webpack://@diplodoc/client/./src/components/HeaderControls/index.tsx","webpack://@diplodoc/client/./src/constants.ts","webpack://@diplodoc/client/./src/utils.ts","webpack://@diplodoc/client/./src/components/Layout/index.tsx","webpack://@diplodoc/client/./src/hooks/useSettings.ts","webpack://@diplodoc/client/./src/components/ConstructorPage/index.tsx","webpack://@diplodoc/client/./src/components/App/App.tsx","webpack://@diplodoc/client/./src/hooks/useMobile.ts","webpack://@diplodoc/client/./src/index.tsx","webpack://@diplodoc/client/./src/interceptors/leading-page-links.js","webpack://@diplodoc/client/./src/stub/empty-module.js","webpack://@diplodoc/client/webpack/bootstrap","webpack://@diplodoc/client/webpack/runtime/amd options","webpack://@diplodoc/client/webpack/runtime/compat get default export","webpack://@diplodoc/client/webpack/runtime/define property getters","webpack://@diplodoc/client/webpack/runtime/global","webpack://@diplodoc/client/webpack/runtime/hasOwnProperty shorthand","webpack://@diplodoc/client/webpack/runtime/make namespace object","webpack://@diplodoc/client/webpack/runtime/node module decorator","webpack://@diplodoc/client/webpack/runtime/jsonp chunk loading","webpack://@diplodoc/client/webpack/startup"],"sourcesContent":["var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","import React, {memo} from 'react';\n\nimport {ControlSizes, Controls, ControlsLayout, Lang, TextSizes, Theme} from '@diplodoc/components';\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype OnChangeCallback = (value: any) => void;\n\ntype Props = {\n mobileView: boolean;\n\n theme: Theme;\n onChangeTheme: OnChangeCallback;\n textSize: TextSizes;\n onChangeTextSize: OnChangeCallback;\n wideFormat: boolean;\n onChangeWideFormat: OnChangeCallback;\n showMiniToc: boolean;\n onChangeShowMiniToc: OnChangeCallback;\n lang: Lang;\n langs: Lang[];\n onChangeLang?: (lang: Lang) => void;\n};\n\nexport const HeaderControls = memo<Props>(\n ({\n mobileView,\n\n theme,\n onChangeTheme,\n\n textSize,\n onChangeTextSize,\n\n wideFormat,\n onChangeWideFormat,\n\n showMiniToc,\n onChangeShowMiniToc,\n\n lang,\n langs,\n onChangeLang,\n }) => {\n return (\n <ControlsLayout\n controlClassName={'Control'}\n controlSize={ControlSizes.L}\n isWideView={mobileView}\n isMobileView={mobileView}\n >\n <Controls\n className={'Controls'}\n theme={theme}\n onChangeTheme={onChangeTheme}\n wideFormat={wideFormat}\n onChangeWideFormat={onChangeWideFormat}\n showMiniToc={showMiniToc}\n onChangeShowMiniToc={onChangeShowMiniToc}\n textSize={textSize}\n onChangeTextSize={onChangeTextSize}\n lang={lang}\n langs={langs}\n onChangeLang={onChangeLang}\n />\n </ControlsLayout>\n );\n },\n);\n\nHeaderControls.displayName = 'HeaderControls';\n","export const RTL_LANGS = [\n 'ar',\n 'arc',\n 'ckb',\n 'dv',\n 'fa',\n 'ha',\n 'he',\n 'khw',\n 'ks',\n 'ps',\n 'sd',\n 'ur',\n 'uz_AF',\n 'yi',\n];\n\nexport enum TextDirection {\n RTL = 'rtl',\n LTR = 'ltr',\n}\n\nexport const LINK_KEYS_LEADING_CONFIG = ['href'];\nexport const LINK_KEYS_PAGE_CONSTRUCTOR_CONFIG = [\n 'src',\n 'url',\n 'href',\n 'icon',\n 'image',\n 'desktop',\n 'mobile',\n 'tablet',\n 'previewImg',\n 'image',\n 'avatar',\n 'logo',\n 'light',\n 'dark',\n];\n\nexport const LINK_KEYS = [\n ...new Set([...LINK_KEYS_LEADING_CONFIG, ...LINK_KEYS_PAGE_CONSTRUCTOR_CONFIG]),\n];\n","import {Lang, Theme} from '@diplodoc/components';\nimport {RTL_LANGS, TextDirection} from './constants';\n\nexport function strToBoolean(str: string | boolean) {\n if (typeof str === 'boolean') {\n return str;\n }\n\n return str ? str === 'true' : false;\n}\n\nexport function updateRootClassName({\n theme,\n mobileView = false,\n wideFormat = false,\n fullHeader = false,\n}: {\n theme: Theme;\n mobileView: boolean;\n wideFormat: boolean;\n fullHeader: boolean;\n}) {\n document.body.className = [\n 'g-root',\n mobileView ? 'mobile' : 'desktop',\n wideFormat && 'dc-root_wide-format',\n fullHeader && 'dc-root_full-header',\n theme === 'light' && 'g-root_theme_light',\n theme === 'dark' && 'g-root_theme_dark',\n ]\n .filter(Boolean)\n .join(' ');\n}\n\nexport function getDirection(lang: Lang): TextDirection {\n const isRTL = RTL_LANGS.includes(lang);\n\n return isRTL ? TextDirection.RTL : TextDirection.LTR;\n}\n","import React, {FC, PropsWithChildren, ReactElement} from 'react';\nimport block from 'bem-cn-lite';\n\nimport './Layout.scss';\n\nconst b = block('Layout');\n\nfunction Header() {\n return null;\n}\n\nfunction Content() {\n return null;\n}\n\nfunction Footer() {\n return null;\n}\n\ntype LayoutStatics = {\n Header: FC<PropsWithChildren>;\n Content: FC<PropsWithChildren>;\n Footer: FC<PropsWithChildren>;\n};\n\nexport const Layout: LayoutStatics & FC<PropsWithChildren<{doc?: boolean}>> = (props) => {\n const {children, doc} = props;\n let header, content, footer;\n\n React.Children.forEach(children as ReactElement[], (child: ReactElement) => {\n switch (child.type) {\n case Header:\n header = child.props.children;\n break;\n case Content:\n content = child.props.children;\n break;\n case Footer:\n footer = child.props.children;\n break;\n }\n });\n\n return (\n <div className={b()}>\n {header && <div className={b('header')}>{header}</div>}\n <div className={b('body')}>\n {content && <div className={b('content')}>{content}</div>}\n {footer && <div className={b('footer', {doc})}>{footer}</div>}\n </div>\n </div>\n );\n};\n\nLayout.displayName = 'Layout';\n\nLayout.defaultProps = {\n doc: false,\n};\n\nLayout.Header = Header;\nLayout.Content = Content;\nLayout.Footer = Footer;\n","import {strToBoolean} from '../utils';\nimport {useState} from 'react';\n\nimport {TextSizes, Theme} from '@diplodoc/components';\n\nconst DEFAULT_USER_SETTINGS = {\n theme: Theme.Light,\n textSize: TextSizes.M,\n showMiniToc: true,\n wideFormat: true,\n fullScreen: false,\n};\n\nexport function useSettings() {\n const settings = getSettings();\n\n const [wideFormat, setWideFormat] = useState(settings.wideFormat);\n const [fullScreen, setFullScreen] = useState(settings.fullScreen);\n const [showMiniToc, setShowMiniToc] = useState(settings.showMiniToc);\n const [theme, setTheme] = useState(settings.theme);\n const [textSize, setTextSize] = useState(settings.textSize);\n\n return {\n theme,\n onChangeTheme: withSavingSetting('theme', setTheme),\n textSize,\n onChangeTextSize: withSavingSetting('textSize', setTextSize),\n wideFormat,\n onChangeWideFormat: withSavingSetting('wideFormat', setWideFormat),\n showMiniToc,\n onChangeShowMiniToc: withSavingSetting('showMiniToc', setShowMiniToc),\n fullScreen,\n onChangeFullScreen: withSavingSetting('fullScreen', setFullScreen),\n };\n}\n\nfunction getSettings() {\n const theme = getSetting('theme');\n const textSize = getSetting('textSize');\n const showMiniToc = getSetting('showMiniToc');\n const wideFormat = getSetting('wideFormat');\n const fullScreen = getSetting('fullScreen');\n\n return {\n theme,\n textSize,\n showMiniToc: strToBoolean(showMiniToc),\n wideFormat: strToBoolean(wideFormat),\n fullScreen: strToBoolean(fullScreen),\n };\n}\n\ntype TSettings = typeof DEFAULT_USER_SETTINGS;\n\nfunction getSetting<T extends keyof TSettings>(name: T): TSettings[T] {\n if (typeof sessionStorage === 'undefined') {\n return DEFAULT_USER_SETTINGS[name];\n }\n\n try {\n return (sessionStorage.getItem(name) as TSettings[T]) || DEFAULT_USER_SETTINGS[name];\n } catch {\n return DEFAULT_USER_SETTINGS[name];\n }\n}\n\nfunction setSetting<T>(name: string, value: T) {\n try {\n sessionStorage.setItem(name, String(value));\n } catch {}\n}\n\nfunction withSavingSetting<T>(settingName: string, onChange: (value: T) => void) {\n return (value: T) => {\n setSetting<T>(settingName, value);\n\n onChange(value);\n };\n}\n","import React from 'react';\n\nimport block from 'bem-cn-lite';\nimport {\n BackgroundMedia,\n Col,\n ConstructorBlocks,\n Grid,\n Row,\n Theme,\n getThemedValue,\n} from '@gravity-ui/page-constructor';\nimport {PageContentData} from '../App/App';\n\nexport type WithChildren<T = {}> = T & {children?: React.ReactNode};\n\nconst bPC = block('pc-page-constructor');\nconst bPCRow = block('pc-constructor-row');\n\nexport const ConstructorRow = ({children}: WithChildren<{}>) =>\n children ? (\n <Row className={bPCRow()}>\n <Col>{children}</Col>\n </Row>\n ) : null;\n\nexport function ConstructorPage({data: {data}, theme}: {data: PageContentData; theme: Theme}) {\n const themedBackground = getThemedValue(data?.background, theme);\n\n return (\n <div className={bPC('docs')}>\n <div className={bPC('wrapper')}>\n {data?.blocks && themedBackground && (\n <BackgroundMedia {...themedBackground} className={bPC('background')} />\n )}\n <Grid>\n <ConstructorRow>\n <ConstructorBlocks items={data?.blocks} />\n </ConstructorRow>\n </Grid>\n </div>\n </div>\n );\n}\n","import React, {ReactElement, useCallback, useEffect} from 'react';\n\nimport {\n NavigationData,\n PageConstructor,\n PageConstructorProvider,\n PageContent,\n} from '@gravity-ui/page-constructor';\nimport {ThemeProvider} from '@gravity-ui/uikit';\nimport {\n DocContentPageData,\n DocLeadingPageData,\n DocPageData,\n DocumentType,\n Lang,\n Router,\n Theme,\n configure,\n getLangPath,\n getPageByType,\n getPageType,\n} from '@diplodoc/components';\n\nimport {HeaderControls} from '../HeaderControls';\nimport {getDirection, updateRootClassName} from '../../utils';\nimport {Layout} from '../Layout';\nimport {useSettings} from '../../hooks/useSettings';\nimport {useMobile} from '../../hooks/useMobile';\n\nimport '../../interceptors/leading-page-links';\n\nimport '@diplodoc/transform/dist/js/yfm';\nimport {MermaidRuntime} from '@diplodoc/mermaid-extension/react';\nimport {LatexRuntime} from '@diplodoc/latex-extension/react';\nimport {Runtime as OpenapiSandbox} from '@diplodoc/openapi-extension/runtime';\n\nimport './App.scss';\nimport {ConstructorPage} from '../ConstructorPage';\n\nexport interface AppProps {\n lang: Lang;\n langs: Lang[];\n router: Router;\n type: DocumentType;\n}\n\nexport interface PageContentData extends DocContentPageData {\n data: PageContent & {fullScreen?: boolean};\n}\n\nexport type DocInnerProps<Data = DocLeadingPageData | DocPageData | PageContentData> = {\n data: Data;\n} & AppProps;\n\nexport type {DocLeadingPageData, DocPageData};\n\ntype RuntimeProps = {\n theme: Theme;\n};\n\nfunction Runtime(props: RuntimeProps) {\n const {theme} = props;\n\n return (\n <>\n <OpenapiSandbox />\n <LatexRuntime />\n <MermaidRuntime\n theme={theme === Theme.Dark ? 'dark' : 'neutral'}\n zoom={{\n showMenu: true,\n bindKeys: true,\n }}\n />\n </>\n );\n}\n\nexport function Page(props: DocInnerProps) {\n const {data, ...pageProps} = props;\n const Page = getPageByType(props?.type);\n\n return (\n <Layout>\n <Layout.Content>\n {/*@ts-ignore*/}\n <Page {...data} {...pageProps} />\n </Layout.Content>\n </Layout>\n );\n}\n\ntype TocData = DocPageData['toc'] & {\n navigation?: NavigationData;\n};\n\nexport function App(props: DocInnerProps): ReactElement {\n const {data, router, lang, langs} = props;\n const {navigation} = data.toc as TocData;\n\n configure({\n lang,\n });\n\n const settings = useSettings();\n const mobileView = useMobile();\n\n const onChangeLang = useCallback(\n (lang: Lang) => {\n const path = getLangPath(router, lang);\n window.location.replace(path);\n },\n [router],\n );\n\n const {theme, textSize, wideFormat, fullScreen, showMiniToc, onChangeFullScreen} = settings;\n const fullHeader = !fullScreen && Boolean(navigation);\n const headerHeight = fullHeader ? 64 : 0;\n const type = getPageType(data);\n\n const pageProps = {\n headerHeight,\n data,\n router,\n lang,\n langs,\n wideFormat,\n showMiniToc,\n theme,\n textSize,\n fullScreen,\n onChangeFullScreen,\n type,\n };\n const direction = getDirection(lang);\n const fullScreenPC =\n type === DocumentType.PageConstructor &&\n 'data' in data &&\n 'fullScreen' in data.data &&\n data.data.fullScreen;\n const appClassName = `App ${fullScreenPC ? 'fullscreen-mode' : 'document-mode'}`;\n\n useEffect(() => {\n updateRootClassName({\n theme,\n mobileView,\n wideFormat,\n fullHeader,\n });\n }, [theme, mobileView, wideFormat, fullHeader]);\n\n const pageContext = {\n ...settings,\n onChangeLang,\n };\n\n if (!navigation) {\n return (\n <div className={appClassName}>\n <ThemeProvider theme={theme} direction={direction}>\n <Page {...pageProps} {...pageContext}>\n {type === DocumentType.PageConstructor && (\n <PageConstructorProvider theme={theme}>\n <PageConstructor\n custom={{\n blocks: {\n page: () => (\n <ConstructorPage\n data={data as PageContentData}\n theme={theme}\n />\n ),\n },\n }}\n content={\n fullScreenPC\n ? (data.data as PageContent)\n : {\n blocks: [\n {\n type: 'page',\n resetPaddings: true,\n },\n ],\n }\n }\n />\n </PageConstructorProvider>\n )}\n </Page>\n <Runtime theme={theme} />\n </ThemeProvider>\n </div>\n );\n }\n\n const {header = {}, logo} = navigation;\n const {leftItems = [], rightItems = []} = header as NavigationData['header'];\n const headerWithControls = rightItems.some((item: {type: string}) => item.type === 'controls');\n\n return (\n <div className={appClassName}>\n <ThemeProvider theme={theme} direction={direction}>\n <PageConstructorProvider theme={theme}>\n <PageConstructor\n custom={{\n navigation: {\n controls: () => (\n <HeaderControls\n {...pageContext}\n {...pageProps}\n onChangeLang={onChangeLang}\n mobileView={mobileView}\n />\n ),\n },\n blocks: {\n page: () => (\n <Page\n {...pageProps}\n {...(headerWithControls ? {} : pageContext)}\n >\n {type === DocumentType.PageConstructor &&\n 'data' in data && (\n <ConstructorPage\n data={data as PageContentData}\n theme={theme}\n />\n )}\n </Page>\n ),\n },\n }}\n content={\n fullScreenPC\n ? (data.data as PageContent)\n : {\n blocks: [\n {\n type: 'page',\n resetPaddings: true,\n },\n ],\n }\n }\n navigation={\n fullHeader\n ? {\n header: {\n withBorder: true,\n leftItems: leftItems,\n rightItems: rightItems,\n },\n logo,\n }\n : undefined\n }\n />\n </PageConstructorProvider>\n </ThemeProvider>\n <Runtime theme={theme} />\n </div>\n );\n}\n","import {useCallback, useEffect, useState} from 'react';\n\nconst MOBILE_VIEW_WIDTH_BREAKPOINT = 769;\n\nexport function useMobile() {\n const [mobileView, setMobileView] = useState<boolean>(\n typeof document !== 'undefined' && document.body.clientWidth < MOBILE_VIEW_WIDTH_BREAKPOINT,\n );\n\n const onResizeHandler = useCallback(() => {\n setMobileView(document.body.clientWidth < MOBILE_VIEW_WIDTH_BREAKPOINT);\n }, []);\n\n useEffect(onResizeHandler, [onResizeHandler]);\n\n useEffect(() => {\n window.addEventListener('resize', onResizeHandler);\n\n return () => window.removeEventListener('resize', onResizeHandler);\n }, [onResizeHandler]);\n\n return mobileView;\n}\n","import React from 'react';\nimport {createRoot, hydrateRoot} from 'react-dom/client';\n\nimport {App, DocInnerProps, DocLeadingPageData, DocPageData} from './components/App/App';\n\nexport type {DocInnerProps, DocPageData, DocLeadingPageData};\n\ndeclare global {\n interface Window {\n STATIC_CONTENT: boolean;\n __DATA__: DocInnerProps;\n }\n}\n\nconst root = document.getElementById('root');\nconst props = window.__DATA__;\n\nif (!root) {\n throw new Error('Root element not found!');\n}\n\nif (window.STATIC_CONTENT) {\n hydrateRoot(root, <App {...props} />);\n} else {\n createRoot(root).render(<App {...props} />);\n}\n","(function () {\n /**\n * Element.matches() polyfill.\n * @link https://developer.mozilla.org/ru/docs/Web/API/Element/matches\n */\n if (typeof Element !== 'undefined') {\n (function (e) {\n const matches =\n e.matches ||\n e.matchesSelector ||\n e.webkitMatchesSelector ||\n e.mozMatchesSelector ||\n e.msMatchesSelector ||\n e.oMatchesSelector;\n\n if (matches) {\n e.matches = e.matchesSelector = matches;\n } else {\n e.matches = e.matchesSelector = function (selector) {\n const th = this;\n return Array.prototype.some.call(document.querySelectorAll(selector), (el) => {\n return el === th;\n });\n };\n }\n })(Element.prototype);\n }\n\n if (typeof document !== 'undefined') {\n document.addEventListener('click', (event) => {\n const href = event.target.href;\n const locationOrigin = window.location.origin;\n\n if (\n event.target.matches('.dc-doc-layout__center a') &&\n href.startsWith(locationOrigin)\n ) {\n event.preventDefault();\n\n const mainFileName = 'index';\n const extention = '.html';\n\n if (href.endsWith('/')) {\n window.location.href = `${href}${mainFileName}${extention}`;\n return;\n }\n\n // https://../file-name, https://../file-name#fragment\n const splitedHref = href.split('#');\n if (splitedHref.length > 0 && !splitedHref[0].endsWith(extention)) {\n splitedHref[0] += extention;\n window.location.href = splitedHref.join('#');\n return;\n }\n\n window.location.href = href;\n }\n });\n }\n})();\n","export default function () {}\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","__webpack_require__.amdO = {};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = (module) => {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t524: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunk_diplodoc_client\"] = self[\"webpackChunk_diplodoc_client\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [644,121], () => (__webpack_require__(7276)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["deferred","HeaderControls","memo","mobileView","theme","onChangeTheme","textSize","onChangeTextSize","wideFormat","onChangeWideFormat","showMiniToc","onChangeShowMiniToc","lang","langs","onChangeLang","React","ControlsLayout","controlClassName","controlSize","ControlSizes","L","isWideView","isMobileView","Controls","className","displayName","RTL_LANGS","TextDirection","strToBoolean","str","Set","b","block","Header","Content","Footer","Layout","props","children","doc","header","content","footer","forEach","child","type","defaultProps","DEFAULT_USER_SETTINGS","Theme","Light","TextSizes","M","fullScreen","getSetting","name","sessionStorage","getItem","withSavingSetting","settingName","onChange","value","setItem","String","setSetting","bPC","bPCRow","ConstructorRow","Row","Col","ConstructorPage","data","themedBackground","getThemedValue","background","blocks","BackgroundMedia","Object","assign","Grid","ConstructorBlocks","items","Runtime","OpenapiSandbox","LatexRuntime","MermaidRuntime","Dark","zoom","showMenu","bindKeys","Page","pageProps","getPageByType","App","router","navigation","toc","configure","settings","getSettings","setWideFormat","useState","setFullScreen","setShowMiniToc","setTheme","setTextSize","onChangeFullScreen","useSettings","setMobileView","document","body","clientWidth","onResizeHandler","useCallback","useEffect","window","addEventListener","removeEventListener","useMobile","path","getLangPath","location","replace","fullHeader","Boolean","headerHeight","getPageType","direction","includes","RTL","LTR","getDirection","fullScreenPC","DocumentType","PageConstructor","appClassName","filter","join","updateRootClassName","pageContext","ThemeProvider","PageConstructorProvider","custom","page","resetPaddings","logo","leftItems","rightItems","headerWithControls","some","item","controls","withBorder","undefined","root","getElementById","__DATA__","Error","STATIC_CONTENT","hydrateRoot","createRoot","render","Element","e","matches","matchesSelector","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector","selector","th","this","Array","prototype","call","querySelectorAll","el","event","href","target","locationOrigin","origin","startsWith","preventDefault","mainFileName","extention","endsWith","splitedHref","split","length","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","exports","module","id","loaded","__webpack_modules__","m","amdO","O","result","chunkIds","fn","priority","notFulfilled","Infinity","i","fulfilled","j","keys","every","key","splice","r","n","getter","__esModule","d","a","definition","o","defineProperty","enumerable","get","g","globalThis","Function","obj","prop","hasOwnProperty","Symbol","toStringTag","nmd","paths","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","chunkLoadingGlobal","self","bind","push","__webpack_exports__"],"sourceRoot":""}
@@ -1,5 +1,6 @@
1
1
  import { DocInnerProps, DocLeadingPageData, DocPageData } from './components/App/App';
2
- import { LINK_KEYS } from './constants';
2
+ import { LINK_KEYS, LINK_KEYS_LEADING_CONFIG, LINK_KEYS_PAGE_CONSTRUCTOR_CONFIG } from './constants';
3
+ import { preprocess } from './preprocess';
3
4
  export type { DocInnerProps, DocPageData, DocLeadingPageData };
4
- export { LINK_KEYS };
5
+ export { LINK_KEYS, LINK_KEYS_LEADING_CONFIG, LINK_KEYS_PAGE_CONSTRUCTOR_CONFIG, preprocess };
5
6
  export declare const render: (props: DocInnerProps) => string;
@@ -0,0 +1,24 @@
1
+ import { NavigationData as ConstructorNavigaitonData, PageContent as ConstructorPageContentBase } from '@gravity-ui/page-constructor';
2
+ import { TransformerRaw } from '@gravity-ui/page-constructor/server';
3
+ export interface MetaData {
4
+ title: string;
5
+ description?: string;
6
+ }
7
+ export interface PageContentBase {
8
+ meta?: MetaData;
9
+ }
10
+ export declare enum Lang {
11
+ RU = "ru",
12
+ EN = "en"
13
+ }
14
+ export type PageContent<T> = T & PageContentBase;
15
+ export type ConstructorPageContent = PageContent<ConstructorPageContentBase>;
16
+ export type NavigationData = PageContent<ConstructorNavigaitonData>;
17
+ export type ConfigData = ConstructorPageContent | NavigationData;
18
+ export interface PreloadParams {
19
+ lang: Lang;
20
+ pageName: string;
21
+ pageReferer?: string;
22
+ }
23
+ export declare function isPageConfig(config: ConfigData): config is ConstructorPageContent;
24
+ export declare function preprocess(content: ConfigData, params: PreloadParams, customYfmTransformer: TransformerRaw): ConfigData;