2 lines
24 KiB
JavaScript
2 lines
24 KiB
JavaScript
|
"use strict";(self.webpackChunklite=self.webpackChunklite||[]).push([[2420],{7045:(e,n,i)=>{i.d(n,{e:()=>A});var a=i(64467),t=i(96540),d=i(70370),l=i(45458),m=i(6546),o=i(77865),k=i(28072),r=i(44402),s=i(42976),c=i(49728);function u(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,a)}return i}function p(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?u(Object(i),!0).forEach((function(n){(0,a.A)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):u(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}var N={clear:"both"},v={clear:"both",width:"100%"},S=function(e){var n,i,a=e.layoutGroup,d=e.postBodyInserts,l=(0,r.l)(),s=a.styleGroups[0].paragraphViewModels[0].richTextStyle,u=a.styleGroups.map((function(e,n){var i=n<3;return t.createElement(m.xl,{key:n,styleGroup:e,postBodyInserts:d,loading:i?o.u.EAGER:o.u.LAZY})}));if((0,c.GG)(s)||"INLINE"===s)return t.createElement(t.Fragment,null,u);switch(a.effectiveLayout){case"OUTSET_CENTER":case"OUTSET_ROW":return t.createElement("div",{className:l(N)},t.createElement(k.P,{size:{xs:"full",sm:"full",md:"full",lg:"outset",xl:"outset"}},u));case"FULL_WIDTH":return t.createElement("div",{className:l(v)},u);default:return"FULL_PAGE"===s?t.createElement(k.P,{size:"app"},u):t.createElement("div",{className:l((n=a.effectiveLayout,i={boxSizing:"border-box",margin:"0 auto",width:"100%"},"INSET_CENTER"===n?p(p({},i),{},{maxWidth:"700px",padding:"0 1.25em"}):i))},u)}},g=t.memo(S),F=i(11334),h=i(20239),f={":after":{display:"block",content:'""',clear:"both"}},y=i(90383),_=i(40064);function T(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,a)}return i}function P(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?T(Object(i),!0).forEach((function(n){(0,a.A)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):T(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}var D=function(){return{display:"table-cell",paddingBottom:"32px",verticalAlign:"bottom"}};function C(e){var n,i,a,l,m=e.bgImage,o=e.children,k=e.isFullPage,s=e.paragraphName,c=(0,r.l)(),u=(0,h.D)();return m&&m.id&&k?t.createElement(d.B,{name:s,type:"bgimage"},t.createElement("div",{className:c((n=m,i=n.id,a=n.originalWidth,l=n.originalHeight,function(){var e=[400,600,800,1e3,1200,1400,1600,1800,2e3],n={miroId:i,strategy:y.qY.Resample,verticalGradient:{start:29,end:81,opacity:40}},t=e.reduce((function(i,t,d){var m=(0,y.rP)(P(P({},n),{},{width:t,height:t/a*l}));return d===e.length-1?(i.backgroundImage="url(".concat(m,")"),i):(i["@media (min-width: ".concat(t,"px)")]={backgroundImage:"url(".concat(m,")")},i)}),{});return P({backgroundColor:"rgba(0, 0, 0, 0.9)",backgroundPosition:"50% 50%",backgroundSize:"cover",display:"table",minHeight:"100vh",width:"100%"},t)}))},t.createElement("div",{className:c(D)},t.createElement(F.N,{theme:(0,_.lj)(u)},o)))):o}var A=function(e){var n=e.paragraphViewModels,i=e.postBodyInserts,a=e.section,d=(0,r.l)();if(0===n.length)return null;var o=function(e){var n=[],i=[];e.forEach((function(e){var a=function(e,n){switch(n){case s.p5.INSET_LEFT:case s.p5.OUTSET_LEFT:return"IMG"===e||"IFRAME"===e?s.p5.INSET_CENTER:n;case s.p5.OUTSET_ROW_CONTINUE:return s.p5.OUTSET_ROW;default:return n||s.p5.INSET_CENTER}}(e.paragraphStyle,e.paragraph.layout),t=n[n.length-1];if(t&&t.effectiveLayout===a)i.push(e);else{if(t){var d,o=(0,m._t)(i);(d=t.styleGroups).push.apply(d,(0,l.A)(o))}i.length=0,i.push(e),n.push({styleGroups:[],effectiveLayout:a})}}));var a=n[n.length-1];if(a){var t,d=(0,m._t)(i);(t=a.styleGroups).push.apply(t,(0,l.A)(d))}return n}(n)
|
||
|
//# sourceMappingURL=https://stats.medium.build/lite/sourcemaps/2420.2a5e2d95.chunk.js.map
|