@next-bricks/data-view 0.24.4 → 0.24.6
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/dist/bricks.json +4 -4
- package/dist/chunks/159.caf61ac8.js +2 -0
- package/dist/chunks/159.caf61ac8.js.map +1 -0
- package/dist/chunks/{1646.05542f8f.js → 1646.5675f46d.js} +2 -2
- package/dist/chunks/{7746.ebb00411.js.map → 1646.5675f46d.js.map} +1 -1
- package/dist/chunks/1874.fd357791.js.map +1 -1
- package/dist/chunks/2502.fc376a5d.js +2 -0
- package/dist/chunks/2502.fc376a5d.js.map +1 -0
- package/dist/chunks/3458.b2aa4cae.js +2 -0
- package/dist/chunks/{3458.ace63144.js.map → 3458.b2aa4cae.js.map} +1 -1
- package/dist/chunks/{4031.af83eb4b.js → 4031.e97b00f8.js} +2 -2
- package/dist/chunks/4031.e97b00f8.js.map +1 -0
- package/dist/chunks/{4049.f5e34349.js → 4049.c372388d.js} +2 -2
- package/dist/chunks/{4049.f5e34349.js.map → 4049.c372388d.js.map} +1 -1
- package/dist/chunks/{4275.b3dd1343.js → 4275.f71a1a4b.js} +2 -2
- package/dist/chunks/{4275.b3dd1343.js.map → 4275.f71a1a4b.js.map} +1 -1
- package/dist/chunks/443.5c72124e.js.map +1 -1
- package/dist/chunks/4991.d9c05e27.js +2 -0
- package/dist/chunks/4991.d9c05e27.js.map +1 -0
- package/dist/chunks/{5151.317d0e3c.js → 5151.afc0178c.js} +2 -2
- package/dist/chunks/{5151.317d0e3c.js.map → 5151.afc0178c.js.map} +1 -1
- package/dist/chunks/{5381.51ad107a.js → 5381.1e86ada0.js} +2 -2
- package/dist/chunks/{5381.51ad107a.js.map → 5381.1e86ada0.js.map} +1 -1
- package/dist/chunks/{5636.2c9b6fbb.js → 5636.041225ad.js} +2 -2
- package/dist/chunks/{5636.2c9b6fbb.js.map → 5636.041225ad.js.map} +1 -1
- package/dist/chunks/{5725.eb89582e.js → 5725.fa319c62.js} +2 -2
- package/dist/chunks/{5725.eb89582e.js.map → 5725.fa319c62.js.map} +1 -1
- package/dist/chunks/6051.d0588c7b.js +2 -0
- package/dist/chunks/6051.d0588c7b.js.map +1 -0
- package/dist/chunks/6205.8bfd0a68.js +2 -0
- package/dist/chunks/{6205.6d681a94.js.map → 6205.8bfd0a68.js.map} +1 -1
- package/dist/chunks/{6473.bf5eca9d.js → 6473.2f312932.js} +2 -2
- package/dist/chunks/{6473.bf5eca9d.js.map → 6473.2f312932.js.map} +1 -1
- package/dist/chunks/{6653.8f670392.js → 6653.93433cc6.js} +2 -2
- package/dist/chunks/{6653.8f670392.js.map → 6653.93433cc6.js.map} +1 -1
- package/dist/chunks/{6660.dbeafac4.js → 6660.b880dde6.js} +2 -2
- package/dist/chunks/{6660.dbeafac4.js.map → 6660.b880dde6.js.map} +1 -1
- package/dist/chunks/7164.fc2a7637.js +2 -0
- package/dist/chunks/{7164.8bdcd416.js.map → 7164.fc2a7637.js.map} +1 -1
- package/dist/chunks/{7672.6b9b76f3.js → 7672.0691cd05.js} +2 -2
- package/dist/chunks/{7672.6b9b76f3.js.map → 7672.0691cd05.js.map} +1 -1
- package/dist/chunks/{7746.ebb00411.js → 7746.20ab5bb5.js} +2 -2
- package/dist/chunks/{1646.05542f8f.js.map → 7746.20ab5bb5.js.map} +1 -1
- package/dist/chunks/8442.5751dc28.js +2 -0
- package/dist/chunks/8442.5751dc28.js.map +1 -0
- package/dist/chunks/{8498.f61fdcdc.js → 8498.898bb8d0.js} +2 -2
- package/dist/chunks/{8498.f61fdcdc.js.map → 8498.898bb8d0.js.map} +1 -1
- package/dist/chunks/8588.61711702.js +2 -0
- package/dist/chunks/8588.61711702.js.map +1 -0
- package/dist/chunks/{9809.2d2a6014.js → 9809.1a301a83.js} +2 -2
- package/dist/chunks/9809.1a301a83.js.map +1 -0
- package/dist/chunks/app-wall-card-item.2a4712ef.js +3 -0
- package/dist/chunks/app-wall-card-item.2a4712ef.js.map +1 -0
- package/dist/chunks/app-wall-relation-line.dc0c61bf.js +3 -0
- package/dist/chunks/app-wall-relation-line.dc0c61bf.js.map +1 -0
- package/dist/chunks/{app-wall-system-card.03c861f4.js → app-wall-system-card.b20df312.js} +2 -2
- package/dist/chunks/app-wall-system-card.b20df312.js.map +1 -0
- package/dist/chunks/app-wall.7e47ab87.js +2 -0
- package/dist/chunks/app-wall.7e47ab87.js.map +1 -0
- package/dist/chunks/basic-index-group.930f5ee7.js +2 -0
- package/dist/chunks/basic-index-group.930f5ee7.js.map +1 -0
- package/dist/chunks/battery-chart.46a4f780.js +2 -0
- package/dist/chunks/battery-chart.46a4f780.js.map +1 -0
- package/dist/chunks/brick-notification.1df78b13.js +2 -0
- package/dist/chunks/brick-notification.1df78b13.js.map +1 -0
- package/dist/chunks/{cabinet-app-layer.3dc936ae.js → cabinet-app-layer.522e61c4.js} +3 -3
- package/dist/chunks/cabinet-app-layer.522e61c4.js.map +1 -0
- package/dist/chunks/{cabinet-button.0082a409.js → cabinet-button.c01ed2b9.js} +2 -2
- package/dist/chunks/cabinet-button.c01ed2b9.js.map +1 -0
- package/dist/chunks/{cabinet-container.16655913.js → cabinet-container.32763d76.js} +3 -3
- package/dist/chunks/cabinet-container.32763d76.js.map +1 -0
- package/dist/chunks/{cabinet-graph.eb4f2420.js → cabinet-graph.dd354e0d.js} +2 -2
- package/dist/chunks/cabinet-graph.dd354e0d.js.map +1 -0
- package/dist/chunks/{cabinet-node.a8e901ab.js → cabinet-node.a54abeda.js} +3 -3
- package/dist/chunks/cabinet-node.a54abeda.js.map +1 -0
- package/dist/chunks/{cabinet-thumbnail.c30d7371.js → cabinet-thumbnail.9b9ed679.js} +3 -3
- package/dist/chunks/cabinet-thumbnail.9b9ed679.js.map +1 -0
- package/dist/chunks/complex-search.3eba6077.js +2 -0
- package/dist/chunks/complex-search.3eba6077.js.map +1 -0
- package/dist/chunks/data-display-flipper-fifth.7ff714bd.js +2 -0
- package/dist/chunks/data-display-flipper-fifth.7ff714bd.js.map +1 -0
- package/dist/chunks/data-display-flipper-sixth.7ef2d216.js +2 -0
- package/dist/chunks/data-display-flipper-sixth.7ef2d216.js.map +1 -0
- package/dist/chunks/data-display-flipper.0fd4e655.js +2 -0
- package/dist/chunks/data-display-flipper.0fd4e655.js.map +1 -0
- package/dist/chunks/{dropdown-menu.6d7a1efd.js → dropdown-menu.58bd8241.js} +3 -3
- package/dist/chunks/dropdown-menu.58bd8241.js.map +1 -0
- package/dist/chunks/gauge-chart.3b432743.js +2 -0
- package/dist/chunks/gauge-chart.3b432743.js.map +1 -0
- package/dist/chunks/{gear-background.9da57ea0.js → gear-background.65d1bfed.js} +2 -2
- package/dist/chunks/gear-background.65d1bfed.js.map +1 -0
- package/dist/chunks/graph-layout-grid.1baebba2.js +2 -0
- package/dist/chunks/graph-layout-grid.1baebba2.js.map +1 -0
- package/dist/chunks/{graph-node.a4442441.js → graph-node.df5ea520.js} +2 -2
- package/dist/chunks/graph-node.df5ea520.js.map +1 -0
- package/dist/chunks/{graph-text.5660d154.js → graph-text.ab899a96.js} +2 -2
- package/dist/chunks/graph-text.ab899a96.js.map +1 -0
- package/dist/chunks/{grid-background.490aa2d4.js → grid-background.11eae64c.js} +2 -2
- package/dist/chunks/grid-background.11eae64c.js.map +1 -0
- package/dist/chunks/{hi-tech-button.7e5bc0dd.js → hi-tech-button.f7015f5e.js} +2 -2
- package/dist/chunks/hi-tech-button.f7015f5e.js.map +1 -0
- package/dist/chunks/indicator-card.430e0838.js +3 -0
- package/dist/chunks/indicator-card.430e0838.js.map +1 -0
- package/dist/chunks/lights-component-title.82753b9d.js +2 -0
- package/dist/chunks/lights-component-title.82753b9d.js.map +1 -0
- package/dist/chunks/{loading-panel.1e534c7f.js → loading-panel.a416516b.js} +2 -2
- package/dist/chunks/loading-panel.a416516b.js.map +1 -0
- package/dist/chunks/main.92a8b1d4.js +2 -0
- package/dist/chunks/main.92a8b1d4.js.map +1 -0
- package/dist/chunks/{modern-style-component-title.8e9462d6.js → modern-style-component-title.868e37d5.js} +2 -2
- package/dist/chunks/modern-style-component-title.868e37d5.js.map +1 -0
- package/dist/chunks/modern-style-page-title.ea34a09c.js +2 -0
- package/dist/chunks/modern-style-page-title.ea34a09c.js.map +1 -0
- package/dist/chunks/{modern-style-treemap.e65789ec.js → modern-style-treemap.264d7b10.js} +3 -3
- package/dist/chunks/modern-style-treemap.264d7b10.js.map +1 -0
- package/dist/chunks/{particle-animation.95162605.js → particle-animation.1b52fc37.js} +2 -2
- package/dist/chunks/particle-animation.1b52fc37.js.map +1 -0
- package/dist/chunks/radar-chart.bab0ff9c.js +2 -0
- package/dist/chunks/radar-chart.bab0ff9c.js.map +1 -0
- package/dist/chunks/simple-card-item.4a9c0db4.js +3 -0
- package/dist/chunks/simple-card-item.4a9c0db4.js.map +1 -0
- package/dist/chunks/{tabs-drawer.5c42cc42.js → tabs-drawer.314f831a.js} +3 -3
- package/dist/chunks/tabs-drawer.314f831a.js.map +1 -0
- package/dist/chunks/{tabs-page-title.df51ae41.js → tabs-page-title.1850ce50.js} +3 -3
- package/dist/chunks/tabs-page-title.1850ce50.js.map +1 -0
- package/dist/chunks/tech-mesh-base-view.10f53604.js +2 -0
- package/dist/chunks/tech-mesh-base-view.10f53604.js.map +1 -0
- package/dist/chunks/title-text.bebb548c.js +2 -0
- package/dist/chunks/title-text.bebb548c.js.map +1 -0
- package/dist/chunks/{top-title-bar.c36d6df1.js → top-title-bar.2a5f567b.js} +2 -2
- package/dist/chunks/{top-title-bar.c36d6df1.js.map → top-title-bar.2a5f567b.js.map} +1 -1
- package/dist/examples.json +7 -7
- package/dist/index.c4841024.js +2 -0
- package/dist/index.c4841024.js.map +1 -0
- package/dist/manifest.json +105 -105
- package/dist/types.json +290 -290
- package/package.json +4 -4
- package/dist/chunks/2502.d12fe43c.js +0 -2
- package/dist/chunks/2502.d12fe43c.js.map +0 -1
- package/dist/chunks/3458.ace63144.js +0 -2
- package/dist/chunks/4031.af83eb4b.js.map +0 -1
- package/dist/chunks/4991.7f1b1f2d.js +0 -2
- package/dist/chunks/4991.7f1b1f2d.js.map +0 -1
- package/dist/chunks/6051.c8c241c3.js +0 -2
- package/dist/chunks/6051.c8c241c3.js.map +0 -1
- package/dist/chunks/6205.6d681a94.js +0 -2
- package/dist/chunks/7164.8bdcd416.js +0 -2
- package/dist/chunks/8442.aba7a46f.js +0 -2
- package/dist/chunks/8442.aba7a46f.js.map +0 -1
- package/dist/chunks/8588.2beae150.js +0 -2
- package/dist/chunks/8588.2beae150.js.map +0 -1
- package/dist/chunks/8691.e3206ecb.js +0 -2
- package/dist/chunks/8691.e3206ecb.js.map +0 -1
- package/dist/chunks/9809.2d2a6014.js.map +0 -1
- package/dist/chunks/app-wall-card-item.bb1cc04e.js +0 -3
- package/dist/chunks/app-wall-card-item.bb1cc04e.js.map +0 -1
- package/dist/chunks/app-wall-relation-line.c9f65981.js +0 -3
- package/dist/chunks/app-wall-relation-line.c9f65981.js.map +0 -1
- package/dist/chunks/app-wall-system-card.03c861f4.js.map +0 -1
- package/dist/chunks/app-wall.cfe34da4.js +0 -2
- package/dist/chunks/app-wall.cfe34da4.js.map +0 -1
- package/dist/chunks/basic-index-group.a540fab1.js +0 -2
- package/dist/chunks/basic-index-group.a540fab1.js.map +0 -1
- package/dist/chunks/battery-chart.155daf1c.js +0 -2
- package/dist/chunks/battery-chart.155daf1c.js.map +0 -1
- package/dist/chunks/brick-notification.0b3be734.js +0 -2
- package/dist/chunks/brick-notification.0b3be734.js.map +0 -1
- package/dist/chunks/cabinet-app-layer.3dc936ae.js.map +0 -1
- package/dist/chunks/cabinet-button.0082a409.js.map +0 -1
- package/dist/chunks/cabinet-container.16655913.js.map +0 -1
- package/dist/chunks/cabinet-graph.eb4f2420.js.map +0 -1
- package/dist/chunks/cabinet-node.a8e901ab.js.map +0 -1
- package/dist/chunks/cabinet-thumbnail.c30d7371.js.map +0 -1
- package/dist/chunks/complex-search.6dc8a1eb.js +0 -2
- package/dist/chunks/complex-search.6dc8a1eb.js.map +0 -1
- package/dist/chunks/data-display-flipper-fifth.2ae5ec8a.js +0 -2
- package/dist/chunks/data-display-flipper-fifth.2ae5ec8a.js.map +0 -1
- package/dist/chunks/data-display-flipper-sixth.85dabbfb.js +0 -2
- package/dist/chunks/data-display-flipper-sixth.85dabbfb.js.map +0 -1
- package/dist/chunks/data-display-flipper.9ad4898b.js +0 -2
- package/dist/chunks/data-display-flipper.9ad4898b.js.map +0 -1
- package/dist/chunks/dropdown-menu.6d7a1efd.js.map +0 -1
- package/dist/chunks/gauge-chart.5605e2ea.js +0 -2
- package/dist/chunks/gauge-chart.5605e2ea.js.map +0 -1
- package/dist/chunks/gear-background.9da57ea0.js.map +0 -1
- package/dist/chunks/graph-layout-grid.ae9fa2db.js +0 -2
- package/dist/chunks/graph-layout-grid.ae9fa2db.js.map +0 -1
- package/dist/chunks/graph-node.a4442441.js.map +0 -1
- package/dist/chunks/graph-text.5660d154.js.map +0 -1
- package/dist/chunks/grid-background.490aa2d4.js.map +0 -1
- package/dist/chunks/hi-tech-button.7e5bc0dd.js.map +0 -1
- package/dist/chunks/indicator-card.dad90cc9.js +0 -3
- package/dist/chunks/indicator-card.dad90cc9.js.map +0 -1
- package/dist/chunks/lights-component-title.a95a2abe.js +0 -2
- package/dist/chunks/lights-component-title.a95a2abe.js.map +0 -1
- package/dist/chunks/loading-panel.1e534c7f.js.map +0 -1
- package/dist/chunks/main.3fcf08b9.js +0 -2
- package/dist/chunks/main.3fcf08b9.js.map +0 -1
- package/dist/chunks/modern-style-component-title.8e9462d6.js.map +0 -1
- package/dist/chunks/modern-style-page-title.81f35a48.js +0 -2
- package/dist/chunks/modern-style-page-title.81f35a48.js.map +0 -1
- package/dist/chunks/modern-style-treemap.e65789ec.js.map +0 -1
- package/dist/chunks/particle-animation.95162605.js.map +0 -1
- package/dist/chunks/radar-chart.c393d1dc.js +0 -2
- package/dist/chunks/radar-chart.c393d1dc.js.map +0 -1
- package/dist/chunks/simple-card-item.45cc5b36.js +0 -3
- package/dist/chunks/simple-card-item.45cc5b36.js.map +0 -1
- package/dist/chunks/tabs-drawer.5c42cc42.js.map +0 -1
- package/dist/chunks/tabs-page-title.df51ae41.js.map +0 -1
- package/dist/chunks/tech-mesh-base-view.9246e109.js +0 -2
- package/dist/chunks/tech-mesh-base-view.9246e109.js.map +0 -1
- package/dist/chunks/title-text.9446a7f8.js +0 -2
- package/dist/chunks/title-text.9446a7f8.js.map +0 -1
- package/dist/index.823de768.js +0 -2
- package/dist/index.823de768.js.map +0 -1
- /package/dist/chunks/{app-wall-card-item.bb1cc04e.js.LICENSE.txt → app-wall-card-item.2a4712ef.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{app-wall-relation-line.c9f65981.js.LICENSE.txt → app-wall-relation-line.dc0c61bf.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{cabinet-app-layer.3dc936ae.js.LICENSE.txt → cabinet-app-layer.522e61c4.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{cabinet-container.16655913.js.LICENSE.txt → cabinet-container.32763d76.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{cabinet-node.a8e901ab.js.LICENSE.txt → cabinet-node.a54abeda.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{cabinet-thumbnail.c30d7371.js.LICENSE.txt → cabinet-thumbnail.9b9ed679.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{dropdown-menu.6d7a1efd.js.LICENSE.txt → dropdown-menu.58bd8241.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{indicator-card.dad90cc9.js.LICENSE.txt → indicator-card.430e0838.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{modern-style-treemap.e65789ec.js.LICENSE.txt → modern-style-treemap.264d7b10.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{simple-card-item.45cc5b36.js.LICENSE.txt → simple-card-item.4a9c0db4.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{tabs-drawer.5c42cc42.js.LICENSE.txt → tabs-drawer.314f831a.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{tabs-page-title.df51ae41.js.LICENSE.txt → tabs-page-title.1850ce50.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(self.webpackChunk_next_bricks_data_view=self.webpackChunk_next_bricks_data_view||[]).push([[8588],{4896:e=>{e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},7896:(e,n,t)=>{"use strict";function s(){return s=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},s.apply(this,arguments)}t.d(n,{Z:()=>s})},8588:(e,n,t)=>{"use strict";t.r(n),t.d(n,{I18nContext:()=>A,I18nextProvider:()=>M,Trans:()=>K,TransWithoutContext:()=>V,Translation:()=>W,composeInitialProps:()=>F,date:()=>Y,getDefaults:()=>S,getI18n:()=>C,getInitialProps:()=>U,initReactI18next:()=>z,number:()=>G,plural:()=>X,select:()=>Q,selectOrdinal:()=>ee,setDefaults:()=>I,setI18n:()=>j,time:()=>J,useSSR:()=>Z,useTranslation:()=>D,withSSR:()=>q,withTranslation:()=>H});var s=t(8657),i=t(7896),r=t(4896),o=t.n(r),a=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function c(e){var n={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},t=e.match(/<\/?([^\s]+?)[/\s>]/);if(t&&(n.name=t[1],(o()[t[1]]||"/"===e.charAt(e.length-2))&&(n.voidElement=!0),n.name.startsWith("!--"))){var s=e.indexOf("--\x3e");return{type:"comment",comment:-1!==s?e.slice(4,s):""}}for(var i=new RegExp(a),r=null;null!==(r=i.exec(e));)if(r[0].trim())if(r[1]){var c=r[1].trim(),l=[c,""];c.indexOf("=")>-1&&(l=c.split("=")),n.attrs[l[0]]=l[1],i.lastIndex--}else r[2]&&(n.attrs[r[2]]=r[3].trim().substring(1,r[3].length-1));return n}var l=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,u=/^\s*$/,p=Object.create(null);function d(e,n){switch(n.type){case"text":return e+n.content;case"tag":return e+="<"+n.name+(n.attrs?function(e){var n=[];for(var t in e)n.push(t+'="'+e[t]+'"');return n.length?" "+n.join(" "):""}(n.attrs):"")+(n.voidElement?"/>":">"),n.voidElement?e:e+n.children.reduce(d,"")+"</"+n.name+">";case"comment":return e+"\x3c!--"+n.comment+"--\x3e"}}var f={parse:function(e,n){n||(n={}),n.components||(n.components=p);var t,s=[],i=[],r=-1,o=!1;if(0!==e.indexOf("<")){var a=e.indexOf("<");s.push({type:"text",content:-1===a?e:e.substring(0,a)})}return e.replace(l,(function(a,l){if(o){if(a!=="</"+t.name+">")return;o=!1}var p,d="/"!==a.charAt(1),f=a.startsWith("\x3c!--"),g=l+a.length,h=e.charAt(g);if(f){var m=c(a);return r<0?(s.push(m),s):((p=i[r]).children.push(m),s)}if(d&&(r++,"tag"===(t=c(a)).type&&n.components[t.name]&&(t.type="component",o=!0),t.voidElement||o||!h||"<"===h||t.children.push({type:"text",content:e.slice(g,e.indexOf("<",g))}),0===r&&s.push(t),(p=i[r-1])&&p.children.push(t),i[r]=t),(!d||t.voidElement)&&(r>-1&&(t.voidElement||t.name===a.slice(2,-1))&&(r--,t=-1===r?s:i[r]),!o&&"<"!==h&&h)){p=-1===r?s:i[r].children;var y=e.indexOf("<",g),b=e.slice(g,-1===y?void 0:y);u.test(b)&&(b=" "),(y>-1&&r+p.length>=0||" "!==b)&&p.push({type:"text",content:b})}})),s},stringify:function(e){return e.reduce((function(e,n){return e+d("",n)}),"")}};const g=f;function h(){if(console&&console.warn){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];"string"==typeof n[0]&&(n[0]=`react-i18next:: ${n[0]}`),console.warn(...n)}}const m={};function y(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];"string"==typeof n[0]&&m[n[0]]||("string"==typeof n[0]&&(m[n[0]]=new Date),h(...n))}const b=(e,n)=>()=>{if(e.isInitialized)n();else{const t=()=>{setTimeout((()=>{e.off("initialized",t)}),0),n()};e.on("initialized",t)}};function v(e,n,t){e.loadNamespaces(n,b(e,t))}function x(e,n,t,s){"string"==typeof t&&(t=[t]),t.forEach((n=>{e.options.ns.indexOf(n)<0&&e.options.ns.push(n)})),e.loadLanguages(n,b(e,s))}function E(e){return e.displayName||e.name||("string"==typeof e&&e.length>0?e:"Unknown")}const O=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,N={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},w=e=>N[e];let $,k={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(O,w)};function I(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};k={...k,...e}}function S(){return k}function j(e){$=e}function C(){return $}function R(e,n){if(!e)return!1;const t=e.props?e.props.children:e.children;return n?t.length>0:!!t}function L(e){if(!e)return[];const n=e.props?e.props.children:e.children;return e.props&&e.props.i18nIsDynamicList?T(n):n}function T(e){return Array.isArray(e)?e:[e]}function P(e,n){if(!e)return"";let t="";const i=T(e),r=n.transSupportBasicHtmlNodes&&n.transKeepBasicHtmlNodesFor?n.transKeepBasicHtmlNodesFor:[];return i.forEach(((e,i)=>{if("string"==typeof e)t+=`${e}`;else if((0,s.isValidElement)(e)){const s=Object.keys(e.props).length,o=r.indexOf(e.type)>-1,a=e.props.children;if(!a&&o&&0===s)t+=`<${e.type}/>`;else if(a||o&&0===s)if(e.props.i18nIsDynamicList)t+=`<${i}></${i}>`;else if(o&&1===s&&"string"==typeof a)t+=`<${e.type}>${a}</${e.type}>`;else{const e=P(a,n);t+=`<${i}>${e}</${i}>`}else t+=`<${i}></${i}>`}else if(null===e)h("Trans: the passed in value is invalid - seems you passed in a null child.");else if("object"==typeof e){const{format:n,...s}=e,i=Object.keys(s);if(1===i.length){const e=n?`${i[0]}, ${n}`:i[0];t+=`{{${e}}}`}else h("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",e)}else h("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",e)})),t}function V(e){let{children:n,count:t,parent:r,i18nKey:o,context:a,tOptions:c={},values:l,defaults:u,components:p,ns:d,i18n:f,t:h,shouldUnescape:m,...b}=e;const v=f||C();if(!v)return y("You will need to pass in an i18next instance by using i18nextReactModule"),n;const x=h||v.t.bind(v)||(e=>e);a&&(c.context=a);const E={...S(),...v.options&&v.options.react};let O=d||x.ns||v.options&&v.options.defaultNS;O="string"==typeof O?[O]:O||["translation"];const N=P(n,E),w=u||N||E.transEmptyNodeValue||o,{hashTransKey:$}=E,k=o||($?$(N||w):N||w);v.options&&v.options.interpolation&&v.options.interpolation.defaultVariables&&(l=l&&Object.keys(l).length>0?{...l,...v.options.interpolation.defaultVariables}:{...v.options.interpolation.defaultVariables});const I=l?c.interpolation:{interpolation:{...c.interpolation,prefix:"#$?",suffix:"?$#"}},j={...c,count:t,...l,...I,defaultValue:w,ns:O},V=k?x(k,j):w;p&&Object.keys(p).forEach((e=>{const n=p[e];"function"==typeof n.type||!n.props||!n.props.children||V.indexOf(`${e}/>`)<0&&V.indexOf(`${e} />`)<0||(p[e]=s.createElement((function(){return s.createElement(s.Fragment,null,n)}),null))}));const z=function(e,n,t,r,o,a){if(""===n)return[];const c=r.transKeepBasicHtmlNodesFor||[],l=n&&new RegExp(c.map((e=>`<${e}`)).join("|")).test(n);if(!e&&!l&&!a)return[n];const u={};!function e(n){T(n).forEach((n=>{"string"!=typeof n&&(R(n)?e(L(n)):"object"!=typeof n||(0,s.isValidElement)(n)||Object.assign(u,n))}))}(e);const p=g.parse(`<0>${n}</0>`),d={...u,...o};function f(e,n,t){const i=L(e),r=m(i,n.children,t);return function(e){return"[object Array]"===Object.prototype.toString.call(e)&&e.every((e=>(0,s.isValidElement)(e)))}(i)&&0===r.length||e.props&&e.props.i18nIsDynamicList?i:r}function h(e,n,t,r,o){e.dummy?(e.children=n,t.push((0,s.cloneElement)(e,{key:r},o?void 0:n))):t.push(...s.Children.map([e],(e=>{const t={...e.props};return delete t.i18nIsDynamicList,s.createElement(e.type,(0,i.Z)({},t,{key:r,ref:e.ref},o?{}:{children:n}))})))}function m(n,i,o){const u=T(n);return T(i).reduce(((n,i,p)=>{const g=i.children&&i.children[0]&&i.children[0].content&&t.services.interpolator.interpolate(i.children[0].content,d,t.language);if("tag"===i.type){let a=u[parseInt(i.name,10)];1!==o.length||a||(a=o[0][i.name]),a||(a={});const y=0!==Object.keys(i.attrs).length?function(e,n){const t={...n};return t.props=Object.assign(e.props,n.props),t}({props:i.attrs},a):a,b=(0,s.isValidElement)(y),v=b&&R(i,!0)&&!i.voidElement,x=l&&"object"==typeof y&&y.dummy&&!b,E="object"==typeof e&&null!==e&&Object.hasOwnProperty.call(e,i.name);if("string"==typeof y){const e=t.services.interpolator.interpolate(y,d,t.language);n.push(e)}else if(R(y)||v)h(y,f(y,i,o),n,p);else if(x)h(y,m(u,i.children,o),n,p);else if(Number.isNaN(parseFloat(i.name)))if(E)h(y,f(y,i,o),n,p,i.voidElement);else if(r.transSupportBasicHtmlNodes&&c.indexOf(i.name)>-1)if(i.voidElement)n.push((0,s.createElement)(i.name,{key:`${i.name}-${p}`}));else{const e=m(u,i.children,o);n.push((0,s.createElement)(i.name,{key:`${i.name}-${p}`},e))}else if(i.voidElement)n.push(`<${i.name} />`);else{const e=m(u,i.children,o);n.push(`<${i.name}>${e}</${i.name}>`)}else if("object"!=typeof y||b)h(y,g,n,p,1!==i.children.length||!g);else{const e=i.children[0]?g:null;e&&n.push(e)}}else if("text"===i.type){const e=r.transWrapTextNodes,o=a?r.unescape(t.services.interpolator.interpolate(i.content,d,t.language)):t.services.interpolator.interpolate(i.content,d,t.language);e?n.push((0,s.createElement)(e,{key:`${i.name}-${p}`},o)):n.push(o)}return n}),[])}return L(m([{dummy:!0,children:e||[]}],p,T(e||[]))[0])}(p||n,V,v,E,j,m),A=void 0!==r?r:E.defaultTransParent;return A?(0,s.createElement)(A,b,z):z}const z={type:"3rdParty",init(e){I(e.options.react),j(e)}},A=(0,s.createContext)();class B{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach((e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)}))}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}function F(e){return n=>new Promise((t=>{const s=U();e.getInitialProps?e.getInitialProps(n).then((e=>{t({...e,...s})})):t(s)}))}function U(){const e=C(),n=e.reportNamespaces?e.reportNamespaces.getUsedNamespaces():[],t={},s={};return e.languages.forEach((t=>{s[t]={},n.forEach((n=>{s[t][n]=e.getResourceBundle(t,n)||{}}))})),t.initialI18nStore=s,t.initialLanguage=e.language,t}function K(e){let{children:n,count:t,parent:i,i18nKey:r,context:o,tOptions:a={},values:c,defaults:l,components:u,ns:p,i18n:d,t:f,shouldUnescape:g,...h}=e;const{i18n:m,defaultNS:y}=(0,s.useContext)(A)||{},b=d||m||C(),v=f||b&&b.t.bind(b);return V({children:n,count:t,parent:i,i18nKey:r,context:o,tOptions:a,values:c,defaults:l,components:u,ns:p||v&&v.ns||y||b&&b.options&&b.options.defaultNS,i18n:b,t:f,shouldUnescape:g,...h})}const _=(e,n)=>{const t=(0,s.useRef)();return(0,s.useEffect)((()=>{t.current=n?t.current:e}),[e,n]),t.current};function D(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{i18n:t}=n,{i18n:i,defaultNS:r}=(0,s.useContext)(A)||{},o=t||i||C();if(o&&!o.reportNamespaces&&(o.reportNamespaces=new B),!o){y("You will need to pass in an i18next instance by using initReactI18next");const e=(e,n)=>"string"==typeof n?n:n&&"object"==typeof n&&"string"==typeof n.defaultValue?n.defaultValue:Array.isArray(e)?e[e.length-1]:e,n=[e,{},!1];return n.t=e,n.i18n={},n.ready=!1,n}o.options.react&&void 0!==o.options.react.wait&&y("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const a={...S(),...o.options.react,...n},{useSuspense:c,keyPrefix:l}=a;let u=e||r||o.options&&o.options.defaultNS;u="string"==typeof u?[u]:u||["translation"],o.reportNamespaces.addUsedNamespaces&&o.reportNamespaces.addUsedNamespaces(u);const p=(o.isInitialized||o.initializedStoreOnce)&&u.every((e=>function(e,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.languages&&n.languages.length?void 0!==n.options.ignoreJSONStructure?n.hasLoadedNamespace(e,{lng:t.lng,precheck:(n,s)=>{if(t.bindI18n&&t.bindI18n.indexOf("languageChanging")>-1&&n.services.backendConnector.backend&&n.isLanguageChangingTo&&!s(n.isLanguageChangingTo,e))return!1}}):function(e,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const s=n.languages[0],i=!!n.options&&n.options.fallbackLng,r=n.languages[n.languages.length-1];if("cimode"===s.toLowerCase())return!0;const o=(e,t)=>{const s=n.services.backendConnector.state[`${e}|${t}`];return-1===s||2===s};return!(t.bindI18n&&t.bindI18n.indexOf("languageChanging")>-1&&n.services.backendConnector.backend&&n.isLanguageChangingTo&&!o(n.isLanguageChangingTo,e)||!n.hasResourceBundle(s,e)&&n.services.backendConnector.backend&&(!n.options.resources||n.options.partialBundledLanguages)&&(!o(s,e)||i&&!o(r,e)))}(e,n,t):(y("i18n.languages were undefined or empty",n.languages),!0)}(e,o,a)));function d(){return o.getFixedT(n.lng||null,"fallback"===a.nsMode?u:u[0],l)}const[f,g]=(0,s.useState)(d);let h=u.join();n.lng&&(h=`${n.lng}${h}`);const m=_(h),b=(0,s.useRef)(!0);(0,s.useEffect)((()=>{const{bindI18n:e,bindI18nStore:t}=a;function s(){b.current&&g(d)}return b.current=!0,p||c||(n.lng?x(o,n.lng,u,(()=>{b.current&&g(d)})):v(o,u,(()=>{b.current&&g(d)}))),p&&m&&m!==h&&b.current&&g(d),e&&o&&o.on(e,s),t&&o&&o.store.on(t,s),()=>{b.current=!1,e&&o&&e.split(" ").forEach((e=>o.off(e,s))),t&&o&&t.split(" ").forEach((e=>o.store.off(e,s)))}}),[o,h]);const E=(0,s.useRef)(!0);(0,s.useEffect)((()=>{b.current&&!E.current&&g(d),E.current=!1}),[o,l]);const O=[f,o,p];if(O.t=f,O.i18n=o,O.ready=p,p)return O;if(!p&&!c)return O;throw new Promise((e=>{n.lng?x(o,n.lng,u,(()=>e())):v(o,u,(()=>e()))}))}function H(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(t){function i(i){let{forwardedRef:r,...o}=i;const[a,c,l]=D(e,{...o,keyPrefix:n.keyPrefix}),u={...o,t:a,i18n:c,tReady:l};return n.withRef&&r?u.ref=r:!n.withRef&&r&&(u.forwardedRef=r),(0,s.createElement)(t,u)}return i.displayName=`withI18nextTranslation(${E(t)})`,i.WrappedComponent=t,n.withRef?(0,s.forwardRef)(((e,n)=>(0,s.createElement)(i,Object.assign({},e,{forwardedRef:n})))):i}}function W(e){const{ns:n,children:t,...s}=e,[i,r,o]=D(n,s);return t(i,{i18n:r,lng:r.language},o)}function M(e){let{i18n:n,defaultNS:t,children:i}=e;const r=(0,s.useMemo)((()=>({i18n:n,defaultNS:t})),[n,t]);return(0,s.createElement)(A.Provider,{value:r},i)}function Z(e,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{i18n:i}=t,{i18n:r}=(0,s.useContext)(A)||{},o=i||r||C();o.options&&o.options.isClone||(e&&!o.initializedStoreOnce&&(o.services.resourceStore.data=e,o.options.ns=Object.values(e).reduce(((e,n)=>(Object.keys(n).forEach((n=>{e.indexOf(n)<0&&e.push(n)})),e)),o.options.ns),o.initializedStoreOnce=!0,o.isInitialized=!0),n&&!o.initializedLanguageOnce&&(o.changeLanguage(n),o.initializedLanguageOnce=!0))}function q(){return function(e){function n(n){let{initialI18nStore:t,initialLanguage:i,...r}=n;return Z(t,i),(0,s.createElement)(e,{...r})}return n.getInitialProps=F(e),n.displayName=`withI18nextSSR(${E(e)})`,n.WrappedComponent=e,n}}const Y=()=>"",J=()=>"",G=()=>"",Q=()=>"",X=()=>"",ee=()=>""}}]);
|
|
2
|
+
//# sourceMappingURL=8588.61711702.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chunks/8588.61711702.js","mappings":"6GAKAA,EAAOC,QAAU,CACf,MAAQ,EACR,MAAQ,EACR,IAAM,EACN,KAAO,EACP,OAAS,EACT,IAAM,EACN,KAAO,EACP,OAAS,EACT,MAAQ,EACR,MAAQ,EACR,OAAS,EACT,QAAU,EACV,OAAS,EACT,KAAO,E,8BCnBM,SAASC,IAYtB,OAXAA,EAAWC,OAAOC,OAASD,OAAOC,OAAOC,OAAS,SAAUC,GAC1D,IAAK,IAAIC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CACzC,IAAIG,EAASF,UAAUD,GACvB,IAAK,IAAII,KAAOD,EACVP,OAAOS,UAAUC,eAAeC,KAAKJ,EAAQC,KAC/CL,EAAOK,GAAOD,EAAOC,GAG3B,CACA,OAAOL,CACT,EACOJ,EAASa,MAAMC,KAAMR,UAC9B,C,weCbiCS,EAAE,qDAAqD,SAASC,EAAEA,GAAG,IAAIC,EAAE,CAACC,KAAK,MAAMC,KAAK,GAAGC,aAAY,EAAGC,MAAM,CAAC,EAAEC,SAAS,IAAIjB,EAAEW,EAAEO,MAAM,uBAAuB,GAAGlB,IAAIY,EAAEE,KAAKd,EAAE,IAAI,IAAEA,EAAE,KAAK,MAAMW,EAAEQ,OAAOR,EAAET,OAAO,MAAMU,EAAEG,aAAY,GAAIH,EAAEE,K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3B7N,EAAK8N,eAAe9D,GACpBhK,EAAK6N,yBAA0B,GAEnC,CCvBO,SAASE,IACd,OAAO,SAAgBlB,GACrB,SAASmB,EAAelK,GACtB,IAAI,iBACF+F,EAAgB,gBAChBG,KACGgD,GACDlJ,EAEJ,OADA2J,EAAO5D,EAAkBG,IAClB,IAAA5B,eAAcyE,EAAkB,IAClCG,GAEP,CAIA,OAHAgB,EAAexE,gBAAkBN,EAAoB2D,GACrDmB,EAAejN,YAAc,kBAAkBF,EAAegM,MAC9DmB,EAAenB,iBAAmBA,EAC3BmB,CACT,CACF,CCVO,MAAMC,EAAO,IAAM,GACbC,EAAO,IAAM,GACbC,EAAS,IAAM,GACf,EAAS,IAAM,GACfC,EAAS,IAAM,GACfC,GAAgB,IAAM,E","sources":["webpack:///../../node_modules/void-elements/index.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/extends.js","webpack:///../../node_modules/html-parse-stringify/dist/html-parse-stringify.module.js","webpack:///../../node_modules/react-i18next/dist/es/utils.js","webpack:///../../node_modules/react-i18next/dist/es/unescape.js","webpack:///../../node_modules/react-i18next/dist/es/defaults.js","webpack:///../../node_modules/react-i18next/dist/es/i18nInstance.js","webpack:///../../node_modules/react-i18next/dist/es/TransWithoutContext.js","webpack:///../../node_modules/react-i18next/dist/es/initReactI18next.js","webpack:///../../node_modules/react-i18next/dist/es/context.js","webpack:///../../node_modules/react-i18next/dist/es/Trans.js","webpack:///../../node_modules/react-i18next/dist/es/useTranslation.js","webpack:///../../node_modules/react-i18next/dist/es/withTranslation.js","webpack:///../../node_modules/react-i18next/dist/es/Translation.js","webpack:///../../node_modules/react-i18next/dist/es/I18nextProvider.js","webpack:///../../node_modules/react-i18next/dist/es/useSSR.js","webpack:///../../node_modules/react-i18next/dist/es/withSSR.js","webpack:///../../node_modules/react-i18next/dist/es/index.js"],"sourcesContent":["/**\n * This file automatically generated from `pre-publish.js`.\n * Do not manually edit.\n */\n\nmodule.exports = {\n \"area\": true,\n \"base\": true,\n \"br\": true,\n \"col\": true,\n \"embed\": true,\n \"hr\": true,\n \"img\": true,\n \"input\": true,\n \"link\": true,\n \"meta\": true,\n \"param\": true,\n \"source\": true,\n \"track\": true,\n \"wbr\": true\n};\n","export default function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}","import e from\"void-elements\";var t=/\\s([^'\"/\\s><]+?)[\\s/>]|([^\\s=]+)=\\s?(\".*?\"|'.*?')/g;function n(n){var r={type:\"tag\",name:\"\",voidElement:!1,attrs:{},children:[]},i=n.match(/<\\/?([^\\s]+?)[/\\s>]/);if(i&&(r.name=i[1],(e[i[1]]||\"/\"===n.charAt(n.length-2))&&(r.voidElement=!0),r.name.startsWith(\"!--\"))){var s=n.indexOf(\"--\\x3e\");return{type:\"comment\",comment:-1!==s?n.slice(4,s):\"\"}}for(var a=new RegExp(t),c=null;null!==(c=a.exec(n));)if(c[0].trim())if(c[1]){var o=c[1].trim(),l=[o,\"\"];o.indexOf(\"=\")>-1&&(l=o.split(\"=\")),r.attrs[l[0]]=l[1],a.lastIndex--}else c[2]&&(r.attrs[c[2]]=c[3].trim().substring(1,c[3].length-1));return r}var r=/<[a-zA-Z0-9\\-\\!\\/](?:\"[^\"]*\"|'[^']*'|[^'\">])*>/g,i=/^\\s*$/,s=Object.create(null);function a(e,t){switch(t.type){case\"text\":return e+t.content;case\"tag\":return e+=\"<\"+t.name+(t.attrs?function(e){var t=[];for(var n in e)t.push(n+'=\"'+e[n]+'\"');return t.length?\" \"+t.join(\" \"):\"\"}(t.attrs):\"\")+(t.voidElement?\"/>\":\">\"),t.voidElement?e:e+t.children.reduce(a,\"\")+\"</\"+t.name+\">\";case\"comment\":return e+\"\\x3c!--\"+t.comment+\"--\\x3e\"}}var c={parse:function(e,t){t||(t={}),t.components||(t.components=s);var a,c=[],o=[],l=-1,m=!1;if(0!==e.indexOf(\"<\")){var u=e.indexOf(\"<\");c.push({type:\"text\",content:-1===u?e:e.substring(0,u)})}return e.replace(r,function(r,s){if(m){if(r!==\"</\"+a.name+\">\")return;m=!1}var u,f=\"/\"!==r.charAt(1),h=r.startsWith(\"\\x3c!--\"),p=s+r.length,d=e.charAt(p);if(h){var v=n(r);return l<0?(c.push(v),c):((u=o[l]).children.push(v),c)}if(f&&(l++,\"tag\"===(a=n(r)).type&&t.components[a.name]&&(a.type=\"component\",m=!0),a.voidElement||m||!d||\"<\"===d||a.children.push({type:\"text\",content:e.slice(p,e.indexOf(\"<\",p))}),0===l&&c.push(a),(u=o[l-1])&&u.children.push(a),o[l]=a),(!f||a.voidElement)&&(l>-1&&(a.voidElement||a.name===r.slice(2,-1))&&(l--,a=-1===l?c:o[l]),!m&&\"<\"!==d&&d)){u=-1===l?c:o[l].children;var x=e.indexOf(\"<\",p),g=e.slice(p,-1===x?void 0:x);i.test(g)&&(g=\" \"),(x>-1&&l+u.length>=0||\" \"!==g)&&u.push({type:\"text\",content:g})}}),c},stringify:function(e){return e.reduce(function(e,t){return e+a(\"\",t)},\"\")}};export default c;\n//# sourceMappingURL=html-parse-stringify.module.js.map\n","export function warn() {\n if (console && console.warn) {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n if (typeof args[0] === 'string') args[0] = `react-i18next:: ${args[0]}`;\n console.warn(...args);\n }\n}\nconst alreadyWarned = {};\nexport function warnOnce() {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n if (typeof args[0] === 'string' && alreadyWarned[args[0]]) return;\n if (typeof args[0] === 'string') alreadyWarned[args[0]] = new Date();\n warn(...args);\n}\nconst loadedClb = (i18n, cb) => () => {\n if (i18n.isInitialized) {\n cb();\n } else {\n const initialized = () => {\n setTimeout(() => {\n i18n.off('initialized', initialized);\n }, 0);\n cb();\n };\n i18n.on('initialized', initialized);\n }\n};\nexport function loadNamespaces(i18n, ns, cb) {\n i18n.loadNamespaces(ns, loadedClb(i18n, cb));\n}\nexport function loadLanguages(i18n, lng, ns, cb) {\n if (typeof ns === 'string') ns = [ns];\n ns.forEach(n => {\n if (i18n.options.ns.indexOf(n) < 0) i18n.options.ns.push(n);\n });\n i18n.loadLanguages(lng, loadedClb(i18n, cb));\n}\nfunction oldI18nextHasLoadedNamespace(ns, i18n) {\n let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n const lng = i18n.languages[0];\n const fallbackLng = i18n.options ? i18n.options.fallbackLng : false;\n const lastLng = i18n.languages[i18n.languages.length - 1];\n if (lng.toLowerCase() === 'cimode') return true;\n const loadNotPending = (l, n) => {\n const loadState = i18n.services.backendConnector.state[`${l}|${n}`];\n return loadState === -1 || loadState === 2;\n };\n if (options.bindI18n && options.bindI18n.indexOf('languageChanging') > -1 && i18n.services.backendConnector.backend && i18n.isLanguageChangingTo && !loadNotPending(i18n.isLanguageChangingTo, ns)) return false;\n if (i18n.hasResourceBundle(lng, ns)) return true;\n if (!i18n.services.backendConnector.backend || i18n.options.resources && !i18n.options.partialBundledLanguages) return true;\n if (loadNotPending(lng, ns) && (!fallbackLng || loadNotPending(lastLng, ns))) return true;\n return false;\n}\nexport function hasLoadedNamespace(ns, i18n) {\n let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n if (!i18n.languages || !i18n.languages.length) {\n warnOnce('i18n.languages were undefined or empty', i18n.languages);\n return true;\n }\n const isNewerI18next = i18n.options.ignoreJSONStructure !== undefined;\n if (!isNewerI18next) {\n return oldI18nextHasLoadedNamespace(ns, i18n, options);\n }\n return i18n.hasLoadedNamespace(ns, {\n lng: options.lng,\n precheck: (i18nInstance, loadNotPending) => {\n if (options.bindI18n && options.bindI18n.indexOf('languageChanging') > -1 && i18nInstance.services.backendConnector.backend && i18nInstance.isLanguageChangingTo && !loadNotPending(i18nInstance.isLanguageChangingTo, ns)) return false;\n }\n });\n}\nexport function getDisplayName(Component) {\n return Component.displayName || Component.name || (typeof Component === 'string' && Component.length > 0 ? Component : 'Unknown');\n}","const matchHtmlEntity = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;\nconst htmlEntities = {\n '&': '&',\n '&': '&',\n '<': '<',\n '<': '<',\n '>': '>',\n '>': '>',\n ''': \"'\",\n ''': \"'\",\n '"': '\"',\n '"': '\"',\n ' ': ' ',\n ' ': ' ',\n '©': '©',\n '©': '©',\n '®': '®',\n '®': '®',\n '…': '…',\n '…': '…',\n '/': '/',\n '/': '/'\n};\nconst unescapeHtmlEntity = m => htmlEntities[m];\nexport const unescape = text => text.replace(matchHtmlEntity, unescapeHtmlEntity);","import { unescape } from './unescape.js';\nlet defaultOptions = {\n bindI18n: 'languageChanged',\n bindI18nStore: '',\n transEmptyNodeValue: '',\n transSupportBasicHtmlNodes: true,\n transWrapTextNodes: '',\n transKeepBasicHtmlNodesFor: ['br', 'strong', 'i', 'p'],\n useSuspense: true,\n unescape\n};\nexport function setDefaults() {\n let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n defaultOptions = {\n ...defaultOptions,\n ...options\n };\n}\nexport function getDefaults() {\n return defaultOptions;\n}","let i18nInstance;\nexport function setI18n(instance) {\n i18nInstance = instance;\n}\nexport function getI18n() {\n return i18nInstance;\n}","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { isValidElement, cloneElement, createElement, Children } from 'react';\nimport HTML from 'html-parse-stringify';\nimport { warn, warnOnce } from './utils.js';\nimport { getDefaults } from './defaults.js';\nimport { getI18n } from './i18nInstance.js';\nfunction hasChildren(node, checkLength) {\n if (!node) return false;\n const base = node.props ? node.props.children : node.children;\n if (checkLength) return base.length > 0;\n return !!base;\n}\nfunction getChildren(node) {\n if (!node) return [];\n const children = node.props ? node.props.children : node.children;\n return node.props && node.props.i18nIsDynamicList ? getAsArray(children) : children;\n}\nfunction hasValidReactChildren(children) {\n if (Object.prototype.toString.call(children) !== '[object Array]') return false;\n return children.every(child => isValidElement(child));\n}\nfunction getAsArray(data) {\n return Array.isArray(data) ? data : [data];\n}\nfunction mergeProps(source, target) {\n const newTarget = {\n ...target\n };\n newTarget.props = Object.assign(source.props, target.props);\n return newTarget;\n}\nexport function nodesToString(children, i18nOptions) {\n if (!children) return '';\n let stringNode = '';\n const childrenArray = getAsArray(children);\n const keepArray = i18nOptions.transSupportBasicHtmlNodes && i18nOptions.transKeepBasicHtmlNodesFor ? i18nOptions.transKeepBasicHtmlNodesFor : [];\n childrenArray.forEach((child, childIndex) => {\n if (typeof child === 'string') {\n stringNode += `${child}`;\n } else if (isValidElement(child)) {\n const childPropsCount = Object.keys(child.props).length;\n const shouldKeepChild = keepArray.indexOf(child.type) > -1;\n const childChildren = child.props.children;\n if (!childChildren && shouldKeepChild && childPropsCount === 0) {\n stringNode += `<${child.type}/>`;\n } else if (!childChildren && (!shouldKeepChild || childPropsCount !== 0)) {\n stringNode += `<${childIndex}></${childIndex}>`;\n } else if (child.props.i18nIsDynamicList) {\n stringNode += `<${childIndex}></${childIndex}>`;\n } else if (shouldKeepChild && childPropsCount === 1 && typeof childChildren === 'string') {\n stringNode += `<${child.type}>${childChildren}</${child.type}>`;\n } else {\n const content = nodesToString(childChildren, i18nOptions);\n stringNode += `<${childIndex}>${content}</${childIndex}>`;\n }\n } else if (child === null) {\n warn(`Trans: the passed in value is invalid - seems you passed in a null child.`);\n } else if (typeof child === 'object') {\n const {\n format,\n ...clone\n } = child;\n const keys = Object.keys(clone);\n if (keys.length === 1) {\n const value = format ? `${keys[0]}, ${format}` : keys[0];\n stringNode += `{{${value}}}`;\n } else {\n warn(`react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.`, child);\n }\n } else {\n warn(`Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.`, child);\n }\n });\n return stringNode;\n}\nfunction renderNodes(children, targetString, i18n, i18nOptions, combinedTOpts, shouldUnescape) {\n if (targetString === '') return [];\n const keepArray = i18nOptions.transKeepBasicHtmlNodesFor || [];\n const emptyChildrenButNeedsHandling = targetString && new RegExp(keepArray.map(keep => `<${keep}`).join('|')).test(targetString);\n if (!children && !emptyChildrenButNeedsHandling && !shouldUnescape) return [targetString];\n const data = {};\n function getData(childs) {\n const childrenArray = getAsArray(childs);\n childrenArray.forEach(child => {\n if (typeof child === 'string') return;\n if (hasChildren(child)) getData(getChildren(child));else if (typeof child === 'object' && !isValidElement(child)) Object.assign(data, child);\n });\n }\n getData(children);\n const ast = HTML.parse(`<0>${targetString}</0>`);\n const opts = {\n ...data,\n ...combinedTOpts\n };\n function renderInner(child, node, rootReactNode) {\n const childs = getChildren(child);\n const mappedChildren = mapAST(childs, node.children, rootReactNode);\n return hasValidReactChildren(childs) && mappedChildren.length === 0 || child.props && child.props.i18nIsDynamicList ? childs : mappedChildren;\n }\n function pushTranslatedJSX(child, inner, mem, i, isVoid) {\n if (child.dummy) {\n child.children = inner;\n mem.push(cloneElement(child, {\n key: i\n }, isVoid ? undefined : inner));\n } else {\n mem.push(...Children.map([child], c => {\n const props = {\n ...c.props\n };\n delete props.i18nIsDynamicList;\n return React.createElement(c.type, _extends({}, props, {\n key: i,\n ref: c.ref\n }, isVoid ? {} : {\n children: inner\n }));\n }));\n }\n }\n function mapAST(reactNode, astNode, rootReactNode) {\n const reactNodes = getAsArray(reactNode);\n const astNodes = getAsArray(astNode);\n return astNodes.reduce((mem, node, i) => {\n const translationContent = node.children && node.children[0] && node.children[0].content && i18n.services.interpolator.interpolate(node.children[0].content, opts, i18n.language);\n if (node.type === 'tag') {\n let tmp = reactNodes[parseInt(node.name, 10)];\n if (rootReactNode.length === 1 && !tmp) tmp = rootReactNode[0][node.name];\n if (!tmp) tmp = {};\n const child = Object.keys(node.attrs).length !== 0 ? mergeProps({\n props: node.attrs\n }, tmp) : tmp;\n const isElement = isValidElement(child);\n const isValidTranslationWithChildren = isElement && hasChildren(node, true) && !node.voidElement;\n const isEmptyTransWithHTML = emptyChildrenButNeedsHandling && typeof child === 'object' && child.dummy && !isElement;\n const isKnownComponent = typeof children === 'object' && children !== null && Object.hasOwnProperty.call(children, node.name);\n if (typeof child === 'string') {\n const value = i18n.services.interpolator.interpolate(child, opts, i18n.language);\n mem.push(value);\n } else if (hasChildren(child) || isValidTranslationWithChildren) {\n const inner = renderInner(child, node, rootReactNode);\n pushTranslatedJSX(child, inner, mem, i);\n } else if (isEmptyTransWithHTML) {\n const inner = mapAST(reactNodes, node.children, rootReactNode);\n pushTranslatedJSX(child, inner, mem, i);\n } else if (Number.isNaN(parseFloat(node.name))) {\n if (isKnownComponent) {\n const inner = renderInner(child, node, rootReactNode);\n pushTranslatedJSX(child, inner, mem, i, node.voidElement);\n } else if (i18nOptions.transSupportBasicHtmlNodes && keepArray.indexOf(node.name) > -1) {\n if (node.voidElement) {\n mem.push(createElement(node.name, {\n key: `${node.name}-${i}`\n }));\n } else {\n const inner = mapAST(reactNodes, node.children, rootReactNode);\n mem.push(createElement(node.name, {\n key: `${node.name}-${i}`\n }, inner));\n }\n } else if (node.voidElement) {\n mem.push(`<${node.name} />`);\n } else {\n const inner = mapAST(reactNodes, node.children, rootReactNode);\n mem.push(`<${node.name}>${inner}</${node.name}>`);\n }\n } else if (typeof child === 'object' && !isElement) {\n const content = node.children[0] ? translationContent : null;\n if (content) mem.push(content);\n } else {\n pushTranslatedJSX(child, translationContent, mem, i, node.children.length !== 1 || !translationContent);\n }\n } else if (node.type === 'text') {\n const wrapTextNodes = i18nOptions.transWrapTextNodes;\n const content = shouldUnescape ? i18nOptions.unescape(i18n.services.interpolator.interpolate(node.content, opts, i18n.language)) : i18n.services.interpolator.interpolate(node.content, opts, i18n.language);\n if (wrapTextNodes) {\n mem.push(createElement(wrapTextNodes, {\n key: `${node.name}-${i}`\n }, content));\n } else {\n mem.push(content);\n }\n }\n return mem;\n }, []);\n }\n const result = mapAST([{\n dummy: true,\n children: children || []\n }], ast, getAsArray(children || []));\n return getChildren(result[0]);\n}\nexport function Trans(_ref) {\n let {\n children,\n count,\n parent,\n i18nKey,\n context,\n tOptions = {},\n values,\n defaults,\n components,\n ns,\n i18n: i18nFromProps,\n t: tFromProps,\n shouldUnescape,\n ...additionalProps\n } = _ref;\n const i18n = i18nFromProps || getI18n();\n if (!i18n) {\n warnOnce('You will need to pass in an i18next instance by using i18nextReactModule');\n return children;\n }\n const t = tFromProps || i18n.t.bind(i18n) || (k => k);\n if (context) tOptions.context = context;\n const reactI18nextOptions = {\n ...getDefaults(),\n ...(i18n.options && i18n.options.react)\n };\n let namespaces = ns || t.ns || i18n.options && i18n.options.defaultNS;\n namespaces = typeof namespaces === 'string' ? [namespaces] : namespaces || ['translation'];\n const nodeAsString = nodesToString(children, reactI18nextOptions);\n const defaultValue = defaults || nodeAsString || reactI18nextOptions.transEmptyNodeValue || i18nKey;\n const {\n hashTransKey\n } = reactI18nextOptions;\n const key = i18nKey || (hashTransKey ? hashTransKey(nodeAsString || defaultValue) : nodeAsString || defaultValue);\n if (i18n.options && i18n.options.interpolation && i18n.options.interpolation.defaultVariables) {\n values = values && Object.keys(values).length > 0 ? {\n ...values,\n ...i18n.options.interpolation.defaultVariables\n } : {\n ...i18n.options.interpolation.defaultVariables\n };\n }\n const interpolationOverride = values ? tOptions.interpolation : {\n interpolation: {\n ...tOptions.interpolation,\n prefix: '#$?',\n suffix: '?$#'\n }\n };\n const combinedTOpts = {\n ...tOptions,\n count,\n ...values,\n ...interpolationOverride,\n defaultValue,\n ns: namespaces\n };\n const translation = key ? t(key, combinedTOpts) : defaultValue;\n if (components) {\n Object.keys(components).forEach(c => {\n const comp = components[c];\n if (typeof comp.type === 'function' || !comp.props || !comp.props.children || translation.indexOf(`${c}/>`) < 0 && translation.indexOf(`${c} />`) < 0) return;\n function Componentized() {\n return React.createElement(React.Fragment, null, comp);\n }\n components[c] = React.createElement(Componentized, null);\n });\n }\n const content = renderNodes(components || children, translation, i18n, reactI18nextOptions, combinedTOpts, shouldUnescape);\n const useAsParent = parent !== undefined ? parent : reactI18nextOptions.defaultTransParent;\n return useAsParent ? createElement(useAsParent, additionalProps, content) : content;\n}","import { setDefaults } from './defaults.js';\nimport { setI18n } from './i18nInstance.js';\nexport const initReactI18next = {\n type: '3rdParty',\n init(instance) {\n setDefaults(instance.options.react);\n setI18n(instance);\n }\n};","import { createContext } from 'react';\nimport { getDefaults, setDefaults } from './defaults.js';\nimport { getI18n, setI18n } from './i18nInstance.js';\nimport { initReactI18next } from './initReactI18next.js';\nexport { getDefaults, setDefaults, getI18n, setI18n, initReactI18next };\nexport const I18nContext = createContext();\nexport class ReportNamespaces {\n constructor() {\n this.usedNamespaces = {};\n }\n addUsedNamespaces(namespaces) {\n namespaces.forEach(ns => {\n if (!this.usedNamespaces[ns]) this.usedNamespaces[ns] = true;\n });\n }\n getUsedNamespaces() {\n return Object.keys(this.usedNamespaces);\n }\n}\nexport function composeInitialProps(ForComponent) {\n return ctx => new Promise(resolve => {\n const i18nInitialProps = getInitialProps();\n if (ForComponent.getInitialProps) {\n ForComponent.getInitialProps(ctx).then(componentsInitialProps => {\n resolve({\n ...componentsInitialProps,\n ...i18nInitialProps\n });\n });\n } else {\n resolve(i18nInitialProps);\n }\n });\n}\nexport function getInitialProps() {\n const i18n = getI18n();\n const namespaces = i18n.reportNamespaces ? i18n.reportNamespaces.getUsedNamespaces() : [];\n const ret = {};\n const initialI18nStore = {};\n i18n.languages.forEach(l => {\n initialI18nStore[l] = {};\n namespaces.forEach(ns => {\n initialI18nStore[l][ns] = i18n.getResourceBundle(l, ns) || {};\n });\n });\n ret.initialI18nStore = initialI18nStore;\n ret.initialLanguage = i18n.language;\n return ret;\n}","import { useContext } from 'react';\nimport { nodesToString, Trans as TransWithoutContext } from './TransWithoutContext.js';\nimport { getI18n, I18nContext } from './context.js';\nexport { nodesToString };\nexport function Trans(_ref) {\n let {\n children,\n count,\n parent,\n i18nKey,\n context,\n tOptions = {},\n values,\n defaults,\n components,\n ns,\n i18n: i18nFromProps,\n t: tFromProps,\n shouldUnescape,\n ...additionalProps\n } = _ref;\n const {\n i18n: i18nFromContext,\n defaultNS: defaultNSFromContext\n } = useContext(I18nContext) || {};\n const i18n = i18nFromProps || i18nFromContext || getI18n();\n const t = tFromProps || i18n && i18n.t.bind(i18n);\n return TransWithoutContext({\n children,\n count,\n parent,\n i18nKey,\n context,\n tOptions,\n values,\n defaults,\n components,\n ns: ns || t && t.ns || defaultNSFromContext || i18n && i18n.options && i18n.options.defaultNS,\n i18n,\n t: tFromProps,\n shouldUnescape,\n ...additionalProps\n });\n}","import { useState, useEffect, useContext, useRef } from 'react';\nimport { getI18n, getDefaults, ReportNamespaces, I18nContext } from './context.js';\nimport { warnOnce, loadNamespaces, loadLanguages, hasLoadedNamespace } from './utils.js';\nconst usePrevious = (value, ignore) => {\n const ref = useRef();\n useEffect(() => {\n ref.current = ignore ? ref.current : value;\n }, [value, ignore]);\n return ref.current;\n};\nexport function useTranslation(ns) {\n let props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n const {\n i18n: i18nFromProps\n } = props;\n const {\n i18n: i18nFromContext,\n defaultNS: defaultNSFromContext\n } = useContext(I18nContext) || {};\n const i18n = i18nFromProps || i18nFromContext || getI18n();\n if (i18n && !i18n.reportNamespaces) i18n.reportNamespaces = new ReportNamespaces();\n if (!i18n) {\n warnOnce('You will need to pass in an i18next instance by using initReactI18next');\n const notReadyT = (k, optsOrDefaultValue) => {\n if (typeof optsOrDefaultValue === 'string') return optsOrDefaultValue;\n if (optsOrDefaultValue && typeof optsOrDefaultValue === 'object' && typeof optsOrDefaultValue.defaultValue === 'string') return optsOrDefaultValue.defaultValue;\n return Array.isArray(k) ? k[k.length - 1] : k;\n };\n const retNotReady = [notReadyT, {}, false];\n retNotReady.t = notReadyT;\n retNotReady.i18n = {};\n retNotReady.ready = false;\n return retNotReady;\n }\n if (i18n.options.react && i18n.options.react.wait !== undefined) warnOnce('It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.');\n const i18nOptions = {\n ...getDefaults(),\n ...i18n.options.react,\n ...props\n };\n const {\n useSuspense,\n keyPrefix\n } = i18nOptions;\n let namespaces = ns || defaultNSFromContext || i18n.options && i18n.options.defaultNS;\n namespaces = typeof namespaces === 'string' ? [namespaces] : namespaces || ['translation'];\n if (i18n.reportNamespaces.addUsedNamespaces) i18n.reportNamespaces.addUsedNamespaces(namespaces);\n const ready = (i18n.isInitialized || i18n.initializedStoreOnce) && namespaces.every(n => hasLoadedNamespace(n, i18n, i18nOptions));\n function getT() {\n return i18n.getFixedT(props.lng || null, i18nOptions.nsMode === 'fallback' ? namespaces : namespaces[0], keyPrefix);\n }\n const [t, setT] = useState(getT);\n let joinedNS = namespaces.join();\n if (props.lng) joinedNS = `${props.lng}${joinedNS}`;\n const previousJoinedNS = usePrevious(joinedNS);\n const isMounted = useRef(true);\n useEffect(() => {\n const {\n bindI18n,\n bindI18nStore\n } = i18nOptions;\n isMounted.current = true;\n if (!ready && !useSuspense) {\n if (props.lng) {\n loadLanguages(i18n, props.lng, namespaces, () => {\n if (isMounted.current) setT(getT);\n });\n } else {\n loadNamespaces(i18n, namespaces, () => {\n if (isMounted.current) setT(getT);\n });\n }\n }\n if (ready && previousJoinedNS && previousJoinedNS !== joinedNS && isMounted.current) {\n setT(getT);\n }\n function boundReset() {\n if (isMounted.current) setT(getT);\n }\n if (bindI18n && i18n) i18n.on(bindI18n, boundReset);\n if (bindI18nStore && i18n) i18n.store.on(bindI18nStore, boundReset);\n return () => {\n isMounted.current = false;\n if (bindI18n && i18n) bindI18n.split(' ').forEach(e => i18n.off(e, boundReset));\n if (bindI18nStore && i18n) bindI18nStore.split(' ').forEach(e => i18n.store.off(e, boundReset));\n };\n }, [i18n, joinedNS]);\n const isInitial = useRef(true);\n useEffect(() => {\n if (isMounted.current && !isInitial.current) {\n setT(getT);\n }\n isInitial.current = false;\n }, [i18n, keyPrefix]);\n const ret = [t, i18n, ready];\n ret.t = t;\n ret.i18n = i18n;\n ret.ready = ready;\n if (ready) return ret;\n if (!ready && !useSuspense) return ret;\n throw new Promise(resolve => {\n if (props.lng) {\n loadLanguages(i18n, props.lng, namespaces, () => resolve());\n } else {\n loadNamespaces(i18n, namespaces, () => resolve());\n }\n });\n}","import { createElement, forwardRef as forwardRefReact } from 'react';\nimport { useTranslation } from './useTranslation.js';\nimport { getDisplayName } from './utils.js';\nexport function withTranslation(ns) {\n let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n return function Extend(WrappedComponent) {\n function I18nextWithTranslation(_ref) {\n let {\n forwardedRef,\n ...rest\n } = _ref;\n const [t, i18n, ready] = useTranslation(ns, {\n ...rest,\n keyPrefix: options.keyPrefix\n });\n const passDownProps = {\n ...rest,\n t,\n i18n,\n tReady: ready\n };\n if (options.withRef && forwardedRef) {\n passDownProps.ref = forwardedRef;\n } else if (!options.withRef && forwardedRef) {\n passDownProps.forwardedRef = forwardedRef;\n }\n return createElement(WrappedComponent, passDownProps);\n }\n I18nextWithTranslation.displayName = `withI18nextTranslation(${getDisplayName(WrappedComponent)})`;\n I18nextWithTranslation.WrappedComponent = WrappedComponent;\n const forwardRef = (props, ref) => createElement(I18nextWithTranslation, Object.assign({}, props, {\n forwardedRef: ref\n }));\n return options.withRef ? forwardRefReact(forwardRef) : I18nextWithTranslation;\n };\n}","import { useTranslation } from './useTranslation.js';\nexport function Translation(props) {\n const {\n ns,\n children,\n ...options\n } = props;\n const [t, i18n, ready] = useTranslation(ns, options);\n return children(t, {\n i18n,\n lng: i18n.language\n }, ready);\n}","import { createElement, useMemo } from 'react';\nimport { I18nContext } from './context.js';\nexport function I18nextProvider(_ref) {\n let {\n i18n,\n defaultNS,\n children\n } = _ref;\n const value = useMemo(() => ({\n i18n,\n defaultNS\n }), [i18n, defaultNS]);\n return createElement(I18nContext.Provider, {\n value\n }, children);\n}","import { useContext } from 'react';\nimport { getI18n, I18nContext } from './context.js';\nexport function useSSR(initialI18nStore, initialLanguage) {\n let props = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n const {\n i18n: i18nFromProps\n } = props;\n const {\n i18n: i18nFromContext\n } = useContext(I18nContext) || {};\n const i18n = i18nFromProps || i18nFromContext || getI18n();\n if (i18n.options && i18n.options.isClone) return;\n if (initialI18nStore && !i18n.initializedStoreOnce) {\n i18n.services.resourceStore.data = initialI18nStore;\n i18n.options.ns = Object.values(initialI18nStore).reduce((mem, lngResources) => {\n Object.keys(lngResources).forEach(ns => {\n if (mem.indexOf(ns) < 0) mem.push(ns);\n });\n return mem;\n }, i18n.options.ns);\n i18n.initializedStoreOnce = true;\n i18n.isInitialized = true;\n }\n if (initialLanguage && !i18n.initializedLanguageOnce) {\n i18n.changeLanguage(initialLanguage);\n i18n.initializedLanguageOnce = true;\n }\n}","import { createElement } from 'react';\nimport { useSSR } from './useSSR.js';\nimport { composeInitialProps } from './context.js';\nimport { getDisplayName } from './utils.js';\nexport function withSSR() {\n return function Extend(WrappedComponent) {\n function I18nextWithSSR(_ref) {\n let {\n initialI18nStore,\n initialLanguage,\n ...rest\n } = _ref;\n useSSR(initialI18nStore, initialLanguage);\n return createElement(WrappedComponent, {\n ...rest\n });\n }\n I18nextWithSSR.getInitialProps = composeInitialProps(WrappedComponent);\n I18nextWithSSR.displayName = `withI18nextSSR(${getDisplayName(WrappedComponent)})`;\n I18nextWithSSR.WrappedComponent = WrappedComponent;\n return I18nextWithSSR;\n };\n}","export { Trans } from './Trans.js';\nexport { Trans as TransWithoutContext } from './TransWithoutContext.js';\nexport { useTranslation } from './useTranslation.js';\nexport { withTranslation } from './withTranslation.js';\nexport { Translation } from './Translation.js';\nexport { I18nextProvider } from './I18nextProvider.js';\nexport { withSSR } from './withSSR.js';\nexport { useSSR } from './useSSR.js';\nexport { initReactI18next } from './initReactI18next.js';\nexport { setDefaults, getDefaults } from './defaults.js';\nexport { setI18n, getI18n } from './i18nInstance.js';\nexport { I18nContext, composeInitialProps, getInitialProps } from './context.js';\nexport const date = () => '';\nexport const time = () => '';\nexport const number = () => '';\nexport const select = () => '';\nexport const plural = () => '';\nexport const selectOrdinal = () => '';"],"names":["module","exports","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","this","t","n","r","type","name","voidElement","attrs","children","match","charAt","startsWith","s","indexOf","comment","slice","a","RegExp","c","exec","trim","o","l","split","lastIndex","substring","create","e","content","push","join","reduce","parse","components","m","u","replace","f","h","p","d","v","x","g","test","stringify","warn","console","_len","args","Array","_key","alreadyWarned","warnOnce","_len2","_key2","Date","loadedClb","i18n","cb","isInitialized","initialized","setTimeout","off","on","loadNamespaces","ns","loadLanguages","lng","forEach","options","getDisplayName","Component","displayName","matchHtmlEntity","htmlEntities","unescapeHtmlEntity","i18nInstance","defaultOptions","bindI18n","bindI18nStore","transEmptyNodeValue","transSupportBasicHtmlNodes","transWrapTextNodes","transKeepBasicHtmlNodesFor","useSuspense","unescape","text","setDefaults","undefined","getDefaults","setI18n","instance","getI18n","hasChildren","node","checkLength","base","props","getChildren","i18nIsDynamicList","getAsArray","data","isArray","nodesToString","i18nOptions","stringNode","childrenArray","keepArray","child","childIndex","isValidElement","childPropsCount","keys","shouldKeepChild","childChildren","format","clone","value","Trans","_ref","count","parent","i18nKey","context","tOptions","values","defaults","i18nFromProps","tFromProps","shouldUnescape","additionalProps","k","reactI18nextOptions","react","namespaces","defaultNS","nodeAsString","defaultValue","hashTransKey","interpolation","defaultVariables","interpolationOverride","prefix","suffix","combinedTOpts","translation","comp","targetString","emptyChildrenButNeedsHandling","map","keep","getData","childs","ast","opts","renderInner","rootReactNode","mappedChildren","mapAST","toString","every","hasValidReactChildren","pushTranslatedJSX","inner","mem","isVoid","dummy","cloneElement","Children","ref","reactNode","astNode","reactNodes","translationContent","services","interpolator","interpolate","language","tmp","parseInt","newTarget","mergeProps","isElement","isValidTranslationWithChildren","isEmptyTransWithHTML","isKnownComponent","Number","isNaN","parseFloat","createElement","wrapTextNodes","renderNodes","useAsParent","defaultTransParent","initReactI18next","init","I18nContext","createContext","ReportNamespaces","constructor","usedNamespaces","addUsedNamespaces","getUsedNamespaces","composeInitialProps","ForComponent","ctx","Promise","resolve","i18nInitialProps","getInitialProps","then","componentsInitialProps","reportNamespaces","ret","initialI18nStore","languages","getResourceBundle","initialLanguage","i18nFromContext","defaultNSFromContext","useContext","usePrevious","ignore","useRef","useEffect","current","useTranslation","notReadyT","optsOrDefaultValue","retNotReady","ready","wait","keyPrefix","initializedStoreOnce","ignoreJSONStructure","hasLoadedNamespace","precheck","loadNotPending","backendConnector","backend","isLanguageChangingTo","fallbackLng","lastLng","toLowerCase","loadState","state","hasResourceBundle","resources","partialBundledLanguages","oldI18nextHasLoadedNamespace","getT","getFixedT","nsMode","setT","useState","joinedNS","previousJoinedNS","isMounted","boundReset","store","isInitial","withTranslation","WrappedComponent","I18nextWithTranslation","forwardedRef","rest","passDownProps","tReady","withRef","forwardRef","Translation","I18nextProvider","useMemo","Provider","useSSR","isClone","resourceStore","lngResources","initializedLanguageOnce","changeLanguage","withSSR","I18nextWithSSR","date","time","number","plural","selectOrdinal"],"sourceRoot":""}
|