tooly-powerdoc-renderer 0.0.9 → 0.0.10

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/.babelrc CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "presets": [
3
3
  "@babel/preset-env",
4
- "@babel/preset-react",
4
+ ["@babel/preset-react", {"runtime": "automatic"}],
5
5
  "@babel/preset-typescript"
6
6
  ],
7
7
  "plugins": ["@emotion"]
package/build/index.js CHANGED
@@ -1 +1,2 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("@emotion/react")):"function"==typeof define&&define.amd?define(["react","@emotion/react"],t):"object"==typeof exports?exports["tooly-powerdoc-renderer"]=t(require("react"),require("@emotion/react")):e["tooly-powerdoc-renderer"]=t(e.react,e["@emotion/react"])}(this,((e,t)=>(()=>{"use strict";var n={435:e=>{e.exports=t},156:t=>{t.exports=e}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var o=r[e]={exports:{}};return n[e](o,o.exports,i),o.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{i.r(o),i.d(o,{DefaultMediaBreakpoints:()=>d,DefaultRenderingContext:()=>p,DefaultSizes:()=>s,DefaultTheme:()=>m,InlineItems:()=>w,LeafElement:()=>x,OccupyFreeSpace:()=>he,PageContent:()=>We,RenderingContext:()=>f,RenderingContextProvider:()=>g,cardStyle:()=>ge,castTheme:()=>v,composeCustomBlockFields:()=>fe,extractCustomBlockFields:()=>pe,useRenderingContext:()=>h});var e=i(156),t=i.n(e),n=i(435);function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===r(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s={screen:{s:320,sm:660,m:990,l:1240},sides:{l:"30px",m:"20px",s:"18px"},zIndex:{popup:1e3},card:{shadow:"0px 4px 4px",borderRadius:"4px"},slider:{gap:{s:"25px",m:"25px",l:"60px"},disableFullWidth:!1}},u=function(e){return{s:"(max-width: ".concat(e.s-1,"px)"),sm:"(min-width: ".concat(e.s,"px) and (max-width: ").concat(e.sm-1,"px)"),m:"(min-width: ".concat(e.sm,"px) and (max-width: ").concat(e.m-1,"px)"),l:"(min-width: ".concat(e.m,"px) and (max-width: ").concat(e.l-1,"px)"),xl:"(min-width: ".concat(e.l,"px)")}},d=u(s.screen),m={colors:{primary:"#00a6e4",secondary:"#D84547",background:"#FFFFFF",panelBackground:"#EFF6FA",borderInPanel:"#2B2C3B26",border:"#EFF0F6",boxShadow:"rgba(0, 0, 0, 0.08)",popupOverlay:"#D9D9D9E0"},icons:{drop_down:{icon:"/icons/arrow_drop_down.svg",width:29,height:34},arrow_left:{icon:"/icons/arrow_left.svg",width:30,height:30},arrow_right_long:{icon:"/icons/arrow_right_long.svg",width:15,height:14},close:{icon:"/icons/close.svg",width:16,height:16}}},p={device:d,sizes:s,theme:m,mediaFilePath:function(e){return"/uploads/".concat(e.space_id,"/").concat(e.filename)}},f=t().createContext(p),h=function(){return(0,e.useContext)(f)},g=function(e){var r=c(c(c({},p),e.settings||{}),{},{customComponents:e.customComponents,customLeaf:e.customLeaf});r.device=u(r.sizes.screen);var i=c(c({},r.theme),{},{device:r.device,sizes:r.sizes});return t().createElement(f.Provider,{value:r},t().createElement(n.ThemeProvider,{theme:i},e.children))},v=function(e){return e},y=function(e){return e&&e.startsWith("http")};function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b.apply(this,arguments)}var x=function(e){var t=e.text,n=e.type,r=e.url;switch(!0){case"link"===n:return React.createElement("a",{href:r,className:e._class,target:y(r)?"_blank":void 0,rel:"noreferrer noopener"},React.createElement(w,{children:e.children||[]}));case"br"===n:return React.createElement("br",null);case"image"===n:return React.createElement("img",{className:e._class,src:r,alt:e.alt_text,width:e.width,height:e.height});default:var i=React.createElement("span",{className:"".concat(e.highlight?"highlight":"")},t);return e.bold&&(i=React.createElement("strong",null,i)),e.italic&&(i=React.createElement("i",null,i)),e.underline&&(i=React.createElement("u",null,i)),e.strikethrough&&(i=React.createElement("s",null,i)),e._class&&(i=React.createElement("span",{className:e._class},i)),i}},w=function(e){var t=h().customLeaf||x;return React.createElement(React.Fragment,null,e.children.map((function(e,n){return React.createElement(t,b({key:n},e))})))},k=function(e){var t={textAlign:e.align},n=e.type;return React.createElement(n,{className:"bare ".concat(e._class||""),style:t},(e.children||[]).map((function(e,t){return React.createElement("li",{key:t},React.createElement(w,{children:e.children}))})))};function E(){return E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E.apply(this,arguments)}const R=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}};var S=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;const _=R((function(e){return S.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var O=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)};const A=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},j={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var C=/[A-Z]|^ms/g,I=/_EMO_([^_]+?)_([^]*?)_EMO_/g,z=function(e){return 45===e.charCodeAt(1)},P=function(e){return null!=e&&"boolean"!=typeof e},W=R((function(e){return z(e)?e:e.replace(C,"-$&").toLowerCase()})),M=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(I,(function(e,t,n){return F={name:t,styles:n,next:F},t}))}return 1===j[e]||z(e)||"number"!=typeof t||0===t?t:t+"px"};function T(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return F={name:n.name,styles:n.styles,next:F},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)F={name:r.name,styles:r.styles,next:F},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=T(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":P(a)&&(r+=W(o)+":"+M(o,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var c=T(e,t,a);switch(o){case"animation":case"animationName":r+=W(o)+":"+c+";";break;default:r+=o+"{"+c+"}"}}else for(var l=0;l<a.length;l++)P(a[l])&&(r+=W(o)+":"+M(o,a[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=F,o=n(e);return F=i,T(e,t,o)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var F,N=/label:\s*([^\s;\n{]+)\s*(;|$)/g,L=_,D=function(e){return"theme"!==e},H=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?L:D},B=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},U=e.useInsertionEffect?e.useInsertionEffect:function(e){e()},q=function(e){var t,n=e.cache,r=e.serialized,i=e.isStringTag;return O(n,r,i),t=function(){return function(e,t,n){O(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}}(n,r,i)},U(t),null};const Z=function t(r,i){var o,a,c=r.__emotion_real===r,l=c&&r.__emotion_base||r;void 0!==i&&(o=i.label,a=i.target);var s=B(r,i,c),u=s||H(l),d=!u("as");return function(){var m=arguments,p=c&&void 0!==r.__emotion_styles?r.__emotion_styles.slice(0):[];if(void 0!==o&&p.push("label:"+o+";"),null==m[0]||void 0===m[0].raw)p.push.apply(p,m);else{p.push(m[0][0]);for(var f=m.length,h=1;h<f;h++)p.push(m[h],m[0][h])}var g=(0,n.withEmotionCache)((function(t,r,i){var o,c,m,f,h=d&&t.as||l,g="",v=[],y=t;if(null==t.theme){for(var b in y={},t)y[b]=t[b];y.theme=(0,e.useContext)(n.ThemeContext)}"string"==typeof t.className?(o=r.registered,c=v,m=t.className,f="",m.split(" ").forEach((function(e){void 0!==o[e]?c.push(o[e]+";"):f+=e+" "})),g=f):null!=t.className&&(g=t.className+" ");var x=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";F=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=T(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++)i+=T(n,t,e[a]),r&&(i+=o[a]);N.lastIndex=0;for(var c,l="";null!==(c=N.exec(i));)l+="-"+c[1];return{name:A(i)+l,styles:i,next:F}}(p.concat(v),r.registered,y);g+=r.key+"-"+x.name,void 0!==a&&(g+=" "+a);var w=d&&void 0===s?H(h):u,k={};for(var E in t)d&&"as"===E||w(E)&&(k[E]=t[E]);return k.className=g,k.ref=i,(0,e.createElement)(e.Fragment,null,(0,e.createElement)(q,{cache:r,serialized:x,isStringTag:"string"==typeof h}),(0,e.createElement)(h,k))}));return g.displayName=void 0!==o?o:"Styled("+("string"==typeof l?l:l.displayName||l.name||"Component")+")",g.defaultProps=r.defaultProps,g.__emotion_real=g,g.__emotion_base=l,g.__emotion_styles=p,g.__emotion_forwardProp=s,Object.defineProperty(g,"toString",{value:function(){return"."+a}}),g.withComponent=function(e,n){return t(e,E({},i,n,{shouldForwardProp:B(g,n,!0)})).apply(void 0,p)},g}};var G=function(e,t,r,i){return(0,n.css)("display:inline-block;mask:url(",e,");mask-size:cover;width:",r,"px;height:",i,"px;background:",t,";flex-shrink:0;","")},X=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return G(e.icon,t,n*e.width,n*e.height)},V=Z("table",{target:"e1jj9kfp0"})("width:100%;border-collapse:collapse;td{border:1px solid ",(function(e){return v(e.theme).colors.border}),";padding:14px 0.5rem;}&.results{td{border:none;vertical-align:top;&:first-child{padding-left:0;}&:last-child{padding-right:0;}& a{color:",(function(e){return v(e.theme).colors.secondary}),";font-weight:600;font-size:14px;padding-right:25px;position:relative;&::after{content:' ';display:block;position:absolute;top:50%;right:0;transform:translateY(-50%);",(function(e){return X(v(e.theme).icons.arrow_right_long,v(e.theme).colors.secondary)}),";}}}&.center-link{& td:last-child{vertical-align:middle;}}tr:not(:last-child){border-bottom:1px solid ",(function(e){return v(e.theme).colors.borderInPanel}),";}@media ",(function(e){return v(e.theme).device.s}),",",(function(e){return v(e.theme).device.sm}),"{& tr{display:block;}& td{display:block;padding-left:0;padding-right:0;&:not(:last-child){padding-bottom:0;}}}}"),Y=Z("div",{target:"e1xx9sqw0"})("display:none;@media ",(function(e){return v(e.theme).device.sm}),",",(function(e){return v(e.theme).device.s}),"{margin-top:14px;display:block;text-align:center;>img{margin:0 7px;cursor:pointer;}}"),$=function(e){return React.createElement(Y,null,e.items.map((function(t,n){return React.createElement("img",{key:n,alt:t.title,onClick:function(){e.setActiveItemIdx(n)},src:"/icons/common/".concat(n===e.activeItemIdx?"fill_point":"empty_point",".svg")})})))};function J(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return K(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?K(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function K(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Q=Z("div",{target:"ecqx4vh5"})("margin-left:",(function(e){return e.isImage?"20px":"0"}),";display:flex;flex-direction:column;align-items:flex-start;>p{margin:0 0 10px 0;font-size:16px;line-height:19px;&:first-child{font-size:20px;line-height:24px;}&:not(:first-child){width:calc(100% - 21px);color:black;}}"),ee=Z("a",{target:"ecqx4vh4"})("margin:0;position:relative;width:100%;min-height:99px;padding:18px 21px;display:flex;align-items:center;border:1px solid ",(function(e){return v(e.theme).colors.border}),";border-left:2px solid ",(function(e){return v(e.theme).colors.primary}),";border-radius:4px;box-shadow:0px 4px 4px ",(function(e){return v(e.theme).colors.boxShadow}),";pointer-events:",(function(e){return e.isLink?"auto":"none"}),";>div{width:100%;}>p{margin:0 0 0 20px;max-width:256px;line-height:19px;font-size:16px;}>div>img{width:62px;height:62px;}@media ",(function(e){return v(e.theme).device.sm}),",",(function(e){return v(e.theme).device.s}),"{width:",(function(e){return e.visibleZoneWidth}),"px;}"),te=Z("span",{target:"ecqx4vh3"})("margin-left:auto;margin-top:auto;",(function(e){return G("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMiAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIxIDkuNzVMMSA5Ljc1TTEyLjI1IDE4LjVMMjEgOS43NUwxMi4yNSAxIiBzdHJva2U9IiMxOEE3REQiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjwvc3ZnPgo=".src,v(e.theme).colors.primary,15,14)}),";"),ne=Z("span",{target:"ecqx4vh2"})("display:block;cursor:pointer;font-size:12px;color:",(function(e){return v(e.theme).colors.primary}),";margin-top:1em;"),re=Z("div",{target:"ecqx4vh1"})("display:grid;grid-template-columns:repeat(",(function(e){return e.columns}),", 1fr);justify-content:center;width:100%;word-break:break-word;transition:0.4s;gap:30px;@media ",(function(e){return v(e.theme).device.l}),"{width:100%;gap:20px;}@media ",(function(e){return v(e.theme).device.m}),"{width:100%;grid-template-columns:repeat(2, 1fr);gap:15px;}@media ",(function(e){return v(e.theme).device.s}),",",(function(e){return v(e.theme).device.sm}),"{gap:",(function(e){return e.noCarousel?14:0}),"px;display:flex;flex-flow:",(function(e){return e.noCarousel?"column":"row"}),";flex:1;width:",(function(e){return e.noCarousel?"100%":e.tilesSize*Number(e.visibleZoneWidth)}),"px;position:relative;left:-",(function(e){return e.noCarousel?0:e.leftMargin}),"px;cursor:pointer;}"),ie=Z("div",{target:"ecqx4vh0"})("overflow:hidden;padding-bottom:10px;margin-bottom:20px;@media ",(function(e){return v(e.theme).device.l}),"{margin-bottom:30px;}@media ",(function(e){return v(e.theme).device.m}),"{margin-bottom:30px;}@media ",(function(e){return v(e.theme).device.s}),",",(function(e){return v(e.theme).device.sm}),"{margin-bottom:30px;width:100%;}&.committees{margin-top:36px;margin-bottom:112px;@media ",(function(e){return v(e.theme).device.s}),",",(function(e){return v(e.theme).device.sm}),"{margin-bottom:87px;}}&.vertical{& ",ee,"{flex-flow:column;align-items:center;text-align:center;border:1px solid ",(function(e){return v(e.theme).colors.border}),";border-bottom:2px solid ",(function(e){return v(e.theme).colors.primary}),";gap:10px;",Q,"{align-items:center;gap:0;margin-left:0;}}}&.alt-background{& ",ee,"{background:",(function(e){return v(e.theme).colors.panelBackground}),";}}&.plain{& ",ee,"{border:1px solid transparent;border-radius:0;box-shadow:none;}}"),oe=Z("div",{target:"e15eoxew0"})("width:100%;display:grid;grid-template-columns:repeat(",(function(e){return e.columns}),", minmax(0, 1fr));column-gap:30px;row-gap:30px;& .column{width:100%;}@media ",(function(e){return v(e.theme).device.l}),"{column-gap:20px;row-gap:20px;}@media ",(function(e){return v(e.theme).device.m}),"{column-gap:14px;row-gap:14px;}@media ",(function(e){return v(e.theme).device.s}),",",(function(e){return v(e.theme).device.sm}),"{grid-template-columns:1fr;row-gap:14px;}"),ae=Z("div",{target:"e1fzx3rd0"})("width:100vw;display:block;&.alt-background{background:",(function(e){return v(e.theme).colors.panelBackground}),";}&.inset{margin:0 -",(function(e){return v(e.theme).sizes.sides.l}),";padding:70px 130px;&>:first-child{margin-top:0;}@media ",(function(e){return v(e.theme).device.l}),"{margin:0 -",(function(e){return v(e.theme).sizes.sides.l}),";padding:70px ",(function(e){return v(e.theme).sizes.sides.l}),";}@media ",(function(e){return v(e.theme).device.m}),"{margin:0 -",(function(e){return v(e.theme).sizes.sides.m}),";padding:70px ",(function(e){return v(e.theme).sizes.sides.m}),";}@media ",(function(e){return v(e.theme).device.sm}),",",(function(e){return v(e.theme).device.s}),"{margin:0 -",(function(e){return v(e.theme).sizes.sides.s}),";padding:26px ",(function(e){return v(e.theme).sizes.sides.s}),";}}");function ce(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var le=Z("div",{target:"e99grr02"})("margin:0 -",(function(e){return v(e.theme).sizes.sides.l}),";padding:38px ",(function(e){return v(e.theme).sizes.sides.l})," 42px;background:",(function(e){return v(e.theme).colors.panelBackground}),";@media ",(function(e){return v(e.theme).device.m}),"{margin:0 -",(function(e){return v(e.theme).sizes.sides.m}),";padding:38px ",(function(e){return v(e.theme).sizes.sides.m})," 42px;}@media ",(function(e){return v(e.theme).device.sm}),",",(function(e){return v(e.theme).device.s}),"{margin:0 -",(function(e){return v(e.theme).sizes.sides.s}),";padding:21px ",(function(e){return v(e.theme).sizes.sides.s})," 42px;}&>p:first-child{margin-top:0;}"),se=Z("h4",{target:"e99grr01"})("width:100%;color:",(function(e){return v(e.theme).colors.primary}),";position:relative;padding:18px 0 16px;margin:0;border-bottom:1px solid ",(function(e){return e.isOpen?"transparent":function(e){return v(e.theme).colors.border}}),";cursor:pointer;&::after{content:' ';",(function(e){return X(v(e.theme).icons.drop_down,v(e.theme).colors.primary)}),";position:absolute;top:50%;right:0;transform:translateY(-50%) ",(function(e){return e.isOpen?"":"rotate(-90deg)"}),";transform-origin:60% 50%;}"),ue=Z("div",{target:"e99grr00"})("@media ",(function(e){return v(e.theme).device.xl}),"{&.pad-sides-xl{",le,"{margin:0;}}}&.gutter-small{",le,"{padding:6px 22px;}}&.no-background{",le,"{background:transparent;}}"),de={center:"center",left:"flex-start",right:"flex-end",justify:"space-between"};function me(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var pe=function(e){return Object.values(e.fields||{}).reduce((function(e,t){var n=t.label,r=t.value;return e[n]=r,e}),{})},fe=function(e){return Object.entries(e).reduce((function(e,t){var n,r,i=(r=2,function(e){if(Array.isArray(e))return e}(n=t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return c}}(n,r)||function(e,t){if(e){if("string"==typeof e)return me(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?me(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=i[0],a=i[1];return e[o]={label:o,value:a},e}),{})},he=Z("div",{target:"e180b7l10"})({name:"18pny36",styles:"flex:1 0 auto"}),ge=function(e){return(0,n.css)("box-shadow:",e.sizes.card.shadow," ",e.colors.boxShadow,";border:1px solid ",e.colors.border,";border-radius:",e.sizes.card.borderRadius,";","")};function ve(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Z("a",{target:"eopncia1"})((function(e){return X(v(e.theme).icons.arrow_left,v(e.theme).colors.primary,.4)})," transform:",(function(e){return"backward"===e.direction?"scaleX(1)":"scale(-1)"}),";cursor:pointer;").defaultProps={role:"button"};var ye=function(e,t,n,r){return"calc((".concat(e," - 2 * ").concat(t," - ").concat(r-1," * ").concat(n,") / ").concat(r,")")},be=function(e){switch(e){case 1:return"n";case 2:return"2n+2";default:return"3n+3"}},xe={name:"c4s8z7",styles:"width:100%;min-width:100%;margin-right:0"},we=Z("div",{target:"e1gpcu5y1"})("position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:",(function(e){return v(e.theme).sizes.zIndex.popup}),";display:",(function(e){return e.isActive?"flex":"none"}),";flex-flow:column;align-items:center;justify-content:center;background:",(function(e){return v(e.theme).colors.popupOverlay}),";padding:",(function(e){return v(e.theme).sizes.sides.l}),";@media ",(function(e){return v(e.theme).device.l}),"{}@media ",(function(e){return v(e.theme).device.m}),"{padding:",(function(e){return v(e.theme).sizes.sides.m}),";}@media ",(function(e){return v(e.theme).device.s}),",",(function(e){return v(e.theme).device.sm}),"{padding:0;}");function ke(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ee(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ee(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Z("a",{target:"e1gpcu5y0"})((function(e){return X(v(e.theme).icons.close,v(e.theme).colors.primary)})," position:absolute;top:20px;right:20px;cursor:pointer;@media ",(function(e){return v(e.theme).device.s}),",",(function(e){return v(e.theme).device.sm}),"{top:15px;right:17px;}").defaultProps={role:"button"};var Re=Z("div",{target:"e1c9glu15"})((function(e){return v(e.theme).sizes.slider.disableFullWidth?(v(e.theme),xe):function(e,t){return(0,n.css)("width:",ye(e.windowWidth?"".concat(e.windowWidth,"px"):"100vw",t.sizes.sides.l,t.sizes.slider.gap.l,e.nItems),";min-width:",ye(e.windowWidth?"".concat(e.windowWidth,"px"):"100vw",t.sizes.sides.l,t.sizes.slider.gap.l,e.nItems),";margin-right:",t.sizes.slider.gap.l,";@media ",t.device.l,",",t.device.xl,"{&:nth-child(",be(e.nItems),"){margin-right:calc(2 * ",t.sizes.sides.l,");}}@media ",t.device.m,"{width:",ye(e.windowWidth?"".concat(e.windowWidth,"px"):"100vw",t.sizes.sides.m,t.sizes.slider.gap.m,e.nItems),";min-width:",ye(e.windowWidth?"".concat(e.windowWidth,"px"):"100vw",t.sizes.sides.m,t.sizes.slider.gap.m,e.nItems),";&:nth-child(",be(e.nItems),"){margin-right:calc(2 * ",t.sizes.sides.m,");}}@media ",t.device.s,",",t.device.sm,"{margin-right:calc(2 * ",t.sizes.sides.s,");width:",ye(e.windowWidth?"".concat(e.windowWidth,"px"):"100vw",t.sizes.sides.s,t.sizes.slider.gap.s,e.nItems),";min-width:",ye(e.windowWidth?"".concat(e.windowWidth,"px"):"100vw",t.sizes.sides.s,t.sizes.slider.gap.s,e.nItems),";}","")}(e,v(e.theme))})," display:flex;&>img{min-height:423px;max-height:423px;width:auto;margin:0 auto;@media ",(function(e){return v(e.theme).device.m}),",",(function(e){return v(e.theme).device.s}),",",(function(e){return v(e.theme).device.sm}),"{min-height:unset;width:100%;height:auto;}}"),Se=Z("div",{target:"e1c9glu14"})("display:flex;flex-flow:row;align-items:center;transform:translateX(-",(function(e){return e.offset}),"px);transition:transform 0.5s ease;"),_e=Z("div",{target:"e1c9glu13"})({name:"nt29hx",styles:"width:100%;height:auto;overflow:hidden"}),Oe=Z("a",{target:"e1c9glu12"})("cursor:pointer;width:30px;height:30px;margin-right:",(function(e){return e.flip?0:10}),"px;margin-left:",(function(e){return e.flip?10:0}),"px;&>span{",(function(e){return X(v(e.theme).icons.arrow_left,v(e.theme).colors.primary)})," transform:",(function(e){return e.flip?"scaleX(-1)":"none"}),";}");Oe.defaultProps={role:"button"};var Ae=Z("a",{target:"e1c9glu11"})("width:5px;height:5px;border:1px solid ",(function(e){return v(e.theme).colors.primary}),";background:",(function(e){return e.isActive?v(e.theme).colors.primary:"transparent"}),";border-radius:50%;cursor:pointer;");Ae.defaultProps={role:"button"};var je=Z("div",{target:"e1c9glu10"})({name:"1oj1d4l",styles:"display:flex;justify-content:center;align-items:center;gap:10px;margin-top:20px"}),Ce=function(t){var n,r=t.files||[],i=ke((0,e.useState)(0),2),o=i[0],a=i[1],c=function(){var t,n,r=(t=(0,e.useState)({width:0,height:0,clientWidth:0}),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return c}}(t,n)||function(e,t){if(e){if("string"==typeof e)return ve(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ve(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=r[0],o=r[1];return(0,e.useEffect)((function(){var e=function(){o({width:window.innerWidth,height:window.innerHeight,clientWidth:window.document.body.clientWidth})};return window.addEventListener("resize",e),e(),function(){return window.removeEventListener("resize",e)}}),[]),i}(),l=c.width,s=c.clientWidth,u=ke((0,e.useState)(!1),2),d=u[0],m=u[1],p=h().mediaFilePath,f=(0,e.useRef)(null),g=h().sizes.slider.disableFullWidth&&f.current?f.current.clientWidth:s;return React.createElement(_e,{ref:f},React.createElement(Se,{offset:g*o},(t.files||[]).map((function(e,t){return React.createElement(Re,{key:t,windowWidth:Math.min(s,l),nItems:1,onClick:function(){return m(!0)}},React.createElement("img",{src:p(e),alt:""}))}))),((null===(n=t.files)||void 0===n?void 0:n.length)||0)>1&&React.createElement(je,null,React.createElement(Oe,{onClick:function(){return a((function(e){return 0===e?r.length-1:e-1}))}},React.createElement("span",null)),r.map((function(e,t){return React.createElement(Ae,{key:t,isActive:t===o,onClick:function(){return a(t)}})})),React.createElement(Oe,{flip:!0,onClick:function(){return a((function(e){return e===r.length-1?0:e+1}))}},React.createElement("span",null))),React.createElement(we,{isActive:d,onClick:function(){return m(!1)}},r[o]?React.createElement("img",{src:p(r[o]),style:{maxWidth:"100%",maxHeight:"100%"},alt:""}):null))},Ie=Z("div",{target:"ey03omx0"})("display:flex;flex-flow:row wrap;justify-content:",(function(e){return t=e.align,de[t||"left"]||de.left;var t}),";gap:1rem;&>img{height:400px;width:auto;}"),ze={heading:function(e){var n=e.type;return t().createElement(n,{className:e._class,style:{textAlign:e.align}},t().createElement(w,{children:e.children}))},paragraph:function(e){var t={textAlign:e.align};return(e.children||[]).find((function(e){return(e.text||"").length>0||e.children&&e.children.length>0}))?React.createElement("p",{className:e._class,style:t},React.createElement(w,{children:e.children})):null},ul:k,ol:k,script:function(e){var t=e.value;return React.createElement("div",{dangerouslySetInnerHTML:{__html:t||""}})},table:function(e){var t=e.children,n=e._class,r=e.type,i=t||[];return React.createElement(V,{className:"".concat(r," ").concat(n||"")},React.createElement("tbody",null,i.map((function(e,t){return React.createElement("tr",{key:t},e.children.map((function(e,t){return React.createElement("td",{key:t},React.createElement(w,null,e.children))})))}))))},tiles_block:function(t){var n=t.tiles||[],r=t.columns||2,i=J((0,e.useState)(0),2),o=i[0],a=i[1],c=J((0,e.useState)(0),2),l=c[0],s=c[1],u=J((0,e.useState)(0),2),d=u[0],m=u[1],p=(0,e.useRef)(null);return(0,e.useEffect)((function(){var e,t;m(0===l?0:Number(null===(e=p.current)||void 0===e?void 0:e.clientWidth)*l),l===n.length&&s(0),0===o&&a(Number(null===(t=p.current)||void 0===t?void 0:t.clientWidth))}),[l,p,o]),React.createElement(React.Fragment,null,React.createElement(ie,{ref:p,className:"tiles_block ".concat(t.type," ").concat(t._class||""),noCarousel:"true"===t.no_carousel},React.createElement(re,{visibleZoneWidth:o,columns:r,tilesSize:n.length,leftMargin:d,onClick:function(){s(l+1)},noCarousel:"true"===t.no_carousel},n.map((function(e){return React.createElement(ee,{href:e.link,visibleZoneWidth:o,key:e.id,isLink:!!e.link,target:y(e.link)?"_blank":void 0,rel:y(e.link)?"noreferrer noopener":void 0,className:"tile"},React.createElement("img",{src:e.image_url,alt:e.image_url}),React.createElement(Q,{isImage:!!e.image_url},React.createElement("p",null,e.title),React.createElement(We,{content:e.content}),e.link&&t.link_label&&React.createElement(ne,{role:"button"},t.link_label)),e.link&&!t.noArrows&&!t.link_label&&React.createElement(te,{className:"icon-arrow"}))}))),!("true"===t.no_carousel)&&React.createElement($,{items:n,activeItemIdx:l,setActiveItemIdx:s})))},"columns-block":function(e){var t=e.columns_content||[];return t.length?React.createElement(oe,{className:"".concat(e.type," ").concat(e._class||""),columns:t.length},t.map((function(e,t){return React.createElement("div",{key:t,className:"column"},React.createElement(We,{content:e}))}))):React.createElement(React.Fragment,null)},"panel-block":function(e){return React.createElement(ae,{className:"".concat(e.type," ").concat(e._class||"")},React.createElement(We,{content:e.content}))},"expander-block":function(t){var n,r,i=t.title,o=t.content,a=t.open,c=(n=(0,e.useState)(a||!1),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return c}}(n,r)||function(e,t){if(e){if("string"==typeof e)return ce(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ce(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=c[0],s=c[1];return React.createElement(ue,{className:t._class},React.createElement(se,{isOpen:l,onClick:function(){return s((function(e){return!e}))}},i),l&&React.createElement(le,null,React.createElement(We,{content:o})))},"media-files":function(e){if("slider"===e.display_mode)return React.createElement(Ce,e);var t=h().mediaFilePath;return React.createElement(Ie,{align:e.align},(e.files||[]).map((function(e,n){return React.createElement("img",{key:n,src:t(e),alt:""})})))}};function Pe(){return Pe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pe.apply(this,arguments)}var We=function(e){var n,r=h(),i=e.customComponents||{},o=r.customComponents||{};return t().createElement(t().Fragment,null,((null===(n=e.content)||void 0===n?void 0:n.blocks)||[]).map((function(e,n){var r=function(e){if(/h\d/.test(e.type))return"heading";if("paragraph"===e.type)return e.type;if("custom_fields_block"===e.type){var t=Object.values(e.fields||{}).find((function(e){return"block_type"===e.label}));return t?(t.value||"").trim():e.type}return e.type}(e),a=i[r]||o[r]||ze[r];return a?t().createElement(a,Pe({key:"block_type_".concat(n)},e)):(console.log("Unknown component type, skipping: ",r,e),t().createElement(t().Fragment,{key:"block_type_".concat(n)}))})))}})(),o})()));
1
+ /*! For license information please see index.js.LICENSE.txt */
2
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("@emotion/react")):"function"==typeof define&&define.amd?define(["react","@emotion/react"],t):"object"==typeof exports?exports["tooly-powerdoc-renderer"]=t(require("react"),require("@emotion/react")):e["tooly-powerdoc-renderer"]=t(e.react,e["@emotion/react"])}(this,((e,t)=>(()=>{"use strict";var r={418:e=>{var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var o,a,c=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var s in o=Object(arguments[l]))r.call(o,s)&&(c[s]=o[s]);if(t){a=t(o);for(var u=0;u<a.length;u++)n.call(o,a[u])&&(c[a[u]]=o[a[u]])}}return c}},251:(e,t,r)=>{r(418);var n=r(156),i=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var o=Symbol.for;i=o("react.element"),t.Fragment=o("react.fragment")}var a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var n,o={},s=null,u=null;for(n in void 0!==r&&(s=""+r),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(u=t.ref),t)c.call(t,n)&&!l.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:i,type:e,key:s,ref:u,props:o,_owner:a.current}}t.jsx=s,t.jsxs=s},893:(e,t,r)=>{e.exports=r(251)},435:e=>{e.exports=t},156:t=>{t.exports=e}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}};return r[e](o,o.exports,i),o.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{i.r(o),i.d(o,{DefaultMediaBreakpoints:()=>f,DefaultRenderingContext:()=>m,DefaultSizes:()=>u,DefaultTheme:()=>p,InlineItems:()=>k,LeafElement:()=>O,OccupyFreeSpace:()=>ve,PageContent:()=>Ue,RenderingContext:()=>h,RenderingContextProvider:()=>y,cardStyle:()=>be,castTheme:()=>v,composeCustomBlockFields:()=>ye,extractCustomBlockFields:()=>ge,useRenderingContext:()=>g});var e=i(156),t=i.n(e),r=i(435),n=i(893);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==a(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===a(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u={screen:{s:320,sm:660,m:990,l:1240},sides:{l:"30px",m:"20px",s:"18px"},zIndex:{popup:1e3},card:{shadow:"0px 4px 4px",borderRadius:"4px"},slider:{gap:{s:"25px",m:"25px",l:"60px"},disableFullWidth:!1}},d=function(e){return{s:"(max-width: ".concat(e.s-1,"px)"),sm:"(min-width: ".concat(e.s,"px) and (max-width: ").concat(e.sm-1,"px)"),m:"(min-width: ".concat(e.sm,"px) and (max-width: ").concat(e.m-1,"px)"),l:"(min-width: ".concat(e.m,"px) and (max-width: ").concat(e.l-1,"px)"),xl:"(min-width: ".concat(e.l,"px)")}},f=d(u.screen),p={colors:{primary:"#00a6e4",secondary:"#D84547",background:"#FFFFFF",panelBackground:"#EFF6FA",borderInPanel:"#2B2C3B26",border:"#EFF0F6",boxShadow:"rgba(0, 0, 0, 0.08)",popupOverlay:"#D9D9D9E0"},icons:{drop_down:{icon:"/icons/arrow_drop_down.svg",width:29,height:34},arrow_left:{icon:"/icons/arrow_left.svg",width:30,height:30},arrow_right_long:{icon:"/icons/arrow_right_long.svg",width:15,height:14},close:{icon:"/icons/close.svg",width:16,height:16}}},m={device:f,sizes:u,theme:p,mediaFilePath:function(e){return"/uploads/".concat(e.space_id,"/").concat(e.filename)}},h=t().createContext(m),g=function(){return(0,e.useContext)(h)},y=function(e){var t=l(l(l({},m),e.settings||{}),{},{customComponents:e.customComponents,customLeaf:e.customLeaf});t.device=d(t.sizes.screen);var i=l(l({},t.theme),{},{device:t.device,sizes:t.sizes});return(0,n.jsx)(h.Provider,{value:t,children:(0,n.jsx)(r.ThemeProvider,{theme:i,children:e.children})})},v=function(e){return e},b=function(e){return e&&e.startsWith("http")};function x(e){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x(e)}function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function j(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==x(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==x(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===x(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var O=function(e){var t=e.text,r=e.type,i=e.url;switch(!0){case"link"===r:return(0,n.jsx)("a",{href:i,className:e._class,target:b(i)?"_blank":void 0,rel:"noreferrer noopener",children:(0,n.jsx)(k,{children:e.children||[]})});case"br"===r:return(0,n.jsx)("br",{});case"image"===r:return(0,n.jsx)("img",{className:e._class,src:i,alt:e.alt_text,width:e.width,height:e.height});default:var o=(0,n.jsx)("span",{className:"".concat(e.highlight?"highlight":""),children:t});return e.bold&&(o=(0,n.jsx)("strong",{children:o})),e.italic&&(o=(0,n.jsx)("i",{children:o})),e.underline&&(o=(0,n.jsx)("u",{children:o})),e.strikethrough&&(o=(0,n.jsx)("s",{children:o})),e._class&&(o=(0,n.jsx)("span",{className:e._class,children:o})),o}},k=function(e){var t=g().customLeaf||O;return(0,n.jsx)(n.Fragment,{children:e.children.map((function(e,r){return(0,n.jsx)(t,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach((function(t){j(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e),r)}))})},S=function(e){var t={textAlign:e.align},r=e.type;return(0,n.jsx)(r,{className:"bare ".concat(e._class||""),style:t,children:(e.children||[]).map((function(e,t){return(0,n.jsx)("li",{children:(0,n.jsx)(k,{children:e.children})},t)}))})};function _(){return _=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_.apply(this,arguments)}const P=function(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}};var A=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;const C=P((function(e){return A.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var I=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)};const z=function(e){for(var t,r=0,n=0,i=e.length;i>=4;++n,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(i){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)},E={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var T=/[A-Z]|^ms/g,W=/_EMO_([^_]+?)_([^]*?)_EMO_/g,M=function(e){return 45===e.charCodeAt(1)},D=function(e){return null!=e&&"boolean"!=typeof e},F=P((function(e){return M(e)?e:e.replace(T,"-$&").toLowerCase()})),N=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(W,(function(e,t,r){return L={name:t,styles:r,next:L},t}))}return 1===E[e]||M(e)||"number"!=typeof t||0===t?t:t+"px"};function R(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return L={name:r.name,styles:r.styles,next:L},r.name;if(void 0!==r.styles){var n=r.next;if(void 0!==n)for(;void 0!==n;)L={name:n.name,styles:n.styles,next:L},n=n.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=R(e,t,r[i])+";";else for(var o in r){var a=r[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?n+=o+"{"+t[a]+"}":D(a)&&(n+=F(o)+":"+N(o,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var c=R(e,t,a);switch(o){case"animation":case"animationName":n+=F(o)+":"+c+";";break;default:n+=o+"{"+c+"}"}}else for(var l=0;l<a.length;l++)D(a[l])&&(n+=F(o)+":"+N(o,a[l])+";")}return n}(e,t,r);case"function":if(void 0!==e){var i=L,o=r(e);return L=i,R(e,t,o)}}if(null==t)return r;var a=t[r];return void 0!==a?a:r}var L,H=/label:\s*([^\s;\n{]+)\s*(;|$)/g,U=C,B=function(e){return"theme"!==e},q=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?U:B},Z=function(e,t,r){var n;if(t){var i=t.shouldForwardProp;n=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},G=e.useInsertionEffect?e.useInsertionEffect:function(e){e()},X=function(e){var t,r=e.cache,n=e.serialized,i=e.isStringTag;return I(r,n,i),t=function(){return function(e,t,r){I(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+n:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}}(r,n,i)},G(t),null};const $=function t(n,i){var o,a,c=n.__emotion_real===n,l=c&&n.__emotion_base||n;void 0!==i&&(o=i.label,a=i.target);var s=Z(n,i,c),u=s||q(l),d=!u("as");return function(){var f=arguments,p=c&&void 0!==n.__emotion_styles?n.__emotion_styles.slice(0):[];if(void 0!==o&&p.push("label:"+o+";"),null==f[0]||void 0===f[0].raw)p.push.apply(p,f);else{p.push(f[0][0]);for(var m=f.length,h=1;h<m;h++)p.push(f[h],f[0][h])}var g=(0,r.withEmotionCache)((function(t,n,i){var o,c,f,m,h=d&&t.as||l,g="",y=[],v=t;if(null==t.theme){for(var b in v={},t)v[b]=t[b];v.theme=(0,e.useContext)(r.ThemeContext)}"string"==typeof t.className?(o=n.registered,c=y,f=t.className,m="",f.split(" ").forEach((function(e){void 0!==o[e]?c.push(o[e]+";"):m+=e+" "})),g=m):null!=t.className&&(g=t.className+" ");var x=function(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,i="";L=void 0;var o=e[0];null==o||void 0===o.raw?(n=!1,i+=R(r,t,o)):i+=o[0];for(var a=1;a<e.length;a++)i+=R(r,t,e[a]),n&&(i+=o[a]);H.lastIndex=0;for(var c,l="";null!==(c=H.exec(i));)l+="-"+c[1];return{name:z(i)+l,styles:i,next:L}}(p.concat(y),n.registered,v);g+=n.key+"-"+x.name,void 0!==a&&(g+=" "+a);var w=d&&void 0===s?q(h):u,j={};for(var O in t)d&&"as"===O||w(O)&&(j[O]=t[O]);return j.className=g,j.ref=i,(0,e.createElement)(e.Fragment,null,(0,e.createElement)(X,{cache:n,serialized:x,isStringTag:"string"==typeof h}),(0,e.createElement)(h,j))}));return g.displayName=void 0!==o?o:"Styled("+("string"==typeof l?l:l.displayName||l.name||"Component")+")",g.defaultProps=n.defaultProps,g.__emotion_real=g,g.__emotion_base=l,g.__emotion_styles=p,g.__emotion_forwardProp=s,Object.defineProperty(g,"toString",{value:function(){return"."+a}}),g.withComponent=function(e,r){return t(e,_({},i,r,{shouldForwardProp:Z(g,r,!0)})).apply(void 0,p)},g}};var V=function(e,t,n,i){return(0,r.css)("display:inline-block;mask:url(",e,");mask-size:cover;width:",n,"px;height:",i,"px;background:",t,";flex-shrink:0;","")},Y=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return V(e.icon,t,r*e.width,r*e.height)},J=$("table",{target:"e1jj9kfp0"})("width:100%;border-collapse:collapse;td{border:1px solid ",(function(e){return v(e.theme).colors.border}),";padding:14px 0.5rem;}&.results{td{border:none;vertical-align:top;&:first-child{padding-left:0;}&:last-child{padding-right:0;}& a{color:",(function(e){return v(e.theme).colors.secondary}),";font-weight:600;font-size:14px;padding-right:25px;position:relative;&::after{content:' ';display:block;position:absolute;top:50%;right:0;transform:translateY(-50%);",(function(e){return Y(v(e.theme).icons.arrow_right_long,v(e.theme).colors.secondary)}),";}}}&.center-link{& td:last-child{vertical-align:middle;}}tr:not(:last-child){border-bottom:1px solid ",(function(e){return v(e.theme).colors.borderInPanel}),";}@media ",(function(e){return v(e.theme).device.s}),",",(function(e){return v(e.theme).device.sm}),"{& tr{display:block;}& td{display:block;padding-left:0;padding-right:0;&:not(:last-child){padding-bottom:0;}}}}"),K=$("div",{target:"e1xx9sqw0"})("display:none;@media ",(function(e){return v(e.theme).device.sm}),",",(function(e){return v(e.theme).device.s}),"{margin-top:14px;display:block;text-align:center;>img{margin:0 7px;cursor:pointer;}}"),Q=function(e){return(0,n.jsx)(K,{children:e.items.map((function(t,r){return(0,n.jsx)("img",{alt:t.title,onClick:function(){e.setActiveItemIdx(r)},src:"/icons/common/".concat(r===e.activeItemIdx?"fill_point":"empty_point",".svg")},r)}))})};function ee(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,c=[],l=!0,s=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw i}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return te(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?te(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function te(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var re=$("div",{target:"ecqx4vh5"})("margin-left:",(function(e){return e.isImage?"20px":"0"}),";display:flex;flex-direction:column;align-items:flex-start;>p{margin:0 0 10px 0;font-size:16px;line-height:19px;&:first-child{font-size:20px;line-height:24px;}&:not(:first-child){width:calc(100% - 21px);color:black;}}"),ne=$("a",{target:"ecqx4vh4"})("margin:0;position:relative;width:100%;min-height:99px;padding:18px 21px;display:flex;align-items:center;border:1px solid ",(function(e){return v(e.theme).colors.border}),";border-left:2px solid ",(function(e){return v(e.theme).colors.primary}),";border-radius:4px;box-shadow:0px 4px 4px ",(function(e){return v(e.theme).colors.boxShadow}),";pointer-events:",(function(e){return e.isLink?"auto":"none"}),";>div{width:100%;}>p{margin:0 0 0 20px;max-width:256px;line-height:19px;font-size:16px;}>div>img{width:62px;height:62px;}@media ",(function(e){return v(e.theme).device.sm}),",",(function(e){return v(e.theme).device.s}),"{width:",(function(e){return e.visibleZoneWidth}),"px;}"),ie=$("span",{target:"ecqx4vh3"})("margin-left:auto;margin-top:auto;",(function(e){return V("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMiAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIxIDkuNzVMMSA5Ljc1TTEyLjI1IDE4LjVMMjEgOS43NUwxMi4yNSAxIiBzdHJva2U9IiMxOEE3REQiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjwvc3ZnPgo=".src,v(e.theme).colors.primary,15,14)}),";"),oe=$("span",{target:"ecqx4vh2"})("display:block;cursor:pointer;font-size:12px;color:",(function(e){return v(e.theme).colors.primary}),";margin-top:1em;"),ae=$("div",{target:"ecqx4vh1"})("display:grid;grid-template-columns:repeat(",(function(e){return e.columns}),", 1fr);justify-content:center;width:100%;word-break:break-word;transition:0.4s;gap:30px;@media ",(function(e){return v(e.theme).device.l}),"{width:100%;gap:20px;}@media ",(function(e){return v(e.theme).device.m}),"{width:100%;grid-template-columns:repeat(2, 1fr);gap:15px;}@media ",(function(e){return v(e.theme).device.s}),",",(function(e){return v(e.theme).device.sm}),"{gap:",(function(e){return e.noCarousel?14:0}),"px;display:flex;flex-flow:",(function(e){return e.noCarousel?"column":"row"}),";flex:1;width:",(function(e){return e.noCarousel?"100%":e.tilesSize*Number(e.visibleZoneWidth)}),"px;position:relative;left:-",(function(e){return e.noCarousel?0:e.leftMargin}),"px;cursor:pointer;}"),ce=$("div",{target:"ecqx4vh0"})("overflow:hidden;padding-bottom:10px;margin-bottom:20px;@media ",(function(e){return v(e.theme).device.l}),"{margin-bottom:30px;}@media ",(function(e){return v(e.theme).device.m}),"{margin-bottom:30px;}@media ",(function(e){return v(e.theme).device.s}),",",(function(e){return v(e.theme).device.sm}),"{margin-bottom:30px;width:100%;}&.committees{margin-top:36px;margin-bottom:112px;@media ",(function(e){return v(e.theme).device.s}),",",(function(e){return v(e.theme).device.sm}),"{margin-bottom:87px;}}&.vertical{& ",ne,"{flex-flow:column;align-items:center;text-align:center;border:1px solid ",(function(e){return v(e.theme).colors.border}),";border-bottom:2px solid ",(function(e){return v(e.theme).colors.primary}),";gap:10px;",re,"{align-items:center;gap:0;margin-left:0;}}}&.alt-background{& ",ne,"{background:",(function(e){return v(e.theme).colors.panelBackground}),";}}&.plain{& ",ne,"{border:1px solid transparent;border-radius:0;box-shadow:none;}}"),le=$("div",{target:"e15eoxew0"})("width:100%;display:grid;grid-template-columns:repeat(",(function(e){return e.columns}),", minmax(0, 1fr));column-gap:30px;row-gap:30px;& .column{width:100%;}@media ",(function(e){return v(e.theme).device.l}),"{column-gap:20px;row-gap:20px;}@media ",(function(e){return v(e.theme).device.m}),"{column-gap:14px;row-gap:14px;}@media ",(function(e){return v(e.theme).device.s}),",",(function(e){return v(e.theme).device.sm}),"{grid-template-columns:1fr;row-gap:14px;}"),se=$("div",{target:"e1fzx3rd0"})("width:100vw;display:block;&.alt-background{background:",(function(e){return v(e.theme).colors.panelBackground}),";}&.inset{margin:0 -",(function(e){return v(e.theme).sizes.sides.l}),";padding:70px 130px;&>:first-child{margin-top:0;}@media ",(function(e){return v(e.theme).device.l}),"{margin:0 -",(function(e){return v(e.theme).sizes.sides.l}),";padding:70px ",(function(e){return v(e.theme).sizes.sides.l}),";}@media ",(function(e){return v(e.theme).device.m}),"{margin:0 -",(function(e){return v(e.theme).sizes.sides.m}),";padding:70px ",(function(e){return v(e.theme).sizes.sides.m}),";}@media ",(function(e){return v(e.theme).device.sm}),",",(function(e){return v(e.theme).device.s}),"{margin:0 -",(function(e){return v(e.theme).sizes.sides.s}),";padding:26px ",(function(e){return v(e.theme).sizes.sides.s}),";}}");function ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var de=$("div",{target:"e99grr02"})("margin:0 -",(function(e){return v(e.theme).sizes.sides.l}),";padding:38px ",(function(e){return v(e.theme).sizes.sides.l})," 42px;background:",(function(e){return v(e.theme).colors.panelBackground}),";@media ",(function(e){return v(e.theme).device.m}),"{margin:0 -",(function(e){return v(e.theme).sizes.sides.m}),";padding:38px ",(function(e){return v(e.theme).sizes.sides.m})," 42px;}@media ",(function(e){return v(e.theme).device.sm}),",",(function(e){return v(e.theme).device.s}),"{margin:0 -",(function(e){return v(e.theme).sizes.sides.s}),";padding:21px ",(function(e){return v(e.theme).sizes.sides.s})," 42px;}&>p:first-child{margin-top:0;}"),fe=$("h4",{target:"e99grr01"})("width:100%;color:",(function(e){return v(e.theme).colors.primary}),";position:relative;padding:18px 0 16px;margin:0;border-bottom:1px solid ",(function(e){return e.isOpen?"transparent":function(e){return v(e.theme).colors.border}}),";cursor:pointer;&::after{content:' ';",(function(e){return Y(v(e.theme).icons.drop_down,v(e.theme).colors.primary)}),";position:absolute;top:50%;right:0;transform:translateY(-50%) ",(function(e){return e.isOpen?"":"rotate(-90deg)"}),";transform-origin:60% 50%;}"),pe=$("div",{target:"e99grr00"})("@media ",(function(e){return v(e.theme).device.xl}),"{&.pad-sides-xl{",de,"{margin:0;}}}&.gutter-small{",de,"{padding:6px 22px;}}&.no-background{",de,"{background:transparent;}}"),me={center:"center",left:"flex-start",right:"flex-end",justify:"space-between"};function he(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var ge=function(e){return Object.values(e.fields||{}).reduce((function(e,t){var r=t.label,n=t.value;return e[r]=n,e}),{})},ye=function(e){return Object.entries(e).reduce((function(e,t){var r,n,i=(n=2,function(e){if(Array.isArray(e))return e}(r=t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,c=[],l=!0,s=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw i}}return c}}(r,n)||function(e,t){if(e){if("string"==typeof e)return he(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?he(e,t):void 0}}(r,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=i[0],a=i[1];return e[o]={label:o,value:a},e}),{})},ve=$("div",{target:"e180b7l10"})({name:"18pny36",styles:"flex:1 0 auto"}),be=function(e){return(0,r.css)("box-shadow:",e.sizes.card.shadow," ",e.colors.boxShadow,";border:1px solid ",e.colors.border,";border-radius:",e.sizes.card.borderRadius,";","")};function xe(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}$("a",{target:"eopncia1"})((function(e){return Y(v(e.theme).icons.arrow_left,v(e.theme).colors.primary,.4)})," transform:",(function(e){return"backward"===e.direction?"scaleX(1)":"scale(-1)"}),";cursor:pointer;").defaultProps={role:"button"};var we=function(e,t,r,n){return"calc((".concat(e," - 2 * ").concat(t," - ").concat(n-1," * ").concat(r,") / ").concat(n,")")},je=function(e){switch(e){case 1:return"n";case 2:return"2n+2";default:return"3n+3"}},Oe={name:"c4s8z7",styles:"width:100%;min-width:100%;margin-right:0"},ke=$("div",{target:"e1gpcu5y1"})("position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:",(function(e){return v(e.theme).sizes.zIndex.popup}),";display:",(function(e){return e.isActive?"flex":"none"}),";flex-flow:column;align-items:center;justify-content:center;background:",(function(e){return v(e.theme).colors.popupOverlay}),";padding:",(function(e){return v(e.theme).sizes.sides.l}),";@media ",(function(e){return v(e.theme).device.l}),"{}@media ",(function(e){return v(e.theme).device.m}),"{padding:",(function(e){return v(e.theme).sizes.sides.m}),";}@media ",(function(e){return v(e.theme).device.s}),",",(function(e){return v(e.theme).device.sm}),"{padding:0;}");function Se(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,c=[],l=!0,s=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw i}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return _e(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_e(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _e(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}$("a",{target:"e1gpcu5y0"})((function(e){return Y(v(e.theme).icons.close,v(e.theme).colors.primary)})," position:absolute;top:20px;right:20px;cursor:pointer;@media ",(function(e){return v(e.theme).device.s}),",",(function(e){return v(e.theme).device.sm}),"{top:15px;right:17px;}").defaultProps={role:"button"};var Pe=$("div",{target:"e1c9glu15"})((function(e){return v(e.theme).sizes.slider.disableFullWidth?(v(e.theme),Oe):function(e,t){return(0,r.css)("width:",we(e.windowWidth?"".concat(e.windowWidth,"px"):"100vw",t.sizes.sides.l,t.sizes.slider.gap.l,e.nItems),";min-width:",we(e.windowWidth?"".concat(e.windowWidth,"px"):"100vw",t.sizes.sides.l,t.sizes.slider.gap.l,e.nItems),";margin-right:",t.sizes.slider.gap.l,";@media ",t.device.l,",",t.device.xl,"{&:nth-child(",je(e.nItems),"){margin-right:calc(2 * ",t.sizes.sides.l,");}}@media ",t.device.m,"{width:",we(e.windowWidth?"".concat(e.windowWidth,"px"):"100vw",t.sizes.sides.m,t.sizes.slider.gap.m,e.nItems),";min-width:",we(e.windowWidth?"".concat(e.windowWidth,"px"):"100vw",t.sizes.sides.m,t.sizes.slider.gap.m,e.nItems),";&:nth-child(",je(e.nItems),"){margin-right:calc(2 * ",t.sizes.sides.m,");}}@media ",t.device.s,",",t.device.sm,"{margin-right:calc(2 * ",t.sizes.sides.s,");width:",we(e.windowWidth?"".concat(e.windowWidth,"px"):"100vw",t.sizes.sides.s,t.sizes.slider.gap.s,e.nItems),";min-width:",we(e.windowWidth?"".concat(e.windowWidth,"px"):"100vw",t.sizes.sides.s,t.sizes.slider.gap.s,e.nItems),";}","")}(e,v(e.theme))})," display:flex;&>img{min-height:423px;max-height:423px;width:auto;margin:0 auto;@media ",(function(e){return v(e.theme).device.m}),",",(function(e){return v(e.theme).device.s}),",",(function(e){return v(e.theme).device.sm}),"{min-height:unset;width:100%;height:auto;}}"),Ae=$("div",{target:"e1c9glu14"})("display:flex;flex-flow:row;align-items:center;transform:translateX(-",(function(e){return e.offset}),"px);transition:transform 0.5s ease;"),Ce=$("div",{target:"e1c9glu13"})({name:"nt29hx",styles:"width:100%;height:auto;overflow:hidden"}),Ie=$("a",{target:"e1c9glu12"})("cursor:pointer;width:30px;height:30px;margin-right:",(function(e){return e.flip?0:10}),"px;margin-left:",(function(e){return e.flip?10:0}),"px;&>span{",(function(e){return Y(v(e.theme).icons.arrow_left,v(e.theme).colors.primary)})," transform:",(function(e){return e.flip?"scaleX(-1)":"none"}),";}");Ie.defaultProps={role:"button"};var ze=$("a",{target:"e1c9glu11"})("width:5px;height:5px;border:1px solid ",(function(e){return v(e.theme).colors.primary}),";background:",(function(e){return e.isActive?v(e.theme).colors.primary:"transparent"}),";border-radius:50%;cursor:pointer;");ze.defaultProps={role:"button"};var Ee=$("div",{target:"e1c9glu10"})({name:"1oj1d4l",styles:"display:flex;justify-content:center;align-items:center;gap:10px;margin-top:20px"}),Te=function(t){var r,i=t.files||[],o=Se((0,e.useState)(0),2),a=o[0],c=o[1],l=function(){var t,r,n=(t=(0,e.useState)({width:0,height:0,clientWidth:0}),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,c=[],l=!0,s=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw i}}return c}}(t,r)||function(e,t){if(e){if("string"==typeof e)return xe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?xe(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=n[0],o=n[1];return(0,e.useEffect)((function(){var e=function(){o({width:window.innerWidth,height:window.innerHeight,clientWidth:window.document.body.clientWidth})};return window.addEventListener("resize",e),e(),function(){return window.removeEventListener("resize",e)}}),[]),i}(),s=l.width,u=l.clientWidth,d=Se((0,e.useState)(!1),2),f=d[0],p=d[1],m=g().mediaFilePath,h=(0,e.useRef)(null),y=g().sizes.slider.disableFullWidth&&h.current?h.current.clientWidth:u;return(0,n.jsxs)(Ce,{ref:h,children:[(0,n.jsx)(Ae,{offset:y*a,children:(t.files||[]).map((function(e,t){return(0,n.jsx)(Pe,{windowWidth:Math.min(u,s),nItems:1,onClick:function(){return p(!0)},children:(0,n.jsx)("img",{src:m(e),alt:""})},t)}))}),((null===(r=t.files)||void 0===r?void 0:r.length)||0)>1&&(0,n.jsxs)(Ee,{children:[(0,n.jsx)(Ie,{onClick:function(){return c((function(e){return 0===e?i.length-1:e-1}))},children:(0,n.jsx)("span",{})}),i.map((function(e,t){return(0,n.jsx)(ze,{isActive:t===a,onClick:function(){return c(t)}},t)})),(0,n.jsx)(Ie,{flip:!0,onClick:function(){return c((function(e){return e===i.length-1?0:e+1}))},children:(0,n.jsx)("span",{})})]}),(0,n.jsx)(ke,{isActive:f,onClick:function(){return p(!1)},children:i[a]?(0,n.jsx)("img",{src:m(i[a]),style:{maxWidth:"100%",maxHeight:"100%"},alt:""}):null})]})};function We(e){return We="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},We(e)}function Me(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function De(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==We(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==We(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===We(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Fe=$("div",{target:"ey03omx0"})("display:flex;flex-flow:row wrap;justify-content:",(function(e){return t=e.align,me[t||"left"]||me.left;var t}),";gap:1rem;&>img{height:400px;width:auto;}"),Ne={heading:function(e){var t=e.type;return(0,n.jsx)(t,{className:e._class,style:{textAlign:e.align},children:(0,n.jsx)(k,{children:e.children})})},paragraph:function(e){var t={textAlign:e.align};return(e.children||[]).find((function(e){return(e.text||"").length>0||e.children&&e.children.length>0}))?(0,n.jsx)("p",{className:e._class,style:t,children:(0,n.jsx)(k,{children:e.children})}):null},ul:S,ol:S,script:function(e){var t=e.value;return(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:t||""}})},table:function(e){var t=e.children,r=e._class,i=e.type,o=t||[];return(0,n.jsx)(J,{className:"".concat(i," ").concat(r||""),children:(0,n.jsx)("tbody",{children:o.map((function(e,t){return(0,n.jsx)("tr",{children:e.children.map((function(e,t){return(0,n.jsx)("td",{children:(0,n.jsx)(k,{children:e.children})},t)}))},t)}))})})},tiles_block:function(t){var r=t.tiles||[],i=t.columns||2,o=ee((0,e.useState)(0),2),a=o[0],c=o[1],l=ee((0,e.useState)(0),2),s=l[0],u=l[1],d=ee((0,e.useState)(0),2),f=d[0],p=d[1],m=(0,e.useRef)(null);return(0,e.useEffect)((function(){var e,t;p(0===s?0:Number(null===(e=m.current)||void 0===e?void 0:e.clientWidth)*s),s===r.length&&u(0),0===a&&c(Number(null===(t=m.current)||void 0===t?void 0:t.clientWidth))}),[s,m,a]),(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(ce,{ref:m,className:"tiles_block ".concat(t.type," ").concat(t._class||""),noCarousel:"true"===t.no_carousel,children:[(0,n.jsx)(ae,{visibleZoneWidth:a,columns:i,tilesSize:r.length,leftMargin:f,onClick:function(){u(s+1)},noCarousel:"true"===t.no_carousel,children:r.map((function(e){return(0,n.jsxs)(ne,{href:e.link,visibleZoneWidth:a,isLink:!!e.link,target:b(e.link)?"_blank":void 0,rel:b(e.link)?"noreferrer noopener":void 0,className:"tile",children:[(0,n.jsx)("img",{src:e.image_url,alt:e.image_url}),(0,n.jsxs)(re,{isImage:!!e.image_url,children:[(0,n.jsx)("p",{children:e.title}),(0,n.jsx)(Ue,{content:e.content}),e.link&&t.link_label&&(0,n.jsx)(oe,{role:"button",children:t.link_label})]}),e.link&&!t.noArrows&&!t.link_label&&(0,n.jsx)(ie,{className:"icon-arrow"})]},e.id)}))}),!("true"===t.no_carousel)&&(0,n.jsx)(Q,{items:r,activeItemIdx:s,setActiveItemIdx:u})]})})},"columns-block":function(e){var t=e.columns_content||[];return t.length?(0,n.jsx)(le,{className:"".concat(e.type," ").concat(e._class||""),columns:t.length,children:t.map((function(e,t){return(0,n.jsx)("div",{className:"column",children:(0,n.jsx)(Ue,{content:e})},t)}))}):(0,n.jsx)(n.Fragment,{})},"panel-block":function(e){return(0,n.jsx)(se,{className:"".concat(e.type," ").concat(e._class||""),children:(0,n.jsx)(Ue,{content:e.content})})},"expander-block":function(t){var r,i,o=t.title,a=t.content,c=t.open,l=(r=(0,e.useState)(c||!1),i=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,c=[],l=!0,s=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw i}}return c}}(r,i)||function(e,t){if(e){if("string"==typeof e)return ue(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ue(e,t):void 0}}(r,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=l[0],u=l[1];return(0,n.jsxs)(pe,{className:t._class,children:[(0,n.jsx)(fe,{isOpen:s,onClick:function(){return u((function(e){return!e}))},children:o}),s&&(0,n.jsx)(de,{children:(0,n.jsx)(Ue,{content:a})})]})},"media-files":function(e){if("slider"===e.display_mode)return(0,n.jsx)(Te,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Me(Object(r),!0).forEach((function(t){De(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Me(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e));var t=g().mediaFilePath;return(0,n.jsx)(Fe,{align:e.align,children:(e.files||[]).map((function(e,r){return(0,n.jsx)("img",{src:t(e),alt:""},r)}))})}};function Re(e){return Re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Re(e)}function Le(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function He(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Re(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Re(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Re(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ue=function(e){var r,i=g(),o=e.customComponents||{},a=i.customComponents||{};return(0,n.jsx)(n.Fragment,{children:((null===(r=e.content)||void 0===r?void 0:r.blocks)||[]).map((function(e,r){var i=function(e){if(/h\d/.test(e.type))return"heading";if("paragraph"===e.type)return e.type;if("custom_fields_block"===e.type){var t=Object.values(e.fields||{}).find((function(e){return"block_type"===e.label}));return t?(t.value||"").trim():e.type}return e.type}(e),c=o[i]||a[i]||Ne[i];return c?(0,n.jsx)(c,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Le(Object(r),!0).forEach((function(t){He(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Le(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e),"block_type_".concat(r)):(console.log("Unknown component type, skipping: ",i,e),(0,n.jsx)(t().Fragment,{},"block_type_".concat(r)))}))})}})(),o})()));
@@ -0,0 +1,14 @@
1
+ /*
2
+ object-assign
3
+ (c) Sindre Sorhus
4
+ @license MIT
5
+ */
6
+
7
+ /** @license React v17.0.2
8
+ * react-jsx-runtime.production.min.js
9
+ *
10
+ * Copyright (c) Facebook, Inc. and its affiliates.
11
+ *
12
+ * This source code is licensed under the MIT license found in the
13
+ * LICENSE file in the root directory of this source tree.
14
+ */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tooly-powerdoc-renderer",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "description": "Powerdoc renderer",
5
5
  "main": "build/index.js",
6
6
  "scripts": {