@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.
- package/dist/cjs/embeddable/time-line/mobile.js +1 -1
- package/dist/cjs/embeddable/vertical-featuredtabs/index.js +1 -1
- package/dist/cjs/layout/Layout.js +1 -1
- package/dist/cjs/layout/SSRFavicon.js +1 -0
- package/dist/cjs/layout/containers/PreviewTypeContainer.js +1 -1
- package/dist/cjs/layout/containers/SlugContainer.js +1 -1
- package/dist/cjs/layout/containers/SlugPostContainer.js +1 -1
- package/dist/cjs/layout/index.js +1 -1
- package/dist/esm/embeddable/time-line/mobile.js +121 -108
- package/dist/esm/embeddable/vertical-featuredtabs/index.js +1 -1
- package/dist/esm/layout/Layout.js +16 -14
- package/dist/esm/layout/SSRFavicon.js +11 -0
- package/dist/esm/layout/containers/PreviewTypeContainer.js +11 -11
- package/dist/esm/layout/containers/SlugContainer.js +11 -11
- package/dist/esm/layout/containers/SlugPostContainer.js +13 -16
- package/dist/esm/layout/index.js +8 -6
- package/dist/types/dvz-ui/src/layout/SSRFavicon.d.ts +5 -0
- package/dist/types/{layout → dvz-ui/src/layout}/containers/PreviewTypeContainer.d.ts +1 -1
- package/dist/types/dvz-ui/src/layout/containers/SlugContainer.d.ts +9 -0
- package/dist/types/dvz-ui/src/layout/containers/SlugPostContainer.d.ts +9 -0
- package/dist/types/{layout → dvz-ui/src/layout}/index.d.ts +1 -0
- package/package.json +8 -8
- package/dist/types/layout/containers/SlugContainer.d.ts +0 -7
- package/dist/types/layout/containers/SlugPostContainer.d.ts +0 -7
- /package/dist/types/{api → dvz-ui/src/api}/commons.d.ts +0 -0
- /package/dist/types/{conf → dvz-ui/src/conf}/config.json.d.ts +0 -0
- /package/dist/types/{conf → dvz-ui/src/conf}/index.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/Dummy.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/agree-and-download/index.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/big-number/index.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/big-number-trend/index.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/Background.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/Blood.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/Bounds.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/Brain.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/Ectopic.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/Erectile.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/Eyes.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/Head.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/Heart.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/Larynx.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/Liver.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/Lungs.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/Stomach.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/index.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/Bar.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/Bump.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/CSVDataFrame.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/DelayedRender.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/Diverging.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/Legends.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/Line.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/LineLayer.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/Messages.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/Pie.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/Radar.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/Radar2.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/Sunburst.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/Tooltip.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/UserMeasures.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/colors/CategoricalColors.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/colors/ColorProvider.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/colors/Colors.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/colors/ManualColors.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/colors/PlainColor.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/colors/SequentialColors.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/colors/SystemColors.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/data/Bar.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/data/Line.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/data/Pie.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/data/Utils.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/data/index.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/index.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/prevalenceBuilder.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/child-page-menu/index.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/common/ChartTooltip.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/common/MapTooltip.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/common/Messages.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/common/colors/CategoricalColors.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/common/colors/ColorProvider.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/common/colors/Colors.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/common/colors/ManualColors.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/common/colors/PlainColor.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/common/colors/SequentialColors.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/common/colors/SystemColors.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/connected-templates/PostContent.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/connected-templates/PostIntro.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/BaseLayer.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/BreaksStyles.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/DataLayer.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/FlowLayer.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/GradientColors.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/LatLongLayer.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/Layer.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/Legends.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/Map.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/ProjectedContainer.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/Tooltip.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/Utils.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/ZoomControl.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/index.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/data/CategoriesConsumer.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/data/CategoriesProvider.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/data/DataConsumer.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/data/DataConsumerMap.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/data/DataContext.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/data/DataProvider.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/datalabel/index.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/download/dom-to-image.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/download/index.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/downloadPDF/index.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/featuredtabs/index.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/filter/_@deprecated_Components.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/filter/index.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/filter-reset-button/index.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/filters-apply-button/index.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/inlinelist/index.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/map/MapCSVDataFrame.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/map/MapDataFrame.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/map/index.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/map/legend.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/map/map.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/measures/index.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/menu/index.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/new-time-line/index.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/new-time-line/timeline.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/newsletter/index.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/pagegallery/index.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/pagemodules/FloatingNavigator.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/pagemodules/index.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/parallax/index.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/posts-with-filters/DropDownFilter.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/posts-with-filters/Post.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/posts-with-filters/index.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/posts-with-filters/utils.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/postscarousel/index.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/reducers/data-api.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/reducers/data.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/reducers/embeddable-api.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/reducers/embeddable.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/references/Reference.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/references/ReferencesList.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/references/index.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/sankeychart/Sankey.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/sankeychart/index.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/showcase/index.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/superset-chart/index.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/superset-dashboard/index-sdk.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/superset-dashboard/index.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/tabbedposts/index.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/time-line/desktop.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/time-line/index.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/time-line/mobile.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/tooltip/index.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/utils/common.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/utils/parseUtils.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/vertical-featuredtabs/index.d.ts +0 -0
- /package/dist/types/{embeddable → dvz-ui/src/embeddable}/wrapped/index.d.ts +0 -0
- /package/dist/types/{index.d.ts → dvz-ui/src/index.d.ts} +0 -0
- /package/dist/types/{layout → dvz-ui/src/layout}/ClassicHeader.d.ts +0 -0
- /package/dist/types/{layout → dvz-ui/src/layout}/CustomSemanticSearch.d.ts +0 -0
- /package/dist/types/{layout → dvz-ui/src/layout}/Customizer.d.ts +0 -0
- /package/dist/types/{layout → dvz-ui/src/layout}/FavIcon.d.ts +0 -0
- /package/dist/types/{layout → dvz-ui/src/layout}/Favicon.d.ts +0 -0
- /package/dist/types/{layout → dvz-ui/src/layout}/FlexWrapDetector.d.ts +0 -0
- /package/dist/types/{layout → dvz-ui/src/layout}/FloatingMenuHeader.d.ts +0 -0
- /package/dist/types/{layout → dvz-ui/src/layout}/Footer.d.ts +0 -0
- /package/dist/types/{layout → dvz-ui/src/layout}/Header.d.ts +0 -0
- /package/dist/types/{layout → dvz-ui/src/layout}/LangSwitcher.d.ts +0 -0
- /package/dist/types/{layout → dvz-ui/src/layout}/Layout.d.ts +0 -0
- /package/dist/types/{layout → dvz-ui/src/layout}/Loading.d.ts +0 -0
- /package/dist/types/{layout → dvz-ui/src/layout}/PreviewComponent.d.ts +0 -0
- /package/dist/types/{layout → dvz-ui/src/layout}/ResponsiveContainer.d.ts +0 -0
- /package/dist/types/{layout → dvz-ui/src/layout}/ScrollTop.d.ts +0 -0
- /package/dist/types/{layout → dvz-ui/src/layout}/SearchControl.d.ts +0 -0
- /package/dist/types/{layout → dvz-ui/src/layout}/TopNavigator.d.ts +0 -0
- /package/dist/types/{layout → dvz-ui/src/layout}/containers/PreviewPageContainer.d.ts +0 -0
- /package/dist/types/{layout → dvz-ui/src/layout}/containers/index.d.ts +0 -0
- /package/dist/types/{lib → dvz-ui/src/lib}/hooks/resize-observer.d.ts +0 -0
- /package/dist/types/{lib → dvz-ui/src/lib}/hooks/screen-orientation.d.ts +0 -0
- /package/dist/types/{lib → dvz-ui/src/lib}/hooks/window-dimensions.d.ts +0 -0
- /package/dist/types/{lib → dvz-ui/src/lib}/index.d.ts +0 -0
- /package/dist/types/{lib → dvz-ui/src/lib}/react-intl-redux/index.d.ts +0 -0
- /package/dist/types/{lib → dvz-ui/src/lib}/react-intl-redux/providers/IntlProvider.d.ts +0 -0
- /package/dist/types/{lib → dvz-ui/src/lib}/react-intl-redux/providers/Provider.d.ts +0 -0
- /package/dist/types/{lib → dvz-ui/src/lib}/redux-immutable/index.d.ts +0 -0
- /package/dist/types/{lib → dvz-ui/src/lib}/redux-immutable/types.d.ts +0 -0
- /package/dist/types/{lib → dvz-ui/src/lib}/redux-immutable/utils/getStateName.d.ts +0 -0
- /package/dist/types/{lib → dvz-ui/src/lib}/redux-immutable/utils/getUnexpectedInvocationParameterMessage.d.ts +0 -0
- /package/dist/types/{lib → dvz-ui/src/lib}/redux-immutable/utils/index.d.ts +0 -0
- /package/dist/types/{lib → dvz-ui/src/lib}/redux-immutable/utils/validateNextState.d.ts +0 -0
- /package/dist/types/{redux → dvz-ui/src/redux}/hooks.d.ts +0 -0
- /package/dist/types/{redux → dvz-ui/src/redux}/index.d.ts +0 -0
- /package/dist/types/{redux → dvz-ui/src/redux}/reducer.d.ts +0 -0
- /package/dist/types/{redux → dvz-ui/src/redux}/store.d.ts +0 -0
- /package/dist/types/{tools → dvz-ui/src/tools}/serviceWorker.d.ts +0 -0
- /package/dist/types/{tracker → dvz-ui/src/tracker}/index.d.ts +0 -0
- /package/dist/types/{tracker → dvz-ui/src/tracker}/withGoogleAnalytics.d.ts +0 -0
- /package/dist/types/{translations → dvz-ui/src/translations}/af.json.d.ts +0 -0
- /package/dist/types/{translations → dvz-ui/src/translations}/en.json.d.ts +0 -0
- /package/dist/types/{translations → dvz-ui/src/translations}/fr.json.d.ts +0 -0
- /package/dist/types/{translations → dvz-ui/src/translations}/index.d.ts +0 -0
- /package/dist/types/{utils → dvz-ui/src/utils}/AppMedia.d.ts +0 -0
- /package/dist/types/{utils → dvz-ui/src/utils}/countries.d.ts +0 -0
- /package/dist/types/{utils → dvz-ui/src/utils}/data.d.ts +0 -0
- /package/dist/types/{utils → dvz-ui/src/utils}/deviceType.d.ts +0 -0
- /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
|
|
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}
|
|
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"),
|
|
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"),
|
|
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
|
|
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;
|
package/dist/cjs/layout/index.js
CHANGED
|
@@ -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.
|
|
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
|
|
2
|
-
import { PostProvider as bt, PostConsumer as
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { Container as
|
|
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
|
|
8
|
-
import { useScreenOrientation as
|
|
9
|
-
|
|
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
|
-
},
|
|
22
|
+
}, Ht = 0, It = (h) => {
|
|
15
23
|
let {
|
|
16
|
-
posts:
|
|
17
|
-
lineWidth:
|
|
24
|
+
posts: a,
|
|
25
|
+
lineWidth: m,
|
|
18
26
|
lineColor: P,
|
|
19
27
|
config: c,
|
|
20
|
-
marginLeft:
|
|
21
|
-
marginTop:
|
|
28
|
+
marginLeft: N,
|
|
29
|
+
marginTop: R,
|
|
22
30
|
marginRight: J,
|
|
23
|
-
marginBottom:
|
|
24
|
-
fontSize:
|
|
25
|
-
subtitleWidth:
|
|
26
|
-
subtitleHeight:
|
|
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
|
-
} =
|
|
33
|
-
|
|
34
|
-
const
|
|
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
|
-
}),
|
|
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
|
|
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: () =>
|
|
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__ */
|
|
61
|
-
/* @__PURE__ */
|
|
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:
|
|
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,
|
|
90
|
+
const l = 260, b = 50;
|
|
83
91
|
let n = [0, 0];
|
|
84
92
|
if (t) {
|
|
85
|
-
const
|
|
86
|
-
n = [
|
|
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
|
-
|
|
96
|
+
T.left + s + M + l > window.innerWidth && (n[0] = s - M * 0.6);
|
|
89
97
|
}
|
|
90
|
-
|
|
91
|
-
}, []),
|
|
92
|
-
|
|
93
|
-
},
|
|
94
|
-
p.selectAll(`#${
|
|
95
|
-
},
|
|
96
|
-
|
|
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
|
|
106
|
+
return Tt(() => {
|
|
99
107
|
var nt;
|
|
100
108
|
const t = {
|
|
101
|
-
top:
|
|
102
|
-
bottom:
|
|
103
|
-
}, i =
|
|
109
|
+
top: R,
|
|
110
|
+
bottom: _
|
|
111
|
+
}, i = w.current.clientWidth, l = W.current.clientWidth;
|
|
104
112
|
l > 0 && O(l);
|
|
105
|
-
const
|
|
113
|
+
const b = k, n = {
|
|
106
114
|
mobile: "75",
|
|
107
115
|
tablet: "150",
|
|
108
116
|
midTablet: "150",
|
|
109
117
|
laptop: "150"
|
|
110
|
-
},
|
|
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
|
-
},
|
|
121
|
-
|
|
122
|
-
const M = p.line(),
|
|
123
|
-
[0,
|
|
124
|
-
[0,
|
|
125
|
-
], yt = M(
|
|
126
|
-
let ot = `translate(${n[
|
|
127
|
-
((nt = process.env.REACT_APP_THEME) == null ? void 0 : nt.startsWith("cd")) && (ot = `translate(${n[
|
|
128
|
-
const
|
|
129
|
-
P = "#E4E5EA",
|
|
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
|
-
}),
|
|
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
|
|
137
|
-
return d && (
|
|
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>`),
|
|
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
|
|
144
|
-
|
|
145
|
-
Number.parseInt(
|
|
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",
|
|
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 = +
|
|
153
|
-
|
|
154
|
-
}, [
|
|
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
|
-
|
|
162
|
-
const i = t.slug || "unknown-slug", l =
|
|
163
|
-
return /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
175
|
-
|
|
182
|
+
children: /* @__PURE__ */ r(
|
|
183
|
+
xt,
|
|
176
184
|
{
|
|
177
185
|
post: t,
|
|
178
|
-
style:
|
|
186
|
+
style: Wt
|
|
179
187
|
},
|
|
180
188
|
i
|
|
181
189
|
)
|
|
182
190
|
}
|
|
183
191
|
),
|
|
184
|
-
closeTooltip:
|
|
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__ */
|
|
201
|
+
/* @__PURE__ */ r("svg", { height: k, width: I, ref: w })
|
|
194
202
|
]
|
|
195
203
|
},
|
|
196
|
-
u +
|
|
204
|
+
u + f + y
|
|
197
205
|
);
|
|
198
|
-
},
|
|
206
|
+
}, Ot = (h) => {
|
|
199
207
|
const {
|
|
200
|
-
"data-type":
|
|
201
|
-
"data-taxonomy":
|
|
208
|
+
"data-type": a,
|
|
209
|
+
"data-taxonomy": m,
|
|
202
210
|
"data-categories": P,
|
|
203
211
|
"data-items": c,
|
|
204
|
-
"data-height":
|
|
205
|
-
"data-line-color":
|
|
212
|
+
"data-height": N,
|
|
213
|
+
"data-line-color": R = "#000",
|
|
206
214
|
"data-config": J = "{}",
|
|
207
|
-
"data-position":
|
|
208
|
-
"data-line-width":
|
|
209
|
-
"data-margin-left":
|
|
210
|
-
"data-margin-top":
|
|
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":
|
|
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":
|
|
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:
|
|
223
|
-
parent:
|
|
224
|
-
unique:
|
|
225
|
-
} =
|
|
226
|
-
unique:
|
|
227
|
-
marginLeft:
|
|
228
|
-
marginTop:
|
|
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:
|
|
232
|
-
height:
|
|
233
|
-
position:
|
|
234
|
-
lineColor: decodeURIComponent(
|
|
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:
|
|
247
|
+
subtitleWidth: w,
|
|
240
248
|
subtitleHeight: W,
|
|
241
249
|
enableTitlePopup: H == !0 || H == "true",
|
|
242
|
-
enableCirclePopup:
|
|
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__ */
|
|
247
|
-
|
|
254
|
+
return /* @__PURE__ */ r(
|
|
255
|
+
vt,
|
|
248
256
|
{
|
|
249
|
-
style: { height: `${
|
|
250
|
-
className: `viz time line ${
|
|
257
|
+
style: { height: `${N}px` },
|
|
258
|
+
className: `viz time line ${S ? "editing" : ""}`,
|
|
251
259
|
fluid: !0,
|
|
252
|
-
children: /* @__PURE__ */
|
|
260
|
+
children: /* @__PURE__ */ r(
|
|
253
261
|
bt,
|
|
254
262
|
{
|
|
255
263
|
locale: Y,
|
|
256
|
-
type:
|
|
257
|
-
taxonomy:
|
|
264
|
+
type: a,
|
|
265
|
+
taxonomy: m,
|
|
258
266
|
categories: P,
|
|
259
|
-
store: `carousel_${
|
|
267
|
+
store: `carousel_${j}_${y}`,
|
|
260
268
|
page: 1,
|
|
261
269
|
perPage: c,
|
|
262
|
-
children: /* @__PURE__ */
|
|
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
|
-
|
|
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
|
|
15
|
-
import * as
|
|
16
|
-
import * as
|
|
17
|
-
import * as
|
|
18
|
-
import { updateIntl as
|
|
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:
|
|
23
|
-
fr:
|
|
24
|
-
am:
|
|
25
|
-
}
|
|
26
|
-
|
|
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(
|
|
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, {
|
|
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
|
-
|
|
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
|
+
};
|