@devgateway/dvz-ui-react 1.3.2 → 1.3.3

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.
Files changed (207) hide show
  1. package/dist/cjs/embeddable/time-line/mobile.js +1 -1
  2. package/dist/cjs/embeddable/vertical-featuredtabs/index.js +1 -1
  3. package/dist/cjs/layout/Layout.js +1 -1
  4. package/dist/cjs/layout/SSRFavicon.js +1 -0
  5. package/dist/cjs/layout/containers/PreviewTypeContainer.js +1 -1
  6. package/dist/cjs/layout/containers/SlugContainer.js +1 -1
  7. package/dist/cjs/layout/containers/SlugPostContainer.js +1 -1
  8. package/dist/cjs/layout/index.js +1 -1
  9. package/dist/esm/embeddable/time-line/mobile.js +121 -108
  10. package/dist/esm/embeddable/vertical-featuredtabs/index.js +1 -1
  11. package/dist/esm/layout/Layout.js +16 -14
  12. package/dist/esm/layout/SSRFavicon.js +11 -0
  13. package/dist/esm/layout/containers/PreviewTypeContainer.js +11 -11
  14. package/dist/esm/layout/containers/SlugContainer.js +11 -11
  15. package/dist/esm/layout/containers/SlugPostContainer.js +13 -16
  16. package/dist/esm/layout/index.js +8 -6
  17. package/dist/types/dvz-ui/src/layout/SSRFavicon.d.ts +5 -0
  18. package/dist/types/{layout → dvz-ui/src/layout}/containers/PreviewTypeContainer.d.ts +1 -1
  19. package/dist/types/dvz-ui/src/layout/containers/SlugContainer.d.ts +9 -0
  20. package/dist/types/dvz-ui/src/layout/containers/SlugPostContainer.d.ts +9 -0
  21. package/dist/types/{layout → dvz-ui/src/layout}/index.d.ts +1 -0
  22. package/package.json +8 -8
  23. package/dist/types/layout/containers/SlugContainer.d.ts +0 -7
  24. package/dist/types/layout/containers/SlugPostContainer.d.ts +0 -7
  25. /package/dist/types/{api → dvz-ui/src/api}/commons.d.ts +0 -0
  26. /package/dist/types/{conf → dvz-ui/src/conf}/config.json.d.ts +0 -0
  27. /package/dist/types/{conf → dvz-ui/src/conf}/index.d.ts +0 -0
  28. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/Dummy.d.ts +0 -0
  29. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/agree-and-download/index.d.ts +0 -0
  30. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/big-number/index.d.ts +0 -0
  31. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/big-number-trend/index.d.ts +0 -0
  32. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/Background.d.ts +0 -0
  33. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/Blood.d.ts +0 -0
  34. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/Bounds.d.ts +0 -0
  35. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/Brain.d.ts +0 -0
  36. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/Ectopic.d.ts +0 -0
  37. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/Erectile.d.ts +0 -0
  38. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/Eyes.d.ts +0 -0
  39. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/Head.d.ts +0 -0
  40. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/Heart.d.ts +0 -0
  41. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/Larynx.d.ts +0 -0
  42. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/Liver.d.ts +0 -0
  43. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/Lungs.d.ts +0 -0
  44. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/Stomach.d.ts +0 -0
  45. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/index.d.ts +0 -0
  46. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/Bar.d.ts +0 -0
  47. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/Bump.d.ts +0 -0
  48. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/CSVDataFrame.d.ts +0 -0
  49. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/DelayedRender.d.ts +0 -0
  50. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/Diverging.d.ts +0 -0
  51. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/Legends.d.ts +0 -0
  52. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/Line.d.ts +0 -0
  53. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/LineLayer.d.ts +0 -0
  54. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/Messages.d.ts +0 -0
  55. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/Pie.d.ts +0 -0
  56. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/Radar.d.ts +0 -0
  57. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/Radar2.d.ts +0 -0
  58. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/Sunburst.d.ts +0 -0
  59. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/Tooltip.d.ts +0 -0
  60. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/UserMeasures.d.ts +0 -0
  61. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/colors/CategoricalColors.d.ts +0 -0
  62. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/colors/ColorProvider.d.ts +0 -0
  63. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/colors/Colors.d.ts +0 -0
  64. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/colors/ManualColors.d.ts +0 -0
  65. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/colors/PlainColor.d.ts +0 -0
  66. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/colors/SequentialColors.d.ts +0 -0
  67. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/colors/SystemColors.d.ts +0 -0
  68. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/data/Bar.d.ts +0 -0
  69. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/data/Line.d.ts +0 -0
  70. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/data/Pie.d.ts +0 -0
  71. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/data/Utils.d.ts +0 -0
  72. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/data/index.d.ts +0 -0
  73. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/index.d.ts +0 -0
  74. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/prevalenceBuilder.d.ts +0 -0
  75. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/child-page-menu/index.d.ts +0 -0
  76. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/common/ChartTooltip.d.ts +0 -0
  77. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/common/MapTooltip.d.ts +0 -0
  78. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/common/Messages.d.ts +0 -0
  79. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/common/colors/CategoricalColors.d.ts +0 -0
  80. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/common/colors/ColorProvider.d.ts +0 -0
  81. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/common/colors/Colors.d.ts +0 -0
  82. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/common/colors/ManualColors.d.ts +0 -0
  83. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/common/colors/PlainColor.d.ts +0 -0
  84. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/common/colors/SequentialColors.d.ts +0 -0
  85. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/common/colors/SystemColors.d.ts +0 -0
  86. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/connected-templates/PostContent.d.ts +0 -0
  87. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/connected-templates/PostIntro.d.ts +0 -0
  88. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/BaseLayer.d.ts +0 -0
  89. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/BreaksStyles.d.ts +0 -0
  90. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/DataLayer.d.ts +0 -0
  91. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/FlowLayer.d.ts +0 -0
  92. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/GradientColors.d.ts +0 -0
  93. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/LatLongLayer.d.ts +0 -0
  94. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/Layer.d.ts +0 -0
  95. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/Legends.d.ts +0 -0
  96. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/Map.d.ts +0 -0
  97. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/ProjectedContainer.d.ts +0 -0
  98. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/Tooltip.d.ts +0 -0
  99. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/Utils.d.ts +0 -0
  100. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/ZoomControl.d.ts +0 -0
  101. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/index.d.ts +0 -0
  102. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/data/CategoriesConsumer.d.ts +0 -0
  103. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/data/CategoriesProvider.d.ts +0 -0
  104. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/data/DataConsumer.d.ts +0 -0
  105. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/data/DataConsumerMap.d.ts +0 -0
  106. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/data/DataContext.d.ts +0 -0
  107. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/data/DataProvider.d.ts +0 -0
  108. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/datalabel/index.d.ts +0 -0
  109. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/download/dom-to-image.d.ts +0 -0
  110. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/download/index.d.ts +0 -0
  111. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/downloadPDF/index.d.ts +0 -0
  112. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/featuredtabs/index.d.ts +0 -0
  113. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/filter/_@deprecated_Components.d.ts +0 -0
  114. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/filter/index.d.ts +0 -0
  115. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/filter-reset-button/index.d.ts +0 -0
  116. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/filters-apply-button/index.d.ts +0 -0
  117. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/inlinelist/index.d.ts +0 -0
  118. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/map/MapCSVDataFrame.d.ts +0 -0
  119. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/map/MapDataFrame.d.ts +0 -0
  120. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/map/index.d.ts +0 -0
  121. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/map/legend.d.ts +0 -0
  122. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/map/map.d.ts +0 -0
  123. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/measures/index.d.ts +0 -0
  124. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/menu/index.d.ts +0 -0
  125. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/new-time-line/index.d.ts +0 -0
  126. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/new-time-line/timeline.d.ts +0 -0
  127. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/newsletter/index.d.ts +0 -0
  128. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/pagegallery/index.d.ts +0 -0
  129. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/pagemodules/FloatingNavigator.d.ts +0 -0
  130. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/pagemodules/index.d.ts +0 -0
  131. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/parallax/index.d.ts +0 -0
  132. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/posts-with-filters/DropDownFilter.d.ts +0 -0
  133. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/posts-with-filters/Post.d.ts +0 -0
  134. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/posts-with-filters/index.d.ts +0 -0
  135. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/posts-with-filters/utils.d.ts +0 -0
  136. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/postscarousel/index.d.ts +0 -0
  137. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/reducers/data-api.d.ts +0 -0
  138. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/reducers/data.d.ts +0 -0
  139. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/reducers/embeddable-api.d.ts +0 -0
  140. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/reducers/embeddable.d.ts +0 -0
  141. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/references/Reference.d.ts +0 -0
  142. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/references/ReferencesList.d.ts +0 -0
  143. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/references/index.d.ts +0 -0
  144. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/sankeychart/Sankey.d.ts +0 -0
  145. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/sankeychart/index.d.ts +0 -0
  146. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/showcase/index.d.ts +0 -0
  147. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/superset-chart/index.d.ts +0 -0
  148. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/superset-dashboard/index-sdk.d.ts +0 -0
  149. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/superset-dashboard/index.d.ts +0 -0
  150. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/tabbedposts/index.d.ts +0 -0
  151. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/time-line/desktop.d.ts +0 -0
  152. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/time-line/index.d.ts +0 -0
  153. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/time-line/mobile.d.ts +0 -0
  154. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/tooltip/index.d.ts +0 -0
  155. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/utils/common.d.ts +0 -0
  156. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/utils/parseUtils.d.ts +0 -0
  157. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/vertical-featuredtabs/index.d.ts +0 -0
  158. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/wrapped/index.d.ts +0 -0
  159. /package/dist/types/{index.d.ts → dvz-ui/src/index.d.ts} +0 -0
  160. /package/dist/types/{layout → dvz-ui/src/layout}/ClassicHeader.d.ts +0 -0
  161. /package/dist/types/{layout → dvz-ui/src/layout}/CustomSemanticSearch.d.ts +0 -0
  162. /package/dist/types/{layout → dvz-ui/src/layout}/Customizer.d.ts +0 -0
  163. /package/dist/types/{layout → dvz-ui/src/layout}/FavIcon.d.ts +0 -0
  164. /package/dist/types/{layout → dvz-ui/src/layout}/Favicon.d.ts +0 -0
  165. /package/dist/types/{layout → dvz-ui/src/layout}/FlexWrapDetector.d.ts +0 -0
  166. /package/dist/types/{layout → dvz-ui/src/layout}/FloatingMenuHeader.d.ts +0 -0
  167. /package/dist/types/{layout → dvz-ui/src/layout}/Footer.d.ts +0 -0
  168. /package/dist/types/{layout → dvz-ui/src/layout}/Header.d.ts +0 -0
  169. /package/dist/types/{layout → dvz-ui/src/layout}/LangSwitcher.d.ts +0 -0
  170. /package/dist/types/{layout → dvz-ui/src/layout}/Layout.d.ts +0 -0
  171. /package/dist/types/{layout → dvz-ui/src/layout}/Loading.d.ts +0 -0
  172. /package/dist/types/{layout → dvz-ui/src/layout}/PreviewComponent.d.ts +0 -0
  173. /package/dist/types/{layout → dvz-ui/src/layout}/ResponsiveContainer.d.ts +0 -0
  174. /package/dist/types/{layout → dvz-ui/src/layout}/ScrollTop.d.ts +0 -0
  175. /package/dist/types/{layout → dvz-ui/src/layout}/SearchControl.d.ts +0 -0
  176. /package/dist/types/{layout → dvz-ui/src/layout}/TopNavigator.d.ts +0 -0
  177. /package/dist/types/{layout → dvz-ui/src/layout}/containers/PreviewPageContainer.d.ts +0 -0
  178. /package/dist/types/{layout → dvz-ui/src/layout}/containers/index.d.ts +0 -0
  179. /package/dist/types/{lib → dvz-ui/src/lib}/hooks/resize-observer.d.ts +0 -0
  180. /package/dist/types/{lib → dvz-ui/src/lib}/hooks/screen-orientation.d.ts +0 -0
  181. /package/dist/types/{lib → dvz-ui/src/lib}/hooks/window-dimensions.d.ts +0 -0
  182. /package/dist/types/{lib → dvz-ui/src/lib}/index.d.ts +0 -0
  183. /package/dist/types/{lib → dvz-ui/src/lib}/react-intl-redux/index.d.ts +0 -0
  184. /package/dist/types/{lib → dvz-ui/src/lib}/react-intl-redux/providers/IntlProvider.d.ts +0 -0
  185. /package/dist/types/{lib → dvz-ui/src/lib}/react-intl-redux/providers/Provider.d.ts +0 -0
  186. /package/dist/types/{lib → dvz-ui/src/lib}/redux-immutable/index.d.ts +0 -0
  187. /package/dist/types/{lib → dvz-ui/src/lib}/redux-immutable/types.d.ts +0 -0
  188. /package/dist/types/{lib → dvz-ui/src/lib}/redux-immutable/utils/getStateName.d.ts +0 -0
  189. /package/dist/types/{lib → dvz-ui/src/lib}/redux-immutable/utils/getUnexpectedInvocationParameterMessage.d.ts +0 -0
  190. /package/dist/types/{lib → dvz-ui/src/lib}/redux-immutable/utils/index.d.ts +0 -0
  191. /package/dist/types/{lib → dvz-ui/src/lib}/redux-immutable/utils/validateNextState.d.ts +0 -0
  192. /package/dist/types/{redux → dvz-ui/src/redux}/hooks.d.ts +0 -0
  193. /package/dist/types/{redux → dvz-ui/src/redux}/index.d.ts +0 -0
  194. /package/dist/types/{redux → dvz-ui/src/redux}/reducer.d.ts +0 -0
  195. /package/dist/types/{redux → dvz-ui/src/redux}/store.d.ts +0 -0
  196. /package/dist/types/{tools → dvz-ui/src/tools}/serviceWorker.d.ts +0 -0
  197. /package/dist/types/{tracker → dvz-ui/src/tracker}/index.d.ts +0 -0
  198. /package/dist/types/{tracker → dvz-ui/src/tracker}/withGoogleAnalytics.d.ts +0 -0
  199. /package/dist/types/{translations → dvz-ui/src/translations}/af.json.d.ts +0 -0
  200. /package/dist/types/{translations → dvz-ui/src/translations}/en.json.d.ts +0 -0
  201. /package/dist/types/{translations → dvz-ui/src/translations}/fr.json.d.ts +0 -0
  202. /package/dist/types/{translations → dvz-ui/src/translations}/index.d.ts +0 -0
  203. /package/dist/types/{utils → dvz-ui/src/utils}/AppMedia.d.ts +0 -0
  204. /package/dist/types/{utils → dvz-ui/src/utils}/countries.d.ts +0 -0
  205. /package/dist/types/{utils → dvz-ui/src/utils}/data.d.ts +0 -0
  206. /package/dist/types/{utils → dvz-ui/src/utils}/deviceType.d.ts +0 -0
  207. /package/dist/types/{utils → dvz-ui/src/utils}/semanticUtils.d.ts +0 -0
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react/jsx-runtime"),st=require("@devgateway/wp-react-lib"),mt=require("../connected-templates/PostIntro.js"),f=require("react"),z=require("semantic-ui-react"),bt=require("d3"),yt=require("../../lib/hooks/window-dimensions.js"),xt=require("../../lib/hooks/screen-orientation.js");function Ct(r){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const d in r)if(d!=="default"){const g=Object.getOwnPropertyDescriptor(r,d);Object.defineProperty(n,d,g.get?g:{enumerable:!0,get:()=>r[d]})}}return n.default=r,Object.freeze(n)}const h=Ct(bt),wt={visibility:"visible",position:"relative",height:"auto",width:"auto"},vt=0,Tt=r=>{let{posts:n,lineWidth:d,lineColor:g,config:p,marginLeft:L,marginTop:E,marginRight:G,marginBottom:N,fontSize:w,subtitleWidth:q,subtitleHeight:v,enableTitlePopup:O,enableCirclePopup:j,enableDefaultPopup:J,closePopupOnMouseOut:V,unique:m}=r;q=250;const T=f.useRef(),S=f.useRef(),[D,y]=f.useState(!1),[M,k]=f.useState(0),[W,B]=f.useState(null),{orientation:x}=xt.useScreenOrientation(),{width:X,deviceType:b,height:H}=yt.useWindowDimensionsAndDevice({getDeviceType:!0,getHeight:!0}),F=f.useCallback(t=>`circle${m}${t}`,[m]),at=f.useCallback(t=>`title${m}${t}`,[m]),rt=t=>{var i;return((i=p[t])==null?void 0:i.size)||10},ct=({content:t,isOpen:i,style:l})=>{const C=s=>(s=s.replace(/<ul(.*?)>/g,'<ul class="has-white-color has-text-color has-standard-14-font-size" style="list-style-type:disc !important; list-style: initial !important; padding-left:20px; color:#fefefe;">'),s=s.replace(/<a(.*?)>/g,'<a$1 style="color:#fefefe;">'),s);return a.jsxs(z.Modal,{open:i,onClose:()=>y(!1),size:"fullscreen",closeIcon:!0,centered:!0,style:{maxHeight:"80vh",overflowY:"auto",padding:"0.5rem",...l},children:[a.jsx(z.Modal.Header,{style:{...l,borderBottom:"none"}}),a.jsx(z.Modal.Content,{className:"styled-list-content",style:{...l},dangerouslySetInnerHTML:{__html:C(t.props.children.props.post.content.rendered)}})]},`${t.props.children.key}modal`)},Y=t=>{var i;return(i=p[t])==null?void 0:i.circleColor},K=t=>p[t].titleColor,Q=t=>p[t].lineColor,Z=t=>p[t].tooltipFontColor||"#fff",dt=t=>p[t].readMoreLabel,tt=f.useCallback((t,i)=>{t.preventDefault();const l=260,C=50;let s=[0,0];if(t){const P=t.target.getBoundingClientRect(),I=t.target.closest(".time").getBoundingClientRect(),c=P.left-I.left,$=P.top+I.top;s=[c+l,$+C];const R=400;P.left+c+R+l>window.innerWidth&&(s[0]=c-R*.6)}y(!0),B({data:i,id:i.id,position:s}),ft(i.id)},[]),pt=()=>{y(!1)},ut=t=>{h.selectAll(`#${F(t)}`).style("stroke","none").style("fill",Y(t)),h.selectAll(`#label${t}`).style("font-weight","normal")},ft=t=>{ut(vt),h.selectAll(`#${F(t)}`).style("stroke",Y(t)).style("fill","#fff"),h.selectAll(`#label${t}`).style("font-weight","bold")};return f.useLayoutEffect(()=>{var lt;const t={top:E,bottom:N},i=T.current.clientWidth,l=S.current.clientWidth;l>0&&k(l);const C=H,s={mobile:"75",tablet:"150",midTablet:"150",laptop:"150"},P={mobile:"250",tablet:"350",midTablet:"350",laptop:"400"},I={mobile:20,tablet:30,midTablet:30,laptop:40},c=h.scaleLinear().domain([0,n.length-1]).range([t.top,C-t.bottom]),$=h.select(T.current);$.selectAll("*").remove(),$.attr("width",i).attr("height",C);const R=h.line(),ht=[[0,c(0)],[0,c(n.length-1)]],gt=R(ht);let et=`translate(${s[b]},0)`;((lt=process.env.REACT_APP_THEME)==null?void 0:lt.startsWith("cd"))&&(et=`translate(${s[b]},20)`);const _=$.append("g").attr("transform",et);g="#E4E5EA",d=6,_.append("path").attr("d",gt).attr("stroke-width",d).attr("stroke",g).attr("class","timeline-path"),_.selectAll(".circle").data(n).enter().append("circle").attr("id",(o,e)=>F(e)).attr("cx",0).attr("class","timeline-circle").attr("cy",(o,e)=>c(e)).attr("r",(o,e)=>rt(e)).style("fill",(o,e)=>{var u;return((u=p[e])==null?void 0:u.circleColor)||"#000"}).style("cursor",j?"pointer":"default").on("click",(o,e)=>{o.preventDefault(),j&&tt(o,e)}),_.selectAll(".title").data(n).enter().append("foreignObject").attr("x",I[b]).attr("y",(o,e)=>c(e)-Number.parseInt(v)/2).attr("width",Number.parseInt(P[b])).attr("height",Number.parseInt(v)).attr("class","timeline-title").append("xhtml:div").attr("id",(o,e)=>at(e)).style("font-size",`${Number.parseInt(w)+1}px`).style("color",(o,e)=>K(e)).style("font-weight","bold").style("line-height","1.2rem").style("text-align","left").style("cursor",O?"pointer":"default").style("overflow","hidden").style("display","-webkit-box").style("-webkit-line-clamp","2").style("-webkit-box-orient","vertical").style("text-overflow","ellipsis").style("overflow-wrap","break-word").html((o,e)=>{const u=dt(e);let A=o.title.rendered;return u&&(A+=`<br><span style="font-size:${Number.parseInt(w)-3}px;color:${K(e)};text-decoration:underline;text-underline-offset:3px">${u}</span>`),A}).each(function(o,e){const u=h.select(this.parentNode);setTimeout(()=>{const A=this.getBoundingClientRect(),nt=Math.min(A.height,Number.parseInt(v)*2);u.attr("height",nt),u.attr("y",c(e)-nt/2)},0)}).on("click",(o,e,u)=>{o.preventDefault(),O&&tt(o,e)});const ot=+w+1,it=60,U=ot*.9;_.selectAll(".year-fo").data(n).enter().append("foreignObject").attr("class","year-fo").attr("x",-70).attr("y",(o,e)=>c(e)-U/2).attr("width",it).attr("height",U).append("xhtml:div").style("display","flex").style("align-items","center").style("justify-content","flex-end").style("width",`${it}px`).style("height",`${U}px`).style("font-size",`${ot}px`).style("line-height","1em").style("font-weight","400").style("color","#4C4D50").html(o=>o.meta_fields.subtitle)},[b,x]),a.jsxs("div",{className:"time line",style:{position:"relative"},ref:S,children:[n.filter(t=>W&&W.id===t.id).map(t=>{const i=t.slug||"unknown-slug",l=n.indexOf(t);return a.jsx(ct,{isOpen:D,content:a.jsx("div",{style:{backgroundColor:Q(l),color:Z(l)},children:a.jsx(mt.default,{post:t,style:wt},i)}),closeTooltip:pt,style:{backgroundColor:Q(l),color:Z(l)}},`${i}_modal`)}),a.jsx("svg",{height:H,width:M,ref:T})]},m+b+x)},Pt=r=>{const{"data-type":n,"data-taxonomy":d,"data-categories":g,"data-items":p,"data-height":L,"data-line-color":E="#000","data-config":G="{}","data-position":N="middle","data-line-width":w="1","data-margin-left":q=50,"data-margin-top":v=25,"data-margin-right":O=50,"data-margin-bottom":j=25,"data-font-size":J=14,"data-title-width":V=100,"data-title-height":m=50,"data-subtitle-width":T=250,"data-subtitle-height":S=60,"data-enable-title-popup":D="false","data-enable-circle-popup":y="true","data-enable-default-popup":M="false","data-close-popup-on-mouse-out":k="false",editing:W,parent:B,unique:x}=r,X=r.intl.locale,H={unique:x||Math.random().toString(36).substring(2,9),marginLeft:q,marginTop:v,marginRight:O,marginBottom:j,lineWidth:w,height:L,position:N,lineColor:decodeURIComponent(E),config:JSON.parse(decodeURIComponent(G)),fontSize:J,titleWidth:V,titleHeight:m,subtitleWidth:T,subtitleHeight:S,enableTitlePopup:D==!0||D=="true",enableCirclePopup:y==!0||y=="true",enableDefaultPopup:M==!0||M=="true",closePopupOnMouseOut:k==!0||k=="true"};return a.jsx(z.Container,{style:{height:`${L}px`},className:`viz time line ${W?"editing":""}`,fluid:!0,children:a.jsx(st.PostProvider,{locale:X,type:n,taxonomy:d,categories:g,store:`carousel_${B}_${x}`,page:1,perPage:p,children:a.jsx(st.PostConsumer,{children:a.jsx(Tt,{...H})})})})};exports.default=Pt;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),rt=require("@devgateway/wp-react-lib"),mt=require("../connected-templates/PostIntro.js"),d=require("react"),A=require("semantic-ui-react"),bt=require("d3"),yt=require("../../lib/hooks/window-dimensions.js"),xt=require("../../lib/hooks/screen-orientation.js");require("../../utils/AppMedia.js");require("../../layout/Footer.js");require("../../layout/Header.js");require("react-router");require("../../layout/Layout.js");require("../index.js");require("../../layout/Favicon.js");const Ct=require("../../layout/Loading.js");function wt(s){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const c in s)if(c!=="default"){const g=Object.getOwnPropertyDescriptor(s,c);Object.defineProperty(l,c,g.get?g:{enumerable:!0,get:()=>s[c]})}}return l.default=s,Object.freeze(l)}const h=wt(bt),vt={visibility:"visible",position:"relative",height:"auto",width:"auto"},Tt=0,Pt=s=>{let{posts:l,lineWidth:c,lineColor:g,config:p,marginLeft:L,marginTop:z,marginRight:G,marginBottom:E,fontSize:w,subtitleWidth:N,subtitleHeight:v,enableTitlePopup:$,enableCirclePopup:O,enableDefaultPopup:J,closePopupOnMouseOut:V,unique:m}=s;N=250;const T=d.useRef(),S=d.useRef(),[D,y]=d.useState(!1),[q,M]=d.useState(0),[k,B]=d.useState(null),{orientation:x}=xt.useScreenOrientation(),{width:X,deviceType:b,height:W}=yt.useWindowDimensionsAndDevice({getDeviceType:!0,getHeight:!0}),F=d.useCallback(t=>`circle${m}${t}`,[m]),st=d.useCallback(t=>`title${m}${t}`,[m]),at=t=>{var i;return((i=p[t])==null?void 0:i.size)||10},ct=({content:t,isOpen:i,style:n})=>{const C=a=>(a=a.replace(/<ul(.*?)>/g,'<ul class="has-white-color has-text-color has-standard-14-font-size" style="list-style-type:disc !important; list-style: initial !important; padding-left:20px; color:#fefefe;">'),a=a.replace(/<a(.*?)>/g,'<a$1 style="color:#fefefe;">'),a);return r.jsxs(A.Modal,{open:i,onClose:()=>y(!1),size:"fullscreen",closeIcon:!0,centered:!0,style:{maxHeight:"80vh",overflowY:"auto",padding:"0.5rem",...n},children:[r.jsx(A.Modal.Header,{style:{...n,borderBottom:"none"}}),r.jsx(A.Modal.Content,{className:"styled-list-content",style:{...n},dangerouslySetInnerHTML:{__html:C(t.props.children.props.post.content.rendered)}})]},`${t.props.children.key}modal`)},Y=t=>{var i;return(i=p[t])==null?void 0:i.circleColor},K=t=>p[t].titleColor,Q=t=>p[t].lineColor,Z=t=>p[t].tooltipFontColor||"#fff",dt=t=>p[t].readMoreLabel,tt=d.useCallback((t,i)=>{t.preventDefault();const n=260,C=50;let a=[0,0];if(t){const P=t.target.getBoundingClientRect(),H=t.target.closest(".time").getBoundingClientRect(),u=P.left-H.left,j=P.top+H.top;a=[u+n,j+C];const I=400;P.left+u+I+n>window.innerWidth&&(a[0]=u-I*.6)}y(!0),B({data:i,id:i.id,position:a}),ft(i.id)},[]),ut=()=>{y(!1)},pt=t=>{h.selectAll(`#${F(t)}`).style("stroke","none").style("fill",Y(t)),h.selectAll(`#label${t}`).style("font-weight","normal")},ft=t=>{pt(Tt),h.selectAll(`#${F(t)}`).style("stroke",Y(t)).style("fill","#fff"),h.selectAll(`#label${t}`).style("font-weight","bold")};return d.useLayoutEffect(()=>{var lt;const t={top:z,bottom:E},i=T.current.clientWidth,n=S.current.clientWidth;n>0&&M(n);const C=W,a={mobile:"75",tablet:"150",midTablet:"150",laptop:"150"},P={mobile:"250",tablet:"350",midTablet:"350",laptop:"400"},H={mobile:20,tablet:30,midTablet:30,laptop:40},u=h.scaleLinear().domain([0,l.length-1]).range([t.top,C-t.bottom]),j=h.select(T.current);j.selectAll("*").remove(),j.attr("width",i).attr("height",C);const I=h.line(),ht=[[0,u(0)],[0,u(l.length-1)]],gt=I(ht);let et=`translate(${a[b]},0)`;((lt=process.env.REACT_APP_THEME)==null?void 0:lt.startsWith("cd"))&&(et=`translate(${a[b]},20)`);const R=j.append("g").attr("transform",et);g="#E4E5EA",c=6,R.append("path").attr("d",gt).attr("stroke-width",c).attr("stroke",g).attr("class","timeline-path"),R.selectAll(".circle").data(l).enter().append("circle").attr("id",(o,e)=>F(e)).attr("cx",0).attr("class","timeline-circle").attr("cy",(o,e)=>u(e)).attr("r",(o,e)=>at(e)).style("fill",(o,e)=>{var f;return((f=p[e])==null?void 0:f.circleColor)||"#000"}).style("cursor",O?"pointer":"default").on("click",(o,e)=>{o.preventDefault(),O&&tt(o,e)}),R.selectAll(".title").data(l).enter().append("foreignObject").attr("x",H[b]).attr("y",(o,e)=>u(e)-Number.parseInt(v)/2).attr("width",Number.parseInt(P[b])).attr("height",Number.parseInt(v)).attr("class","timeline-title").append("xhtml:div").attr("id",(o,e)=>st(e)).style("font-size",`${Number.parseInt(w)+1}px`).style("color",(o,e)=>K(e)).style("font-weight","bold").style("line-height","1.2rem").style("text-align","left").style("cursor",$?"pointer":"default").style("overflow","hidden").style("display","-webkit-box").style("-webkit-line-clamp","2").style("-webkit-box-orient","vertical").style("text-overflow","ellipsis").style("overflow-wrap","break-word").html((o,e)=>{const f=dt(e);let _=o.title.rendered;return f&&(_+=`<br><span style="font-size:${Number.parseInt(w)-3}px;color:${K(e)};text-decoration:underline;text-underline-offset:3px">${f}</span>`),_}).each(function(o,e){const f=h.select(this.parentNode);setTimeout(()=>{const _=this.getBoundingClientRect(),nt=Math.min(_.height,Number.parseInt(v)*2);f.attr("height",nt),f.attr("y",u(e)-nt/2)},0)}).on("click",(o,e,f)=>{o.preventDefault(),$&&tt(o,e)});const ot=+w+1,it=60,U=ot*.9;R.selectAll(".year-fo").data(l).enter().append("foreignObject").attr("class","year-fo").attr("x",-70).attr("y",(o,e)=>u(e)-U/2).attr("width",it).attr("height",U).append("xhtml:div").style("display","flex").style("align-items","center").style("justify-content","flex-end").style("width",`${it}px`).style("height",`${U}px`).style("font-size",`${ot}px`).style("line-height","1em").style("font-weight","400").style("color","#4C4D50").html(o=>o.meta_fields.subtitle)},[b,x]),r.jsxs("div",{className:"time line",style:{position:"relative"},ref:S,children:[l.filter(t=>k&&k.id===t.id).map(t=>{const i=t.slug||"unknown-slug",n=l.indexOf(t);return r.jsx(ct,{isOpen:D,content:r.jsx("div",{style:{backgroundColor:Q(n),color:Z(n)},children:r.jsx(mt.default,{post:t,style:vt},i)}),closeTooltip:ut,style:{backgroundColor:Q(n),color:Z(n)}},`${i}_modal`)}),r.jsx("svg",{height:W,width:q,ref:T})]},m+b+x)},jt=s=>{const{"data-type":l,"data-taxonomy":c,"data-categories":g,"data-items":p,"data-height":L,"data-line-color":z="#000","data-config":G="{}","data-position":E="middle","data-line-width":w="1","data-margin-left":N=50,"data-margin-top":v=25,"data-margin-right":$=50,"data-margin-bottom":O=25,"data-font-size":J=14,"data-title-width":V=100,"data-title-height":m=50,"data-subtitle-width":T=250,"data-subtitle-height":S=60,"data-enable-title-popup":D="false","data-enable-circle-popup":y="true","data-enable-default-popup":q="false","data-close-popup-on-mouse-out":M="false",editing:k,parent:B,unique:x}=s,X=s.intl.locale,W={unique:x||Math.random().toString(36).substring(2,9),marginLeft:N,marginTop:v,marginRight:$,marginBottom:O,lineWidth:w,height:L,position:E,lineColor:decodeURIComponent(z),config:JSON.parse(decodeURIComponent(G)),fontSize:J,titleWidth:V,titleHeight:m,subtitleWidth:T,subtitleHeight:S,enableTitlePopup:D==!0||D=="true",enableCirclePopup:y==!0||y=="true",enableDefaultPopup:q==!0||q=="true",closePopupOnMouseOut:M==!0||M=="true"};return r.jsx(A.Container,{style:{height:`${L}px`},className:`viz time line ${k?"editing":""}`,fluid:!0,children:r.jsx(rt.PostProvider,{locale:X,type:l,taxonomy:c,categories:g,store:`carousel_${B}_${x}`,page:1,perPage:p,children:r.jsx(rt.PostConsumer,{children:r.jsx(Pt,{...W})})})})},$t=s=>{const[l,c]=d.useState(!1);return d.useEffect(()=>{c(!0)},[]),l?r.jsx(jt,{...s}):r.jsx(Ct.default,{})};exports.default=$t;
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),l=require("react"),S=require("semantic-ui-react"),b=require("@devgateway/wp-react-lib"),F=require("react-redux"),z=require("../connected-templates/PostIntro.js"),O=({posts:r,activeItem:s,setActive:p,colors:h})=>{const[f,c]=l.useState(r.findIndex(n=>n.slug===s)),[d,w]=l.useState(null),g=(n,i,o)=>{document.querySelectorAll(n).forEach(a=>{a.querySelector(i)&&a.classList.add(o)})};l.useEffect(()=>{if(d){const n=d.getBoundingClientRect().top+window.scrollY;window.scrollTo({top:n,behavior:"smooth"})}g(".ui.fluid.container.viz.featured.tabs",".accordion","has-accordion"),g(".ui.fluid.container.viz.featured.tabs","blockquote","has-blockquote"),g(".ui.fluid.container.viz.featured.tabs",".accordion .accordion-post-ft-title","has-accordion-title"),g(".ui.fluid.container.viz.featured.tabs",".accordion .accordion-post-vft-content","has-accordion-content"),g(".ui.fluid.container.viz.featured.tabs",".vt-accordion-post-intro figure","has-vt-accordion-figure"),g(".ui.fluid.container.viz.featured.tabs",".content.active.accordion-post-content .wp-block-columns","has-wp-block-columns")},[d]),l.useEffect(()=>{let n;const i=[],o=t=>{setTimeout(()=>{var C;const a=t.querySelectorAll(".accordion .legends.container.has-standard-12-font-size.bottom, .legends.container.items-section");if(a.length!==0)for(const m of a){const $=m.closest(".ui.fluid.container.content"),x=$?$.querySelector(".data-source"):null;if(!x||m.offsetParent===null||x.offsetParent===null||m.offsetHeight===0||x.offsetHeight===0)continue;const k=x.getBoundingClientRect(),I=m.getBoundingClientRect(),y=window.getComputedStyle(x),N=window.getComputedStyle(m),T=parseFloat(y.marginTop)||0,P=parseFloat(N.marginBottom)||0,j=I.bottom+P,A=k.top-T;if(j>A){const E=j-A;x.style.marginTop=`${E+20}px`}const u=(C=m.closest(".wp-block-column.is-layout-flow.wp-block-column-is-layout-flow"))==null?void 0:C.nextElementSibling;if(u){const E=u.getBoundingClientRect(),q=window.getComputedStyle(u),L=Number.parseFloat(q.marginTop)||0,R=E.top-L;if(j>R){const _=j-R;u.style.marginTop=`${_+20}px`}}const M=m.closest(".chart.container");if(M){const E=M.getBoundingClientRect(),q=window.getComputedStyle(M),L=Number.parseFloat(q.marginBottom)||0,R=E.bottom+L,_=Number.parseFloat(N.marginTop)||0,B=I.top-_;if(B<R){const D=R-B;m.style.marginTop=`${D+20}px`}}}},10)};return f!==-1&&(n=setTimeout(()=>{document.querySelectorAll(".accordion").forEach(a=>o(a))},0)),()=>{clearTimeout(n),i.forEach(t=>t.disconnect())}},[f]);const v=(n,i)=>{const{index:o}=i,t=f===o?-1:o;c(t),p(r[o].slug),t!==-1&&w(n.currentTarget)};return e.jsx(S.Accordion,{fluid:!0,styled:!0,children:r.map((n,i)=>{var t;const o=(t=n.meta_fields)!=null&&t.icon?n.meta_fields.icon[0]:null;return e.jsxs(l.Fragment,{children:[e.jsx(S.Accordion.Title,{active:f===i,index:i,onClick:a=>v(a,{index:i}),style:{backgroundColor:h[`color_${i}`]},children:e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[o&&e.jsx(b.MediaProvider,{id:o,children:e.jsx(b.MediaConsumer,{children:e.jsx(b.PostIcon,{className:"icon"})})}),e.jsx(z.default,{post:n,className:"vt-accordion-post-intro"})]}),e.jsx(S.Icon,{name:"chevron down"})]})}),e.jsx(S.Accordion.Content,{className:"accordion-post-content accordion-post-vft-content",active:f===i,children:e.jsx(b.PostContent,{post:n})})]},n.id)})})},H=({post:r,count:s,backgroundColor:p,active:h,dimensions:f,height:c,coverWidth:d,index:w,editing:g})=>{const v=r._embedded?r._embedded["wp:featuredmedia"]:null,[n,i]=l.useState(!1),o=g?s-w:1;return e.jsxs("div",{className:"content-area",children:[e.jsxs("div",{className:"cover",style:{width:`${d}px`,backgroundColor:p,backgroundImage:`url(${v?v[0].source_url:""})`},onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),children:[e.jsx("div",{className:"rotator",style:{width:`${c}px`,transform:`translate(${d/2}px, 0px) rotate(90deg)`},children:e.jsx(z.default,{post:r})}),e.jsxs("div",{className:"overlay-label-container",children:[e.jsx("div",{className:`overlay-label ${n&&!h?"visible":""}`,children:"CLICK TO EXPAND"}),e.jsx("div",{className:"arrow-svg"})]})]}),e.jsx("div",{className:`collapsable-content ${h?"expanded":"collapsed"}`,style:{backgroundColor:"#f9f9f9",width:`${f.width-d*s}px`,marginLeft:`${d*o}px`},children:e.jsx(b.PostContent,{post:r})})]})},W=({editing:r,posts:s,height:p,colors:h,coverWidth:f})=>{const[c,d]=l.useState(null),w=l.useRef(null),[g,v]=l.useState({width:0,height:0}),n=l.useRef(null),i=o=>{d(t=>t===o?null:o)};return l.useEffect(()=>{s.length>0&&!c&&r&&d(s[0].slug)},[s,c,r]),l.useLayoutEffect(()=>{var t,a,C,m;(t=w.current)!=null&&t.parentElement&&v({width:r?((C=(a=w.current.parentElement)==null?void 0:a.parentElement)==null?void 0:C.offsetWidth)??0:((m=w.current.parentElement)==null?void 0:m.offsetWidth)??0,height:w.current.offsetHeight});const o=n.current;o&&(o.style.overflow=r?"visible":"hidden")},[r]),e.jsx(S.Container,{fluid:!0,className:"vertical featured tabs",ref:n,children:s==null?void 0:s.map((o,t)=>{const a=c?o.slug===c:t===0;return e.jsxs("div",{ref:w,onClick:()=>i(o.slug),className:a?"item expanded":"item collapsed",style:{minHeight:`${p}px`,minWidth:`${f}px`},children:[e.jsx("a",{id:o.slug}),e.jsx(H,{editing:r,coverWidth:f,height:p,backgroundColor:h[`color_${t}`],count:s.length,dimensions:g,active:a,post:o,index:t})]},o.slug)})})},U=r=>{var A;let{"data-height":s,"data-type":p,"data-taxonomy":h,"data-categories":f,"data-count":c,"data-colors":d,"data-cover-width":w=50,"data-read-more-label":g="READ More","data-preview-mode":v="Desktop",editing:n,parent:i,unique:o,pageModuleProps:t}=r;t!=null&&t.previewMode&&(t!=null&&t.editing)&&(v=t.previewMode,n=t.editing);const a=r.intl.locale,C=f||"[]",[m,$]=l.useState(window.innerWidth<=1365),x=()=>{var u;return((u=window.screen.orientation)==null?void 0:u.type)||(window.innerWidth>window.innerHeight?"landscape-primary":"portrait-primary")},[k,I]=l.useState(x()),y=()=>{setTimeout(()=>{I(x()),$(window.innerWidth<=1365)},100)};l.useEffect(()=>(window.screen.orientation&&window.screen.orientation.addEventListener("change",y),window.addEventListener("resize",y),()=>{window.removeEventListener("resize",y),window.screen.orientation&&window.screen.orientation.removeEventListener("change",y)}),[]);const N=u=>n?u:decodeURIComponent(u),T=u=>{if(!u)return null;try{return JSON.parse(N(u))}catch(M){console.error(`error parsing value:${u}
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),l=require("react"),S=require("semantic-ui-react"),b=require("@devgateway/wp-react-lib"),F=require("react-redux"),z=require("../connected-templates/PostIntro.js"),O=({posts:r,activeItem:s,setActive:p,colors:h})=>{const[f,c]=l.useState(r.findIndex(n=>n.slug===s)),[d,w]=l.useState(null),g=(n,i,o)=>{document.querySelectorAll(n).forEach(a=>{a.querySelector(i)&&a.classList.add(o)})};l.useEffect(()=>{if(d){const n=d.getBoundingClientRect().top+window.scrollY;window.scrollTo({top:n,behavior:"smooth"})}g(".ui.fluid.container.viz.featured.tabs",".accordion","has-accordion"),g(".ui.fluid.container.viz.featured.tabs","blockquote","has-blockquote"),g(".ui.fluid.container.viz.featured.tabs",".accordion .accordion-post-ft-title","has-accordion-title"),g(".ui.fluid.container.viz.featured.tabs",".accordion .accordion-post-vft-content","has-accordion-content"),g(".ui.fluid.container.viz.featured.tabs",".vt-accordion-post-intro figure","has-vt-accordion-figure"),g(".ui.fluid.container.viz.featured.tabs",".content.active.accordion-post-content .wp-block-columns","has-wp-block-columns")},[d]),l.useEffect(()=>{let n;const i=[],o=t=>{setTimeout(()=>{var C;const a=t.querySelectorAll(".accordion .legends.container.has-standard-12-font-size.bottom, .legends.container.items-section");if(a.length!==0)for(const m of a){const $=m.closest(".ui.fluid.container.content"),x=$?$.querySelector(".data-source"):null;if(!x||m.offsetParent===null||x.offsetParent===null||m.offsetHeight===0||x.offsetHeight===0)continue;const k=x.getBoundingClientRect(),I=m.getBoundingClientRect(),y=window.getComputedStyle(x),N=window.getComputedStyle(m),T=parseFloat(y.marginTop)||0,P=parseFloat(N.marginBottom)||0,j=I.bottom+P,A=k.top-T;if(j>A){const E=j-A;x.style.marginTop=`${E+20}px`}const u=(C=m.closest(".wp-block-column.is-layout-flow.wp-block-column-is-layout-flow"))==null?void 0:C.nextElementSibling;if(u){const E=u.getBoundingClientRect(),q=window.getComputedStyle(u),L=Number.parseFloat(q.marginTop)||0,R=E.top-L;if(j>R){const _=j-R;u.style.marginTop=`${_+20}px`}}const M=m.closest(".chart.container");if(M){const E=M.getBoundingClientRect(),q=window.getComputedStyle(M),L=Number.parseFloat(q.marginBottom)||0,R=E.bottom+L,_=Number.parseFloat(N.marginTop)||0,B=I.top-_;if(B<R){const D=R-B;m.style.marginTop=`${D+20}px`}}}},10)};return f!==-1&&(n=setTimeout(()=>{document.querySelectorAll(".accordion").forEach(a=>o(a))},0)),()=>{clearTimeout(n),i.forEach(t=>t.disconnect())}},[f]);const v=(n,i)=>{const{index:o}=i,t=f===o?-1:o;c(t),p(r[o].slug),t!==-1&&w(n.currentTarget)};return e.jsx(S.Accordion,{fluid:!0,styled:!0,children:r.map((n,i)=>{var t;const o=(t=n.meta_fields)!=null&&t.icon?n.meta_fields.icon[0]:null;return e.jsxs(l.Fragment,{children:[e.jsx(S.Accordion.Title,{active:f===i,index:i,onClick:a=>v(a,{index:i}),style:{backgroundColor:h[`color_${i}`]},children:e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[o&&e.jsx(b.MediaProvider,{id:o,children:e.jsx(b.MediaConsumer,{children:e.jsx(b.PostIcon,{className:"icon"})})}),e.jsx(z.default,{post:n,className:"vt-accordion-post-intro"})]}),e.jsx(S.Icon,{name:"chevron down"})]})}),e.jsx(S.Accordion.Content,{className:"accordion-post-content accordion-post-vft-content",active:f===i,children:e.jsx(b.PostContent,{post:n})})]},n.id)})})},H=({post:r,count:s,backgroundColor:p,active:h,dimensions:f,height:c,coverWidth:d,index:w,editing:g})=>{const v=r._embedded?r._embedded["wp:featuredmedia"]:null,[n,i]=l.useState(!1),o=g?s-w:1;return e.jsxs("div",{className:"content-area",children:[e.jsxs("div",{className:"cover",style:{width:`${d}px`,backgroundColor:p,backgroundImage:`url(${v?v[0].source_url:""})`},onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),children:[e.jsx("div",{className:"rotator",style:{width:`${c}px`,transform:`translate(${d/2}px, 0px) rotate(90deg)`},children:e.jsx(z.default,{post:r})}),e.jsxs("div",{className:"overlay-label-container",children:[e.jsx("div",{className:`overlay-label ${n&&!h?"visible":""}`,children:"CLICK TO EXPAND"}),e.jsx("div",{className:"arrow-svg"})]})]}),e.jsx("div",{className:`collapsable-content ${h?"expanded":"collapsed"}`,style:{backgroundColor:"#f9f9f9",width:`${f.width-d*s}px`,marginLeft:`${d*o}px`},children:e.jsx(b.PostContent,{post:r})})]})},W=({editing:r,posts:s,height:p,colors:h,coverWidth:f})=>{const[c,d]=l.useState(null),w=l.useRef(null),[g,v]=l.useState({width:0,height:0}),n=l.useRef(null),i=o=>{d(t=>t===o?null:o)};return l.useEffect(()=>{s.length>0&&!c&&r&&d(s[0].slug)},[s,c,r]),l.useLayoutEffect(()=>{var t,a,C,m;(t=w.current)!=null&&t.parentElement&&v({width:r?((C=(a=w.current.parentElement)==null?void 0:a.parentElement)==null?void 0:C.offsetWidth)??0:((m=w.current.parentElement)==null?void 0:m.offsetWidth)??0,height:w.current.offsetHeight});const o=n.current;o&&(o.style.overflow=r?"visible":"hidden")},[r]),e.jsx(S.Container,{fluid:!0,className:"vertical featured tabs",ref:n,children:s==null?void 0:s.map((o,t)=>{const a=c?o.slug===c:t===0;return e.jsxs("div",{ref:w,onClick:()=>i(o.slug),className:a?"item expanded":"item collapsed",style:{minHeight:`${p}px`,minWidth:`${f}px`},children:[e.jsx("a",{id:o.slug}),e.jsx(H,{editing:r,coverWidth:f,height:p,backgroundColor:h[`color_${t}`],count:s.length,dimensions:g,active:a,post:o,index:t})]},o.slug)})})},U=r=>{var A;let{"data-height":s,"data-type":p,"data-taxonomy":h,"data-categories":f,"data-count":c,"data-colors":d,"data-cover-width":w=50,"data-read-more-label":g="READ More","data-preview-mode":v="Desktop",editing:n,parent:i,unique:o,pageModuleProps:t}=r;t!=null&&t.previewMode&&(t!=null&&t.editing)&&(v=t.previewMode,n=t.editing);const a=r.intl.locale,C=f||"[]",[m,$]=l.useState(window.innerWidth<=1365),x=()=>{var u;return((u=window.screen.orientation)==null?void 0:u.type)||(window.innerWidth>window.innerHeight?"landscape-primary":"portrait-primary")},[k,I]=l.useState(x()),y=()=>{setTimeout(()=>{I(x()),$(window.innerWidth<=1365)},100)};l.useEffect(()=>(window&&window.screen.orientation&&window.screen.orientation.addEventListener("change",y),window.addEventListener("resize",y),()=>{window.removeEventListener("resize",y),window.screen.orientation&&window.screen.orientation.removeEventListener("change",y)}),[]);const N=u=>n?u:decodeURIComponent(u),T=u=>{if(!u)return null;try{return JSON.parse(N(u))}catch(M){console.error(`error parsing value:${u}
2
2
  error:${M}`)}return null},P=v!=="Desktop"&&n,j=m&&!n;return e.jsx(S.Container,{style:{maxWidth:"100%"},className:`viz featured tabs ${n?"editing":""}`,fluid:!0,children:e.jsx(b.PostProvider,{type:p,locale:a,taxonomy:h,categories:T(C),store:`vertical_tabs${i}_${o}`,page:1,perPage:c,children:e.jsx(b.PostConsumer,{children:j||P?e.jsx(O,{posts:c,activeItem:(A=c==null?void 0:c[0])==null?void 0:A.slug,colors:T(d),setActive:()=>{}}):e.jsx(W,{editing:n,coverWidth:w,moreLabel:g,colors:T(d),height:s,posts:c})})})},k+Math.random())},J=(r,s)=>{const p=r.getIn(["data","pageModuleProps"]),h={};return p&&(h.pageModuleProps=p),h},K={},X=F.connect(J,K)(U);exports.default=X;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),u=require("react"),r=require("react-router"),g=require("../embeddable/index.js"),l=require("react-intl"),s=require("@devgateway/wp-react-lib"),p=require("react-redux");require("semantic-ui-react");require("../utils/AppMedia.js");require("./Footer.js");require("./Header.js");const q=require("./Customizer.js");require("./Favicon.js");const f=require("../conf/index.js"),h=require("../translations/en.json.js"),x=require("../translations/fr.json.js"),j=require("../translations/af.json.js"),v=require("../lib/react-intl-redux/index.js");require("immutable");const i=require("../redux/store.js"),c={en:h,fr:x,am:j},w=l.injectIntl(o=>(document.title=o.settings.description,e.jsx(e.Fragment,{}))),C=()=>{const o=r.useParams(),d=r.useLocation(),n=f.Config.DEFAULT_LOCALE;console.log("defaultLocale",n);const t=o.lan,m=d.pathname;return console.log("pathParams",o),u.useEffect(()=>{process.env.NODE_ENV==="development"&&(console.log("----------.env-----------"),console.log(process.env),console.log("----------.env-----------")),window&&window.setTimeout(()=>{if(window&&window.location.hash){const a=document.getElementById(window.location.hash.substring(1));a&&a.scrollIntoView({behavior:"auto",block:"start"})}},2e3)},[]),u.useEffect(()=>{i.store.dispatch(v.updateIntl({locale:t,formats:{},messages:c[t??"en"]}))},[t]),t?Object.keys(c).includes(t)?e.jsx(p.Provider,{store:i.store,children:e.jsx(l.IntlProvider,{locale:t,messages:c[t],children:e.jsx(s.AppContextProvider,{getComponent:g.getComponentByNameIgnoreCase,store:i.store,locale:t,children:e.jsx(s.SettingProvider,{locale:t,changeUUID:null,children:e.jsxs(s.SettingsConsumer,{children:[e.jsx(q.CustomizerWrapper,{children:e.jsx(w,{})}),e.jsx(r.Outlet,{})]})})})},t)}):e.jsx(r.Navigate,{to:`/${n}${m}`,replace:!0}):e.jsx(r.Navigate,{to:n,replace:!0})};exports.default=C;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),u=require("react"),r=require("react-router"),g=require("../embeddable/index.js"),l=require("react-intl"),s=require("@devgateway/wp-react-lib"),p=require("react-redux");require("semantic-ui-react");require("../utils/AppMedia.js");require("./Footer.js");require("./Header.js");const q=require("./Customizer.js");require("./Favicon.js");const f=require("../conf/index.js"),h=require("../translations/en.json.js"),x=require("../translations/fr.json.js"),j=require("../translations/af.json.js"),v=require("../lib/react-intl-redux/index.js");require("immutable");const i=require("../redux/store.js"),c={en:h,fr:x,am:j};l.injectIntl(o=>(document.title=o.settings.description,e.jsx(e.Fragment,{})));const w=()=>{const o=r.useParams(),d=r.useLocation(),n=f.Config.DEFAULT_LOCALE;console.log("defaultLocale",n);const t=o.lan,m=d.pathname;return console.log("pathParams",JSON.stringify(o.lan)),u.useEffect(()=>{process.env.NODE_ENV==="development"&&(console.log("----------.env-----------"),console.log(process.env),console.log("----------.env-----------")),window&&window.setTimeout(()=>{if(window&&window.location.hash){const a=document.getElementById(window.location.hash.substring(1));a&&a.scrollIntoView({behavior:"auto",block:"start"})}},2e3)},[]),u.useEffect(()=>{i.store.dispatch(v.updateIntl({locale:t,formats:{},messages:c[t??"en"]}))},[t]),t?Object.keys(c).includes(t)?e.jsx(p.Provider,{store:i.store,children:e.jsx(l.IntlProvider,{locale:t,messages:c[t],children:e.jsx(s.AppContextProvider,{getComponent:g.getComponentByNameIgnoreCase,store:i.store,locale:t,children:e.jsx(s.SettingProvider,{locale:t,changeUUID:null,children:e.jsxs(s.SettingsConsumer,{children:[e.jsx(q.CustomizerWrapper,{}),e.jsx(r.Outlet,{})]})})})},t)}):e.jsx(r.Navigate,{to:`/${n}${m}`,replace:!0}):e.jsx(r.Navigate,{to:n,replace:!0})};exports.default=w;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime");function n({siteLogo:r}){return e.jsx(e.Fragment,{children:r&&e.jsxs(e.Fragment,{children:[e.jsx("link",{rel:"icon",type:"image/x-icon",href:r}),e.jsx("link",{rel:"apple-touch-icon",href:r}),e.jsx("link",{rel:"shortcut",href:r})]})})}exports.default=n;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),l=require("../ResponsiveContainer.js"),t=require("@devgateway/wp-react-lib"),o=require("react-router"),v=({header:n,footer:i})=>{const c=o.useLocation(),e=o.useParams(),s=new URLSearchParams(c.search),a=s.get("preview"),u=e.type=="post"?"posts":e.type,p=s.get("_wpnonce");return r.jsx(l.default,{header:n,footer:i,children:r.jsx(t.PostProvider,{type:u,store:"preview",perPage:1,view:a,locale:e.lan,previewNonce:p,previewId:e.id,children:r.jsx(t.PostConsumer,{children:r.jsx(t.Post,{preview:!0,showIntro:!0})})})})};exports.default=v;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),d=require("../ResponsiveContainer.js"),t=require("@devgateway/wp-react-lib"),s=require("react-router"),v=n=>{const{header:i,footer:c}=n,a=s.useLocation(),e=s.useParams(),o=new URLSearchParams(a.search),u=o.get("preview"),p=e.type=="post"?"posts":e.type,l=o.get("_wpnonce");return r.jsx(d.default,{header:i,footer:c,children:r.jsx(t.PostProvider,{type:p,store:"preview",perPage:1,view:u,locale:e.lan,previewNonce:l,previewId:e.id,children:r.jsx(t.PostConsumer,{children:r.jsx(t.Post,{preview:!0,showIntro:!0})})})})};exports.default=v;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),r=require("@devgateway/wp-react-lib"),u=require("react-router"),i=require("../ResponsiveContainer.js"),a=({header:s,footer:n})=>{const{lan:o,slug:t}=u.useParams();return e.jsx(r.PageProvider,{locale:o,slug:t,store:t,children:e.jsx(i.default,{header:s,footer:n,children:e.jsx(r.PageConsumer,{children:e.jsx(r.Page,{})})})})};exports.default=a;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),t=require("@devgateway/wp-react-lib"),l=require("react-router"),i=require("../ResponsiveContainer.js"),c=({header:n,footer:s,pages:r}={})=>{const{lan:o,slug:u}=l.useParams();return r?e.jsx(i.default,{header:n,footer:s,children:e.jsx(t.Page,{pages:typeof r=="object"?[r]:r})}):e.jsx(t.PageProvider,{locale:o,slug:u,store:u,children:e.jsx(i.default,{header:n,footer:s,children:e.jsx(t.PageConsumer,{children:e.jsx(t.Page,{})})})})};exports.default=c;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),u=require("react-router"),i=require("../ResponsiveContainer.js"),r=require("@devgateway/wp-react-lib"),l=({header:s,footer:o})=>{const{lan:n,slug:t}=u.useParams();return e.jsx(r.PostProvider,{slug:t,store:t,locale:n,children:e.jsx(i.default,{header:s,footer:o,children:e.jsx(r.PostConsumer,{children:e.jsx(r.Post,{})})})})};exports.default=l;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),t=require("react-router");require("semantic-ui-react");const u=require("@devgateway/wp-react-lib");require("../../utils/AppMedia.js");require("../Footer.js");require("../Header.js");require("react");const i=({header:o,footer:s,posts:e}={})=>{const{lan:a,slug:n}=t.useParams();if(e)return r.jsx(u.Post,{posts:e})};exports.default=i;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./ResponsiveContainer.js"),r=require("./ScrollTop.js"),o=require("./containers/PreviewPageContainer.js"),t=require("./containers/PreviewTypeContainer.js"),n=require("./containers/SlugContainer.js"),i=require("./containers/SlugPostContainer.js"),u=require("./Customizer.js"),a=require("./Layout.js"),l=require("./PreviewComponent.js"),s=require("./Favicon.js"),c=require("./Loading.js");exports.default=e.default;exports.ScrollToTop=r.default;exports.PreviewPageContainer=o.default;exports.PreviewTypeContainer=t.default;exports.SlugContainer=n.default;exports.SlugPostContainer=i.default;exports.CustomizerWrapper=u.CustomizerWrapper;exports.RootLayout=a.default;exports.PreviewComponent=l.default;exports.Favicon=s.default;exports.Loading=c.default;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./ResponsiveContainer.js"),r=require("./ScrollTop.js"),o=require("./containers/PreviewPageContainer.js"),t=require("./containers/PreviewTypeContainer.js"),n=require("./containers/SlugContainer.js"),i=require("./containers/SlugPostContainer.js"),u=require("./Customizer.js"),a=require("./Layout.js"),l=require("./PreviewComponent.js"),s=require("./Favicon.js"),c=require("./SSRFavicon.js"),d=require("./Loading.js");exports.default=e.default;exports.ScrollToTop=r.default;exports.PreviewPageContainer=o.default;exports.PreviewTypeContainer=t.default;exports.SlugContainer=n.default;exports.SlugPostContainer=i.default;exports.CustomizerWrapper=u.CustomizerWrapper;exports.RootLayout=a.default;exports.PreviewComponent=l.default;exports.Favicon=s.default;exports.SSRFavicon=c.default;exports.Loading=d.default;
@@ -1,44 +1,52 @@
1
- import { jsx as a, jsxs as at } from "react/jsx-runtime";
2
- import { PostProvider as bt, PostConsumer as xt } from "@devgateway/wp-react-lib";
3
- import Ct from "../connected-templates/PostIntro.js";
4
- import { useRef as st, useState as q, useCallback as G, useLayoutEffect as wt } from "react";
5
- import { Container as Tt, Modal as U } from "semantic-ui-react";
1
+ import { jsx as r, jsxs as at } from "react/jsx-runtime";
2
+ import { PostProvider as bt, PostConsumer as Ct } from "@devgateway/wp-react-lib";
3
+ import xt from "../connected-templates/PostIntro.js";
4
+ import { useState as z, useEffect as wt, useRef as st, useCallback as G, useLayoutEffect as Tt } from "react";
5
+ import { Container as vt, Modal as U } from "semantic-ui-react";
6
6
  import * as p from "d3";
7
- import { useWindowDimensionsAndDevice as vt } from "../../lib/hooks/window-dimensions.js";
8
- import { useScreenOrientation as Pt } from "../../lib/hooks/screen-orientation.js";
9
- const $t = {
7
+ import { useWindowDimensionsAndDevice as Pt } from "../../lib/hooks/window-dimensions.js";
8
+ import { useScreenOrientation as $t } from "../../lib/hooks/screen-orientation.js";
9
+ import "../../utils/AppMedia.js";
10
+ import "../../layout/Footer.js";
11
+ import "../../layout/Header.js";
12
+ import "react-router";
13
+ import "../../layout/Layout.js";
14
+ import "../index.js";
15
+ import "../../layout/Favicon.js";
16
+ import Dt from "../../layout/Loading.js";
17
+ const Wt = {
10
18
  visibility: "visible",
11
19
  position: "relative",
12
20
  height: "auto",
13
21
  width: "auto"
14
- }, Dt = 0, Wt = (T) => {
22
+ }, Ht = 0, It = (h) => {
15
23
  let {
16
- posts: s,
17
- lineWidth: v,
24
+ posts: a,
25
+ lineWidth: m,
18
26
  lineColor: P,
19
27
  config: c,
20
- marginLeft: L,
21
- marginTop: N,
28
+ marginLeft: N,
29
+ marginTop: R,
22
30
  marginRight: J,
23
- marginBottom: R,
24
- fontSize: y,
25
- subtitleWidth: _,
26
- subtitleHeight: b,
31
+ marginBottom: _,
32
+ fontSize: C,
33
+ subtitleWidth: B,
34
+ subtitleHeight: x,
27
35
  enableTitlePopup: $,
28
36
  enableCirclePopup: D,
29
37
  enableDefaultPopup: V,
30
38
  closePopupOnMouseOut: X,
31
39
  unique: u
32
- } = T;
33
- _ = 250;
34
- const x = st(), W = st(), [H, f] = q(!1), [I, O] = q(0), [k, B] = q(null), { orientation: g } = Pt(), { width: Y, deviceType: h, height: S } = vt({
40
+ } = h;
41
+ B = 250;
42
+ const w = st(), W = st(), [H, g] = z(!1), [I, O] = z(0), [S, j] = z(null), { orientation: y } = $t(), { width: Y, deviceType: f, height: k } = Pt({
35
43
  getDeviceType: !0,
36
44
  getHeight: !0
37
- }), j = G((t) => `circle${u}${t}`, [u]), ct = G((t) => `title${u}${t}`, [u]), dt = (t) => {
45
+ }), F = G((t) => `circle${u}${t}`, [u]), ct = G((t) => `title${u}${t}`, [u]), dt = (t) => {
38
46
  var i;
39
47
  return ((i = c[t]) == null ? void 0 : i.size) || 10;
40
48
  }, pt = ({ content: t, isOpen: i, style: l }) => {
41
- const m = (n) => (n = n.replace(
49
+ const b = (n) => (n = n.replace(
42
50
  /<ul(.*?)>/g,
43
51
  '<ul class="has-white-color has-text-color has-standard-14-font-size" style="list-style-type:disc !important; list-style: initial !important; padding-left:20px; color:#fefefe;">'
44
52
  ), n = n.replace(/<a(.*?)>/g, '<a$1 style="color:#fefefe;">'), n);
@@ -46,7 +54,7 @@ const $t = {
46
54
  U,
47
55
  {
48
56
  open: i,
49
- onClose: () => f(!1),
57
+ onClose: () => g(!1),
50
58
  size: "fullscreen",
51
59
  closeIcon: !0,
52
60
  centered: !0,
@@ -57,14 +65,14 @@ const $t = {
57
65
  ...l
58
66
  },
59
67
  children: [
60
- /* @__PURE__ */ a(U.Header, { style: { ...l, borderBottom: "none" } }),
61
- /* @__PURE__ */ a(
68
+ /* @__PURE__ */ r(U.Header, { style: { ...l, borderBottom: "none" } }),
69
+ /* @__PURE__ */ r(
62
70
  U.Content,
63
71
  {
64
72
  className: "styled-list-content",
65
73
  style: { ...l },
66
74
  dangerouslySetInnerHTML: {
67
- __html: m(
75
+ __html: b(
68
76
  t.props.children.props.post.content.rendered
69
77
  )
70
78
  }
@@ -79,35 +87,35 @@ const $t = {
79
87
  return (i = c[t]) == null ? void 0 : i.circleColor;
80
88
  }, Q = (t) => c[t].titleColor, Z = (t) => c[t].lineColor, tt = (t) => c[t].tooltipFontColor || "#fff", ut = (t) => c[t].readMoreLabel, et = G((t, i) => {
81
89
  t.preventDefault();
82
- const l = 260, m = 50;
90
+ const l = 260, b = 50;
83
91
  let n = [0, 0];
84
92
  if (t) {
85
- const C = t.target.getBoundingClientRect(), A = t.target.closest(".time").getBoundingClientRect(), r = C.left - A.left, w = C.top + A.top;
86
- n = [r + l, w + m];
93
+ const T = t.target.getBoundingClientRect(), A = t.target.closest(".time").getBoundingClientRect(), s = T.left - A.left, v = T.top + A.top;
94
+ n = [s + l, v + b];
87
95
  const M = 400;
88
- C.left + r + M + l > window.innerWidth && (n[0] = r - M * 0.6);
96
+ T.left + s + M + l > window.innerWidth && (n[0] = s - M * 0.6);
89
97
  }
90
- f(!0), B({ data: i, id: i.id, position: n }), gt(i.id);
91
- }, []), ht = () => {
92
- f(!1);
93
- }, ft = (t) => {
94
- p.selectAll(`#${j(t)}`).style("stroke", "none").style("fill", K(t)), p.selectAll(`#label${t}`).style("font-weight", "normal");
95
- }, gt = (t) => {
96
- ft(Dt), p.selectAll(`#${j(t)}`).style("stroke", K(t)).style("fill", "#fff"), p.selectAll(`#label${t}`).style("font-weight", "bold");
98
+ g(!0), j({ data: i, id: i.id, position: n }), mt(i.id);
99
+ }, []), ft = () => {
100
+ g(!1);
101
+ }, ht = (t) => {
102
+ p.selectAll(`#${F(t)}`).style("stroke", "none").style("fill", K(t)), p.selectAll(`#label${t}`).style("font-weight", "normal");
103
+ }, mt = (t) => {
104
+ ht(Ht), p.selectAll(`#${F(t)}`).style("stroke", K(t)).style("fill", "#fff"), p.selectAll(`#label${t}`).style("font-weight", "bold");
97
105
  };
98
- return wt(() => {
106
+ return Tt(() => {
99
107
  var nt;
100
108
  const t = {
101
- top: N,
102
- bottom: R
103
- }, i = x.current.clientWidth, l = W.current.clientWidth;
109
+ top: R,
110
+ bottom: _
111
+ }, i = w.current.clientWidth, l = W.current.clientWidth;
104
112
  l > 0 && O(l);
105
- const m = S, n = {
113
+ const b = k, n = {
106
114
  mobile: "75",
107
115
  tablet: "150",
108
116
  midTablet: "150",
109
117
  laptop: "150"
110
- }, C = {
118
+ }, T = {
111
119
  mobile: "250",
112
120
  tablet: "350",
113
121
  midTablet: "350",
@@ -117,71 +125,71 @@ const $t = {
117
125
  tablet: 30,
118
126
  midTablet: 30,
119
127
  laptop: 40
120
- }, r = p.scaleLinear().domain([0, s.length - 1]).range([t.top, m - t.bottom]), w = p.select(x.current);
121
- w.selectAll("*").remove(), w.attr("width", i).attr("height", m);
122
- const M = p.line(), mt = [
123
- [0, r(0)],
124
- [0, r(s.length - 1)]
125
- ], yt = M(mt);
126
- let ot = `translate(${n[h]},0)`;
127
- ((nt = process.env.REACT_APP_THEME) == null ? void 0 : nt.startsWith("cd")) && (ot = `translate(${n[h]},20)`);
128
- const z = w.append("g").attr("transform", ot);
129
- P = "#E4E5EA", v = 6, z.append("path").attr("d", yt).attr("stroke-width", v).attr("stroke", P).attr("class", "timeline-path"), z.selectAll(".circle").data(s).enter().append("circle").attr("id", (o, e) => j(e)).attr("cx", 0).attr("class", "timeline-circle").attr("cy", (o, e) => r(e)).attr("r", (o, e) => dt(e)).style("fill", (o, e) => {
128
+ }, s = p.scaleLinear().domain([0, a.length - 1]).range([t.top, b - t.bottom]), v = p.select(w.current);
129
+ v.selectAll("*").remove(), v.attr("width", i).attr("height", b);
130
+ const M = p.line(), gt = [
131
+ [0, s(0)],
132
+ [0, s(a.length - 1)]
133
+ ], yt = M(gt);
134
+ let ot = `translate(${n[f]},0)`;
135
+ ((nt = process.env.REACT_APP_THEME) == null ? void 0 : nt.startsWith("cd")) && (ot = `translate(${n[f]},20)`);
136
+ const E = v.append("g").attr("transform", ot);
137
+ P = "#E4E5EA", m = 6, E.append("path").attr("d", yt).attr("stroke-width", m).attr("stroke", P).attr("class", "timeline-path"), E.selectAll(".circle").data(a).enter().append("circle").attr("id", (o, e) => F(e)).attr("cx", 0).attr("class", "timeline-circle").attr("cy", (o, e) => s(e)).attr("r", (o, e) => dt(e)).style("fill", (o, e) => {
130
138
  var d;
131
139
  return ((d = c[e]) == null ? void 0 : d.circleColor) || "#000";
132
140
  }).style("cursor", D ? "pointer" : "default").on("click", (o, e) => {
133
141
  o.preventDefault(), D && et(o, e);
134
- }), z.selectAll(".title").data(s).enter().append("foreignObject").attr("x", A[h]).attr("y", (o, e) => r(e) - Number.parseInt(b) / 2).attr("width", Number.parseInt(C[h])).attr("height", Number.parseInt(b)).attr("class", "timeline-title").append("xhtml:div").attr("id", (o, e) => ct(e)).style("font-size", `${Number.parseInt(y) + 1}px`).style("color", (o, e) => Q(e)).style("font-weight", "bold").style("line-height", "1.2rem").style("text-align", "left").style("cursor", $ ? "pointer" : "default").style("overflow", "hidden").style("display", "-webkit-box").style("-webkit-line-clamp", "2").style("-webkit-box-orient", "vertical").style("text-overflow", "ellipsis").style("overflow-wrap", "break-word").html((o, e) => {
142
+ }), E.selectAll(".title").data(a).enter().append("foreignObject").attr("x", A[f]).attr("y", (o, e) => s(e) - Number.parseInt(x) / 2).attr("width", Number.parseInt(T[f])).attr("height", Number.parseInt(x)).attr("class", "timeline-title").append("xhtml:div").attr("id", (o, e) => ct(e)).style("font-size", `${Number.parseInt(C) + 1}px`).style("color", (o, e) => Q(e)).style("font-weight", "bold").style("line-height", "1.2rem").style("text-align", "left").style("cursor", $ ? "pointer" : "default").style("overflow", "hidden").style("display", "-webkit-box").style("-webkit-line-clamp", "2").style("-webkit-box-orient", "vertical").style("text-overflow", "ellipsis").style("overflow-wrap", "break-word").html((o, e) => {
135
143
  const d = ut(e);
136
- let E = o.title.rendered;
137
- return d && (E += `<br><span style="font-size:${Number.parseInt(y) - 3}px;color:${Q(
144
+ let L = o.title.rendered;
145
+ return d && (L += `<br><span style="font-size:${Number.parseInt(C) - 3}px;color:${Q(
138
146
  e
139
- )};text-decoration:underline;text-underline-offset:3px">${d}</span>`), E;
147
+ )};text-decoration:underline;text-underline-offset:3px">${d}</span>`), L;
140
148
  }).each(function(o, e) {
141
149
  const d = p.select(this.parentNode);
142
150
  setTimeout(() => {
143
- const E = this.getBoundingClientRect(), rt = Math.min(
144
- E.height,
145
- Number.parseInt(b) * 2
151
+ const L = this.getBoundingClientRect(), rt = Math.min(
152
+ L.height,
153
+ Number.parseInt(x) * 2
146
154
  );
147
- d.attr("height", rt), d.attr("y", r(e) - rt / 2);
155
+ d.attr("height", rt), d.attr("y", s(e) - rt / 2);
148
156
  }, 0);
149
157
  }).on("click", (o, e, d) => {
150
158
  o.preventDefault(), $ && et(o, e);
151
159
  });
152
- const it = +y + 1, lt = 60, F = it * 0.9;
153
- z.selectAll(".year-fo").data(s).enter().append("foreignObject").attr("class", "year-fo").attr("x", -70).attr("y", (o, e) => r(e) - F / 2).attr("width", lt).attr("height", F).append("xhtml:div").style("display", "flex").style("align-items", "center").style("justify-content", "flex-end").style("width", `${lt}px`).style("height", `${F}px`).style("font-size", `${it}px`).style("line-height", "1em").style("font-weight", "400").style("color", "#4C4D50").html((o) => o.meta_fields.subtitle);
154
- }, [h, g]), /* @__PURE__ */ at(
160
+ const it = +C + 1, lt = 60, q = it * 0.9;
161
+ E.selectAll(".year-fo").data(a).enter().append("foreignObject").attr("class", "year-fo").attr("x", -70).attr("y", (o, e) => s(e) - q / 2).attr("width", lt).attr("height", q).append("xhtml:div").style("display", "flex").style("align-items", "center").style("justify-content", "flex-end").style("width", `${lt}px`).style("height", `${q}px`).style("font-size", `${it}px`).style("line-height", "1em").style("font-weight", "400").style("color", "#4C4D50").html((o) => o.meta_fields.subtitle);
162
+ }, [f, y]), /* @__PURE__ */ at(
155
163
  "div",
156
164
  {
157
165
  className: "time line",
158
166
  style: { position: "relative" },
159
167
  ref: W,
160
168
  children: [
161
- s.filter((t) => k && k.id === t.id).map((t) => {
162
- const i = t.slug || "unknown-slug", l = s.indexOf(t);
163
- return /* @__PURE__ */ a(
169
+ a.filter((t) => S && S.id === t.id).map((t) => {
170
+ const i = t.slug || "unknown-slug", l = a.indexOf(t);
171
+ return /* @__PURE__ */ r(
164
172
  pt,
165
173
  {
166
174
  isOpen: H,
167
- content: /* @__PURE__ */ a(
175
+ content: /* @__PURE__ */ r(
168
176
  "div",
169
177
  {
170
178
  style: {
171
179
  backgroundColor: Z(l),
172
180
  color: tt(l)
173
181
  },
174
- children: /* @__PURE__ */ a(
175
- Ct,
182
+ children: /* @__PURE__ */ r(
183
+ xt,
176
184
  {
177
185
  post: t,
178
- style: $t
186
+ style: Wt
179
187
  },
180
188
  i
181
189
  )
182
190
  }
183
191
  ),
184
- closeTooltip: ht,
192
+ closeTooltip: ft,
185
193
  style: {
186
194
  backgroundColor: Z(l),
187
195
  color: tt(l)
@@ -190,81 +198,86 @@ const $t = {
190
198
  `${i}_modal`
191
199
  );
192
200
  }),
193
- /* @__PURE__ */ a("svg", { height: S, width: I, ref: x })
201
+ /* @__PURE__ */ r("svg", { height: k, width: I, ref: w })
194
202
  ]
195
203
  },
196
- u + h + g
204
+ u + f + y
197
205
  );
198
- }, Et = (T) => {
206
+ }, Ot = (h) => {
199
207
  const {
200
- "data-type": s,
201
- "data-taxonomy": v,
208
+ "data-type": a,
209
+ "data-taxonomy": m,
202
210
  "data-categories": P,
203
211
  "data-items": c,
204
- "data-height": L,
205
- "data-line-color": N = "#000",
212
+ "data-height": N,
213
+ "data-line-color": R = "#000",
206
214
  "data-config": J = "{}",
207
- "data-position": R = "middle",
208
- "data-line-width": y = "1",
209
- "data-margin-left": _ = 50,
210
- "data-margin-top": b = 25,
215
+ "data-position": _ = "middle",
216
+ "data-line-width": C = "1",
217
+ "data-margin-left": B = 50,
218
+ "data-margin-top": x = 25,
211
219
  "data-margin-right": $ = 50,
212
220
  "data-margin-bottom": D = 25,
213
221
  "data-font-size": V = 14,
214
222
  "data-title-width": X = 100,
215
223
  "data-title-height": u = 50,
216
- "data-subtitle-width": x = 250,
224
+ "data-subtitle-width": w = 250,
217
225
  "data-subtitle-height": W = 60,
218
226
  "data-enable-title-popup": H = "false",
219
- "data-enable-circle-popup": f = "true",
227
+ "data-enable-circle-popup": g = "true",
220
228
  "data-enable-default-popup": I = "false",
221
229
  "data-close-popup-on-mouse-out": O = "false",
222
- editing: k,
223
- parent: B,
224
- unique: g
225
- } = T, Y = T.intl.locale, S = {
226
- unique: g || Math.random().toString(36).substring(2, 9),
227
- marginLeft: _,
228
- marginTop: b,
230
+ editing: S,
231
+ parent: j,
232
+ unique: y
233
+ } = h, Y = h.intl.locale, k = {
234
+ unique: y || Math.random().toString(36).substring(2, 9),
235
+ marginLeft: B,
236
+ marginTop: x,
229
237
  marginRight: $,
230
238
  marginBottom: D,
231
- lineWidth: y,
232
- height: L,
233
- position: R,
234
- lineColor: decodeURIComponent(N),
239
+ lineWidth: C,
240
+ height: N,
241
+ position: _,
242
+ lineColor: decodeURIComponent(R),
235
243
  config: JSON.parse(decodeURIComponent(J)),
236
244
  fontSize: V,
237
245
  titleWidth: X,
238
246
  titleHeight: u,
239
- subtitleWidth: x,
247
+ subtitleWidth: w,
240
248
  subtitleHeight: W,
241
249
  enableTitlePopup: H == !0 || H == "true",
242
- enableCirclePopup: f == !0 || f == "true",
250
+ enableCirclePopup: g == !0 || g == "true",
243
251
  enableDefaultPopup: I == !0 || I == "true",
244
252
  closePopupOnMouseOut: O == !0 || O == "true"
245
253
  };
246
- return /* @__PURE__ */ a(
247
- Tt,
254
+ return /* @__PURE__ */ r(
255
+ vt,
248
256
  {
249
- style: { height: `${L}px` },
250
- className: `viz time line ${k ? "editing" : ""}`,
257
+ style: { height: `${N}px` },
258
+ className: `viz time line ${S ? "editing" : ""}`,
251
259
  fluid: !0,
252
- children: /* @__PURE__ */ a(
260
+ children: /* @__PURE__ */ r(
253
261
  bt,
254
262
  {
255
263
  locale: Y,
256
- type: s,
257
- taxonomy: v,
264
+ type: a,
265
+ taxonomy: m,
258
266
  categories: P,
259
- store: `carousel_${B}_${g}`,
267
+ store: `carousel_${j}_${y}`,
260
268
  page: 1,
261
269
  perPage: c,
262
- children: /* @__PURE__ */ a(xt, { children: /* @__PURE__ */ a(Wt, { ...S }) })
270
+ children: /* @__PURE__ */ r(Ct, { children: /* @__PURE__ */ r(It, { ...k }) })
263
271
  }
264
272
  )
265
273
  }
266
274
  );
275
+ }, Jt = (h) => {
276
+ const [a, m] = z(!1);
277
+ return wt(() => {
278
+ m(!0);
279
+ }, []), a ? /* @__PURE__ */ r(Ot, { ...h }) : /* @__PURE__ */ r(Dt, {});
267
280
  };
268
281
  export {
269
- Et as default
282
+ Jt as default
270
283
  };
@@ -221,7 +221,7 @@ const ee = ({ posts: r, activeItem: c, setActive: g, colors: p }) => {
221
221
  E(v()), N(window.innerWidth <= 1365);
222
222
  }, 100);
223
223
  };
224
- R(() => (window.screen.orientation && window.screen.orientation.addEventListener(
224
+ R(() => (window && window.screen.orientation && window.screen.orientation.addEventListener(
225
225
  "change",
226
226
  T
227
227
  ), window.addEventListener("resize", T), () => {
@@ -11,22 +11,24 @@ import "./Footer.js";
11
11
  import "./Header.js";
12
12
  import { CustomizerWrapper as E } from "./Customizer.js";
13
13
  import "./Favicon.js";
14
- import { Config as j } from "../conf/index.js";
15
- import * as b from "../translations/en.json.js";
16
- import * as x from "../translations/fr.json.js";
17
- import * as y from "../translations/af.json.js";
18
- import { updateIntl as N } from "../lib/react-intl-redux/index.js";
14
+ import { Config as y } from "../conf/index.js";
15
+ import * as N from "../translations/en.json.js";
16
+ import * as O from "../translations/fr.json.js";
17
+ import * as b from "../translations/af.json.js";
18
+ import { updateIntl as j } from "../lib/react-intl-redux/index.js";
19
19
  import "immutable";
20
20
  import { store as n } from "../redux/store.js";
21
21
  const i = {
22
- en: b,
23
- fr: x,
24
- am: y
25
- }, O = v((t) => (document.title = t.settings.description, /* @__PURE__ */ e(p, {}))), J = () => {
26
- const t = d(), l = u(), r = j.DEFAULT_LOCALE;
22
+ en: N,
23
+ fr: O,
24
+ am: b
25
+ };
26
+ v((t) => (document.title = t.settings.description, /* @__PURE__ */ e(p, {})));
27
+ const G = () => {
28
+ const t = d(), l = u(), r = y.DEFAULT_LOCALE;
27
29
  console.log("defaultLocale", r);
28
30
  const o = t.lan, c = l.pathname;
29
- return console.log("pathParams", t), m(() => {
31
+ return console.log("pathParams", JSON.stringify(t.lan)), m(() => {
30
32
  process.env.NODE_ENV === "development" && (console.log("----------.env-----------"), console.log(process.env), console.log("----------.env-----------")), window && window.setTimeout(() => {
31
33
  if (window && window.location.hash) {
32
34
  const s = document.getElementById(window.location.hash.substring(1));
@@ -34,12 +36,12 @@ const i = {
34
36
  }
35
37
  }, 2e3);
36
38
  }, []), m(() => {
37
- n.dispatch(N({ locale: o, formats: {}, messages: i[o ?? "en"] }));
39
+ n.dispatch(j({ locale: o, formats: {}, messages: i[o ?? "en"] }));
38
40
  }, [o]), o ? Object.keys(i).includes(o) ? /* @__PURE__ */ e(P, { store: n, children: /* @__PURE__ */ e(w, { locale: o, messages: i[o], children: /* @__PURE__ */ e(C, { getComponent: h, store: n, locale: o, children: /* @__PURE__ */ e(I, { locale: o, changeUUID: null, children: /* @__PURE__ */ f(L, { children: [
39
- /* @__PURE__ */ e(E, { children: /* @__PURE__ */ e(O, {}) }),
41
+ /* @__PURE__ */ e(E, {}),
40
42
  /* @__PURE__ */ e(g, {})
41
43
  ] }) }) }) }, o) }) : /* @__PURE__ */ e(a, { to: `/${r}${c}`, replace: !0 }) : /* @__PURE__ */ e(a, { to: r, replace: !0 });
42
44
  };
43
45
  export {
44
- J as default
46
+ G as default
45
47
  };
@@ -0,0 +1,11 @@
1
+ import { jsx as n, Fragment as e, jsxs as l } from "react/jsx-runtime";
2
+ function i({ siteLogo: r }) {
3
+ return /* @__PURE__ */ n(e, { children: r && /* @__PURE__ */ l(e, { children: [
4
+ /* @__PURE__ */ n("link", { rel: "icon", type: "image/x-icon", href: r }),
5
+ /* @__PURE__ */ n("link", { rel: "apple-touch-icon", href: r }),
6
+ /* @__PURE__ */ n("link", { rel: "shortcut", href: r })
7
+ ] }) });
8
+ }
9
+ export {
10
+ i as default
11
+ };