@micromag/viewer-build 0.4.77 → 0.4.79

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.
@@ -0,0 +1,2 @@
1
+ /*! For license information please see main.a5426f52.js.LICENSE.txt */
2
+ (self.webpackChunk_micromag_viewer_build=self.webpackChunk_micromag_viewer_build||[]).push([[792],{9675:function(e,t,l){"use strict";var n=l(4041),a=l(5873),i=l(4005),o=l(8125),s=l(3514),r=l(2438),c=l(5187),d=l(5871),u=l(8138),m=l(3142),g=l(1580),h=(l(9106),l(74),l(3315)),y=l(2399),p=l(7835),f=l(2449);function b(e){const{fields:t=null,states:l=null}=e||{};if(null===l)return t;const n=l.reduce((e,t)=>{const{id:l,fields:n=[],repeatable:a=!1,fieldName:i=null,label:o,defaultValue:s=null}=t||{};return[...e,...a?[{type:"items",name:i||l,label:o,defaultValue:s,stateId:l,itemsField:{label:o,type:"fields",fields:n}}]:[],...a||null===i?[]:[{type:"fields",name:i,stateId:l,fields:n}],...a||null!==i?[]:n.map(e=>({...e,stateId:l}))]},[]);return[...n,...t]}class v extends h{constructor(e={}){super(),this.components=e}addComponent(e,t,l=null){return this.addComponents({[e]:t},l)}addComponents(e,t=null){const l=null!==t?Object.keys(e).reduce((l,n)=>({...l,[`${t}.${n}`]:e[n]}),{}):e;return this.components={...this.components,...l},this.emit("change"),this}merge(e,t=null){return this.addComponents(e.getComponents(),t)}addNamespace(e){return null===e||(this.components=Object.keys(this.components).reduce((t,l)=>({...t,[`${e}.${l}`]:this.components[l]}),{})),this}getComponent(e,t=null){return((e=null,t,l=null)=>null===t||null===e?l:t[(0,y.fL)(e)]||t[e]||l)(e,this.getComponents(t))}getComponents(e=null){return null!==e?Object.keys(this.components||{}).reduce((t,l)=>{const n=new RegExp(`^${e}\\.(.*)$`).exec(l);return null!==n?{...t,[n[1]]:this.components[l]}:t},{}):this.components}hasComponent(e,t=null){return null!==this.components&&void 0!==this.components[null!==t?`${t}.${e}`:e]}}class x extends h{constructor(e=[]){super(),this.definitions=e||[]}addDefinition(e){return this.addDefinitions(m(e)?e:[e]),this}addDefinitions(e){return this.definitions=p([...e,...this.definitions],e=>e.id),this.emit("change"),this}merge(e){return this.addDefinitions(e.getDefinitions())}filter(e){return new x(this.definitions.filter(e))}getDefinition(e){return null===e?null:this.definitions.find(t=>t.id===e)||null}getDefinitions(){return this.definitions}hasDefinition(e){return null!==this.getDefinition(e)}getComponent(e){const{component:t=null}=this.getDefinition(e)||{};return t}getComponents(){return this.definitions.reduce((e,{id:t,component:l=null})=>null!==l?{...e,[t]:l}:e,{})}}class S extends h{constructor(e){super(),this.element=e,this.events={},this.listeners={}}subscribe(e,t){this.on(e,t),this.events={...this.events,[e]:[...this.events[e]||[],t]},1===this.events[e].length&&this.addEventListener(e)}unsubscribe(e,t){this.off(e,t),this.events=Object.keys(this.events).reduce((l,n)=>{if(n!==e)return{...l,[n]:this.events[n]};const a=this.events[n].filter(e=>e!==t);return a.length>0?{...l,[n]:a}:l},{}),void 0===this.events[e]&&this.removeEventListener(e)}addEventListener(e){void 0===this.listeners[e]&&(this.listeners[e]=(...t)=>this.emit(e,...t)),this.element.addEventListener(e,this.listeners[e])}removeEventListener(e){this.element.removeEventListener(e,this.listeners[e])}}class w{constructor({fieldsManager:e,screensManager:t,fieldsPattern:l={}}){this.fieldsManager=e,this.screensManager=t,this.fieldsPatternCache=l||{},this.parsedThemesCache={}}getParsedStoryTheme(e,t){if(void 0===this.parsedThemesCache[e]){const{medias:l,...n}=this.toPath(t);this.parsedThemesCache[e]={themeMedias:l,newTheme:n}}return this.parsedThemesCache[e]}getFieldsPatternByScreen(e){if(void 0===this.fieldsPatternCache[e]){const t=b(this.screensManager.getDefinition(e)||{});this.fieldsPatternCache[e]=this.getFieldsPattern(t||[])}return this.fieldsPatternCache[e]}toPath(e){if(null===e)return e;const{id:t=null,theme:l=null,components:n=[]}=e||{},{components:a,medias:i}=n.reduce(({components:e,medias:t},l)=>{const{type:n}=l,a=this.getFieldsPatternByScreen(n),{data:i,medias:o}=w.replaceMediasWithPaths(l,a);return{components:[...e,i],medias:{...t,...o}}},{components:[],medias:null});if(null!==l){const{medias:n,...o}=this.getParsedStoryTheme(t,l);return null!==i||null!==n?{...e,theme:o,components:a,medias:{...n,...i}}:e}return null!==i?{...e,components:a,medias:i}:e}fromPath(e,t=null){if(null===e)return e;const{theme:l=null,components:n=[],medias:a=t}=e||{};if(null===a&&null===l)return e;const i=w.getMediaPatternsFromData(n),o=null!==a&&i.length>0?w.replacePathsWithMedias(n,a,i):n;if(null!==l){const t=this.fromPath(l,a);return t!==l||o!==n?{...e,theme:t,components:o}:e}return o!==n?{...e,components:o}:e}getFieldsPattern(e,t=null){return(e||[]).reduce((e,l)=>{const{name:n=null,type:a=null}=l,i=[t,n].filter(e=>null!==e&&""!==e).join("\\."),o={...null!==a?this.fieldsManager.getDefinition(a):null,...l},{fields:s=[],itemsField:r=null,settings:c=[]}=o;return[...e,...w.fieldIsMedia(o)?[new RegExp(`^${i}$`)]:[],...w.fieldIsFontFamily(o)?[new RegExp(`^${i}\\.media$`),new RegExp(`^${i}\\.variants\\.[0-9]+\\.media$`)]:[],...this.getFieldsPattern(s,i),...this.getFieldsPattern(c,i),...null!==r?this.getFieldsPattern([r],`${i}\\.[0-9]+`):[]]},[])}static fieldIsMedia({media:e=!1}){return e}static fieldIsFontFamily({id:e=null}){return"font-family"===e}static replacePathsWithMedias(e,t,l,n=null){const a=m(e);return w.keys(e).reduce((i,o)=>{const s=[n,o].filter(e=>null!==e).join("."),r=l.reduce((e,t)=>e||t.test(s),!1),c=e[o];let d;return d=r?g(c)?c:t[c]||c:g(c)||m(c)?w.replacePathsWithMedias(c,t,l,s):c,a?[...i,d]:{...i,[o]:d}},a?[]:{})}static getMediaPath({id:e=null}){return null!==e?`media://${e}`:null}static replaceMediasWithPaths(e,t,l=null,n=null){const a=m(e),i=w.keys(e);return i.reduce(({data:i,medias:o},s)=>{const r=[n,s].filter(e=>null!==e).join("."),c=t.reduce((e,t)=>e||t.test(r),!1),d=e[s];let u,h=null,y=null;if(c&&g(d)){const e=w.getMediaPath(d);u=null!==e?e:d,h=null!==e?d:null}else if(g(d)||m(d)){const e=w.replaceMediasWithPaths(d,t,l,r);u=e.data,y=e.medias}else u=d;return{data:a?[...i||[],u]:{...i,[s]:u},medias:null!==h?{...o,...y,[u]:h}:{...o,...y}}},{data:0===i.length?e:null,medias:l})}static getMediaPatternsFromData(e){const t=w.dot(e);return Object.keys(t).filter(e=>u(t[e])&&null!==t[e].match(/^media:\/\/([^/]+)$/)).map(e=>new RegExp(`^${e}$`))}static dot(e){return w.keys(e).reduce((t,l)=>{if("object"!=typeof e[l]||!e[l])return{...t,[l]:e[l]};const n=w.dot(e[l]);return{...t,...w.keys(n).reduce((e,t)=>({...e,[`${l}.${t}`]:n[t]}),{})}},{})}static keys(e){return m(e)?[...e.keys()]:Object.keys(e)}}class C extends x{constructor(e=[]){super(e),this.fieldsPattern=null}getFields(e){const{fields:t=null}=this.getDefinition(e)||{};return t}getLayouts(e){const{layouts:t=null}=this.getDefinition(e)||{};return t}getFieldsPattern(){return this.fieldsPattern}setFieldsPattern(e){this.fieldsPattern=e}filter(e){return new C(this.definitions.filter(e))}merge(e){const t=e.getFieldsPattern();return null!==t&&null===this.fieldsPattern&&(this.fieldsPattern=t),this.addDefinitions(e.getDefinitions())}}class j{constructor({fieldsManager:e,screensManager:t,fieldsPattern:l={}}){this.fieldsManager=e,this.screensManager=t,this.fieldsPatternCache=l||{}}getFieldsPatternByScreen(e){if(void 0===this.fieldsPatternCache[e]){const t=b(this.screensManager.getDefinition(e)||{});this.fieldsPatternCache[e]=this.getFieldsPattern(t||[])}return this.fieldsPatternCache[e]}parse(e){if(null===e)return e;const{theme:t=null,components:l=[]}=e||{},n=r(l.reduce((e,t)=>{const{type:l}=t,n=this.getFieldsPatternByScreen(l),a=j.extractFontsWithPaths(t,n);return a.length>0?[...e,...a]:e},[]),"name");if(null!==t){const{fonts:l=[],...a}=this.parse(t);return n.length>0||l.length>0?{...e,theme:a,fonts:r([...l,...n],"name")}:e}return n.length>0?{...e,fonts:n}:e}getFieldsPattern(e,t=null){return(e||[]).reduce((e,l)=>{const{name:n=null,type:a=null}=l,i=[t,n].filter(e=>null!==e&&""!==e).join("\\."),o={...null!==a?this.fieldsManager.getDefinition(a):null,...l},{fields:s=[],itemsField:r=null,settings:c=[]}=o;return[...e,...j.fieldIsFontFamily(o)?[new RegExp(`^${i}$`)]:[],...this.getFieldsPattern(s,i),...this.getFieldsPattern(c,i),...null!==r?this.getFieldsPattern([r],`${i}\\.[0-9]+`):[]]},[])}static fieldIsFontFamily({id:e=null}){return"font-family"===e}static valueIsFont({type:e=null}){return"custom"===e||"google"===e}static extractFontsWithPaths(e,t,l=null){return(m(e)?[...e.keys()]:Object.keys(e)).reduce((n,a)=>{const i=[l,a].filter(e=>null!==e).join("."),o=t.reduce((e,t)=>e||t.test(i),!1),s=e[a];let r=null,c=null;return o&&g(s)&&j.valueIsFont(s)?r=s:(g(s)||m(s))&&(c=j.extractFontsWithPaths(s,t,i)),null!==c||null!==r?[...n,...c||[],...null!==r?[r]:[]]:n},[])}}class k{test(e){const{shareIncentive:t=null,callToAction:l=null}=e||{};return null!==t||null!==l}parse(e){const{shareIncentive:t=null,callToAction:l=null,...n}=e||{},{header:a=null,footer:i=null}=e||{},o=null!==t?{...null!==t?{shareIncentive:t}:null,...null!==a?{header:a}:null}:a,s=null!==l?{...null!==l?{callToAction:l}:null,...null!==i?{footer:i}:null}:i;return{...n,...null!==o?{header:o}:null,...null!==s?{footer:s}:null}}}k.prototype.priority=0;class M{test(e){const{answers:t=null}=e||{};return null!==t&&0!==t.length&&!!(t||[]).some((e=null)=>null!==e&&void 0!==e.customAnswerLabel)}parse(e){const{answers:t=null,...l}=e||{};return{...l,answers:t.map((e=null)=>{if(null===e||void 0===e.customAnswerLabel)return e;const{customAnswerLabel:t,...l}=e||{};return{...l,result:t}})}}}M.prototype.priority=1;class N{test(e){const{type:t=null,items:l=null}=e||{};return"keypad"===t&&null!==l&&0!==l.length&&!!(l||[]).some((e=null)=>null!==e&&u(e?.label))}parse(e){const{items:t=null,...l}=e||{};return{...l,items:t.map((e=null)=>{if(null===e||!u(e?.label))return e;const{label:t,textStyle:l,...n}=e||{};return{...n,label:{body:t,textStyle:l}}})}}}N.prototype.priority=1;class ${test(e){const{type:t=null,keypadSettings:l=null}=e||{};if("keypad"!==t||null===l)return!1;const{layout:n=null}=l||{};return null!==n}parse(e){const{keypadSettings:t=null,...l}=e||{},{layout:n=null}=t||{};return{...l,keypadLayout:n}}}$.prototype.priority=1;var F=Object.freeze({__proto__:null,CustomAnswerLabel:M,KeypadItemLabel:N,KeypadSettings:$,ShareCall:k});class T{constructor({screensManager:e}){this.screensManager=e,this.parsers=Object.keys(F).map(e=>new F[e]),this.parsers.sort((e,t)=>void 0===e.priority||void 0===t.priority||e.priority===t.priority?0:e.priority<t.priority?-1:1)}parse(e){if(null===e)return e;const{components:t=[],...l}=e||{};return{...l,components:t.reduce((t,l)=>[...t,this.parsers.reduce((t,l)=>l.test(t,e)?l.parse(t,e):t,l)],[])}}}class R{constructor({screensManager:e}){this.screensManager=e,this.definitionCache={},this.fieldsCache={}}getDefinitionByScreen(e,t){if(void 0===this.definitionCache[e]){const l=this.screensManager.getDefinition(e)||{},n=t.find(t=>t.type===e)||null;this.definitionCache[e]={definition:l,themeScreen:n}}return this.definitionCache[e]}getFieldsForDefinition(e){const{id:t=null,fields:l=[],states:n=[]}=e||{};if(void 0===this.fieldsCache[t])if(null===n||0===n.length)this.fieldsCache[t]={fields:l};else{let e=l,a=[];if(null!==n&&n.length>0){const t=n.filter(({repeatable:e=!1})=>!1===e);a=n.filter(({repeatable:e=!1})=>!0===e),e=t.reduce((e,t)=>{const{fields:l=[]}=t||{};return null!==l&&l.length>0?e.concat(l):e},e)}this.fieldsCache[t]={fields:e,repetableStates:a}}return this.fieldsCache[t]}parse(e){if(null===e)return e;const{theme:t=null,components:l=null}=e||{};if(null===t||null===l)return e;const{components:n=[],background:a=null,colors:i={},textStyles:o=null,boxStyles:s=null}=t,r=l.reduce((e,t,l)=>{const{type:r}=t,{definition:c}=this.getDefinitionByScreen(r,n),d=this.parseScreen(c,t,null,a,i,o,s);return d!==t?[...e.slice(0,l),{...d},...e.slice(l+1)]:e},l);return r!==l?{...e,components:r}:e}parseScreen(e,t,l,n,a,i,o){const{fields:s=null,repetableStates:r=null}=this.getFieldsForDefinition(e),c=null===l&&null!==n?{}:l;null!==n&&void 0!==c.background?c.background={...n,...c.background}:null!==n&&(c.background=n);const d=Object.keys(t).reduce((e,l)=>{let n=null;null!==r&&r.length>0&&(n=r.find(({id:e=null})=>null!==e&&e===l)||null);const d=(s||null).find(e=>e.name===l)||n||{},u=t[l],m=null!==c&&c[l]||null,{theme:h=null}=d||{};if((null===h||!g(h))&&null===s)return{...e,[l]:u};const y=this.parseField(u,d,m,a,i,o);return y!==u?{...e,[l]:y}:e},t);return null!==c?{...c,...d}:d}parseField(e,t,l,n,a,i){const{theme:o=null,fields:s=null}=t;return null!==s&&null!==e?m(e)?e.map(e=>null===e?e:this.parseInnerFields(e,s,l,n,a,i)):this.parseInnerFields(e,s,l,n,a,i):null!==o&&g(o)?m(e)?e.map(e=>null!==e?Object.keys(e).reduce((t,l)=>{if(!g(e[l]))return t;const{textStyle:s=null,color:r=null,boxStyle:c=null}=o[l]||{};if(null===s&&null===r&&null===c)return t;const{textStyle:d=!1,boxStyle:u=!1}=e[l]||{},m=null!==r?{color:null!==r&&null!==n&&n[r]||null}:null,h=null!==s?{textStyle:!1!==d?d:{...null!==s&&null!==a&&a[s]||null,...d}}:null,y=null!==c?{boxStyle:!1!==u?u:{...null!==c&&null!==i&&i[c]||null,...u}}:null;return null===m&&null===h&&null===y?t:{...t,[l]:{...m,...e[l],...h,...y}}},e):e):g(e)?this.parseValue(e,o,l,n,a,i):e:e}parseInnerFields(e,t,l,n,a,i){return Object.keys(e).reduce((o,s)=>{const r=m(t)?t.find(e=>e.name===s)||null:t,{theme:c=null}=r||{},d=e[s];return null!==d&&null!==r&&m(d)?(o[s]=this.parseField(d,r,l,n,a,i),o):null!==d&&null!==c&&g(c)&&g(d)?(o[s]=this.parseValue(d,c,l,n,a,i),o):(o[s]=e[s],o)},{})}parseValue(e,t,l,n,a,i){if(g(e)||g(t)){const o=e||null,{textStyle:r=null,color:c=null,boxStyle:d=null,...u}=t||{};if(null===r&&null===c&&null===d&&s(u)&&!g(t))return o;let m=null;s(u)||(m=Object.keys(u).reduce((e,t)=>{const s=null!==o&&o[t]||null,r=this.parseValue(s,u[t],l,n,a,i);return{...e,...null!==r?{[t]:r}:null}},{}));const{textStyle:h=!1,boxStyle:y=!1}=o||{},p=null!==c&&null!==n&&n[c]||null,f=null!==p?{color:p}:null,b=null!==r&&null!==a&&a[r]||null,v=null!==l&&l.textStyle||null,x=null!==b||null!==v?{textStyle:!1!==h?h:{...b,...v,...h||null}}:null,S=null!==d&&null!==i&&i[d]||null,w=null!==l&&l.boxStyle||null,C=null!==S||null!==w?{boxStyle:!1!==y?y:{...S,...w,...y||null}}:null;return null!==f||null!==l||null!==x||null!==C||null!==m?{...f,...l,...o,...C,...x,...m}:o}return e}}class z{constructor({screensManager:e,fieldsManager:t,fieldsPattern:l}){const{medias:n=null,fonts:a=null}=l||{};this.themeParser=new R({screensManager:e}),this.mediasParser=new w({screensManager:e,fieldsManager:t,fieldsPattern:n}),this.fontsParser=new j({screensManager:e,fieldsManager:t,fieldsPattern:a}),this.migrationsParser=new T({screensManager:e})}parse(e,{withTheme:t=!0,withMedias:l=!0,withFonts:n=!0,withMigrations:a=!0}={}){return null===e?e:[[l,e=>this.mediasParser.fromPath(e)],[t,e=>this.themeParser.parse(e)],[n,e=>this.fontsParser.parse(e)],[a,e=>this.migrationsParser.parse(e)]].reduce((e,[t,l])=>t?l(e):e,e)}}class L extends f.yI{constructor(e={}){super(e),this.screensViewed=[]}trackScreenView(e,t){const{screensCount:l=null}=this.variables||{},{id:n=null,type:a=null,metadata:i=null,parameters:{metadata:o}={}}=e||{},{title:s,description:r}=i||o||{};-1===this.screensViewed.indexOf(n||t)&&(this.screensViewed=[...this.screensViewed,n||t]);const c={event:"screenView",screenId:n,screenType:a,screenIndex:t,screenTitle:s,screenDescrition:r,screenProgress:null!==l&&null!==t?(t+1)/l:null,screensViewed:this.screensViewed,screensViewedProgress:null!==l?this.screensViewed.length/l:null};this.push(c)}trackEvent(e=null,t=null,l=null,n=null){const{value:a=null,...i}=n||{},o={...i||null,event:"eventInteraction",eventCategory:e,eventAction:t,eventLabel:l,eventValue:a};this.push(o)}trackMedia(e=null,t=null,l=null,n=null){const{value:a=null,currentTime:i=null,...o}=n||{},{id:s=null,url:r=null,name:c=null,duration:d=null,currentTime:u=i,metadata:m={}}=t||{},{duration:g=d}=m||{},h={...o||null,event:"eventInteraction",eventCategory:e,eventAction:l,eventLabel:c||r,eventValue:a,mediaId:s,mediaUrl:r,mediaName:c};null!==g&&(h.mediaDuration=Math.round(g)),null!==u&&(h.mediaCurrentTime=Math.round(u)),null!==u&&null!==g&&g>0&&(h.mediaProgress=u/g),this.push(h)}}var I=l(1085),A=(l(3478),l(4710)),P=l(8253),B=l(986),E=l(1919);l(9182);const V=e=>null!==e?Object.keys(e).map(t=>`${(0,y.kW)(t)}:${B(e[t])?`${e[t]}px`:e[t]};`).join("\n"):"";function D(){return new DOMException("The request is not allowed","NotAllowedError")}const _=e=>(t,l,a=!0)=>{(0,n.useEffect)(()=>(a&&null!==e&&e.subscribe(t,l),()=>{a&&null!==e&&e.unsubscribe(t,l)}),[e,t,l,a])};function O(e){return"undefined"!=typeof CSS&&"function"==typeof CSS.escape?CSS.escape(e):e.replace(/([^\x00-\x7F]|[!"#$%&'()*+,.\/:;<=>?@\[\\\]^`{|}~])/g,"\\$1")}const H=(e=null,t=null)=>{if(null===e)return null;const{color:l=null,alpha:n=null}=u(e)?{color:e}:e;return null!==n||null!==t?(0,E.A)(l).setAlpha(null!==t?t:n).toRgbString():l},Z=(e=null,t,l=null)=>null===t||null===e?l:t[(0,y.fL)(e)]||t[e]||l,W=({displayName:e=null,name:t=null})=>e||t||"Component",q=e=>{if(null==e)return null;const{name:t,fallback:l=null}=g(e)?e:{name:e};return[t,l].filter(e=>null!==e).map(e=>`"${e}"`).join(", ")};function G(e={},{isPreview:t=!1,isView:l=!1,current:n=!1,openWebView:a=!1,enableInteraction:i=!0,disableInteraction:o=!1,...s}={}){const{callToAction:r=null}=e||{};return{callToAction:{...r,animationDisabled:t,focusable:n&&l,openWebView:a,enableInteraction:i,disableInteraction:o,...s}}}const Y=e=>(e-Math.floor(e)).toFixed(4),U=e=>null!==e&&m(e)?e:Object.keys(e||{}).reduce((t,l)=>[...t,{handle:l,...e[l]}],[]);function Q(e,t=null){if(g(t))return t;const{thumbnail_url:l=null,files:n=null,metadata:a=null}=e||{},{width:i,height:o}=a||{},s=U(n)||[],{url:r=null}=null!==t&&s.find(({handle:e})=>e===t)||{};return null!==r||null!==l?{url:r||l,metadata:{width:i,height:o}}:null}const X=(e=null,t=null,l=null,{resolution:n=1,maxDiff:a=800,supportsWebp:i=!1}={})=>{const{sizes:o=null,url:s=null,webp_url:r=null,metadata:{width:c,height:d}={}}=e||{},u=i&&null!==r?r:s;if(null===o||null===t&&null===l)return u;const m={original:{url:u,width:c,height:d},...o},g=null!==t&&null!==n?t*n:t,h=null!==l&&null!==n?l*n:l,{url:y}=Object.keys(m).reduce((e,t)=>{const{diff:l,isLarger:n,size:o}=e,{url:s,webp_url:r=null,width:c=null,height:d=null}=m[t],u=i&&null!==r?r:s,y=null!==c&&null!==g?c-g:null,p=null!==d&&null!==h?d-h:null,f=(null===y||y>=0)&&(null===p||p>=0);let b=[y,p].reduce((e,t)=>null!==t?(e||0)+Math.abs(t):e,null);null===b&&(b=1/0);const v=(c||0)+(d||0)>o;return b<l&&f||b<l&&(!n&&v||l>a)||b<=a&&!n&&f||b<=a&&!n&&!f&&v?{key:t,url:u,diff:b,isLarger:f}:e},{key:null,url:u,diff:1/0,isLarger:!1,size:0});return y},J=(e=null,t="backgroundColor",l=null)=>{const n=H(e,l);return null!==n?{[t]:n}:null},K=e=>{if(null==e)return null;const{width:t=null,style:l=null,color:n=null}=e;return{...null!==t?{borderWidth:t}:null,...null!==l?{borderStyle:l}:null,...J(n,"borderColor")}},ee=e=>{if(null==e)return null;const{shadowAngle:t=null,shadowDistance:l=null,shadowBlur:n=null,shadowColor:a=null}=e||{};if(!t)return null;const i=n||"0",o=H(a)||"#000000",{x:s,y:r}=(c=t,d=l,{x:(Math.cos(c)*d).toFixed(3),y:(Math.sin(c)*d).toFixed(3)});var c,d;return{boxShadow:`${s}px ${r}px ${i}px 0 ${o}`}},te=e=>{if(null===e)return null;const{backgroundColor:t=null,borderRadius:l=null,padding:n=null,paddingTop:a=null,paddingRight:i=null,paddingBottom:o=null,paddingLeft:s=null,borderWidth:r=null,borderStyle:c=null,borderColor:d=null,shadowAngle:u=null,shadowDistance:m=null,shadowBlur:h=null,shadowColor:y=null}=e,p={width:r,style:c,color:d},f={shadowAngle:u,shadowDistance:m,shadowBlur:h,shadowColor:y},{top:b=null,right:v=null,bottom:x=null,left:S=null,padding:w=null}=g(n)?n:{padding:n},C=n||w,j=null!==C,k=a||b,M=i||v,N=o||x,$=s||S,F=!j||null===k&&null===M&&null===N&&null===$?{...j?{padding:C}:null,...null!==k?{paddingTop:k}:null,...null!==M?{paddingRight:M}:null,...null!==N?{paddingBottom:N}:null,...null!==$?{paddingLeft:$}:null}:{paddingTop:k??C,paddingRight:M??C,paddingBottom:N??C,paddingLeft:$??C};return{...J(t,"backgroundColor"),...null!==l?{borderRadius:l}:null,...K(p),...ee(f),...F}},le=e=>{if(null==e)return null;const{textColor:t=null,color:l=null}=e,n=null!==l?H(l):null,a=null!==n?`0.05em 0px 0px ${n}, -0.05em 0px 0px ${n}`:null;return null!==l||null!==t?{...null!==l?J(l,"backgroundColor"):null,...null!==t?J(t,"color"):null,...null!==l?{boxShadow:a,mozBoxShadow:a,msBoxShadow:a,webkitBoxShadow:a}:null}:null},ne=e=>{if(null==e)return null;const{color:t=null,fontStyle:l}=e,{italic:n=!1,bold:a=!1,underline:i=!1}=l||{};return{...null!==t?J(t,"color"):null,...n?{fontStyle:"italic"}:null,...a?{fontWeight:"bold"}:null,...i?{textDecoration:"underline"}:null}},ae=e=>{if(null==e)return null;const{fontFamily:t=null,fontSize:l=null,fontStyle:n=null,fontWeight:a=null,lineHeight:i=null,letterSpacing:o=null,align:s=null,color:r=null}=e,{italic:c=!1,bold:d=!1,underline:u=!1,transform:m=null,outline:g=!1}=n||{};return{fontFamily:q(t),...null!==l?{fontSize:l}:null,...c?{fontStyle:"italic"}:null,...d?{fontWeight:"bold"}:null,...null!==a?{fontWeight:a}:null,...u?{textDecoration:"underline"}:null,...null!==m?{textTransform:m}:null,...null!==s?{textAlign:s}:null,...null!==i?{lineHeight:i}:null,...null!==o?{letterSpacing:o}:null,...J(r,"color"),...g?{WebkitTextStroke:`2px ${H(r,"color")}`,color:"transparent"}:null}},ie=e=>{if(null==e)return null;const{top:t=null,bottom:l=null}=e;return{...null!==t?{marginTop:t}:null,...null!==l?{marginBottom:l}:null}},oe=["video/mp4"];let se=null;function re(e=oe){if(null===se){const t=document.createElement("video");se=(e||oe).filter(e=>""!==t.canPlayType(e))}return se}const ce=(e={})=>{if(null==e)return!1;const{badge:t=null}=e||{},{active:l=!1,label:n=null}=t||{},{body:a=null}=n||{};return l&&null!==a},de=(e={})=>{if(null==e)return!1;const{callToAction:t=null}=e||{},{active:l=!1,label:n=null}=t||{},{body:a=null}=n||{};return l&&null!==a},ue=()=>["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document,me=e=>{if(null==e)return!1;const{media:t=null,url:l=null}=e||{};return null!==t||null!==l},ge=e=>{if(null==e)return!1;const{label:t=null}=e||{},{length:l=0}=t||{};return"number"==typeof l&&l>0},he=e=>{if(null==e)return!1;const{body:t=null}=e||{},{length:l=0}=t||{};return"number"==typeof l&&l>0},ye=e=>{if(null==e)return!1;let t;try{t=new URL(e)}catch(e){return!1}return"http:"===t.protocol||"https:"===t.protocol};function pe(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}function fe(e,t=0){return null!==e?Math.max((e?.currentTime||0)-t,0):0}function be(e,t=0){return null!==e?Math.max((e?.duration||0)-t,0):0}function ve(e,t="data-ts-offset"){return null!==e&&e.hasAttribute(t)?parseFloat(e.getAttribute(t)):0}function xe(e){return null!==e&&(e.muted||0===e.volume)}function Se(e){return null!==e&&!!(e.currentTime>0&&!e.paused&&!e.ended&&e.readyState>2)}function we(e){return null!==e&&(e.networkState===e.NETWORK_LOADING||e.readyState<e.HAVE_FUTURE_DATA)}function Ce(e){return null!==e?e.currentSrc||e.src:null}function je(e){return null!==e&&e.split("/")[e.split("/").length-1].split("#")[0]||null}var ke=l(124);const Me="screens",Ne=(0,n.createContext)(null),$e={},Fe=(e=null)=>{const t=(0,n.use)(Ne);return null!==e?new v(t?.getComponents(e)):t};function Te(e){const t=(0,i.c)(8),{components:l,manager:n,namespace:a,children:o}=e,s=void 0===l?$e:l,r=void 0===n?null:n,c=void 0===a?null:a,d=Fe()||null;let u;t[0]!==s||t[1]!==r||t[2]!==c||t[3]!==d?(u=new v({...null!==d?d.getComponents():null,...null!==r?r.getComponents():null,...new v(s).addNamespace(c).getComponents()}),t[0]=s,t[1]=r,t[2]=c,t[3]=d,t[4]=u):u=t[4];const m=u;let g;return t[5]!==o||t[6]!==m?(g=(0,I.jsx)(Ne,{value:m,children:o}),t[5]=o,t[6]=m,t[7]=g):g=t[7],g}const Re=(0,A.YK)({functionality_title:{id:"consent.functionality_title",defaultMessage:"Functionnal"},functionality_description:{id:"consent.functionality_description",defaultMessage:"Cookies required for the site to function properly."},analytics_title:{id:"consent.analytics_title",defaultMessage:"Analytics"},analytics_description:{id:"consent.analytics_description",defaultMessage:"Cookies used to measure user behavior."},ad_storage_title:{id:"consent.ad_storage_title",defaultMessage:"Ad Storage"},ad_storage_description:{id:"consent.ad_storage_description",defaultMessage:"Cookies used for advertising purposes."},ad_personalization_title:{id:"consent.ad_personalization_title",defaultMessage:"Ad Personalization"},ad_personalization_description:{id:"consent.ad_personalization_description",defaultMessage:"Cookies used for ad targeting."},ad_user_data_title:{id:"consent.ad_user_data_title",defaultMessage:"User Ad Data"},ad_user_data_description:{id:"consent.ad_user_data_description",defaultMessage:"Cookies used for user-specific ad data."},personalization_storage_title:{id:"consent.personalization_storage_title",defaultMessage:"Personalization Storage"},personalization_storage_description:{id:"consent.personalization_storage_description",defaultMessage:"Cookies used for personalizing user experience."},security_storage_title:{id:"consent.security_storage_title",defaultMessage:"Security Storage"},security_storage_description:{id:"consent.security_storage_description",defaultMessage:"Cookies used for security purposes."}});Re.functionality_title,Re.functionality_description,Re.security_storage_title,Re.security_storage_description,Re.personalization_storage_title,Re.personalization_storage_description,Re.analytics_title,Re.analytics_description,Re.ad_storage_title,Re.ad_storage_description,Re.ad_personalization_title,Re.ad_personalization_description,Re.ad_user_data_title,Re.ad_user_data_description;const ze=(0,n.createContext)(null),Le=(0,n.createContext)(null),Ie=()=>(0,n.use)(Le);function Ae(e){const t=(0,i.c)(17),{screens:l,namespaces:a,filterNamespaces:o,manager:s,children:r}=e,c=void 0===l?null:l,d=void 0===a?null:a,u=void 0!==o&&o,m=void 0===s?null:s,g=Ie();let h;t[0]!==u||t[1]!==m||t[2]!==d||t[3]!==g||t[4]!==c?(h=()=>{let e=null!==m?m:new C(c);return null!==(g||null)&&(e=g.merge(e)),u&&(e=e.filter(e=>{const{namespaces:t}=e,l=void 0===t?null:t;return null===l||null!==d&&l.reduce((e,t)=>e||-1!==d.indexOf(t),!1)})),e},t[0]=u,t[1]=m,t[2]=d,t[3]=g,t[4]=c,t[5]=h):h=t[5];const[y]=(0,n.useState)(h);let p;t[6]!==y?(p=()=>y.getComponents(),t[6]=y,t[7]=p):p=t[7];const[f,b]=(0,n.useState)(p);let v,x,S,w;return t[8]!==y?(v=()=>{const e=()=>b(y.getComponents());return y.on("change",e),()=>{y.off("change",e)}},x=[y,b],t[8]=y,t[9]=v,t[10]=x):(v=t[9],x=t[10]),(0,n.useEffect)(v,x),t[11]!==r||t[12]!==f?(S=(0,I.jsx)(Te,{namespace:Me,components:f,children:r}),t[11]=r,t[12]=f,t[13]=S):S=t[13],t[14]!==y||t[15]!==S?(w=(0,I.jsx)(Le,{value:y,children:S}),t[14]=y,t[15]=S,t[16]=w):w=t[16],w}const Pe=(0,n.createContext)(null),Be=()=>(0,n.useContext)(Pe);function Ee(e){const t=(0,i.c)(3),{story:l,children:n}=e,a=void 0===l?null:l;let o;return t[0]!==n||t[1]!==a?(o=(0,I.jsx)(Pe.Provider,{value:a,children:n}),t[0]=n,t[1]=a,t[2]=o):o=t[2],o}const Ve=n.createContext({}),De=()=>(0,n.useContext)(Ve),_e=(e,t=null)=>{const l=De(),{[e]:n=t}=l||{};return n};function Oe(e){const t=(0,i.c)(6),{children:l,settings:n}=e,a=void 0===n?null:n,o=De();let s;t[0]!==o||t[1]!==a?(s={...o,...a},t[0]=o,t[1]=a,t[2]=s):s=t[2];const r=s;let c;return t[3]!==l||t[4]!==r?(c=(0,I.jsx)(Ve.Provider,{value:r,children:l}),t[3]=l,t[4]=r,t[5]=c):c=t[5],c}const He=(0,n.createContext)({apiKey:null}),Ze=()=>(0,n.use)(He);function We(e){const t=(0,i.c)(5),{children:l,apiKey:n}=e,a=void 0===n?null:n,{apiKey:o}=Ze(),s=_e("googleApiKey"),r=a||o||s;let c;t[0]!==r?(c={apiKey:r},t[0]=r,t[1]=c):c=t[1];const d=c;let u;return t[2]!==l||t[3]!==d?(u=(0,I.jsx)(He,{value:d,children:l}),t[2]=l,t[3]=d,t[4]=u):u=t[4],u}const qe=n.createContext(null),Ge=()=>(0,n.useContext)(qe);function Ye(e){const t=(0,i.c)(9),{children:l,locale:a,libraries:o}=e,s=void 0===a?"fr":a,r=void 0===o?null:o,{apiKey:c}=Ze(),d=Ge(),[u,m]=(0,n.useState)(d);let g,h,y;return t[0]!==c||t[1]!==d||t[2]!==r||t[3]!==s?(g=()=>{null===d&&(0,P.pO)({apiKey:c,locale:s,libraries:r}).then(e=>{m(e)})},h=[c,s,r,m,d],t[0]=c,t[1]=d,t[2]=r,t[3]=s,t[4]=g,t[5]=h):(g=t[4],h=t[5]),(0,n.useEffect)(g,h),t[6]!==l||t[7]!==u?(y=(0,I.jsx)(qe.Provider,{value:u,children:l}),t[6]=l,t[7]=u,t[8]=y):y=t[8],y}const Ue={seekBarOnly:!1,color:null,progressColor:null},Qe=(0,n.createContext)({playing:!1,completed:!1,muted:!0,controls:!1,controlsSuggestPlay:!1,controlsVisible:!1,hasAudio:!1,isBackground:!1,media:null,mediaSrc:null,controlsTheme:Ue,currentQualityLevel:null,setMuted:()=>{},setPlaying:()=>{},setControls:()=>{},setControlsVisible:()=>{},setControlsTheme:()=>{},showControls:()=>{},hideControls:()=>{},setMedia:()=>{},setCurrentQualityLevel:()=>{},setIsBackground:()=>{},seekByProgress:()=>{},seek:()=>{}}),Xe=()=>(0,n.use)(Qe),Je=(e,t,l)=>{const a=(0,i.c)(26),o=void 0!==e&&e,s=void 0!==t&&t,r=void 0===l?null:l,{setMedia:c,setIsBackground:d,media:u,isBackground:m}=Xe(),g=(0,n.useRef)(null);let h,y,p,f,b;return a[0]!==o||a[1]!==d||a[2]!==c?(h=()=>{const{current:e}=g,t=void 0===e?null:e;return()=>{o&&(c(null),d(!1),null!==t&&t.pause())}},a[0]=o,a[1]=d,a[2]=c,a[3]=h):h=a[3],a[4]!==o||a[5]!==d||a[6]!==c||a[7]!==r?(y=[o,c,d,r],a[4]=o,a[5]=d,a[6]=c,a[7]=r,a[8]=y):y=a[8],(0,n.useEffect)(h,y),a[9]!==o||a[10]!==s||a[11]!==m||a[12]!==u||a[13]!==d||a[14]!==c?(p=()=>{!o||g.current===u&&s===m||(d(s),c(g.current))},a[9]=o,a[10]=s,a[11]=m,a[12]=u,a[13]=d,a[14]=c,a[15]=p):p=a[15],a[16]!==o||a[17]!==s||a[18]!==m||a[19]!==u||a[20]!==d||a[21]!==c||a[22]!==r?(f=[o,s,u,r,c,d,m],a[16]=o,a[17]=s,a[18]=m,a[19]=u,a[20]=d,a[21]=c,a[22]=r,a[23]=f):f=a[23],(0,n.useEffect)(p,f),a[24]!==o?(b={ref:g,isCurrent:o},a[24]=o,a[25]=b):b=a[25],b};function Ke(e,t){null!==e&&(e.currentTime=t)}const et=ke("micromag:media:playback-provider");function tt(e){const t=(0,i.c)(34),{muted:l,playing:a,paused:o,controls:s,controlsSuggestPlay:r,controlsVisible:c,controlsTheme:d,currentQualityLevel:u,children:m}=e,g=void 0===l||l,h=void 0!==a&&a,y=void 0!==o&&o,p=void 0!==s&&s,f=void 0!==r&&r,b=void 0!==c&&c,v=void 0===d?Ue:d,x=void 0===u?null:u,[S,w]=(0,n.useState)(g),[C,j]=(0,n.useState)(h),[k,M]=(0,n.useState)(null),[N,$]=(0,n.useState)(null),[F,T]=(0,n.useState)(null),[R,z]=(0,n.useState)(!1),[L,A]=(0,n.useState)(p),[P,B]=(0,n.useState)(f),[E,V]=(0,n.useState)(b),[D,_]=(0,n.useState)(v),[O,H]=(0,n.useState)(x);let Z;t[0]===Symbol.for("react.memo_cache_sentinel")?(Z=e=>{et("Set controls: %s",e),e?(A(!0),V(!0),B(!1)):(A(!1),V(!1),B(!1))},t[0]=Z):Z=t[0];const W=Z;let q;t[1]===Symbol.for("react.memo_cache_sentinel")?(q=e=>{et("Set controls theme: %o",e),_({...Ue,...e})},t[1]=q):q=t[1];const G=q;let Y;t[2]===Symbol.for("react.memo_cache_sentinel")?(Y=e=>{const t=Ce(e),l=function(e){return null!==e&&("audio"===e.tagName.toLowerCase()||"true"===e.dataset.hasAudio)}(e);null!==e?et("Set current media: %s %o",je(t),{hasAudio:l}):et("Unset current media"),M(e),H(null),$(t),T(l)},t[2]=Y):Y=t[2];const U=Y;let Q;t[3]===Symbol.for("react.memo_cache_sentinel")?(Q=e=>{e&&B(!1),j(e),et("Set playing: %s",e)},t[3]=Q):Q=t[3];const X=Q,[J,K]=(0,n.useState)(!1);let ee,te,le;t[4]!==k?(ee=()=>{const e=()=>K(!0);return null!==k&&k.addEventListener("ended",e),()=>{null!==k&&k.removeEventListener("ended",e),K(!1)}},te=[k,K],t[4]=k,t[5]=ee,t[6]=te):(ee=t[5],te=t[6]),(0,n.useEffect)(ee,te),t[7]===Symbol.for("react.memo_cache_sentinel")?(le=()=>{V(!0),et("Show controls")},t[7]=le):le=t[7];const ne=le;let ae;t[8]===Symbol.for("react.memo_cache_sentinel")?(ae=()=>{V(!1),et("Hide controls")},t[8]=ae):ae=t[8];const ie=ae;let oe;t[9]!==k?(oe=e=>{const t=be(k);null!==k&&t>0&&Ke(k,e*t)},t[9]=k,t[10]=oe):oe=t[10];const se=oe;let re;t[11]!==k?(re=e=>{null!==k&&Ke(k,e)},t[11]=k,t[12]=re):re=t[12];const ce=re;let de;t[13]!==k?(de=(e,t)=>{const l=void 0===t?null:t;null!==l&&null!==k&&l!==k||H(e)},t[13]=k,t[14]=de):de=t[14];const ue=de,me=C&&!y;let ge;t[15]!==J||t[16]!==L||t[17]!==P||t[18]!==D||t[19]!==E||t[20]!==O||t[21]!==ue||t[22]!==F||t[23]!==R||t[24]!==k||t[25]!==N||t[26]!==S||t[27]!==ce||t[28]!==se||t[29]!==me?(ge={muted:S,playing:me,completed:J,controls:L,controlsSuggestPlay:P,controlsVisible:E,media:k,mediaSrc:N,hasAudio:F,controlsTheme:D,currentQualityLevel:O,setMuted:w,setIsBackground:z,seekByProgress:se,seek:ce,isBackground:R,setPlaying:X,setControls:W,setControlsSuggestPlay:B,setControlsVisible:V,setControlsTheme:G,showControls:ne,hideControls:ie,setMedia:U,setCurrentQualityLevel:ue},t[15]=J,t[16]=L,t[17]=P,t[18]=D,t[19]=E,t[20]=O,t[21]=ue,t[22]=F,t[23]=R,t[24]=k,t[25]=N,t[26]=S,t[27]=ce,t[28]=se,t[29]=me,t[30]=ge):ge=t[30];const he=ge;let ye;return t[31]!==m||t[32]!==he?(ye=(0,I.jsx)(Qe,{value:he,children:m}),t[31]=m,t[32]=he,t[33]=ye):ye=t[33],ye}const lt=n.createContext({data:null,definition:null,renderContext:null}),nt=()=>(0,n.useContext)(lt),at=()=>{const e=(0,i.c)(8),{renderContext:t}=nt()||{},l=void 0===t?"view":t,n="placeholder"===l,a="preview"===l,o="edit"===l,s="static"===l,r="capture"===l,c="view"===l||s||r;let d;return e[0]!==r||e[1]!==o||e[2]!==n||e[3]!==a||e[4]!==s||e[5]!==l||e[6]!==c?(d={renderContext:l,isPlaceholder:n,isPreview:a,isEdit:o,isView:c,isStatic:s,isCapture:r},e[0]=r,e[1]=o,e[2]=n,e[3]=a,e[4]=s,e[5]=l,e[6]=c,e[7]=d):d=e[7],d},it=()=>{const{screenState:e}=nt()||{};return e};function ot(e){const t=(0,i.c)(13),{data:l,definition:n,renderContext:a,screenState:o,children:s}=e,r=void 0===l?null:l,c=void 0===n?null:n,d=void 0===a?null:a,u=void 0===o?null:o,{data:m,definition:g,renderContext:h,screenState:y}=nt()||{},p=void 0===g?null:g,f=void 0===h?null:h,b=void 0===y?null:y,v=r||(void 0===m?null:m)||null;let x;t[0]!==v?(x=v||{},t[0]=v,t[1]=x):x=t[1];const{type:S}=x,w=void 0===S?null:S,C=Ie();let j;t[2]!==C||t[3]!==w?(j=null!==C?C.getDefinition(w):null,t[2]=C,t[3]=w,t[4]=j):j=t[4];const k=c||j||p,M=d||f||"view",N=u||b||null;let $;t[5]!==v||t[6]!==k||t[7]!==M||t[8]!==N?($={data:v,definition:k,renderContext:M,screenState:N},t[5]=v,t[6]=k,t[7]=M,t[8]=N,t[9]=$):$=t[9];const F=$;let T;return t[10]!==s||t[11]!==F?(T=(0,I.jsx)(lt.Provider,{value:F,children:s}),t[10]=s,t[11]=F,t[12]=T):T=t[12],T}const st=n.createContext({screen:null,screens:[],width:0,height:0,resolution:1,landscape:!1}),rt=()=>(0,n.useContext)(st);function ct(e){const t=(0,i.c)(5),{size:l,children:n}=e;let a;t[0]!==l?(a=void 0===l?{}:l,t[0]=l,t[1]=a):a=t[1];const o=a,{screen:s,width:r,height:c,resolution:d}=o,u=o;let m;return t[2]!==n||t[3]!==u?(m=(0,I.jsx)(st.Provider,{value:u,children:n}),t[2]=n,t[3]=u,t[4]=m):m=t[4],m}const dt=()=>(0,n.useContext)(f.fu);function ut(e=null){const{variables:t=null,disabled:l=!1,paused:a=!1,children:i=null}=e||{},o=dt()||null,s=(0,n.useRef)(null),r=(0,n.useMemo)(()=>(null===s.current?s.current=new L({variables:{...null!==o?o.getVariables():null,...t},disabled:l,paused:a}):(s.current.setVariables({...s.current.getVariables(),...t}),s.current.setDisabled(l),s.current.setPaused(a)),s.current),[o,t,l,a]);return(0,I.jsx)(f.fE,{tracking:r,children:i})}const mt={events:new h,menuVisible:!1,menuOverScreen:!1,activityDetected:!1,width:null,height:null,topHeight:0,bottomHeight:0,bottomSidesWidth:0,gotoNextScreen:()=>{},gotoPreviousScreen:()=>{},disableInteraction:()=>{},enableInteraction:()=>{}},gt=(0,n.createContext)({...mt,webView:null,setWebView:()=>{}}),ht=()=>(0,n.use)(gt),yt=()=>{const e=(0,i.c)(3),{gotoNextScreen:t,gotoPreviousScreen:l}=ht();let n;return e[0]!==t||e[1]!==l?(n={gotoNextScreen:t,gotoPreviousScreen:l},e[0]=t,e[1]=l,e[2]=n):n=e[2],n},pt=()=>{const{activityDetected:e}=ht();return void 0!==e&&e},ft=()=>{const e=(0,i.c)(3),{disableInteraction:t,enableInteraction:l}=ht();let n;return e[0]!==t||e[1]!==l?(n={disableInteraction:t,enableInteraction:l},e[0]=t,e[1]=l,e[2]=n):n=e[2],n},bt=()=>{const e=(0,i.c)(12),{webView:t,setWebView:l}=ht(),n=null!==t;let a,o,s,r;return e[0]!==l?(a=e=>l(u(e)?{url:e}:e),o=()=>l(null),e[0]=l,e[1]=a,e[2]=o):(a=e[1],o=e[2]),e[3]!==l||e[4]!==t?(s=e=>l({...t,...e}),e[3]=l,e[4]=t,e[5]=s):s=e[5],e[6]!==n||e[7]!==a||e[8]!==o||e[9]!==s||e[10]!==t?(r={...t,opened:n,open:a,close:o,update:s},e[6]=n,e[7]=a,e[8]=o,e[9]=s,e[10]=t,e[11]=r):r=e[11],r};function vt(e){const t=(0,i.c)(18),{children:l,events:a,menuVisible:o,menuOverScreen:s,activityDetected:r,width:c,height:d,topHeight:u,bottomHeight:m,bottomSidesWidth:g,gotoNextScreen:h,gotoPreviousScreen:y,disableInteraction:p,enableInteraction:f}=e,b=void 0!==o&&o,v=void 0!==s&&s,x=void 0!==r&&r,S=void 0===u?0:u,w=void 0===m?0:m,C=void 0===g?0:g,j=void 0===h?Ct:h,k=void 0===y?wt:y,M=void 0===p?St:p,N=void 0===f?xt:f,[$,F]=(0,n.useState)(null);let T;t[0]!==x||t[1]!==w||t[2]!==C||t[3]!==M||t[4]!==N||t[5]!==a||t[6]!==j||t[7]!==k||t[8]!==d||t[9]!==v||t[10]!==b||t[11]!==S||t[12]!==$||t[13]!==c?(T={events:a,menuVisible:b,menuOverScreen:v,activityDetected:x,width:c,height:d,topHeight:S,bottomHeight:w,bottomSidesWidth:C,gotoNextScreen:j,gotoPreviousScreen:k,disableInteraction:M,enableInteraction:N,webView:$,setWebView:F},t[0]=x,t[1]=w,t[2]=C,t[3]=M,t[4]=N,t[5]=a,t[6]=j,t[7]=k,t[8]=d,t[9]=v,t[10]=b,t[11]=S,t[12]=$,t[13]=c,t[14]=T):T=t[14];const R=T;let z;return t[15]!==l||t[16]!==R?(z=(0,I.jsx)(gt,{value:R,children:l}),t[15]=l,t[16]=R,t[17]=z):z=t[17],z}function xt(){}function St(){}function wt(){}function Ct(){}const jt=(0,n.createContext)({visitor:null,setVisitor:()=>{}});function kt(){const{visitor:e}=(0,n.useContext)(jt);return e}function Mt(e){const t=(0,i.c)(13),{visitor:l,children:a}=e,o=void 0===l?null:l;let s;t[0]!==o?(s=u(o)?{id:o}:o,t[0]=o,t[1]=s):s=t[1];const[r,c]=(0,n.useState)(s);let d,m,g,h;t[2]!==o||t[3]!==r?(d=()=>{o!==r&&c(u(o)?{id:o}:o)},t[2]=o,t[3]=r,t[4]=d):d=t[4],t[5]!==o?(m=[o,c],t[5]=o,t[6]=m):m=t[6],(0,n.useEffect)(d,m),t[7]===Symbol.for("react.memo_cache_sentinel")?(g=e=>c(u(e)?{id:e}:e),t[7]=g):g=t[7],t[8]!==r?(h={visitor:r,setVisitor:g},t[8]=r,t[9]=h):h=t[9];const y=h;let p;return t[10]!==a||t[11]!==y?(p=(0,I.jsx)(jt.Provider,{value:y,children:a}),t[10]=a,t[11]=y,t[12]=p):p=t[12],p}var Nt=l(7736),$t=l(3022),Ft=l(3373),Tt=l(4739),Rt=l(9097),zt=l(719),Lt=l(2992),It=l(3464);function At(){}l(7228);const Pt=(e,t,l)=>{const a=(0,i.c)(7),o=void 0===l?300:l;let s,r;a[0]!==o||a[1]!==e||a[2]!==t?(s=()=>{const l=setTimeout(()=>{null!==e&&e(t)},o);return()=>{clearTimeout(l)}},a[0]=o,a[1]=e,a[2]=t,a[3]=s):s=a[3],a[4]!==o||a[5]!==t?(r=[t,o],a[4]=o,a[5]=t,a[6]=r):r=a[6],(0,n.useEffect)(s,r)},Bt=(_("undefined"!=typeof document?new S(document):null),{filterTaps:!0});function Et(e){const t=(0,i.c)(41),{progress:l,onTap:a,disabled:o,dragDisabled:s,computeProgress:r,onProgress:c,onPointerDown:d,onResolve:u,onScroll:m,springParams:g,dragOptions:h}=e,y=void 0===a?null:a,p=void 0!==o&&o,f=void 0!==s&&s,b=void 0===r?null:r,v=void 0===c?null:c,x=void 0===d?null:d,S=void 0===u?null:u,w=void 0===m?null:m,C=void 0===g?void 0:g,j=void 0===h?Bt:h,k=(0,n.useRef)(!1),M=(0,n.useRef)(l),[N,$]=(0,n.useState)(!1),[F,T]=(0,n.useState)(0),[R,z]=(0,n.useState)(!0);let L;t[0]===Symbol.for("react.memo_cache_sentinel")?(L=()=>{z(!1)},t[0]=L):L=t[0];const I=L;let A;t[1]===Symbol.for("react.memo_cache_sentinel")?(A=()=>{z(!0)},t[1]=A):A=t[1];const P=A,B=(0,Nt.U2)();let E;t[2]!==B||t[3]!==C||t[4]!==l?(E=()=>({ref:B,from:{progress:l},onStart:I,onRest:P,...C}),t[2]=B,t[3]=C,t[4]=l,t[5]=E):E=t[5];const[V,D]=(0,Nt.zh)(E),{progress:_}=V;let O;t[6]!==D||t[7]!==b||t[8]!==p||t[9]!==f||t[10]!==N||t[11]!==v||t[12]!==S||t[13]!==y||t[14]!==C||t[15]!==l?(O=e=>{const{active:t,tap:n,first:a}=e;if(p)return void(k.current=!1);if(n)return k.current=!1,void(null!==y&&y(e));if(f)return void(k.current=!1);const i=b(e);k.current=t,T(i<l?-1:1),M.current=i,t!==N&&$(t),D.start({progress:i,immediate:t,onResolve:e=>{t||T(0),null!==S&&S(e)},onStart:a?I:void 0,onRest:t?void 0:P,...C}),null!==v&&v(i,e)},t[6]=D,t[7]=b,t[8]=p,t[9]=f,t[10]=N,t[11]=v,t[12]=S,t[13]=y,t[14]=C,t[15]=l,t[16]=O):O=t[16];const H=O,Z=null!==x?x:void 0,W=null!==w?w:void 0;let q,G;t[17]!==H||t[18]!==Z||t[19]!==W?(q={onDrag:H,onPointerDown:Z,onScroll:W},t[17]=H,t[18]=Z,t[19]=W,t[20]=q):q=t[20],t[21]!==j?(G={drag:j},t[21]=j,t[22]=G):G=t[22];const Y=(0,$t.useGesture)(q,G),[U,Q]=(0,n.useState)(l);let X,J,K;t[23]!==D||t[24]!==p||t[25]!==S||t[26]!==C||t[27]!==l?(X=()=>{k.current||l===M.current||(T(l<M.current?-1:1),Q(l),M.current=l,D.start({progress:l,immediate:p,onResolve:e=>{T(0),null!==S&&S(e)},onStart:I,onRest:P,...C}))},J=[D,l,p,S,C,I,P],t[23]=D,t[24]=p,t[25]=S,t[26]=C,t[27]=l,t[28]=X,t[29]=J):(X=t[28],J=t[29]),(0,n.useEffect)(X,J),t[30]!==N||t[31]!==_||t[32]!==R||t[33]!==l?(K=l!==_.get()||_.isAnimating||N||!R,t[30]=N,t[31]=_,t[32]=R,t[33]=l,t[34]=K):K=t[34];const ee=K,te=l!==U?l<U?-1:1:F;let le;return t[35]!==Y||t[36]!==N||t[37]!==_||t[38]!==te||t[39]!==ee?(le={transitioning:ee,bind:Y,dragging:N,progress:_,direction:te},t[35]=Y,t[36]=N,t[37]=_,t[38]=te,t[39]=ee,t[40]=le):le=t[40],le}function Vt(){return Tt.isEnabled}function Dt(){Tt.isEnabled&&Tt.exit()}function _t(e){const t=(0,i.c)(16);let l;t[0]!==e?(l=void 0===e?{}:e,t[0]=e,t[1]=l):l=t[1];const n=l,a=(0,Rt.wY)(n);let o,s,r;t[2]!==a?(({entry:o,...s}=a),t[2]=a,t[3]=o,t[4]=s):(o=t[3],s=t[4]),t[5]!==o?(r=o||{},t[5]=o,t[6]=r):r=t[6];const{contentRect:c,borderBoxSize:d}=r,u=void 0===c?null:c,g=void 0===d?null:d;let h;t[7]!==u?(h=u||{},t[7]=u,t[8]=h):h=t[8];const{width:y,height:p}=h,f=void 0===y?0:y,b=void 0===p?0:p;let v;t[9]!==g?(v=m(g)?g[0]||{}:g||{},t[9]=g,t[10]=v):v=t[10];const{blockSize:x,inlineSize:S}=v,w=(void 0===S?null:S)||f,C=(void 0===x?null:x)||b;let j;return t[11]!==o||t[12]!==s||t[13]!==w||t[14]!==C?(j={...s,entry:o,width:w,height:C},t[11]=o,t[12]=s,t[13]=w,t[14]=C,t[15]=j):j=t[15],j}const Ot=e=>{const t=(0,i.c)(8);let l;t[0]!==e?(l=void 0===e?{}:e,t[0]=e,t[1]=l):l=t[1];const{rootMargin:a,persist:o,disabled:s}=l,r=void 0!==o&&o,c=void 0!==s&&s;let d;t[2]!==c||t[3]!==a?(d={rootMargin:a,disabled:c},t[2]=c,t[3]=a,t[4]=d):d=t[4];const{ref:u,entry:m}=(0,Rt.BL)(d),{isIntersecting:g}=m,[h,y]=(0,n.useState)(g);g&&!h&&y(g);const p=!r&&g||r&&h;let f;return t[5]!==p||t[6]!==u?(f={ref:u,visible:p},t[5]=p,t[6]=u,t[7]=f):f=t[7],f},Ht={loading:[],active:[]};function Zt(){}function Wt(e,t){const l=(0,i.c)(9);let a;l[0]!==t?(a=void 0===t?{}:t,l[0]=t,l[1]=a):a=l[1];const{attributeName:o}=a,s=void 0===o?"data-ts-offset":o;let r;l[2]!==s||l[3]!==e?(r=()=>ve(e,s),l[2]=s,l[3]=e,l[4]=r):r=l[4];const[c,d]=(0,n.useState)(r),u=(0,n.useRef)(null);let m,g;return l[5]!==s||l[6]!==e?(m=()=>(null!==e&&(u.current=new MutationObserver(t=>{t.forEach(t=>{const{type:l}=t;"attributes"===l&&d(ve(e,s))})}),u.current.observe(e,{attributes:!0,attributeFilter:[s]})),()=>{null!==u.current&&u.current.disconnect()}),g=[e,s],l[5]=s,l[6]=e,l[7]=m,l[8]=g):(m=l[7],g=l[8]),(0,n.useEffect)(m,g),c}function qt(e,t){const l=(0,i.c)(17);let a;l[0]!==t?(a=void 0===t?{}:t,l[0]=t,l[1]=a):a=l[1];const{id:o,disabled:s,updateInterval:r,onUpdate:c}=a,d=void 0===o?null:o,u=void 0!==s&&s,m=void 0===r?1e3:r,g=void 0===c?null:c,h=Wt(e);let y;l[2]!==e||l[3]!==h?(y=()=>fe(e,h),l[2]=e,l[3]=h,l[4]=y):y=l[4];const[p,f]=(0,n.useState)(y),[b,v]=(0,n.useState)(u),x=d||e,[S,w]=(0,n.useState)(x);let C,j;return x!==S?(f(fe(e,h)),w(x)):u!==b&&(f(fe(e,h)),v(u)),l[5]!==g||l[6]!==e||l[7]!==h||l[8]!==m?(C=()=>{if(null===e)return Gt;let t=fe(e,h),l=null;return l=setTimeout(function n(){const a=be(e,h),i=function(){const l=fe(e,h);return l!==t&&(t=l,f(l),null!==g&&g(l)),l}(),o=Math.floor(1e3*((a||0)-i));l=setTimeout(n,Math.max(Math.min(m,o),m))},m),()=>{null!==l&&clearTimeout(l)}},l[5]=g,l[6]=e,l[7]=h,l[8]=m,l[9]=C):C=l[9],l[10]!==g||l[11]!==u||l[12]!==S||l[13]!==e||l[14]!==h||l[15]!==m?(j=[S,e,h,f,u,m,g],l[10]=g,l[11]=u,l[12]=S,l[13]=e,l[14]=h,l[15]=m,l[16]=j):j=l[16],(0,n.useEffect)(C,j),p}function Gt(){}function Yt(e,t){const l=(0,i.c)(12);let a;l[0]!==t?(a=void 0===t?{}:t,l[0]=t,l[1]=a):a=l[1];const{id:o}=a,s=void 0===o?null:o,r=Wt(e);let c;l[2]!==e||l[3]!==r?(c=()=>be(e,r),l[2]=e,l[3]=r,l[4]=c):c=l[4];const[d,u]=(0,n.useState)(c),m=s||e,[g,h]=(0,n.useState)(m);let y,p;return m!==g?(u(be(e,r)),h(m)):null===e&&0!==d?u(0):0===d&&be(e,r)>0&&u(be(e,r)),l[5]!==e||l[6]!==r?(y=()=>{if(null===e)return Ut;const t=function(e){u(be(e.currentTarget,r))};return e.addEventListener("canplay",t),e.addEventListener("loadedmetadata",t),e.addEventListener("durationchange",t),()=>{e.removeEventListener("canplay",t),e.removeEventListener("loadedmetadata",t),e.removeEventListener("durationchange",t)}},l[5]=e,l[6]=r,l[7]=y):y=l[7],l[8]!==g||l[9]!==e||l[10]!==r?(p=[g,e,u,r],l[8]=g,l[9]=e,l[10]=r,l[11]=p):p=l[11],(0,n.useEffect)(y,p),d}function Ut(){}function Qt(){}function Xt(){}function Jt(){return Date.now()/1e3}function Kt(e,t){const l=(0,i.c)(11);let a;l[0]!==t?(a=void 0===t?{}:t,l[0]=t,l[1]=a):a=l[1];const{id:o}=a,s=void 0===o?null:o;let r;l[2]!==e?(r=()=>null!==e&&e.readyState>0,l[2]=e,l[3]=r):r=l[3];const[c,d]=(0,n.useState)(r),u=s||e,[m,g]=(0,n.useState)(u);let h,y;return u!==m?(d(null!==e&&e.readyState>0),g(u)):null===e&&c?d(!1):!c&&null!==e&&e.readyState>0&&d(!0),l[4]!==e||l[5]!==c?(h=()=>{if(null===e||c)return el;const t=function(){d(e.readyState>0)};return e.addEventListener("loadstart",t),e.addEventListener("loadeddata",t),e.addEventListener("loadedmetadata",t),e.addEventListener("canplay",t),e.addEventListener("canplaythrough",t),()=>{e.removeEventListener("loadstart",t),e.removeEventListener("loadeddata",t),e.removeEventListener("loadedmetadata",t),e.removeEventListener("canplay",t),e.removeEventListener("canplaythrough",t)}},l[4]=e,l[5]=c,l[6]=h):h=l[6],l[7]!==s||l[8]!==e||l[9]!==c?(y=[e,s,c],l[7]=s,l[8]=e,l[9]=c,l[10]=y):y=l[10],(0,n.useEffect)(h,y),c}function el(){}const tl=[.1,.25,.5,.75,.9];function ll(e){const t=(0,i.c)(8),{disabled:l,currentTime:a,duration:o,onStep:s,steps:r}=e,c=void 0!==l&&l,d=void 0===s?null:s,u=void 0===r?tl:r;let m;t[0]===Symbol.for("react.memo_cache_sentinel")?(m={},t[0]=m):m=t[0];const g=(0,n.useRef)(m);let h,y;t[1]!==a||t[2]!==c||t[3]!==o||t[4]!==d||t[5]!==u?(h=()=>{if(0===o||c)return;const e=a/o,t=g.current;u.filter(l=>e>l&&void 0===t[l]).forEach(e=>{null!==d&&d(e,{duration:o,currentTime:a}),t[e]=!0})},y=[o,a,c,d,u],t[1]=a,t[2]=c,t[3]=o,t[4]=d,t[5]=u,t[6]=h,t[7]=y):(h=t[6],y=t[7]),(0,n.useEffect)(h,y)}const nl=()=>{const e=(0,i.c)(2),[t,l]=(0,n.useState)(1);let a,o;return e[0]===Symbol.for("react.memo_cache_sentinel")?(a=()=>{l("undefined"!=typeof window&&window.devicePixelRatio||1);const e=window.matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`),t=function(){l(window.devicePixelRatio||1)};return e.addEventListener("change",t,{once:!0}),()=>{e.removeEventListener("change",t)}},o=[l],e[0]=a,e[1]=o):(a=e[0],o=e[1]),(0,n.useEffect)(a,o),t},al=2/3;function il(e){const{name:t}=e;return t}const ol=(e,t)=>{const{data:l=null}=e||{},{id:n=null,type:a}=l||{},{screenId:i=null,screenType:o=null}=t||{};return{screenId:null!==n?n:i,screenType:null!==a?a:o}},sl=e=>null!=e,rl=e=>{const t=(0,i.c)(4),l=void 0===e?null:e,n=dt(),a=nt();let o;return t[0]!==a||t[1]!==n||t[2]!==l?(o=(e,t,i)=>{const o=void 0===e?null:e,s=void 0===t?null:t,r=void 0===i?null:i;sl(n)&&"view"===a.renderContext&&null!==l&&null!==o&&n.trackEvent(`screen_${l}`,o,s,{...r,...ol(a,r)})},t[0]=a,t[1]=n,t[2]=l,t[3]=o):o=t[3],o},cl=e=>{const t=(0,i.c)(4),l=void 0===e?null:e,n=dt(),a=nt();let o;return t[0]!==a||t[1]!==n||t[2]!==l?(o=(e,t,i)=>{const o=void 0===e?null:e,s=void 0===t?null:t,r=void 0===i?null:i;sl(n)&&"view"===a.renderContext&&null!==l&&null!==o&&null!==s&&n.trackMedia(`screen_${l}`,o,s,{...r,...ol(a,r)})},t[0]=a,t[1]=n,t[2]=l,t[3]=o):o=t[3],o},dl=()=>{const e=(0,i.c)(2),t=dt();let l;return e[0]!==t?(l=(e,l,n,a)=>{const i=void 0===e?null:e,o=void 0===l?null:l,s=void 0===n?null:n,r=void 0===a?null:a;sl(t)&&null!==i&&null!==o&&t.trackEvent(i,o,s,r)},e[0]=t,e[1]=l):l=e[1],l};_("undefined"!=typeof window?new S(window):null);const ul=new class{constructor(){this.locales=[]}addLocale(e,t,l=!1){const n=this.getLocale(e);this.locales=[...null!==n?this.locales.filter(t=>t.locale!==e):this.locales,{locale:e,messages:null===n||l?t:{...n.messages,...t}}]}getLocale(e){return this.locales.find(t=>t.locale===e)||null}hasLocale(e){return null!==this.getLocale(e)}getMessages(e){const t=this.locales.find(t=>t.locale===e)||null;return null===t?null:t.messages}},ml=["en","fr"],gl=n.createContext(ml);function hl({intlManager:e=ul,locale:t=null,locales:l=null,children:a=null,extraMessages:i=null}){const o=(0,n.use)(gl),{locale:s=null,messages:r=null}=(0,n.use)(A.RK)||{},c=(0,n.useMemo)(()=>({...e.getMessages(t),...i,...s===t?r:null}),[t,s,r,i]),d=(0,n.useCallback)(e=>{"MISSING_TRANSLATION"!==e.code&&console.error(e)},[]);return(0,I.jsx)(A.Dk,{locale:t,messages:c,onError:d,children:(0,I.jsx)(gl,{value:l||o,children:a})})}var yl=l(3430),pl=(l(7331),l(6123),l(3144),l(6411)),fl=l(6705),bl=l(4895),vl=l(1485),xl=l(1383),Sl=l(887),wl=l(3852),Cl=l(7110),jl=l(5769),kl=l(2888),Ml=l(7882),Nl=l(3670),$l=l(1601),Fl=l(2678),Tl=l(7558);const Rl={};function zl(e){const t=(0,i.c)(3),{children:l,isHtml:n,values:a}=e,o=void 0===a?Rl:a;let s;var r;return t[0]!==l||t[1]!==o?(s=null!==(r=l)&&g(r)&&void 0!==r.id?(0,I.jsx)(A.sA,{values:o,...l}):l,t[0]=l,t[1]=o,t[2]=s):s=t[2],s}var Ll="micromag-core-buttons-button-withoutStyle",Il="micromag-core-buttons-button-asLink",Al="micromag-core-buttons-button-withIcon",Pl="micromag-core-buttons-button-withIconColumns",Bl="micromag-core-buttons-button-linkDisabled";function El({type:e="button",theme:t=null,size:l=null,href:n=null,external:a=!1,direct:i=!1,target:o="_blank",label:s=null,children:r=null,focusable:d=!0,active:u=!1,icon:m=null,iconPosition:g="inline",disabled:h=!1,loading:y=!1,disableOnLoading:p=!0,small:f=!1,big:b=!1,withShadow:v=!1,withoutStyle:x=!1,withoutBootstrapStyles:S=!1,withoutTheme:w=!1,asLink:C=!1,outline:j=!1,onClick:k=null,className:M=null,iconClassName:N=null,labelClassName:$=null,refButton:F=null,...T}){const R=s||r,z=null!==R?(0,I.jsx)(zl,{children:R}):null,L=null!==s&&null!==r,A=null!==m,P=A&&("inline"===g||null===z),B=A&&!P,E=(0,I.jsxs)(I.Fragment,{children:[P?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("span",{className:Ft(["micromag-core-buttons-button-icon",N]),children:m}),null!==z?(0,I.jsx)("span",{className:Ft(["micromag-core-buttons-button-label",$]),children:z}):null]}):null,B?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("span",{className:Ft(["left"===g?N:null]),children:"left"===g?m:null}),(0,I.jsx)("span",{className:Ft([$]),children:z}),(0,I.jsx)("span",{className:Ft(["micromag-core-buttons-button-right","right"===g?N:null]),children:"right"===g?m:null}),L?r:null]}):null,A?null:z,L?r:null]}),V=!w&&!x&&!C,D=Ft([S?null:{btn:V,[`btn-${j?"outline-":""}${t}`]:V&&null!==t,[`btn-${l}`]:V&&null!==l,active:!x&&u},"micromag-core-buttons-button-container",{[Ll]:x,[Al]:A,[Pl]:B,[Il]:C},M]);if(null!==n){const e=Ft([D,{disabled:h,[Bl]:h}]);return a||i?(0,I.jsx)("a",{...T,href:h?void 0:n,className:e,onClick:k,target:a?o:void 0,ref:F,tabIndex:d?void 0:-1,children:E}):(0,I.jsx)(c.N_,{href:n,className:e,onClick:k,ref:F,tabIndex:d?void 0:-1,children:E})}return(0,I.jsx)("button",{...T,type:e,className:D,onClick:k,disabled:h||p&&y,ref:F,tabIndex:d?void 0:-1,children:E})}var Vl="micromag-core-partials-spinner-animated";function Dl(e){const t=(0,i.c)(9),{animated:l,color:n,strokeWidth:a,className:o}=e,s=void 0===l||l,r=void 0===n?"currentColor":n,c=void 0===a?3:a,d=void 0===o?null:o;let u,m,g;return t[0]!==s||t[1]!==d?(u=Ft(["micromag-core-partials-spinner-container",d,{[Vl]:s}]),t[0]=s,t[1]=d,t[2]=u):u=t[2],t[3]!==r||t[4]!==c?(m=(0,I.jsx)("circle",{className:"micromag-core-partials-spinner-path",cx:"20",cy:"20",r:"12",fill:"none",stroke:r,strokeWidth:c}),t[3]=r,t[4]=c,t[5]=m):m=t[5],t[6]!==u||t[7]!==m?(g=(0,I.jsx)("svg",{className:u,width:"40",height:"40",viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg",children:m}),t[6]=u,t[7]=m,t[8]=g):g=t[8],g}function _l(e){const t=(0,i.c)(5),{color:l,className:n}=e,a=void 0===l?"#fff":l,o=void 0===n?null:n;let s,r;return t[0]!==a?(s=(0,I.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.353 0.371014L19.319 6.33704C19.6851 6.70314 19.6851 7.29671 19.319 7.66282L13.353 13.6288C12.9869 13.9949 12.3933 13.9949 12.0272 13.6288C11.6611 13.2627 11.6611 12.6692 12.0272 12.3031L16.3929 7.9374H0V6.06246H16.3929L12.0272 1.6968C11.6611 1.33069 11.6611 0.737119 12.0272 0.371014C12.3933 0.0049094 12.9869 0.0049094 13.353 0.371014Z",fill:a}),t[0]=a,t[1]=s):s=t[1],t[2]!==o||t[3]!==s?(r=(0,I.jsx)("svg",{width:"20",height:"14",viewBox:"0 0 20 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:o,children:s}),t[2]=o,t[3]=s,t[4]=r):r=t[4],r}function Ol(e){const t=(0,i.c)(7),{color:l,className:n}=e,a=void 0===l?"#fff":l,o=void 0===n?null:n;let s,r,c;return t[0]!==a?(s=(0,I.jsx)("path",{d:"M1 1L21 21",stroke:a,strokeWidth:"1.5",strokeLinecap:"round"}),r=(0,I.jsx)("path",{d:"M1 21L21 0.999998",stroke:a,strokeWidth:"1.5",strokeLinecap:"round"}),t[0]=a,t[1]=s,t[2]=r):(s=t[1],r=t[2]),t[3]!==o||t[4]!==s||t[5]!==r?(c=(0,I.jsxs)("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:o,children:[s,r]}),t[3]=o,t[4]=s,t[5]=r,t[6]=c):c=t[6],c}function Hl(e){const t=(0,i.c)(5),{color:l,className:n}=e,a=void 0===l?"#fff":l,o=void 0===n?null:n;let s,r;return t[0]!==a?(s=(0,I.jsx)("path",{d:"M11.2 0H16V4.66667H14.4V1.55556H11.2V0ZM0 0H4.8V1.55556H1.6V4.66667H0V0ZM14.4 12.4444V9.33333H16V14H11.2V12.4444H14.4ZM1.6 12.4444H4.8V14H0V9.33333H1.6V12.4444Z",fill:a}),t[0]=a,t[1]=s):s=t[1],t[2]!==o||t[3]!==s?(r=(0,I.jsx)("svg",{width:"16",height:"14",viewBox:"0 0 16 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:o,children:s}),t[2]=o,t[3]=s,t[4]=r):r=t[4],r}function Zl(e){const t=(0,i.c)(9),{color:l,className:n}=e,a=void 0===l?"#fff":l,o=void 0===n?null:n;let s,r,c,d;return t[0]!==a?(s=(0,I.jsx)("path",{d:"M7.09929 8.77987H1C0.447715 8.77987 0 9.22758 0 9.77987V15.7799C0 16.3322 0.447715 16.7799 1 16.7799H7.1076C7.35984 16.7799 7.60276 16.8752 7.78768 17.0467L14.3199 23.1062C14.9599 23.6999 16 23.246 16 22.3731V3.00199C16 2.12221 14.9458 1.67117 14.3095 2.2787L7.78983 8.50316C7.6038 8.68077 7.35649 8.77987 7.09929 8.77987Z",fill:a}),r=(0,I.jsx)("path",{d:"M18 18.6875C21.3137 18.6875 24 16.0012 24 12.6875C24 9.37379 21.3137 6.6875 18 6.6875",stroke:a}),c=(0,I.jsx)("path",{d:"M18 15.6875C19.6569 15.6875 21 14.3444 21 12.6875C21 11.0306 19.6569 9.6875 18 9.6875",stroke:a}),t[0]=a,t[1]=s,t[2]=r,t[3]=c):(s=t[1],r=t[2],c=t[3]),t[4]!==o||t[5]!==s||t[6]!==r||t[7]!==c?(d=(0,I.jsxs)("svg",{width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:o,children:[s,r,c]}),t[4]=o,t[5]=s,t[6]=r,t[7]=c,t[8]=d):d=t[8],d}function Wl(e){const t=(0,i.c)(7),{color:l,className:n}=e,a=void 0===l?"#fff":l,o=void 0===n?null:n;let s,r,c;return t[0]!==a?(s=(0,I.jsx)("rect",{width:"6",height:"18",rx:"2",fill:a}),r=(0,I.jsx)("rect",{x:"8",width:"6",height:"18",rx:"2",fill:a}),t[0]=a,t[1]=s,t[2]=r):(s=t[1],r=t[2]),t[3]!==o||t[4]!==s||t[5]!==r?(c=(0,I.jsxs)("svg",{className:o,width:"14",height:"18",viewBox:"0 0 14 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s,r]}),t[3]=o,t[4]=s,t[5]=r,t[6]=c):c=t[6],c}function ql(e){const t=(0,i.c)(5),{color:l,className:n}=e,a=void 0===l?"#fff":l,o=void 0===n?null:n;let s,r;return t[0]!==a?(s=(0,I.jsx)("path",{d:"M38.2,25.7L5.5,44.6C3,46,0,44.2,0,41.4L0,3.6c0-2.8,3-4.5,5.5-3.1l32.7,18.9C40.6,20.8,40.6,24.3,38.2,25.7z",fill:a,stroke:a}),t[0]=a,t[1]=s):s=t[1],t[2]!==o||t[3]!==s?(r=(0,I.jsx)("svg",{width:"40",height:"45.1",viewBox:"0 0 40 45.1",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:o,children:s}),t[2]=o,t[3]=s,t[4]=r):r=t[4],r}function Gl(e){const t=(0,i.c)(7),{color:l,className:n}=e,a=void 0===l?"#fff":l,o=void 0===n?null:n;let s,r,c;return t[0]!==a?(s=(0,I.jsx)("path",{d:"M7.09929 8.77987H1C0.447715 8.77987 0 9.22758 0 9.77987V15.7799C0 16.3322 0.447715 16.7799 1 16.7799H7.1076C7.35984 16.7799 7.60276 16.8752 7.78768 17.0467L14.3199 23.1062C14.9599 23.6999 16 23.246 16 22.3731V3.00199C16 2.12221 14.9458 1.67117 14.3095 2.2787L7.78983 8.50316C7.6038 8.68077 7.35649 8.77987 7.09929 8.77987Z",fill:a}),r=(0,I.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.8536 13.3946L23 15.5411L23.7071 14.834L21.5607 12.6875L23.7071 10.5411L23 9.83398L20.8536 11.9804L18.7071 9.83398L18 10.5411L20.1464 12.6875L18 14.834L18.7071 15.5411L20.8536 13.3946Z",fill:a}),t[0]=a,t[1]=s,t[2]=r):(s=t[1],r=t[2]),t[3]!==o||t[4]!==s||t[5]!==r?(c=(0,I.jsxs)("svg",{width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:o,children:[s,r]}),t[3]=o,t[4]=s,t[5]=r,t[6]=c):c=t[6],c}(0,A.YK)({previous:{id:"menus.pagination.previous",defaultMessage:"Previous"},next:{id:"menus.pagination.next",defaultMessage:"next"}});var Yl="micromag-core-modals-hasModals";W(function(e){const t=(0,i.c)(12),{modals:l,setModalsContainer:a,className:o}=e,s=void 0===o?null:o,r=(0,n.useRef)(null);let c,d,u;t[0]!==a?(c=()=>{a(r.current)},t[0]=a,t[1]=c):c=t[1],t[2]===Symbol.for("react.memo_cache_sentinel")?(d=[],t[2]=d):d=t[2],(0,n.useEffect)(c,d),t[3]!==s?(u=Ft(["micromag-core-modals-container",s]),t[3]=s,t[4]=u):u=t[4];const m=l.length>0;let g,h,y;return t[5]!==m?(g=Ft(["micromag-core-modals-modals",{[Yl]:m}]),t[5]=m,t[6]=g):g=t[6],t[7]!==g?(h=(0,I.jsx)("div",{className:g,ref:r}),t[7]=g,t[8]=h):h=t[8],t[9]!==u||t[10]!==h?(y=(0,I.jsx)("div",{className:u,children:h}),t[9]=u,t[10]=h,t[11]=y):y=t[11],y});var Ul={container:"micromag-core-panels-container"};const Ql=[];function Xl(e){const t=(0,i.c)(14),{stroke:l,border:n,fill:a,className:o}=e,s=void 0===l?"currentColor":l,r=void 0===n?"rgba(0,0,0,0.67)":n,c=void 0===a?"#fff":a,d=void 0===o?null:o;let u,m,g,h,y;return t[0]!==r?(u=r?(0,I.jsx)("path",{fill:r,d:"M374,47.5c11.9,0,21.5,9.6,21.5,21.5s-9.6,21.5-21.5,21.5s-21.5-9.6-21.5-21.5c0,0,0,0,0,0\n C352.5,57.1,362.1,47.5,374,47.5z"}):null,t[0]=r,t[1]=u):u=t[1],t[2]!==c?(m=(0,I.jsx)("path",{fill:c,d:"M374,50c10.5,0,19,8.5,19,19s-8.5,19-19,19s-19-8.5-19-19S363.5,50,374,50z"}),t[2]=c,t[3]=m):m=t[3],t[4]!==c||t[5]!==s?(g=(0,I.jsx)("g",{transform:"translate(366.893 61.893)",children:(0,I.jsxs)("g",{transform:"translate(0 0)",children:[(0,I.jsx)("path",{fill:c,stroke:s,strokeWidth:"2",strokeLinecap:"round",d:"M14.2,0.3L0,13.9"}),(0,I.jsx)("path",{fill:c,stroke:s,strokeWidth:"2",strokeLinecap:"round",d:"M0.3,0l13.7,14.2"})]})}),t[4]=c,t[5]=s,t[6]=g):g=t[6],t[7]!==u||t[8]!==m||t[9]!==g?(h=(0,I.jsxs)("g",{transform:"translate(-352.531 -47.531)",children:[u,m,g]}),t[7]=u,t[8]=m,t[9]=g,t[10]=h):h=t[10],t[11]!==d||t[12]!==h?(y=(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"42.9",height:"42.9",viewBox:"0 0 42.9 42.9",className:d,children:h}),t[11]=d,t[12]=h,t[13]=y):y=t[13],y}(e=>{W(e)})(function(e){const t=(0,i.c)(12),{panels:l,setPanelsContainer:a,className:o}=e,s=void 0===l?Ql:l,r=void 0===a?null:a,c=void 0===o?null:o,d=(0,n.useRef)(null);let u,m,g;t[0]!==r?(u=()=>{r(d.current)},t[0]=r,t[1]=u):u=t[1],t[2]===Symbol.for("react.memo_cache_sentinel")?(m=[],t[2]=m):m=t[2],(0,n.useEffect)(u,m),t[3]!==c?(g=Ft([Ul.container,c]),t[3]=c,t[4]=g):g=t[4];const h=s.length>0;let y,p,f;return t[5]!==h?(y=Ft([Ul.panels,{[Ul.hasPanels]:h}]),t[5]=h,t[6]=y):y=t[6],t[7]!==y?(p=(0,I.jsx)("div",{className:y,ref:d}),t[7]=y,t[8]=p):p=t[8],t[9]!==g||t[10]!==p?(f=(0,I.jsx)("div",{className:g,children:p}),t[9]=g,t[10]=p,t[11]=f):f=t[11],f});var Jl="micromag-core-partials-placeholder-block-outline",Kl="micromag-core-partials-placeholder-block-withInvertedColors";function en(e){const t=(0,i.c)(16),{width:l,height:n,outline:a,className:o,boxClassName:s,withInvertedColors:r,children:c}=e,d=void 0===l?"100%":l,u=void 0===n?"3em":n,m=void 0!==a&&a,g=void 0===o?null:o,h=void 0===s?null:s,y=void 0===r||r,p=void 0===c?null:c;let f,b,v,x,S;return t[0]!==g||t[1]!==m||t[2]!==y?(f=Ft(["micromag-core-partials-placeholder-block-container",g,{[Jl]:m,[Kl]:y}]),t[0]=g,t[1]=m,t[2]=y,t[3]=f):f=t[3],t[4]!==h?(b=Ft(["micromag-core-partials-placeholder-block-box",h]),t[4]=h,t[5]=b):b=t[5],t[6]!==u||t[7]!==d?(v={width:d,height:u},t[6]=u,t[7]=d,t[8]=v):v=t[8],t[9]!==p||t[10]!==v||t[11]!==b?(x=(0,I.jsx)("div",{className:b,style:v,children:p}),t[9]=p,t[10]=v,t[11]=b,t[12]=x):x=t[12],t[13]!==x||t[14]!==f?(S=(0,I.jsx)("div",{className:f,children:x}),t[13]=x,t[14]=f,t[15]=S):S=t[15],S}var tn={container:"micromag-core-partials-empty-container",middle:"micromag-core-partials-empty-middle",withoutBorder:"micromag-core-partials-empty-withoutBorder"};function ln(e){const t=(0,i.c)(9),{children:l,withoutBorder:n,light:a,className:o}=e,s=void 0===l?null:l,r=void 0!==n&&n,c=void 0!==a&&a,d=void 0===o?null:o;let u,m,g;return t[0]!==d||t[1]!==c||t[2]!==r?(u=Ft([tn.container,d,{[tn.withoutBorder]:r,[tn.light]:c}]),t[0]=d,t[1]=c,t[2]=r,t[3]=u):u=t[3],t[4]!==s?(m=(0,I.jsx)("div",{className:tn.middle,children:(0,I.jsx)(zl,{children:s})}),t[4]=s,t[5]=m):m=t[5],t[6]!==u||t[7]!==m?(g=(0,I.jsx)("div",{className:u,children:m}),t[6]=u,t[7]=m,t[8]=g):g=t[8],g}const nn=[],an=["eot","woff2","woff",{name:"otf",format:"opentype"},{name:"ttf",format:"truetype"},"svg"],on=(e,t)=>{const{files:l={}}=e||{},{original:n=null}=l||{},{name:a=null,mime:i=null}=n||{};return t.reduce((e,t)=>{const o=g(t)?t.format:t,s=g(t)?t.name:t,r=l[`webfonts.${s}`]||l[s]||null;if(null!==r)return[...e,`url("${r.url}?") format("${o}")`];const c=new RegExp(`.${s}$`,"i"),d=new RegExp(`${o}`,"i");return null!==a&&null!==a.match(c)||null!==i&&null!==i.match(d)?[...e,`url("${n.url}?") format("${o}")`]:e},[])};function sn(e){const t=(0,i.c)(3),{fonts:l,formats:n}=e,a=void 0===l?nn:l,o=void 0===n?an:n;let s;if(t[0]!==a||t[1]!==o){const e=(a||[]).filter(cn).reduce((e,t)=>{const{name:l,media:n,variants:a}=t,i=void 0===l?null:l,s=void 0===n?null:n,r=void 0===a?[]:a;if(null===i)return e;const c=null!==s?on(s,o):null,d=i.toLowerCase();return{...e,[d]:null!==c&&c.length>0?`\n @font-face {\n font-family: "${i}";\n src: ${c.join(",")};\n }\n `:null,...r.reduce((e,t)=>{const{weight:l,style:n,media:a}=t,s=void 0===a?null:a;if(null==s)return e;const r=on(s,o),c=`${d}-${null!==l?l:"normal"}-${null!==n?n:"normal"}`;return{...e,[c]:null!==r&&r.length>0?`\n @font-face {\n font-family: "${i}";\n ${null!==l?`font-weight: ${l};`:""}\n ${null!==n?`font-style: ${n};`:""}\n src: ${r.join(",")};\n }\n `:null}},{})}},{});s=Object.keys(e).length>0?(0,I.jsx)("style",{type:"text/css",dangerouslySetInnerHTML:{__html:Object.keys(e).map(t=>e[t]).filter(rn).join("\n")}}):null,t[0]=a,t[1]=o,t[2]=s}else s=t[2];return s}function rn(e){return null!==e}function cn(e){return g(e)&&"custom"===e.type&&null!==(e.media||null)}function dn(e){const t=(0,i.c)(75),{title:l,url:n,metadata:a,fullTitle:o,suffix:s,children:r}=e,c=void 0===l?null:l,d=void 0===n?null:n,g=void 0===a?null:a,h=void 0===o?null:o,y=void 0===s?"Micromag":s,p=void 0===r?null:r;let f;t[0]!==g?(f=g||{},t[0]=g,t[1]=f):f=t[1];const{canonical:b,description:v,keywords:x,image:S,favicon:w,rssUrl:C,atomUrl:j,microformats:k,language:M}=f,N=void 0===b?null:b,$=void 0===v?null:v,F=void 0===x?null:x,T=void 0===S?null:S,R=void 0===w?null:w,z=void 0===C?null:C,L=void 0===j?null:j,A=void 0===k?null:k,P=void 0===M?null:M,B=null!==c?`${c} | ${y}`:h;let E;t[2]!==T?(E=T||{},t[2]=T,t[3]=E):E=t[3];const{url:V,metadata:D}=E,_=void 0===V?null:V,O=void 0===D?null:D;let H;t[4]!==O?(H=O||{},t[4]=O,t[5]=H):H=t[5];const{width:Z,height:W}=H,q=void 0===Z?null:Z,G=void 0===W?null:W;let Y;t[6]!==R?(Y=R||{},t[6]=R,t[7]=Y):Y=t[7];const{url:U}=Y,Q=void 0===U?null:U,X=null!==B&&B.length>0?B:"Micromag";let J,K,ee,te,le,ne,ae,ie,oe,se,re,ce,de,ue,me,ge;t[8]!==X?(J=(0,I.jsx)("title",{children:X}),t[8]=X,t[9]=J):J=t[9],t[10]!==$?(K=null!==$?(0,I.jsx)("meta",{name:"description",content:$}):null,t[10]=$,t[11]=K):K=t[11],t[12]!==P?(ee=null!==P?(0,I.jsx)("meta",{name:"language",content:P}):null,t[12]=P,t[13]=ee):ee=t[13],t[14]!==F?(te=null!==F&&u(F)?(0,I.jsx)("meta",{name:"keywords",content:F}):null,t[14]=F,t[15]=te):te=t[15],t[16]!==F?(le=null!==F&&m(F)?(0,I.jsx)("meta",{name:"keywords",content:F.join(",")}):null,t[16]=F,t[17]=le):le=t[17],t[18]!==N?(ne=null!==N?(0,I.jsx)("link",{rel:"canonical",href:N}):null,t[18]=N,t[19]=ne):ne=t[19],t[20]!==Q?(ae=null!==Q?(0,I.jsx)("link",{rel:"icon",type:"image/png",href:Q}):null,t[20]=Q,t[21]=ae):ae=t[21],t[22]!==z?(ie=null!==z?(0,I.jsx)("link",{rel:"alternate",type:"application/rss+xml",href:z}):null,t[22]=z,t[23]=ie):ie=t[23],t[24]!==L?(oe=null!==L?(0,I.jsx)("link",{rel:"alternate",type:"application/atom+xml",href:L}):null,t[24]=L,t[25]=oe):oe=t[25],t[26]!==_?(se=null!==_?(0,I.jsx)("meta",{property:"og:image",content:_}):null,t[26]=_,t[27]=se):se=t[27],t[28]!==_?(re=null!==_?(0,I.jsx)("meta",{property:"og:image:url",content:_}):null,t[28]=_,t[29]=re):re=t[29],t[30]!==q?(ce=null!==q?(0,I.jsx)("meta",{property:"og:image:width",content:q}):null,t[30]=q,t[31]=ce):ce=t[31],t[32]!==G?(de=null!==G?(0,I.jsx)("meta",{property:"og:image:height",content:G}):null,t[32]=G,t[33]=de):de=t[33],t[34]!==B?(ue=null!==B?(0,I.jsx)("meta",{property:"og:title",content:B}):null,t[34]=B,t[35]=ue):ue=t[35],t[36]!==$?(me=null!==$?(0,I.jsx)("meta",{property:"og:description",content:$}):null,t[36]=$,t[37]=me):me=t[37],t[38]!==d?(ge=null!==d?(0,I.jsx)("meta",{property:"og:url",content:d}):null,t[38]=d,t[39]=ge):ge=t[39];const he=null!==_?"summary_large_image":"summary";let ye,pe,fe,be,ve,xe,Se;return t[40]!==he?(ye=(0,I.jsx)("meta",{name:"twitter:card",content:he}),t[40]=he,t[41]=ye):ye=t[41],t[42]!==B?(pe=null!==B?(0,I.jsx)("meta",{name:"twitter:title",content:B}):null,t[42]=B,t[43]=pe):pe=t[43],t[44]!==$?(fe=null!==$?(0,I.jsx)("meta",{name:"twitter:description",content:$}):null,t[44]=$,t[45]=fe):fe=t[45],t[46]!==_?(be=null!==_?(0,I.jsx)("meta",{name:"twitter:image",content:_}):null,t[46]=_,t[47]=be):be=t[47],t[48]!==A?(ve=A||[],t[48]=A,t[49]=ve):ve=t[49],t[50]!==ve?(xe=ve.map(un),t[50]=ve,t[51]=xe):xe=t[51],t[52]!==p||t[53]!==J||t[54]!==K||t[55]!==ee||t[56]!==te||t[57]!==le||t[58]!==ne||t[59]!==ae||t[60]!==ie||t[61]!==oe||t[62]!==se||t[63]!==re||t[64]!==ce||t[65]!==de||t[66]!==ue||t[67]!==me||t[68]!==ge||t[69]!==ye||t[70]!==pe||t[71]!==fe||t[72]!==be||t[73]!==xe?(Se=(0,I.jsxs)(I.Fragment,{children:[J,K,ee,te,le,ne,ae,ie,oe,se,re,ce,de,ue,me,ge,ye,pe,fe,be,xe,p]}),t[52]=p,t[53]=J,t[54]=K,t[55]=ee,t[56]=te,t[57]=le,t[58]=ne,t[59]=ae,t[60]=ie,t[61]=oe,t[62]=se,t[63]=re,t[64]=ce,t[65]=de,t[66]=ue,t[67]=me,t[68]=ge,t[69]=ye,t[70]=pe,t[71]=fe,t[72]=be,t[73]=xe,t[74]=Se):Se=t[74],Se}function un(e){return(0,I.jsx)("script",{type:"application/ld+json",id:`${e["@type"]}-${e.identifier}`,async:!0,children:JSON.stringify(e)},`microformat-${e["@type"]}-${e.identifier}`)}var mn={icon:"micromag-core-placeholders-icon"},gn="micromag-core-partials-placeholder-text-withInvertedColors";function hn(e){const t=(0,i.c)(19),{lines:l,lineMargin:n,width:a,height:o,fontSize:s,className:r,withInvertedColors:c}=e,d=void 0===l?1:l,u=void 0===n?1:n,m=void 0===a?"100%":a,g=void 0===o?null:o,h=void 0===s?16:s,y=void 0===r?null:r,p=void 0===c||c;let f;t[0]!==h||t[1]!==g?(f=null!==g&&B(g)?`${Math.round(g*h)}px`:g,t[0]=h,t[1]=g,t[2]=f):f=t[2];const b=f;let v;t[3]!==m?(v=B(m)?.9*m:"80%",t[3]=m,t[4]=v):v=t[4];const x=v;let S,w,C,j;return t[5]!==y||t[6]!==p?(S=Ft(["micromag-core-partials-placeholder-text-container",y,{[gn]:p}]),t[5]=y,t[6]=p,t[7]=S):S=t[7],t[8]!==d?(w=[...Array(d)],t[8]=d,t[9]=w):w=t[9],t[10]!==b||t[11]!==u||t[12]!==x||t[13]!==w||t[14]!==m?(C=w.map((e,t)=>(0,I.jsx)("div",{className:"micromag-core-partials-placeholder-text-line",style:{width:t%2==0?m:x,height:b,marginTop:u,marginBottom:u}},`line-${t}`)),t[10]=b,t[11]=u,t[12]=x,t[13]=w,t[14]=m,t[15]=C):C=t[15],t[16]!==S||t[17]!==C?(j=(0,I.jsx)("div",{className:S,children:C}),t[16]=S,t[17]=C,t[18]=j):j=t[18],j}function yn(e){const t=(0,i.c)(11);let l,n,a,o,s,r;return t[0]!==e?(({width:o,height:n,className:l,...a}=e),t[0]=e,t[1]=l,t[2]=n,t[3]=a,t[4]=o):(l=t[1],n=t[2],a=t[3],o=t[4]),t[5]===Symbol.for("react.memo_cache_sentinel")?(s=(0,I.jsx)(yl.gc,{icon:fl.jb,className:mn.icon}),t[5]=s):s=t[5],t[6]!==l||t[7]!==n||t[8]!==a||t[9]!==o?(r=(0,I.jsx)(en,{...a,width:o,height:n,className:l,children:s}),t[6]=l,t[7]=n,t[8]=a,t[9]=o,t[10]=r):r=t[10],r}var pn="micromag-core-placeholders-map-icon";function fn(e){const t=(0,i.c)(18),l=null!==e.className;let n;t[0]!==e.className||t[1]!==l?(n=Ft(["micromag-core-placeholders-map-container",{[e.className]:l}]),t[0]=e.className,t[1]=l,t[2]=n):n=t[2];const a=e.withImages?fl.jb:vl.Pc;let o;t[3]!==a?(o=(0,I.jsx)(yl.gc,{icon:a,className:pn}),t[3]=a,t[4]=o):o=t[4];const s=e.withImages?fl.jb:vl.Pc;let r;t[5]!==s?(r=(0,I.jsx)(yl.gc,{icon:s,className:pn}),t[5]=s,t[6]=r):r=t[6];const c=e.withImages?fl.jb:vl.Pc;let d;t[7]!==c?(d=(0,I.jsx)(yl.gc,{icon:c,className:pn}),t[7]=c,t[8]=d):d=t[8];const u=e.withImages?fl.jb:vl.Pc;let m,g;return t[9]!==u?(m=(0,I.jsx)(yl.gc,{icon:u,className:pn}),t[9]=u,t[10]=m):m=t[10],t[11]!==e||t[12]!==n||t[13]!==o||t[14]!==r||t[15]!==d||t[16]!==m?(g=(0,I.jsxs)(en,{...e,width:"100%",height:"100%",className:n,children:[o,r,d,m]}),t[11]=e,t[12]=n,t[13]=o,t[14]=r,t[15]=d,t[16]=m,t[17]=g):g=t[17],g}function bn(e){const t=(0,i.c)(5);let l,n;return t[0]!==e.className?(l=Ft([e.className,mn.subtitle]),t[0]=e.className,t[1]=l):l=t[1],t[2]!==e||t[3]!==l?(n=(0,I.jsx)(hn,{...e,className:l,height:.3,lines:1}),t[2]=e,t[3]=l,t[4]=n):n=t[4],n}function vn(e){const t=(0,i.c)(8),{className:l,height:n,lines:a,lineMargin:o}=e,s=void 0===l?null:l,r=void 0===n?.2:n,c=void 0===a?4:a,d=void 0===o?2:o;let u,m;return t[0]!==s?(u=Ft([s,mn.text]),t[0]=s,t[1]=u):u=t[1],t[2]!==r||t[3]!==d||t[4]!==c||t[5]!==e||t[6]!==u?(m=(0,I.jsx)(hn,{...e,height:r,lines:c,lineMargin:d,className:u}),t[2]=r,t[3]=d,t[4]=c,t[5]=e,t[6]=u,t[7]=m):m=t[7],m}function xn(e){const t=(0,i.c)(8),{height:l,lines:n,lineMargin:a}=e,o=void 0===l?.5:l,s=void 0===n?2:n,r=void 0===a?2:a;let c,d;return t[0]!==e.className?(c=Ft([e.className,mn.title]),t[0]=e.className,t[1]=c):c=t[1],t[2]!==o||t[3]!==r||t[4]!==s||t[5]!==e||t[6]!==c?(d=(0,I.jsx)(hn,{...e,className:c,height:o,lines:s,lineMargin:r}),t[2]=o,t[3]=r,t[4]=s,t[5]=e,t[6]=c,t[7]=d):d=t[7],d}function Sn(e){const t=(0,i.c)(5),{width:l,height:n,className:a}=e;let o,s;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=(0,I.jsx)(yl.gc,{icon:Sl.n2,className:mn.icon}),t[0]=o):o=t[0],t[1]!==a||t[2]!==n||t[3]!==l?(s=(0,I.jsx)(en,{width:l,height:n,className:a,children:o}),t[1]=a,t[2]=n,t[3]=l,t[4]=s):s=t[4],s}function wn(e){const t=(0,i.c)(8),{width:l,height:n,className:a}=e;let o,s,r,c;return t[0]!==a?(o=Ft(["micromag-core-placeholders-video-360-container",a]),t[0]=a,t[1]=o):o=t[1],t[2]===Symbol.for("react.memo_cache_sentinel")?(s=(0,I.jsx)(yl.gc,{icon:Sl.n2,className:"micromag-core-placeholders-video-360-icon"}),r=(0,I.jsx)("div",{className:"micromag-core-placeholders-video-360-label",children:"360"}),t[2]=s,t[3]=r):(s=t[2],r=t[3]),t[4]!==n||t[5]!==o||t[6]!==l?(c=(0,I.jsxs)(en,{width:l,height:n,className:o,boxClassName:"micromag-core-placeholders-video-360-box",children:[s,r]}),t[4]=n,t[5]=o,t[6]=l,t[7]=c):c=t[7],c}function Cn(e){const t=(0,i.c)(26),{width:l,height:a,fit:o,screenWidth:s,screenHeight:r,className:c,children:d}=e,u=void 0===l?null:l,m=void 0===a?null:a,g=void 0===o?null:o,h=void 0===s?320:s,y=void 0===r?480:r,p=void 0===c?null:c,f=null!==u||null!==m,{ref:b,width:v,height:x}=_t();let S=null,w=null,C=null,j=null;const k=u??(void 0===v?0:v)??null,M=m??(void 0===x?0:x)??null;if(null!==k&&null!==M){const e=h/y,l=f?u||M*e:k,n=f&&m||k/e;if(null!==g){const e="cover"===g;let a;t[0]!==n||t[1]!==l||t[2]!==y||t[3]!==h||t[4]!==e?(a=(0,Fl.kL)(h,y,l,n,{cover:e}),t[0]=n,t[1]=l,t[2]=y,t[3]=h,t[4]=e,t[5]=a):a=t[5];const{width:i,height:o,scale:s}=a;S=l,w=n,C=s,j=`scale(${s}) translate(${(l-i)/2}px, ${(n-o)/2}px)`}else{const e=l/h;S=l,w=n,C=e,j=`scale(${e})`}}const N=nl();let $;t[6]===Symbol.for("react.memo_cache_sentinel")?($=["mobile"],t[6]=$):$=t[6];const F=null!==C?C*N:N;let T;t[7]!==y||t[8]!==h||t[9]!==F?(T={screen:"mobile",screens:$,width:h,height:y,resolution:F},t[7]=y,t[8]=h,t[9]=F,t[10]=T):T=t[10];const R=T,z=null!==S&&null!==w;let L;t[11]!==p?(L=Ft(["micromag-core-screens-screen-sizer-container",p]),t[11]=p,t[12]=L):L=t[12];const A=f?null:b;let P,B;return t[13]!==d||t[14]!==w||t[15]!==S||t[16]!==z||t[17]!==y||t[18]!==R||t[19]!==j||t[20]!==h?(P=z?(0,I.jsx)("div",{className:"micromag-core-screens-screen-sizer-frame",style:{width:S,height:w},children:(0,I.jsx)("div",{className:"micromag-core-screens-screen-sizer-screen",style:{width:h,height:y,transform:j},children:(0,I.jsx)(ct,{size:R,children:(0,n.cloneElement)(d,{width:h,height:y})})})}):null,t[13]=d,t[14]=w,t[15]=S,t[16]=z,t[17]=y,t[18]=R,t[19]=j,t[20]=h,t[21]=P):P=t[21],t[22]!==L||t[23]!==A||t[24]!==P?(B=(0,I.jsx)("div",{className:L,ref:A,children:P}),t[22]=L,t[23]=A,t[24]=P,t[25]=B):B=t[25],B}function jn(e){const t=(0,i.c)(20),{screen:l,renderContext:n,screenState:a,index:o,active:s,current:r,preload:c,components:d,component:m,className:g,mediaRef:h}=e,y=void 0===n?null:n,p=void 0===a?null:a,f=void 0===o?null:o,b=void 0===s||s,v=void 0!==r&&r,x=void 0===c||c,S=void 0===d?null:d,w=void 0===m?null:m,C=void 0===g?null:g,j=void 0===h?null:h;let k;t[0]!==l?(k=l||{},t[0]=l,t[1]=k):k=t[1];const{type:M}=k,N=void 0===M?null:M;let $;t[2]!==S||t[3]!==N?($=null!==S&&Z(N,S)||null,t[2]=S,t[3]=N,t[4]=$):$=t[4];const F=$,T=((e,t,l)=>{const n=(0,i.c)(4),a=void 0===t?null:t,o=Fe(void 0===l?null:l);if(!u(e))return e||a;let s;return n[0]!==a||n[1]!==o||n[2]!==e?(s=o?.getComponent(e)||a,n[0]=a,n[1]=o,n[2]=e,n[3]=s):s=n[3],s})(N,null,Me),R=F||T;let z,L;return t[5]!==R||t[6]!==b||t[7]!==C||t[8]!==w||t[9]!==v||t[10]!==f||t[11]!==j||t[12]!==x||t[13]!==l?(z=null!==R?(0,I.jsx)("div",{className:Ft(["micromag-core-screens-screen-container",C]),children:(0,I.jsx)(R,{...l,index:f,active:b,current:v,preload:x,mediaRef:j})}):(0,I.jsx)("div",{className:C,children:w}),t[5]=R,t[6]=b,t[7]=C,t[8]=w,t[9]=v,t[10]=f,t[11]=j,t[12]=x,t[13]=l,t[14]=z):z=t[14],t[15]!==y||t[16]!==l||t[17]!==p||t[18]!==z?(L=(0,I.jsx)(ot,{data:l,renderContext:y,screenState:p,children:z}),t[15]=y,t[16]=l,t[17]=p,t[18]=z,t[19]=L):L=t[19],L}function kn(e){const t=(0,i.c)(34);let l,n,a,o,s,r,c,d,u,m,g;t[0]!==e?(({screen:a,screenState:o,width:s,height:r,screenWidth:c,screenHeight:d,className:u,withSize:m,fit:l,hidden:g,...n}=e),t[0]=e,t[1]=l,t[2]=n,t[3]=a,t[4]=o,t[5]=s,t[6]=r,t[7]=c,t[8]=d,t[9]=u,t[10]=m,t[11]=g):(l=t[1],n=t[2],a=t[3],o=t[4],s=t[5],r=t[6],c=t[7],d=t[8],u=t[9],m=t[10],g=t[11]);const h=void 0===o?null:o,y=void 0===s?void 0:s,p=void 0===r?void 0:r,f=void 0===c?void 0:c,b=void 0===d?void 0:d,v=void 0===u?null:u,x=void 0!==m&&m,S=void 0!==g&&g,w=x?void 0:y,C=x?void 0:p,j=!x;let k,M;t[12]!==v||t[13]!==j?(k=Ft(["micromag-core-screens-preview-screen",{[v]:j}]),t[12]=v,t[13]=j,t[14]=k):k=t[14],t[15]!==n||t[16]!==a||t[17]!==h||t[18]!==C||t[19]!==k||t[20]!==w?(M=(0,I.jsx)(jn,{screen:a,renderContext:"preview",screenState:h,width:w,height:C,className:k,...n}),t[15]=n,t[16]=a,t[17]=h,t[18]=C,t[19]=k,t[20]=w,t[21]=M):M=t[21];const N=M;let $;t[22]!==S||t[23]!==N?($=S?(0,I.jsx)("div",{}):N,t[22]=S,t[23]=N,t[24]=$):$=t[24];const F=$;let T;return t[25]!==v||t[26]!==F||t[27]!==l||t[28]!==p||t[29]!==b||t[30]!==f||t[31]!==y||t[32]!==x?(T=x?(0,I.jsx)(Cn,{className:v,screenWidth:f,screenHeight:b,width:y,height:p,fit:l,children:F}):F,t[25]=v,t[26]=F,t[27]=l,t[28]=p,t[29]=b,t[30]=f,t[31]=y,t[32]=x,t[33]=T):T=t[33],T}var Mn={container:"micromag-core-placeholders-conversation-container",icon:"micromag-core-placeholders-conversation-icon",message:"micromag-core-placeholders-conversation-message",placeholderMessage0:"micromag-core-placeholders-conversation-placeholderMessage0",placeholderMessage1:"micromag-core-placeholders-conversation-placeholderMessage1",placeholderMessage2:"micromag-core-placeholders-conversation-placeholderMessage2",placeholderMessage3:"micromag-core-placeholders-conversation-placeholderMessage3"};function Nn(e,t){return(0,I.jsx)("div",{className:Ft([Mn.message,Mn[`placeholderMessage${t}`]])},`message-${t+1}`)}var $n="micromag-core-placeholders-quiz-answer-good",Fn="micromag-core-placeholders-share-options-icon",Tn="micromag-core-placeholders-share-options-item",Rn=Object.freeze({__proto__:null,AdFrame:function(e){const t=(0,i.c)(5),{width:l,height:n,className:a}=e;let o,s;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=(0,I.jsx)(yl.gc,{icon:pl.HX,className:mn.icon}),t[0]=o):o=t[0],t[1]!==a||t[2]!==n||t[3]!==l?(s=(0,I.jsx)(en,{width:l,height:n,className:a,children:o}),t[1]=a,t[2]=n,t[3]=l,t[4]=s):s=t[4],s},AdImage:function(e){const t=(0,i.c)(5),{width:l,height:n,className:a}=e;let o,s;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=(0,I.jsx)(yl.gc,{icon:fl.jb,className:mn.icon}),t[0]=o):o=t[0],t[1]!==a||t[2]!==n||t[3]!==l?(s=(0,I.jsx)(en,{width:l,height:n,className:a,children:o}),t[1]=a,t[2]=n,t[3]=l,t[4]=s):s=t[4],s},Audio:function(e){const t=(0,i.c)(5),{width:l,height:n,className:a}=e,o=void 0===l?"100%":l,s=void 0===n?"2em":n;let r,c;return t[0]===Symbol.for("react.memo_cache_sentinel")?(r=(0,I.jsx)(yl.gc,{icon:bl.X,className:mn.icon}),t[0]=r):r=t[0],t[1]!==a||t[2]!==s||t[3]!==o?(c=(0,I.jsx)(en,{width:o,height:s,className:a,children:r}),t[1]=a,t[2]=s,t[3]=o,t[4]=c):c=t[4],c},Button:function(e){const t=(0,i.c)(5),{width:l,height:n,className:a}=e,o=void 0===l?"75%":l,s=void 0===n?"0.4em":n;let r,c;return t[0]===Symbol.for("react.memo_cache_sentinel")?(r=(0,I.jsx)(hn,{line:1,height:"0.1em"}),t[0]=r):r=t[0],t[1]!==a||t[2]!==s||t[3]!==o?(c=(0,I.jsx)(en,{outline:!0,width:o,height:s,className:a,children:r}),t[1]=a,t[2]=s,t[3]=o,t[4]=c):c=t[4],c},Conversation:function(){const e=(0,i.c)(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,I.jsxs)("div",{className:Mn.container,children:[[...Array(4)].map(Nn),(0,I.jsx)(yl.gc,{icon:jl.Be,className:Mn.icon})]}),e[0]=t):t=e[0],t},Image:yn,InputText:function(e){const t=(0,i.c)(4),{width:l,height:n,className:a}=e,o=void 0===l?"75%":l,s=void 0===n?"0.5em":n;let r;return t[0]!==a||t[1]!==s||t[2]!==o?(r=(0,I.jsx)(en,{outline:!0,width:o,height:s,className:a}),t[0]=a,t[1]=s,t[2]=o,t[3]=r):r=t[3],r},Line:function(e){const t=(0,i.c)(5);let l,n;return t[0]!==e.className?(l=Ft([e.className,mn.shortText]),t[0]=e.className,t[1]=l):l=t[1],t[2]!==e||t[3]!==l?(n=(0,I.jsx)(hn,{...e,className:l,height:.2,lines:1}),t[2]=e,t[3]=l,t[4]=n):n=t[4],n},Map:fn,MapPath:function(e){const t=(0,i.c)(6);let l,n,a;return t[0]!==e.className?(l=Ft([e.className,mn.mapPath]),t[0]=e.className,t[1]=l):l=t[1],t[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,I.jsx)(yl.gc,{icon:xl.Bg,size:"lg",className:mn.icon}),t[2]=n):n=t[2],t[3]!==e||t[4]!==l?(a=(0,I.jsx)(en,{...e,width:"100%",height:"70%",className:l,children:n}),t[3]=e,t[4]=l,t[5]=a):a=t[5],a},QuizAnswer:function(e){const t=(0,i.c)(13),{width:l,height:n,className:a,good:o}=e,s=void 0===l?"75%":l,r=void 0===n?"0.3em":n,c=void 0===o||o;let d;t[0]!==a||t[1]!==c?(d=Ft(["micromag-core-placeholders-quiz-answer-container",a,{[$n]:c}]),t[0]=a,t[1]=c,t[2]=d):d=t[2];const u=c?kl.e6:Ml.GR;let m,g,h,y;return t[3]!==u?(m=(0,I.jsx)("div",{className:"micromag-core-placeholders-quiz-answer-answer",children:(0,I.jsx)(yl.gc,{className:"micromag-core-placeholders-quiz-answer-answerIcon",icon:u})}),t[3]=u,t[4]=m):m=t[4],t[5]===Symbol.for("react.memo_cache_sentinel")?(g=(0,I.jsx)(hn,{line:1,height:"0.2em"}),t[5]=g):g=t[5],t[6]!==r||t[7]!==s?(h=(0,I.jsx)(en,{outline:!0,width:s,height:r,className:"micromag-core-placeholders-quiz-answer-block",children:g}),t[6]=r,t[7]=s,t[8]=h):h=t[8],t[9]!==d||t[10]!==m||t[11]!==h?(y=(0,I.jsxs)("div",{className:d,children:[m,h]}),t[9]=d,t[10]=m,t[11]=h,t[12]=y):y=t[12],y},Quote:function(e){const t=(0,i.c)(5);let l,n;return t[0]!==e.className?(l=Ft([e.className,mn.subtitle]),t[0]=e.className,t[1]=l):l=t[1],t[2]!==e||t[3]!==l?(n=(0,I.jsx)(hn,{...e,className:l,height:.5,lines:6}),t[2]=e,t[3]=l,t[4]=n):n=t[4],n},ShareOptions:function(e){const t=(0,i.c)(9),l=null!==e.className;let n,a,o,s,r;return t[0]!==e.className||t[1]!==l?(n=Ft(["micromag-core-placeholders-share-options-container",{[e.className]:l}]),t[0]=e.className,t[1]=l,t[2]=n):n=t[2],t[3]===Symbol.for("react.memo_cache_sentinel")?(a=(0,I.jsx)("div",{className:Tn,children:(0,I.jsx)(yl.gc,{icon:Nl.GE,className:Fn})}),t[3]=a):a=t[3],t[4]===Symbol.for("react.memo_cache_sentinel")?(o=(0,I.jsx)("div",{className:Tn,children:(0,I.jsx)(yl.gc,{icon:Nl.GE,className:Fn})}),t[4]=o):o=t[4],t[5]===Symbol.for("react.memo_cache_sentinel")?(s=(0,I.jsx)("div",{className:Tn,children:(0,I.jsx)(yl.gc,{icon:Nl.GE,className:Fn})}),t[5]=s):s=t[5],t[6]!==e||t[7]!==n?(r=(0,I.jsxs)(en,{...e,width:"100%",height:"100%",className:n,boxClassName:"micromag-core-placeholders-share-options-box",children:[a,o,s]}),t[6]=e,t[7]=n,t[8]=r):r=t[8],r},ShortText:function(e){const t=(0,i.c)(5);let l,n;return t[0]!==e.className?(l=Ft([e.className,mn.shortText]),t[0]=e.className,t[1]=l):l=t[1],t[2]!==e||t[3]!==l?(n=(0,I.jsx)(hn,{...e,className:l,height:.2,lines:2}),t[2]=e,t[3]=l,t[4]=n):n=t[4],n},Subtitle:bn,SurveyAnswer:function(e){const t=(0,i.c)(10),{width:l,height:n,className:a}=e,o=void 0===l?"75%":l,s=void 0===n?"0.3em":n;let r,c,d,u,m;return t[0]!==a?(r=Ft(["micromag-core-placeholders-survey-answer-container",a]),t[0]=a,t[1]=r):r=t[1],t[2]===Symbol.for("react.memo_cache_sentinel")?(c=(0,I.jsx)(hn,{line:1,height:"0.2em"}),t[2]=c):c=t[2],t[3]!==s||t[4]!==o?(d=(0,I.jsx)(en,{outline:!0,width:o,height:s,className:"micromag-core-placeholders-survey-answer-block",children:c}),t[3]=s,t[4]=o,t[5]=d):d=t[5],t[6]===Symbol.for("react.memo_cache_sentinel")?(u=(0,I.jsx)("div",{className:"micromag-core-placeholders-survey-answer-percent",children:(0,I.jsx)(yl.gc,{className:"micromag-core-placeholders-survey-answer-percentIcon",icon:$l.Bi})}),t[6]=u):u=t[6],t[7]!==r||t[8]!==d?(m=(0,I.jsxs)("div",{className:r,children:[d,u]}),t[7]=r,t[8]=d,t[9]=m):m=t[9],m},Text:vn,Timeline:function(e){const t=(0,i.c)(5);let l,n;return t[0]!==e.className?(l=Ft([e.className,mn.timeline]),t[0]=e.className,t[1]=l):l=t[1],t[2]!==e||t[3]!==l?(n=(0,I.jsx)(hn,{...e,className:l}),t[2]=e,t[3]=l,t[4]=n):n=t[4],n},Title:xn,Video:Sn,Video360:wn,VideoLoop:function(e){const t=(0,i.c)(6),{width:l,height:n,className:a}=e;let o,s,r;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=(0,I.jsx)(yl.gc,{icon:wl.ij,className:mn.icon}),s=(0,I.jsx)(yl.gc,{icon:Cl.ye,className:mn.icon}),t[0]=o,t[1]=s):(o=t[0],s=t[1]),t[2]!==a||t[3]!==n||t[4]!==l?(r=(0,I.jsxs)(en,{width:l,height:n,className:a,children:[o,s]}),t[2]=a,t[3]=n,t[4]=l,t[5]=r):r=t[5],r}});function zn(e){const t=(0,i.c)(10),{children:l,placeholder:n,empty:a,emptyLabel:o,preview:s,isEmpty:r,placeholderProps:c,emptyClassName:d}=e,m=void 0===l?null:l,g=void 0===n?null:n,h=void 0===a?null:a,y=void 0===o?null:o,p=void 0===s?null:s,f=void 0!==r&&r,b=void 0===c?null:c,v=void 0===d?null:d,{isPlaceholder:x,isEdit:S,isPreview:w}=at();if(x){let e;t[0]!==g?(e=u(g)?Z(g,Rn):null,t[0]=g,t[1]=e):e=t[1];const l=e;let n;return t[2]!==l||t[3]!==g||t[4]!==b?(n=null!==l?(0,I.jsx)(l,{...b}):g,t[2]=l,t[3]=g,t[4]=b,t[5]=n):n=t[5],n}if(S&&f){let e;return t[6]!==h||t[7]!==v||t[8]!==y?(e=null!==h?h:(0,I.jsx)(ln,{className:v,children:y}),t[6]=h,t[7]=v,t[8]=y,t[9]=e):e=t[9],e}return w&&null!==p?p:m}var Ln="micromag-core-transitions-transition-fullscreen";function In(e){const t=(0,i.c)(25),{fullscreen:l,from:a,to:o,playing:s,direction:r,delay:c,reversible:d,duration:u,easing:m,config:g,children:h,className:y,onStart:p,onComplete:f}=e,b=void 0!==l&&l,v=void 0===a?null:a,x=void 0===o?null:o,S=void 0!==s&&s,w=void 0===r?null:r,C=void 0===c?0:c,j=void 0===d||d,k=void 0===u?void 0:u,M=void 0===m?void 0:m,N=void 0===g?null:g,$=void 0===h?null:h,F=void 0===y?null:y,T=void 0===p?null:p,R=void 0===f?null:f,z=(0,Nt.U2)();let L;t[0]!==z?(L=()=>({ref:z}),t[0]=z,t[1]=L):L=t[1];const[A,P]=(0,Nt.zh)(L);let B,E,V,D,_;return t[2]!==N||t[3]!==C||t[4]!==w||t[5]!==k||t[6]!==M||t[7]!==v||t[8]!==R||t[9]!==T||t[10]!==S||t[11]!==j||t[12]!==P||t[13]!==x?(B=()=>{const e=!S&&"in"===w||S&&"out"===w,t=e||S,l=j&&S&&!e,n=null!==k?k:void 0,a=C>0&&S&&"out"!==w,i=null!==M&&Tl.$W[M]?Tl.$W[M]||null:N,o={from:t?v:x,to:t?x:v,immediate:e,delay:a?C:null,reset:l,onStart:T,onRest:R,config:null!==i?i:{duration:e?0:n}};(t||j)&&P.start(o)},E=[S,w,C,k,j,M,N,v,x,P,T,R],t[2]=N,t[3]=C,t[4]=w,t[5]=k,t[6]=M,t[7]=v,t[8]=R,t[9]=T,t[10]=S,t[11]=j,t[12]=P,t[13]=x,t[14]=B,t[15]=E):(B=t[14],E=t[15]),(0,n.useEffect)(B,E),t[16]!==A?(V={...A},t[16]=A,t[17]=V):V=t[17],t[18]!==F||t[19]!==b?(D=Ft(["micromag-core-transitions-transition-container",F,{[Ln]:b}]),t[18]=F,t[19]=b,t[20]=D):D=t[20],t[21]!==$||t[22]!==V||t[23]!==D?(_=(0,I.jsx)(Tl.CS.div,{style:V,className:D,children:$}),t[21]=$,t[22]=V,t[23]=D,t[24]=_):_=t[24],_}var An={Fade:function(e){const t=(0,i.c)(4);let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l={opacity:0},t[0]=l):l=t[0];const n=l;let a;t[1]===Symbol.for("react.memo_cache_sentinel")?(a={opacity:1},t[1]=a):a=t[1];const o=a;let s;return t[2]!==e?(s=(0,I.jsx)(In,{...e,from:n,to:o}),t[2]=e,t[3]=s):s=t[3],s},Scale:function(e){const t=(0,i.c)(4);let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l={transform:"scale(0)"},t[0]=l):l=t[0];const n=l;let a;t[1]===Symbol.for("react.memo_cache_sentinel")?(a={transform:"scale(1)"},t[1]=a):a=t[1];const o=a;let s;return t[2]!==e?(s=(0,I.jsx)(In,{...e,from:n,to:o}),t[2]=e,t[3]=s):s=t[3],s}};function Pn(e){const t=(0,i.c)(29),{fullscreen:l,playing:n,delay:a,transitions:o,onComplete:s,disabled:r,children:c}=e,d=void 0!==l&&l,u=void 0!==n&&n,m=void 0===a?0:a,g=void 0===o?null:o,h=void 0===s?null:s,y=void 0!==r&&r,p=void 0===c?null:c,{landscape:f}=rt(),b=u||void 0===f||f;let v,x,S,w,C;if(t[0]!==g){const e={in:null,out:null},l=null!==g?g:{in:"fade",out:"fade"};Object.keys(l).forEach(t=>{const n=l[t];e[t]="string"==typeof n?{name:n}:n});const{in:n,out:a}=e,i=void 0===n?null:n,o=void 0===a?null:a;x=null!==i?i:o,S=null!==o?o:i;const{name:s}=x||{},r=void 0===s?null:s,{name:c}=S||{},d=void 0===c?null:c;w=r===d,v=null!==x?Z(r,An,null):null,C=null===S||w?null:Z(d,An,null),t[0]=g,t[1]=v,t[2]=x,t[3]=S,t[4]=w,t[5]=C}else v=t[1],x=t[2],S=t[3],w=t[4],C=t[5];const j=C;let k;t[6]!==m||t[7]!==x||t[8]!==h?(k=null!==x?{...x,name:void 0,delay:m,onComplete:h}:null,t[6]=m,t[7]=x,t[8]=h,t[9]=k):k=t[9];const M=k;let N;t[10]!==m||t[11]!==S||t[12]!==h?(N=null!==S?{...S,name:void 0,delay:m,onComplete:h}:null,t[10]=m,t[11]=S,t[12]=h,t[13]=N):N=t[13];const $=N;let F;t[14]!==j||t[15]!==p||t[16]!==y||t[17]!==b||t[18]!==d||t[19]!==$?(F=null===j||y?p:(0,I.jsx)(j,{fullscreen:d,playing:b,direction:"out",...$,children:p}),t[14]=j,t[15]=p,t[16]=y,t[17]=b,t[18]=d,t[19]=$,t[20]=F):F=t[20];const T=F;let R;return t[21]!==v||t[22]!==y||t[23]!==b||t[24]!==d||t[25]!==T||t[26]!==w||t[27]!==M?(R=null===v||y?T:(0,I.jsx)(v,{fullscreen:d,playing:b,direction:w?null:"in",...M,children:T}),t[21]=v,t[22]=y,t[23]=b,t[24]=d,t[25]=T,t[26]=w,t[27]=M,t[28]=R):R=t[28],R}function Bn(e){const t=(0,i.c)(4),{selector:l,highlightSelector:n,style:a}=e,o=void 0===l?null:l,s=void 0===n?"mark":n,r=void 0===a?null:a;let c;return t[0]!==s||t[1]!==o||t[2]!==r?(c=null!==r?(0,I.jsx)("style",{type:"text/css",dangerouslySetInnerHTML:{__html:`${[o,s].filter(En).join(" ")}{${V(r)}}`}}):null,t[0]=s,t[1]=o,t[2]=r,t[3]=c):c=t[3],c}function En(e){return null!==e}function Vn(e){const t=(0,i.c)(4),{selector:l,linkSelector:n,style:a}=e,o=void 0===l?null:l,s=void 0===n?"a":n,r=void 0===a?null:a;let c;return t[0]!==s||t[1]!==o||t[2]!==r?(c=null!==r?(0,I.jsx)("style",{type:"text/css",dangerouslySetInnerHTML:{__html:`${[o,s].filter(Dn).join(" ")}{${V(r)}}`}}):null,t[0]=s,t[1]=o,t[2]=r,t[3]=c):c=t[3],c}function Dn(e){return null!==e}var _n="micromag-element-link-container";function On(e){const t=(0,i.c)(17),{url:l,target:a,rel:o,external:s,margin:r,className:c,children:d,focusable:u}=e,m=void 0===l?null:l,g=void 0===a?null:a,h=void 0===o?null:o,y=void 0===s||s,p=void 0===r?null:r,f=void 0===c?null:c,b=void 0===d?null:d,v=void 0===u||u;let x=null;if(null!==p){let e,l;t[0]!==p?(e=ie(p),t[0]=p,t[1]=e):e=t[1],t[2]!==e?(l={...e},t[2]=e,t[3]=l):l=t[3],x=l}const S=(0,n.useId)(),w=null!==x?`link-component-${S}`:null;let C;t[4]!==y||t[5]!==h||t[6]!==g?(C=y?{target:"_blank",rel:"noopener noreferer"}:{target:g,rel:h},t[4]=y,t[5]=h,t[6]=g,t[7]=C):C=t[7];const{target:j,rel:k}=C;let M;return t[8]!==b||t[9]!==f||t[10]!==x||t[11]!==v||t[12]!==w||t[13]!==k||t[14]!==j||t[15]!==m?(M=m?(0,I.jsx)("a",{id:w,className:Ft([_n,f]),style:x,href:m,target:j,rel:k,tabIndex:v?"0":"-1",children:b}):(0,I.jsx)("div",{id:w,className:Ft([_n,f]),style:x,children:b}),t[8]=b,t[9]=f,t[10]=x,t[11]=v,t[12]=w,t[13]=k,t[14]=j,t[15]=m,t[16]=M):M=t[16],M}var Hn="micromag-element-text-showEmpty",Zn="micromag-element-text-withLineClamp";function Wn(e){const t=(0,i.c)(55),{body:l,textStyle:a,boxStyle:o,linksStyle:s,margin:r,lineClamp:c,showEmpty:d,className:u,emptyClassName:m,inline:g,refText:h}=e,y=void 0===l?null:l,p=void 0===a?null:a,f=void 0===o?null:o,b=void 0===s?null:s,v=void 0===r?null:r,x=void 0===c?null:c,S=void 0!==d&&d,w=void 0===u?null:u,C=void 0===m?null:m,j=void 0!==g&&g,k=void 0===h?null:h;let M;t[0]!==p?(M=p||{},t[0]=p,t[1]=M):M=t[1];const{link:N,highlight:$}=M,F=void 0===N?null:N,T=void 0===$?null:$;let R,z,L;if(t[2]!==f||t[3]!==T||t[4]!==x||t[5]!==F||t[6]!==p){let e,l;if(L={},t[10]!==F?(e=null!==F?ne(F):null,t[10]=F,t[11]=e):e=t[11],z=e,t[12]!==T?(l=null!==T?le(T):null,t[12]=T,t[13]=l):l=t[13],R=l,null!==p){const e=L;let l;t[14]!==p?(l=ae(p),t[14]=p,t[15]=l):l=t[15],L={...e,...l}}if(null!==f){const e=L;let l;t[16]!==f?(l=te(f),t[16]=f,t[17]=l):l=t[17],L={...e,...l}}null!==x&&(L.WebkitLineClamp=x),t[2]=f,t[3]=T,t[4]=x,t[5]=F,t[6]=p,t[7]=R,t[8]=z,t[9]=L}else R=t[7],z=t[8],L=t[9];if(null!==v){const e=L;let l,n;t[18]!==v?(l=ie(v),t[18]=v,t[19]=l):l=t[19],t[20]!==L||t[21]!==l?(n={...e,...l},t[20]=L,t[21]=l,t[22]=n):n=t[22],L=n}if(null!==b){const e=z;let l,n;t[23]!==b?(l=ae(b),t[23]=b,t[24]=l):l=t[24],t[25]!==z||t[26]!==l?(n={...e,...l},t[25]=z,t[26]=l,t[27]=n):n=t[27],z=n}const A=null!==z||null!==T,P=(0,n.useId)(),B=A?`text-component-${P}`:null,E=null!==x,V=S&&null!==C;let D,_,H;t[28]!==w||t[29]!==C||t[30]!==S||t[31]!==E||t[32]!==V?(D=Ft(["micromag-element-text-container",w,{[Zn]:E,[Hn]:S,[C]:V}]),t[28]=w,t[29]=C,t[30]=S,t[31]=E,t[32]=V,t[33]=D):D=t[33],t[34]!==y?(_={__html:y},t[34]=y,t[35]=_):_=t[35],t[36]!==L||t[37]!==B||t[38]!==k||t[39]!==D||t[40]!==_?(H={id:B,className:D,style:L,dangerouslySetInnerHTML:_,ref:k},t[36]=L,t[37]=B,t[38]=k,t[39]=D,t[40]=_,t[41]=H):H=t[41];const Z=H,W=j?"span":"div";let q,G,Y,U;return t[42]!==z||t[43]!==B?(q=null!==z?(0,I.jsx)(Vn,{selector:`#${O(B)}`,style:z}):null,t[42]=z,t[43]=B,t[44]=q):q=t[44],t[45]!==R||t[46]!==B?(G=null!==R?(0,I.jsx)(Bn,{selector:`#${O(B)}`,style:R}):null,t[45]=R,t[46]=B,t[47]=G):G=t[47],t[48]!==W||t[49]!==Z?(Y=(0,I.jsx)(W,{...Z}),t[48]=W,t[49]=Z,t[50]=Y):Y=t[50],t[51]!==q||t[52]!==G||t[53]!==Y?(U=(0,I.jsxs)(I.Fragment,{children:[q,G,Y]}),t[51]=q,t[52]=G,t[53]=Y,t[54]=U):U=t[54],U}var qn={container:"micromag-element-author-avatar-container",shape:"micromag-element-author-avatar-shape",shapeCircle:"micromag-element-author-avatar-shapeCircle"};function Gn(e){const t=(0,i.c)(18),{image:l,width:n,height:a,resolution:o,shape:s,isTag:r,className:c,shouldLoad:d}=e,u=void 0===l?null:l,m=void 0===n?100:n,g=void 0===a?100:a,h=void 0===o?1:o,p=void 0===s?"circle":s,f=void 0!==r&&r,b=void 0===c?null:c,v=void 0===d||d,x=_e("supportsWebp",!1),S=_e("imageResolution",h);let w;t[0]!==g||t[1]!==u||t[2]!==S||t[3]!==x||t[4]!==m?(w=X(u,m,g,{resolution:S,supportsWebp:x}),t[0]=g,t[1]=u,t[2]=S,t[3]=x,t[4]=m,t[5]=w):w=t[5];const C=w;let j;t[6]!==p?(j=null!==p?(0,y.fL)(p):null,t[6]=p,t[7]=j):j=t[7];const k=qn[`shape${j}`],M=null!==j;let N;t[8]!==b||t[9]!==f||t[10]!==k||t[11]!==M?(N=Ft([qn.container,b,{[k]:M,[qn.isTag]:f}]),t[8]=b,t[9]=f,t[10]=k,t[11]=M,t[12]=N):N=t[12];const $=v?`url("${C}")`:null;let F,T;return t[13]!==$?(F=(0,I.jsx)("span",{className:qn.shape,style:{backgroundImage:$}}),t[13]=$,t[14]=F):F=t[14],t[15]!==N||t[16]!==F?(T=(0,I.jsx)("span",{className:N,children:F}),t[15]=N,t[16]=F,t[17]=T):T=t[17],T}function Yn(e){const t=(0,i.c)(39);let l,n,a,o,s,r,c,d,u;t[0]!==e?(({author:n,withImage:a,withoutLink:o,linkUnderlineColor:s,className:r,backgroundClassName:c,collaboratorClassName:d,shouldLoad:u,...l}=e),t[0]=e,t[1]=l,t[2]=n,t[3]=a,t[4]=o,t[5]=s,t[6]=r,t[7]=c,t[8]=d,t[9]=u):(l=t[1],n=t[2],a=t[3],o=t[4],s=t[5],r=t[6],c=t[7],d=t[8],u=t[9]);const m=void 0===n?null:n,g=void 0===a||a,h=void 0!==o&&o,y=void 0===s?null:s,p=void 0===r?null:r,f=void 0===c?null:c,b=void 0===d?null:d,v=void 0===u||u;let x;t[10]!==m?(x=m||{},t[10]=m,t[11]=x):x=t[11];const{name:S,image:w,url:C,collaborator:j}=x,k=void 0===S?null:S,M=void 0===w?null:w,N=void 0===C?null:C,$=void 0===j?null:j,F=g&&null!==M;let T;t[12]!==f||t[13]!==k?(T=he(k)?(0,I.jsx)(Wn,{className:Ft(["micromag-element-author-name",f]),...k}):null,t[12]=f,t[13]=k,t[14]=T):T=t[14];const R=T;let z;t[15]!==$?(z=he($)?(0,I.jsx)(Wn,{className:"micromag-element-author-collaboratorText",...$,inline:!0}):null,t[15]=$,t[16]=z):z=t[16];const L=z;let A,P,B,E,V,D;return t[17]!==p?(A=Ft(["micromag-element-author-container",p]),t[17]=p,t[18]=A):A=t[18],t[19]!==M||t[20]!==v||t[21]!==F?(P=F?(0,I.jsx)(Gn,{className:"micromag-element-author-image",image:M,shouldLoad:v}):null,t[19]=M,t[20]=v,t[21]=F,t[22]=P):P=t[22],t[23]!==R||t[24]!==y||t[25]!==N||t[26]!==h?(B=null===N||h?(0,I.jsx)("div",{children:R}):(0,I.jsx)(On,{className:"micromag-element-author-link",url:N,external:!0,style:{backgroundImage:null!==y?`linear-gradient(0deg, ${y} 0, ${y})`:null},children:R}),t[23]=R,t[24]=y,t[25]=N,t[26]=h,t[27]=B):B=t[27],t[28]!==b||t[29]!==L?(E=null!==L?(0,I.jsx)("div",{className:Ft(["micromag-element-author-collaborator",b]),children:null!==L?L:null}):null,t[28]=b,t[29]=L,t[30]=E):E=t[30],t[31]!==B||t[32]!==E?(V=(0,I.jsxs)("div",{className:"micromag-element-author-right",children:[B,E]}),t[31]=B,t[32]=E,t[33]=V):V=t[33],t[34]!==l||t[35]!==A||t[36]!==P||t[37]!==V?(D=(0,I.jsxs)("div",{className:A,...l,children:[P,V]}),t[34]=l,t[35]=A,t[36]=P,t[37]=V,t[38]=D):D=t[38],D}var Un="micromag-element-video-media",Qn="micromag-element-video-withSize";function Xn(e){const t=(0,i.c)(113),{media:l,thumbnail:a,width:o,height:s,mediaRef:r,ref:c,muted:d,autoPlay:u,paused:m,loop:g,playsInline:h,preload:y,shouldLoad:p,withoutCors:f,className:b,innerClassName:v,onReady:x,onPlay:S,onPlaying:w,onPause:C,onEnded:j,onSeeked:k,onTimeUpdate:M,onProgressStep:N,onDurationChange:$,onVolumeChange:F,onSuspend:T,onSuspended:R,onPlayError:z,focusable:L,withPoster:A,withLoading:P,disablePictureInPicture:B}=e,E=void 0===l?null:l,V=void 0===a?null:a,D=void 0===o?null:o,_=void 0===s?null:s,O=void 0===r?null:r,H=void 0===c?null:c,Z=void 0!==d&&d,W=void 0!==u&&u,q=void 0!==m&&m,G=void 0!==g&&g,Y=void 0===h||h,X=void 0===y?"auto":y,J=void 0===p||p,K=void 0!==f&&f,ee=void 0===b?null:b,te=void 0===v?null:v,le=void 0===x?null:x,ne=void 0===S?null:S,ae=void 0===w?null:w,ie=void 0===C?null:C,oe=void 0===j?null:j,se=void 0===k?null:k,ce=void 0===M?null:M,de=void 0===N?null:N,ue=void 0===$?null:$,me=void 0===F?null:F,ge=void 0===T?null:T,he=void 0===R?null:R,ye=void 0===z?null:z,fe=void 0===L||L,be=void 0!==A&&A,ve=void 0!==P&&P,xe=void 0===B||B;let we;t[0]!==E?(we=E||{},t[0]=E,t[1]=we):we=t[1];const{url:Ce,metadata:je}=we,ke=void 0===Ce?null:Ce,Me=void 0===je?null:je;let Ne;t[2]!==Me?(Ne=Me||{},t[2]=Me,t[3]=Ne):Ne=t[3];const{description:$e,has_audio:Fe}=Ne,Te=void 0===$e?null:$e,Re=void 0===Fe?null:Fe;let ze;t[4]!==E||t[5]!==V?(ze=Q(E,V),t[4]=E,t[5]=V,t[6]=ze):ze=t[6];const Le=ze,{sources:Ie,isImage:Ae}=function(e=null,t=null){const{possibleMimes:l=null}=t||{},{files:a=null,metadata:i=null}=e||{},{mime:o=null}=i||{},s=_e("supportedVideoMimes"),r=(0,n.useMemo)(()=>l||s||["video/mp4"],[l,s]),c=(0,n.useMemo)(()=>U(a),[a]),[d,u]=(0,n.useState)(r);(0,n.useEffect)(()=>{let e=re(r);0===e.length&&(e=["video/mp4"]),u(e)},[r]);const m=(0,n.useMemo)(()=>{if(0===c.length)return null;const e=c.filter(e=>{const t=e.handle||e.id,{mime:l=`video/${"h264"===t?"mp4":t}`}=e;return-1!==d.indexOf(l)}),t=e.filter(e=>"original"!==(e.handle||e.id));return(t.length>0?t:e).sort(({size:e=1/0},{size:t=1/0})=>e===t?0:e>t?1:-1)},[c,d]),{type:g=null,mime:h=o}=c.find(({handle:e})=>"original"===e)||{},y="image"===g||null!==h&&0===h.indexOf("image/");return{sources:null!==m&&m.length>0?m:null,files:c,isImage:y}}(E),Pe=Ae&&(null===Ie||0===Ie.length),Be=(0,n.useRef)(null),[Ee,Ve]=(0,n.useState)(null),De=q||null===de;let Oe;t[7]!==ke||t[8]!==De?(Oe={id:ke,disabled:De},t[7]=ke,t[8]=De,t[9]=Oe):Oe=t[9];const He=qt(Ee,Oe);let Ze;t[10]!==ke?(Ze={id:ke},t[10]=ke,t[11]=Ze):Ze=t[11];const We=Yt(Ee,Ze),[qe,Ge]=(0,n.useState)(!1);let Ye;t[12]!==ke?(Ye={id:ke},t[12]=ke,t[13]=Ye):Ye=t[13];const Ue=Kt(Ee,Ye);let Qe,Xe,Je,Ke;t[14]===Symbol.for("react.memo_cache_sentinel")?(Qe=()=>{const{current:e}=Be;Ve(void 0===e?null:e)},t[14]=Qe):Qe=t[14],t[15]!==Pe||t[16]!==ke?(Xe=[Pe,ke,Be],t[15]=Pe,t[16]=ke,t[17]=Xe):Xe=t[17],(0,n.useEffect)(Qe,Xe),t[18]!==ke||t[19]!==ve?(Je=()=>{if(null===ke||!ve)return Kn;Ge(!1);const e=setTimeout(()=>{Ge(!0)},2e3);return()=>{clearTimeout(e)}},Ke=[ke,ve],t[18]=ke,t[19]=ve,t[20]=Je,t[21]=Ke):(Je=t[20],Ke=t[21]),(0,n.useEffect)(Je,Ke);const et=null!==D&&null!==_;let tt,lt,nt;t[22]!==ue||t[23]!==We?(tt=()=>{We>0&&null!==ue&&ue(We)},lt=[We,ue],t[22]=ue,t[23]=We,t[24]=tt,t[25]=lt):(tt=t[24],lt=t[25]),(0,n.useEffect)(tt,lt),t[26]!==me?(nt=e=>{null!==me&&me(e.currentTarget.volume)},t[26]=me,t[27]=nt):nt=t[27];const at=nt,[it,ot]=(0,n.useState)(!1);let st;t[28]!==ne||t[29]!==it?(st=e=>{it&&ot(!1),null!==ne&&ne(e)},t[28]=ne,t[29]=it,t[30]=st):st=t[30];const rt=st;let ct;t[31]!==ae||t[32]!==it?(ct=e=>{it&&ot(!1),null!==ae&&ae(e)},t[31]=ae,t[32]=it,t[33]=ct):ct=t[33];const dt=ct;let ut;t[34]!==ge||t[35]!==it||t[36]!==he||t[37]!==q?(ut=e=>{!e.currentTarget.paused||q||it||(ot(!0),null!==he&&he()),null!==ge&&ge(e)},t[34]=ge,t[35]=it,t[36]=he,t[37]=q,t[38]=ut):ut=t[38];const mt=ut;let gt,ht;t[39]!==le||t[40]!==Ue?(gt=()=>{Ue&&null!==le&&le()},ht=[Ue,le],t[39]=le,t[40]=Ue,t[41]=gt,t[42]=ht):(gt=t[41],ht=t[42]),(0,n.useEffect)(gt,ht);const yt=J?X:"none",[pt,ft]=(0,n.useState)("auto"===yt||"metadata"===yt);let bt,vt,xt,St,wt,Ct,jt,kt,Mt,Nt,$t;return t[43]!==J||t[44]!==pt?(bt=()=>{const{current:e}=Be,t=void 0===e?null:e;if(J&&!pt&&null!==t){try{t.load()}catch{}ft(!0)}},vt=[J,pt],t[43]=J,t[44]=pt,t[45]=bt,t[46]=vt):(bt=t[45],vt=t[46]),(0,n.useEffect)(bt,vt),t[47]!==ke||t[48]!==ye||t[49]!==q?(xt=()=>{const{current:e}=Be,t=void 0===e?null:e;if(null===t||null===ke)return;const l=Se(t);var n;q&&l?t.pause():q||l||"true"===t.dataset.forcePlaying||t.play().catch(e=>{null!==ye&&ye(e)}),"true"===(n=t).dataset.forcePlaying&&(n.dataset.forcePlaying="false")},t[47]=ke,t[48]=ye,t[49]=q,t[50]=xt):xt=t[50],t[51]!==E||t[52]!==ke||t[53]!==ye||t[54]!==q?(St=[q,E,ke,ye],t[51]=E,t[52]=ke,t[53]=ye,t[54]=q,t[55]=St):St=t[55],(0,n.useEffect)(xt,St),t[56]!==He||t[57]!==We||t[58]!==de||t[59]!==q?(wt={currentTime:He,duration:We,disabled:q,onStep:de},t[56]=He,t[57]=We,t[58]=de,t[59]=q,t[60]=wt):wt=t[60],ll(wt),t[61]!==ee||t[62]!==et?(Ct=Ft(["micromag-element-video-container",{[Qn]:et},ee]),t[61]=ee,t[62]=et,t[63]=Ct):Ct=t[63],t[64]!==_||t[65]!==D||t[66]!==et?(jt=et?{width:D,height:_}:null,t[64]=_,t[65]=D,t[66]=et,t[67]=jt):jt=t[67],t[68]!==Te||t[69]!==te||t[70]!==Pe||t[71]!==ke||t[72]!==J?(kt=Pe&&J?(0,I.jsx)("img",{src:ke,alt:Te,tabIndex:-1,className:Ft([Un,te])}):null,t[68]=Te,t[69]=te,t[70]=Pe,t[71]=ke,t[72]=J,t[73]=kt):kt=t[73],t[74]!==W||t[75]!==xe||t[76]!==H||t[77]!==yt||t[78]!==Le||t[79]!==fe||t[80]!==Re||t[81]!==te||t[82]!==Pe||t[83]!==it||t[84]!==G||t[85]!==O||t[86]!==ke||t[87]!==Z||t[88]!==oe||t[89]!==ie||t[90]!==rt||t[91]!==dt||t[92]!==se||t[93]!==mt||t[94]!==ce||t[95]!==at||t[96]!==q||t[97]!==Y||t[98]!==J||t[99]!==Ie||t[100]!==be||t[101]!==K?(Mt=Pe?null:(0,I.jsx)("video",{ref:pe(Be,O,H),src:null===Ie&&J?`${ke}#t=0.001`:void 0,autoPlay:W&&!q,loop:G,muted:Z,poster:J&&be&&null!==Le&&Le.url||null,preload:yt,playsInline:Y,crossOrigin:K?"anonymous":null,disablePictureInPicture:xe,tabIndex:fe?0:-1,className:Ft([Un,te]),onPlay:rt,onPlaying:dt,onPause:ie,onEnded:oe,onSeeked:se,onVolumeChange:at,onTimeUpdate:ce,onSuspend:mt,"data-has-audio":Re,"data-is-suspended":it,"aria-hidden":!0,children:(J&&null!==Ie?Ie:[]).map(Jn)},ke),t[74]=W,t[75]=xe,t[76]=H,t[77]=yt,t[78]=Le,t[79]=fe,t[80]=Re,t[81]=te,t[82]=Pe,t[83]=it,t[84]=G,t[85]=O,t[86]=ke,t[87]=Z,t[88]=oe,t[89]=ie,t[90]=rt,t[91]=dt,t[92]=se,t[93]=mt,t[94]=ce,t[95]=at,t[96]=q,t[97]=Y,t[98]=J,t[99]=Ie,t[100]=be,t[101]=K,t[102]=Mt):Mt=t[102],t[103]!==Pe||t[104]!==Ue||t[105]!==qe?(Nt=Pe||Ue||!qe?null:(0,I.jsx)(Dl,{className:"micromag-element-video-spinner"}),t[103]=Pe,t[104]=Ue,t[105]=qe,t[106]=Nt):Nt=t[106],t[107]!==Ct||t[108]!==jt||t[109]!==kt||t[110]!==Mt||t[111]!==Nt?($t=(0,I.jsxs)("div",{className:Ct,style:jt,children:[kt,Mt,Nt]}),t[107]=Ct,t[108]=jt,t[109]=kt,t[110]=Mt,t[111]=Nt,t[112]=$t):$t=t[112],$t}function Jn(e){const{url:t,mime:l}=e;return(0,I.jsx)("source",{src:null!==t?`${t}#t=0.001`:null,type:l},`source-${t}-${l}`)}function Kn(){}var ea={container:"micromag-element-background-container",videoContainer:"micromag-element-background-videoContainer",video:"micromag-element-background-video",layers:"micromag-element-background-layers",layer:"micromag-element-background-layer",right:"micromag-element-background-right",background:"micromag-element-background-background",bottom:"micromag-element-background-bottom"};function ta(e){const t=(0,i.c)(9),{width:l,height:a,resolution:o,fit:s,horizontalAlign:r,verticalAlign:c,repeat:d,loop:u,color:m,media:g,mediaRef:h,className:y,playing:p,muted:f,children:b,loadingMode:v,shouldLoad:x,onPlayError:S,withoutVideo:w,forceMuted:C,qualityStartLevel:j,onQualityLevelChange:k}=e,M=void 0===l?null:l,N=void 0===a?null:a,$=void 0===o?1:o,F=void 0===s?null:s,T=void 0===r?"center":r,R=void 0===c?"center":c,z=void 0!==d&&d,L=void 0===u||u,A=void 0===m?null:m,P=void 0===g?null:g,B=void 0===h?null:h,E=void 0===y?null:y,V=void 0!==p&&p,D=void 0!==f&&f,_=void 0===b?null:b,O=void 0===v?"lazy":v,H=void 0===x||x,Z=void 0===S?null:S,W=void 0!==w&&w,q=void 0!==C&&C,G=void 0===j?null:j,Y=void 0===k?null:k,{type:U,metadata:Q,thumbnail_url:K}=P||{},ee=void 0===U?null:U,te=void 0===Q?null:Q,{width:le,height:ne}=te||{},ae=void 0===le?0:le,ie=void 0===ne?0:ne,oe="video"===ee,se="image"===ee,re=H||"lazy"!==O,[ce,de]=(0,n.useState)(re);re&&!ce&&de(re);const ue=ce||H;let me;t[0]!==A?(me=J(A),t[0]=A,t[1]=me):me=t[1];const ge={width:M,height:N,...me},he=_e("supportsWebp",!1),ye=_e("imageResolution",$);if(null!==P&&(se||oe&&(!H||W))){const e=X(oe?{url:K}:P,M,N,{resolution:ye,supportsWebp:he});let l;ge.backgroundImage=null!==e&&ue?`url("${e}")`:null,ge.backgroundRepeat=z&&!oe?"repeat":"no-repeat",t[2]!==T||t[3]!==R?(l=[T,R],t[2]=T,t[3]=R,t[4]=l):l=t[4],ge.backgroundPosition=l.join(" "),null!==F?ge.backgroundSize=F:z&&!oe||(ge.backgroundSize="cover")}const pe={};if(oe&&H)if(M>0&&N>0){const{width:e,height:t}=(0,Fl.kL)(ae,ie,M,N,{cover:"cover"===F||null===F}),l=void 0===e?0:e,n=void 0===t?0:t;pe.width=l,pe.height=n,pe.left=-(l-M)/2,pe.top=-(n-N)/2}else pe.objectFit="cover";let fe,be;return t[5]!==E?(fe=Ft([ea.container,E]),t[5]=E,t[6]=fe):fe=t[6],t[7]!==_?(be=(0,I.jsx)("div",{className:ea.content,children:_}),t[7]=_,t[8]=be):be=t[8],(0,I.jsxs)("div",{className:fe,style:ge,children:[oe&&H&&!W?(0,I.jsx)("div",{className:ea.videoContainer,style:pe,children:(0,I.jsx)(Xn,{className:ea.video,media:P,mediaRef:q?null:B,paused:!V,muted:D||q,shouldLoad:H,onPlayError:Z,disablePictureInPicture:!0,autoPlay:!0,loop:L,withPoster:!0,focusable:!1,qualityStartLevel:G,onQualityLevelChange:Y})}):null,be]})}function la(e){const t=(0,i.c)(56),{width:l,height:n,resolution:a,background:o,playing:s,muted:r,children:c,className:d,layerClassName:u,backgroundClassName:g,loadingMode:h,mediaRef:y,shouldLoad:p,withoutVideo:f,onPlayError:b,qualityStartLevel:v,onQualityLevelChange:x}=e,S=void 0===l?null:l,w=void 0===n?null:n,C=void 0===a?1:a,j=void 0===o?null:o,k=void 0!==s&&s,M=void 0!==r&&r,N=void 0===c?null:c,$=void 0===d?null:d,F=void 0===u?null:u,T=void 0===g?null:g,R=void 0===h?"lazy":h,z=void 0===y?null:y,L=void 0===p||p,A=void 0!==f&&f,P=void 0===b?null:b,B=void 0===v?null:v,E=void 0===x?null:x,V=null!==S&&null!==w&&S>0&&w>0;let D,_,O,H,Z,W,q,G;if(t[0]!==j||t[1]!==T||t[2]!==$||t[3]!==V||t[4]!==w||t[5]!==F||t[6]!==R||t[7]!==z||t[8]!==M||t[9]!==P||t[10]!==E||t[11]!==k||t[12]!==B||t[13]!==C||t[14]!==L||t[15]!==S||t[16]!==A){Z=Symbol.for("react.early_return_sentinel");e:{const e=((e=null)=>null===e?[]:(m(e)?e:[e]).reduce((e,{image:t=null,video:l=null,media:n=null,color:a=null,...i})=>null===t&&null===l&&null===a?e:null!==t&&null!==l?[...e,{media:t,...i},{media:l,color:a,...i}]:[...e,{media:n||t||l,color:a,...i}],[]))(j),l=e.length;if(0===e.length){Z=null;break e}let n,a;t[22]!==V||t[23]!==w||t[24]!==S?(n=V?{width:S,height:w}:null,t[22]=V,t[23]=w,t[24]=S,t[25]=n):n=t[25],t[26]!==n?(a={...n},t[26]=n,t[27]=a):a=t[27];const i=a;let o;t[28]!==$?(O=Ft([ea.container,$]),t[28]=$,t[29]=O):O=t[29],H=i,D=ea.layers,t[30]!==T||t[31]!==w||t[32]!==F||t[33]!==R||t[34]!==l||t[35]!==z||t[36]!==M||t[37]!==P||t[38]!==E||t[39]!==k||t[40]!==B||t[41]!==C||t[42]!==L||t[43]!==S||t[44]!==A?(o=(e,t)=>{const{horizontalAlign:n,verticalAlign:a,...i}=e,o=void 0===n?void 0:n,s=void 0===a?void 0:a;return(0,I.jsx)("div",{className:Ft([ea.layer,F,{[ea.bottom]:"bottom"===s,[ea.right]:"right"===o}]),style:{zIndex:l-t},children:(0,I.jsx)(ta,{width:S,height:w,resolution:C,className:Ft([ea.background,T]),playing:k,muted:M,horizontalAlign:o,verticalAlign:s,loadingMode:R,shouldLoad:L,mediaRef:z,withoutVideo:A,onPlayError:P,qualityStartLevel:B,onQualityLevelChange:E,...i})},`background-${t}`)},t[30]=T,t[31]=w,t[32]=F,t[33]=R,t[34]=l,t[35]=z,t[36]=M,t[37]=P,t[38]=E,t[39]=k,t[40]=B,t[41]=C,t[42]=L,t[43]=S,t[44]=A,t[45]=o):o=t[45],_=e.map(o)}t[0]=j,t[1]=T,t[2]=$,t[3]=V,t[4]=w,t[5]=F,t[6]=R,t[7]=z,t[8]=M,t[9]=P,t[10]=E,t[11]=k,t[12]=B,t[13]=C,t[14]=L,t[15]=S,t[16]=A,t[17]=D,t[18]=_,t[19]=O,t[20]=H,t[21]=Z}else D=t[17],_=t[18],O=t[19],H=t[20],Z=t[21];return Z!==Symbol.for("react.early_return_sentinel")?Z:(t[46]!==D||t[47]!==_?(W=(0,I.jsx)("div",{className:D,children:_}),t[46]=D,t[47]=_,t[48]=W):W=t[48],t[49]!==N?(q=(0,I.jsx)("div",{className:ea.content,children:N}),t[49]=N,t[50]=q):q=t[50],t[51]!==O||t[52]!==H||t[53]!==W||t[54]!==q?(G=(0,I.jsxs)("div",{className:O,style:H,children:[W,q]}),t[51]=O,t[52]=H,t[53]=W,t[54]=q,t[55]=G):G=t[55],G)}function na(e){const t=(0,i.c)(12),{ref:l,width:n,height:a,style:o,className:s,children:r}=e,c=void 0===l?null:l,d=void 0===o?null:o,u=void 0===s?null:s,m=void 0===r?null:r,g=n>0&&a>0;let h;t[0]!==g||t[1]!==a||t[2]!==d||t[3]!==n?(h=g?{width:n,height:a,...d}:d,t[0]=g,t[1]=a,t[2]=d,t[3]=n,t[4]=h):h=t[4];const y=h;let p,f;return t[5]!==u?(p=Ft(["micromag-element-container-container",u]),t[5]=u,t[6]=p):p=t[6],t[7]!==m||t[8]!==y||t[9]!==c||t[10]!==p?(f=(0,I.jsx)("div",{ref:c,className:p,style:y,children:m}),t[7]=m,t[8]=y,t[9]=c,t[10]=p,t[11]=f):f=t[11],f}const aa={};function ia(e){const t=(0,i.c)(61),{media:l,alt:a,width:o,height:s,resolution:r,objectFit:c,containerStyle:d,imageStyle:u,className:m,imageClassName:g,onLoaded:h,loadingMode:y,shouldLoad:p,ref:f}=e,b=void 0===l?null:l,v=void 0===a?null:a,x=void 0===o?null:o,S=void 0===s?null:s,w=void 0===r?1:r,C=void 0===c?null:c,j=void 0===d?aa:d,k=void 0===u?aa:u,M=void 0===m?null:m,N=void 0===g?null:g,$=void 0===h?null:h,F=void 0===y?"lazy":y,T=void 0===p||p,R=void 0===f?null:f;let z;t[0]!==b?(z=b||{},t[0]=b,t[1]=z):z=t[1];const{metadata:L}=z,A=void 0===L?null:L;let P;t[2]!==A?(P=A||{},t[2]=A,t[3]=P):P=t[3];const{width:B,height:E,description:V}=P,D=void 0===B?0:B,_=void 0===E?0:E,O=void 0===V?"image":V,H=D/_;let Z;t[4]!==_||t[5]!==D?(Z={width:D,height:_},t[4]=_,t[5]=D,t[6]=Z):Z=t[6];const[W,q]=(0,n.useState)(Z),{width:G,height:Y}=W,U=void 0===G?0:G,Q=void 0===Y?0:Y,J=_e("supportsWebp",!1),K=_e("imageResolution",w),[ee,te]=(0,n.useState)(T);T&&!ee&&te(T);const le=ee||T;let ne;t[7]!==$||t[8]!==Q||t[9]!==U?(ne=e=>{const{target:t}=e,{naturalWidth:l,naturalHeight:n}=t,a=void 0===l?0:l,i=void 0===n?0:n;a===U&&i===Q||q({width:a||0,height:i||0}),null!==$&&$(e)},t[7]=$,t[8]=Q,t[9]=U,t[10]=ne):ne=t[10];const ae=ne,ie=null!==C,oe=U>0&&Q>0;let se,re,ce;if(t[11]!==j||t[12]!==se||t[13]!==S||t[14]!==K||t[15]!==k||t[16]!==b||t[17]!==oe||t[18]!==_||t[19]!==H||t[20]!==D||t[21]!==C||t[22]!==Q||t[23]!==U||t[24]!==J||t[25]!==x||t[26]!==ie){if(ie){let e=0,l=0,n=x,a=S,i=null,o=null;const{fit:s,horizontalPosition:r,verticalPosition:c}=C||{},d=void 0===s?null:s,u=void 0===r?"center":r,m=void 0===c?"center":c;if(oe){const i="cover"===d;let o;t[30]!==S||t[31]!==Q||t[32]!==U||t[33]!==i||t[34]!==x?(o=(0,Fl.kL)(U,Q,x,S,{cover:i}),t[30]=S,t[31]=Q,t[32]=U,t[33]=i,t[34]=x,t[35]=o):o=t[35];const{width:s,height:r}=o;n=s,a=r,"center"===u?l=-(s-x)/2:"right"===u&&(l=-(s-x)),"center"===m?e=-(r-S)/2:"bottom"===m&&(e=-(r-S))}else i=d,o=`${u} ${m}`;let g;t[36]!==S||t[37]!==x?(g={width:x,height:S},t[36]=S,t[37]=x,t[38]=g):g=t[38],se=g,re={position:"absolute",width:n,height:a,top:e,left:l,objectFit:i,objectPosition:o}}else{const e=null!==S&&"number"==typeof S;let l,n=null!==x?x:H&&e?S*H:null,a=null!==S?S:H&&null!==x&&"number"==typeof x?x/H:null;null===n&&null===a&&(n=U>0?D:null,a=Q>0?_:null),t[39]!==a||t[40]!==n?(l={width:n,height:a},t[39]=a,t[40]=n,t[41]=l):l=t[41],se=l,re={width:"100%",height:e?"100%":"auto"}}let e;t[42]!==j||t[43]!==se?(e={...se,...j},t[42]=j,t[43]=se,t[44]=e):e=t[44],se=e,re={...re,...k};const{width:l,height:n}=re,a=void 0===l?null:l;ce=X(b,a,(void 0===n?null:n)||a,{resolution:K,supportsWebp:J}),t[11]=j,t[12]=se,t[13]=S,t[14]=K,t[15]=k,t[16]=b,t[17]=oe,t[18]=_,t[19]=H,t[20]=D,t[21]=C,t[22]=Q,t[23]=U,t[24]=J,t[25]=x,t[26]=ie,t[27]=re,t[28]=ce,t[29]=se}else re=t[27],ce=t[28],se=t[29];const de=ce;let ue,me,ge;return t[45]!==M?(ue=Ft(["micromag-element-image-container",M]),t[45]=M,t[46]=ue):ue=t[46],t[47]!==v||t[48]!==O||t[49]!==re||t[50]!==le||t[51]!==de||t[52]!==N||t[53]!==F||t[54]!==ae?(me=null!==de&&le?(0,I.jsx)("img",{src:de,alt:v||O,className:Ft(["micromag-element-image-img",N]),style:re,onLoad:ae,loading:F}):null,t[47]=v,t[48]=O,t[49]=re,t[50]=le,t[51]=de,t[52]=N,t[53]=F,t[54]=ae,t[55]=me):me=t[55],t[56]!==se||t[57]!==R||t[58]!==ue||t[59]!==me?(ge=(0,I.jsx)("div",{className:ue,style:se,ref:R,children:me}),t[56]=se,t[57]=R,t[58]=ue,t[59]=me,t[60]=ge):ge=t[60],ge}var oa="micromag-element-visual-container",sa="micromag-element-visual-natural";function ra(e){const t=(0,i.c)(68);let l,n,a,o,s,r,c,d,u,m,g,h,y,p,f,b,v,x,S,w,C;t[0]!==e?(({media:n,mediaRef:y,width:f,height:b,ratio:v,resolution:x,objectFit:S,playing:w,muted:C,loadingMode:a,shouldLoad:o,videoLoop:s,videoInitialMuted:r,onLoaded:c,className:d,imageClassName:u,videoClassName:m,withoutVideo:g,qualityStartLevel:h,onQualityLevelChange:p,...l}=e),t[0]=e,t[1]=l,t[2]=n,t[3]=a,t[4]=o,t[5]=s,t[6]=r,t[7]=c,t[8]=d,t[9]=u,t[10]=m,t[11]=g,t[12]=h,t[13]=y,t[14]=p,t[15]=f,t[16]=b,t[17]=v,t[18]=x,t[19]=S,t[20]=w,t[21]=C):(l=t[1],n=t[2],a=t[3],o=t[4],s=t[5],r=t[6],c=t[7],d=t[8],u=t[9],m=t[10],g=t[11],h=t[12],y=t[13],p=t[14],f=t[15],b=t[16],v=t[17],x=t[18],S=t[19],w=t[20],C=t[21]);const j=void 0===n?null:n,k=void 0===y?null:y,M=void 0===f?null:f,N=void 0===b?null:b,$=void 0===v?null:v,F=void 0===x?1:x,T=void 0===S?null:S,R=void 0===w||w,z=void 0===C||C,L=void 0===a?null:a,A=void 0===o||o,P=void 0===s||s,B=void 0===c?null:c,E=void 0===d?null:d,V=void 0===u?null:u,D=void 0===m?null:m,_=void 0!==g&&g,O=void 0===h?null:h,H=void 0===p?null:p;let Z;t[22]!==j?(Z=j||{},t[22]=j,t[23]=Z):Z=t[23];const{type:W,thumbnail_url:q}=Z,G=void 0===W?null:W,Y=void 0===q?null:q,U="video"===G,Q="lazy"===L,X=!Q;let J;t[24]!==X?(J={rootMargin:"200px",persist:!0,disabled:X},t[24]=X,t[25]=J):J=t[25];const{ref:K,visible:ee}=Ot(J),te=(!Q||ee)&&A;let le=null;if("video"===G&&null!==T&&A){let e;t[26]!==T?(e=T||{},t[26]=T,t[27]=e):e=t[27];const{fit:l}=e,n=void 0===l?"cover":l;let a;if(t[28]!==n||t[29]!==N||t[30]!==j||t[31]!==M){const{metadata:e}=j||{},l=void 0===e?null:e,{width:i,height:o}=l||{},s=void 0===i?0:i,r=void 0===o?0:o;a=(0,Fl.kL)(s,r,M,N,{cover:"cover"===n}),t[28]=n,t[29]=N,t[30]=j,t[31]=M,t[32]=a}else a=t[32];const{width:i,height:o}=a,s=-(i-M)/2,r=-(o-N)/2;let c;t[33]!==o||t[34]!==s||t[35]!==r||t[36]!==i?(c={width:i,height:o,left:s,top:r},t[33]=o,t[34]=s,t[35]=r,t[36]=i,t[37]=c):c=t[37],le=c}const ne=null===T;let ae;t[38]!==B?(ae=e=>{null!==B&&B(e)},t[38]=B,t[39]=ae):ae=t[39];const ie=ae;let oe;return t[40]!==E||t[41]!==te||t[42]!==N||t[43]!==V||t[44]!==U||t[45]!==L||t[46]!==j||t[47]!==k||t[48]!==z||t[49]!==ne||t[50]!==T||t[51]!==ie||t[52]!==H||t[53]!==R||t[54]!==l||t[55]!==O||t[56]!==$||t[57]!==K||t[58]!==F||t[59]!==A||t[60]!==Y||t[61]!==G||t[62]!==D||t[63]!==le||t[64]!==P||t[65]!==M||t[66]!==_?(oe=null!==G?(0,I.jsxs)(I.Fragment,{children:["image"===G||!A||_?(0,I.jsx)(ia,{...l,media:U?{url:Y}:j,ref:K,loadingMode:"lazy"!==L?"lazy":null,objectFit:T,width:M,height:N,resolution:F,shouldLoad:te,onLoaded:ie,className:Ft([oa,E]),imageClassName:V}):null,"video"===G&&A&&!_?(0,I.jsx)("div",{className:Ft([oa,E,{[sa]:ne}]),style:{width:M,height:N,aspectRatio:null!==$?`${$}`:null},ref:K,children:(0,I.jsxs)("div",{className:Ft(["micromag-element-visual-videoContainer",D]),style:le,children:[(0,I.jsx)(Xn,{...l,media:j,innerClassName:"micromag-element-visual-videoTag",mediaRef:k,width:null===T?M:null,height:null===T?N:null,paused:!R,muted:z,loop:P,shouldLoad:te,onReady:ie,autoPlay:!0,qualityStartLevel:O,onQualityLevelChange:H}),(0,I.jsx)("div",{className:"micromag-element-visual-videoTouchOverlay"})]})}):null]}):null,t[40]=E,t[41]=te,t[42]=N,t[43]=V,t[44]=U,t[45]=L,t[46]=j,t[47]=k,t[48]=z,t[49]=ne,t[50]=T,t[51]=ie,t[52]=H,t[53]=R,t[54]=l,t[55]=O,t[56]=$,t[57]=K,t[58]=F,t[59]=A,t[60]=Y,t[61]=G,t[62]=D,t[63]=le,t[64]=P,t[65]=M,t[66]=_,t[67]=oe):oe=t[67],oe}var ca={container:"micromag-element-button-container",rich:"micromag-element-button-rich",layoutLabelBottom:"micromag-element-button-layoutLabelBottom",layoutLabelTop:"micromag-element-button-layoutLabelTop",layoutNoLabel:"micromag-element-button-layoutNoLabel",layoutLabelLeft:"micromag-element-button-layoutLabelLeft",layoutLabelRight:"micromag-element-button-layoutLabelRight",layoutLabelOver:"micromag-element-button-layoutLabelOver",text:"micromag-element-button-text",textFullWidth:"micromag-element-button-textFullWidth",emptyButton:"micromag-element-button-emptyButton",visual:"micromag-element-button-visual",video:"micromag-element-button-video"};function da(e){const t=(0,i.c)(48);let l,n,a,o,s,r,c,d,u,m,g,h,y;t[0]!==e?(({textStyle:n,buttonStyle:r,type:c,disabled:d,focusable:u,inline:m,onClick:g,children:h,className:y,withoutExternalBorder:a,refButton:o,style:s,...l}=e),t[0]=e,t[1]=l,t[2]=n,t[3]=a,t[4]=o,t[5]=s,t[6]=r,t[7]=c,t[8]=d,t[9]=u,t[10]=m,t[11]=g,t[12]=h,t[13]=y):(l=t[1],n=t[2],a=t[3],o=t[4],s=t[5],r=t[6],c=t[7],d=t[8],u=t[9],m=t[10],g=t[11],h=t[12],y=t[13]);const p=void 0===n?null:n,f=void 0===r?null:r,b=void 0===c?"button":c,v=void 0!==d&&d,x=void 0===u||u,S=void 0!==m&&m,w=void 0===g?null:g,C=void 0===h?null:h,j=void 0===y?null:y,k=void 0===a||a,M=void 0===o?null:o;let N,$,F,T,R,z=void 0===s?null:s;if(t[14]!==l?(N=l||{},t[14]=l,t[15]=N):N=t[15],t[16]!==N?(({body:F,...$}=N),t[16]=N,t[17]=$,t[18]=F):($=t[17],F=t[18]),null!==p){const e=z;let l,n;t[19]!==p?(l=ae(p),t[19]=p,t[20]=l):l=t[20],t[21]!==z||t[22]!==l?(n={...e,...l},t[21]=z,t[22]=l,t[23]=n):n=t[23],z=n}if(null!==f){const e=z;let l;t[24]!==f?(l=te(f),t[24]=f,t[25]=l):l=t[25];const n=k&&S?"inline-block":null;let a;t[26]!==z||t[27]!==l||t[28]!==n?(a={...e,...l,display:n},t[26]=z,t[27]=l,t[28]=n,t[29]=a):a=t[29],z=a}if(!k){const{borderWidth:e}=z||{},l=void 0===e?null:e,n=null!==l&&l>0?"-1px":null,a=S?"inline-block":null;let i,o;t[30]!==n?(i=null!==n?{margin:n}:null,t[30]=n,t[31]=i):i=t[31],t[32]!==z||t[33]!==a||t[34]!==i?(o={...z,display:a,...i},t[32]=z,t[33]=a,t[34]=i,t[35]=o):o=t[35],z=o}return t[36]!==j?(T=Ft([ca.container,j]),t[36]=j,t[37]=T):T=t[37],t[38]!==C||t[39]!==v||t[40]!==z||t[41]!==x||t[42]!==w||t[43]!==$||t[44]!==M||t[45]!==T||t[46]!==b?(R=(0,I.jsx)(El,{className:T,disabled:v,style:z,onClick:w,refButton:M,type:b,focusable:x,withoutBootstrapStyles:!0,...$,children:C}),t[38]=C,t[39]=v,t[40]=z,t[41]=x,t[42]=w,t[43]=$,t[44]=M,t[45]=T,t[46]=b,t[47]=R):R=t[47],R}function ua(e){const t=(0,i.c)(75);let l,n,a,o,s,r,c,d,u,m,g,h,y,p,f,b,v,x,S,w,C,j,k;t[0]!==e?(({label:n,visual:y,visualWidth:v,labelBoxStyle:x,textStyle:S,buttonStyle:w,resolution:C,shouldLoad:j,layout:k,type:a,disabled:o,focusable:s,inline:r,onClick:c,className:d,textClassName:u,visualClassName:m,imageClassName:g,videoClassName:h,withoutExternalBorder:p,refButton:f,children:b,...l}=e),t[0]=e,t[1]=l,t[2]=n,t[3]=a,t[4]=o,t[5]=s,t[6]=r,t[7]=c,t[8]=d,t[9]=u,t[10]=m,t[11]=g,t[12]=h,t[13]=y,t[14]=p,t[15]=f,t[16]=b,t[17]=v,t[18]=x,t[19]=S,t[20]=w,t[21]=C,t[22]=j,t[23]=k):(l=t[1],n=t[2],a=t[3],o=t[4],s=t[5],r=t[6],c=t[7],d=t[8],u=t[9],m=t[10],g=t[11],h=t[12],y=t[13],p=t[14],f=t[15],b=t[16],v=t[17],x=t[18],S=t[19],w=t[20],C=t[21],j=t[22],k=t[23]);const M=void 0===n?null:n,N=void 0===y?null:y,$=void 0===v?null:v,F=void 0===x?null:x,T=void 0===S?null:S,R=void 0===w?null:w,z=void 0===C?null:C,L=void 0===j||j,P=void 0===k?"label-bottom":k,B=void 0===a?"button":a,E=void 0!==o&&o,V=void 0===s||s,D=void 0!==r&&r,_=void 0===c?null:c,O=void 0===d?null:d,H=void 0===u?null:u,Z=void 0===m?null:m,W=void 0===g?null:g,q=void 0===h?null:h,G=void 0===p||p,Y=void 0===f?null:f,U=void 0===b?null:b;let Q;e:switch(B){case"submit":case"button":Q=da;break e;default:Q="div"}const X=Q;let J;t[24]!==N?(J=N||{},t[24]=N,t[25]=J):J=t[25];const{url:K}=J,ee=null!==(void 0===K?null:K);let te;t[26]!==M?(te=M||{},t[26]=M,t[27]=te):te=t[27];const{body:le}=te,ne=void 0===le?null:le;let ae;t[28]!==ne?(ae=null!==ne&&""!==ne.trim(),t[28]=ne,t[29]=ae):ae=t[29];const ie=ae,oe="no-label"!==P,se=("label-left"===P||"label-right"===P)&&ie&&ee?"30%":"100%",re=ee?P:null,ce="label-bottom"===re,de="label-top"===re,ue="no-label"===re,me="label-over"===re,ge="label-left"===re,he="label-right"===re,ye=ie&&(!ee||"label-right"!==P&&"label-left"!==P);let pe,fe;t[30]!==O||t[31]!==ce||t[32]!==de||t[33]!==ue||t[34]!==me||t[35]!==ge||t[36]!==he||t[37]!==ye?(pe=Ft([ca.container,ca.rich,O,{[ca.layoutLabelBottom]:ce,[ca.layoutLabelTop]:de,[ca.layoutNoLabel]:ue,[ca.layoutLabelOver]:me,[ca.layoutLabelLeft]:ge,[ca.layoutLabelRight]:he,[ca.textFullWidth]:ye}]),t[30]=O,t[31]=ce,t[32]=de,t[33]=ue,t[34]=me,t[35]=ge,t[36]=he,t[37]=ye,t[38]=pe):pe=t[38],t[39]===Symbol.for("react.memo_cache_sentinel")?(fe=(0,I.jsx)(A.sA,{id:"bv3rRe",defaultMessage:"Button"}),t[39]=fe):fe=t[39];const be=!ee&&!ie;let ve,xe,Se,we;return t[40]!==se||t[41]!==ee||t[42]!==W||t[43]!==z||t[44]!==L||t[45]!==q||t[46]!==N||t[47]!==Z||t[48]!==$?(ve=ee?(0,I.jsx)(ra,{media:N,width:$||se,resolution:z,shouldLoad:L,className:Ft([ca.visual,Z]),imageClassName:Ft([ca.image,W]),videoClassName:Ft([ca.video,q])}):null,t[40]=se,t[41]=ee,t[42]=W,t[43]=z,t[44]=L,t[45]=q,t[46]=N,t[47]=Z,t[48]=$,t[49]=ve):ve=t[49],t[50]!==ne||t[51]!==ie||t[52]!==F||t[53]!==oe||t[54]!==H||t[55]!==T?(xe=ie&&oe?(0,I.jsx)(Wn,{boxStyle:F,textStyle:T,body:ne,className:Ft([ca.text,H])}):null,t[50]=ne,t[51]=ie,t[52]=F,t[53]=oe,t[54]=H,t[55]=T,t[56]=xe):xe=t[56],t[57]!==U||t[58]!==be||t[59]!==ve||t[60]!==xe?(Se=(0,I.jsxs)(zn,{placeholder:"button",emptyLabel:fe,emptyClassName:ca.emptyButton,isEmpty:be,children:[ve,xe,U]}),t[57]=U,t[58]=be,t[59]=ve,t[60]=xe,t[61]=Se):Se=t[61],t[62]!==X||t[63]!==R||t[64]!==E||t[65]!==V||t[66]!==D||t[67]!==_||t[68]!==l||t[69]!==Y||t[70]!==pe||t[71]!==Se||t[72]!==B||t[73]!==G?(we=(0,I.jsx)(X,{type:B,buttonStyle:R,disabled:E,focusable:V,inline:D,onClick:_,className:pe,withoutExternalBorder:G,refButton:Y,...l,children:Se}),t[62]=X,t[63]=R,t[64]=E,t[65]=V,t[66]=D,t[67]=_,t[68]=l,t[69]=Y,t[70]=pe,t[71]=Se,t[72]=B,t[73]=G,t[74]=we):we=t[74],we}function ma(e){const t=(0,i.c)(5),{color:l,className:n}=e,a=void 0===l?"currentColor":l,o=void 0===n?null:n;let s,r;return t[0]!==a?(s=(0,I.jsx)("g",{transform:"matrix(1, 0, 0, 1, 0, 0)",children:(0,I.jsx)("path",{id:"b",fill:"none",stroke:a,strokeWidth:"3px",strokeLinejoin:"round",strokeLinecap:"round",d:"M1.5,10.88L24.26,1.5l22.77,9.38"})}),t[0]=a,t[1]=s):s=t[1],t[2]!==o||t[3]!==s?(r=(0,I.jsx)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0",y:"0px",width:"48.53px",height:"12.38px",viewBox:"0 0 48.53 12.38",className:o,xmlSpace:"preserve",children:s}),t[2]=o,t[3]=s,t[4]=r):r=t[4],r}var ga={container:"micromag-element-call-to-action-container",arrow:"micromag-element-call-to-action-arrow",button:"micromag-element-call-to-action-button",withoutLinkStyle:"micromag-element-call-to-action-withoutLinkStyle",label:"micromag-element-call-to-action-label",icon:"micromag-element-call-to-action-icon",text:"micromag-element-call-to-action-text",selfTargetLink:"micromag-element-call-to-action-selfTargetLink",leavingFrame:"micromag-element-call-to-action-leavingFrame",animationDisabled:"micromag-element-call-to-action-animationDisabled",invalidUrl:"micromag-element-call-to-action-invalidUrl"};function ha(e){const t=(0,i.c)(92),{type:l,url:a,label:o,boxStyle:s,inWebView:r,elRef:c,disabled:d,animationDisabled:m,icon:g,arrow:h,dragAmount:y,className:p,buttonClassName:f,buttonBorderClassName:b,labelClassName:v,arrowClassName:x,focusable:S,external:w,openWebView:C,onClick:j}=e,k=void 0===l?null:l,M=void 0===a?null:a,N=void 0===o?null:o,$=void 0===s?null:s,F=void 0!==r&&r,T=void 0===c?null:c,R=void 0!==d&&d,z=void 0!==m&&m,L=void 0===g?null:g,A=void 0===h?null:h,P=void 0===y?50:y,B=void 0===p?null:p,E=void 0===f?null:f,V=void 0===b?null:b,D=void 0===v?null:v,_=void 0===x?null:x,O=void 0===S||S,H=void 0===w||w,Z=void 0===C?null:C,W=void 0===j?null:j,q=dl(),G=null===k||"swipe-up"===k;let Y;t[0]!==M?(Y=ye(M),t[0]=M,t[1]=Y):Y=t[1];const U=Y,Q=(0,n.useRef)(null);let X;t[2]!==N?(X=N||{},t[2]=N,t[3]=X):X=t[3];const{textStyle:K}=X,ee=void 0===K?null:K;let te;t[4]!==ee?(te=ee||{},t[4]=ee,t[5]=te):te=t[5];const{fontSize:le,color:ne,lineHeight:ae}=te,ie=void 0===le?null:le,oe=void 0===ne?null:ne,se=void 0===ae?null:ae;let re;t[6]!==$?(re=$||{},t[6]=$,t[7]=re):re=t[7];const{backgroundColor:ce}=re,de=void 0===ce?null:ce;let me,ge,he;t[8]!==ie?(me={fontSize:ie},t[8]=ie,t[9]=me):me=t[9],t[10]!==de||t[11]!==oe?(ge=J(null===de?oe:de,"color"),t[10]=de,t[11]=oe,t[12]=ge):ge=t[12],t[13]!==me||t[14]!==ge?(he={...me,...ge},t[13]=me,t[14]=ge,t[15]=he):he=t[15];const pe=he,fe=(0,n.useRef)(null),[be,ve]=(0,n.useState)(!1),[xe,Se]=(0,n.useState)(!1);let we;t[16]!==F||t[17]!==W||t[18]!==Z||t[19]!==xe||t[20]!==q||t[21]!==M?(we=(e,t)=>{const l=void 0===t?"click":t;Se(!xe),F&&null!==Z&&Z({url:M}),null!==W&&"click"===l&&W(e),null!==q&&q("call_to_action",u(l)?l:"click",M)},t[16]=F,t[17]=W,t[18]=Z,t[19]=xe,t[20]=q,t[21]=M,t[22]=we):we=t[22];const Ce=we,je=ya;let ke;t[23]!==P||t[24]!==F||t[25]!==Ce?(ke=e=>{const{movement:t}=e,[,l]=t;l<-P&&(F?Ce(null,"swipe"):ue()&&null!==fe.current?(fe.current.click(),ve(!0),Ce(null,"swipe")):Q.current&&(Q.current.click(),Ce(null,"swipe")))},t[23]=P,t[24]=F,t[25]=Ce,t[26]=ke):ke=t[26];const Me=ke;let Ne;t[27]!==Me?(Ne={onDrag:je,onDragEnd:Me},t[27]=Me,t[28]=Ne):Ne=t[28];const $e=(0,$t.useGesture)(Ne);let Fe,Te;t[29]===Symbol.for("react.memo_cache_sentinel")?(Fe=()=>{const e=()=>{ve(!1)};return window.addEventListener("pagehide",e),()=>{window.removeEventListener("pagehide",e)}},Te=[ve],t[29]=Fe,t[30]=Te):(Fe=t[29],Te=t[30]),(0,n.useEffect)(Fe,Te);const Re=!U;let ze,Le,Ie,Ae,Pe;t[31]!==z||t[32]!==B||t[33]!==R||t[34]!==F||t[35]!==Re?(ze=Ft([ga.container,B,{[ga.disabled]:R,[ga.animationDisabled]:z,[ga.invalidUrl]:Re,[ga.inWebView]:F}]),t[31]=z,t[32]=B,t[33]=R,t[34]=F,t[35]=Re,t[36]=ze):ze=t[36],t[37]!==be?(Le=be?(0,I.jsx)("div",{className:ga.leavingFrame}):null,t[37]=be,t[38]=Le):Le=t[38],t[39]!==O||t[40]!==F||t[41]!==G||t[42]!==M?(Ie=!F&&G?(0,I.jsx)("a",{className:ga.selfTargetLink,href:M,ref:fe,tabIndex:O?"0":"-1"}):null,t[39]=O,t[40]=F,t[41]=G,t[42]=M,t[43]=Ie):Ie=t[43],t[44]!==A||t[45]!==_||t[46]!==pe||t[47]!==G?(Ae=G?(0,I.jsx)("div",{className:Ft([ga.arrow,_]),style:pe,children:A||(0,I.jsx)(ma,{})}):null,t[44]=A,t[45]=_,t[46]=pe,t[47]=G,t[48]=Ae):Ae=t[48],t[49]!==V?(Pe=Ft([ga.buttonBorder,V]),t[49]=V,t[50]=Pe):Pe=t[50];const Be=!F;let Ee;t[51]!==E||t[52]!==Be?(Ee=Ft([ga.button,E,{[ga.withoutLinkStyle]:Be}]),t[51]=E,t[52]=Be,t[53]=Ee):Ee=t[53];const Ve=F?null:M,De=!F&&H;let _e,Oe,He;t[54]!==$e||t[55]!==R||t[56]!==G?(_e=G&&!R?$e():null,t[54]=$e,t[55]=R,t[56]=G,t[57]=_e):_e=t[57],t[58]!==D?(Oe=Ft([ga.label,D]),t[58]=D,t[59]=Oe):Oe=t[59],t[60]!==L?(He=null!==L?(0,I.jsx)("div",{className:ga.icon,children:L}):null,t[60]=L,t[61]=He):He=t[61];const Ze=se||1;let We,qe,Ge,Ye,Ue,Qe;return t[62]!==Ze||t[63]!==ee?(We={...ee,lineHeight:Ze},t[62]=Ze,t[63]=ee,t[64]=We):We=t[64],t[65]!==N||t[66]!==We?(qe=(0,I.jsx)(Wn,{...N,className:ga.text,textStyle:We,inline:!0}),t[65]=N,t[66]=We,t[67]=qe):qe=t[67],t[68]!==Oe||t[69]!==He||t[70]!==qe?(Ge=(0,I.jsxs)("span",{className:Oe,children:[He,qe]}),t[68]=Oe,t[69]=He,t[70]=qe,t[71]=Ge):Ge=t[71],t[72]!==$||t[73]!==O||t[74]!==Ce||t[75]!==Ee||t[76]!==Ve||t[77]!==De||t[78]!==_e||t[79]!==Ge||t[80]!==xe?(Ye=(0,I.jsx)(da,{className:Ee,refButton:Q,focusable:O,buttonStyle:$,inline:!0,"aria-pressed":xe,href:Ve,external:De,onClick:Ce,..._e,children:Ge}),t[72]=$,t[73]=O,t[74]=Ce,t[75]=Ee,t[76]=Ve,t[77]=De,t[78]=_e,t[79]=Ge,t[80]=xe,t[81]=Ye):Ye=t[81],t[82]!==Pe||t[83]!==Ye?(Ue=(0,I.jsx)("div",{className:Pe,children:Ye}),t[82]=Pe,t[83]=Ye,t[84]=Ue):Ue=t[84],t[85]!==T||t[86]!==ze||t[87]!==Le||t[88]!==Ie||t[89]!==Ae||t[90]!==Ue?(Qe=(0,I.jsxs)("div",{className:ze,ref:T,children:[Le,Ie,Ae,Ue]}),t[85]=T,t[86]=ze,t[87]=Le,t[88]=Ie,t[89]=Ae,t[90]=Ue,t[91]=Qe):Qe=t[91],Qe}function ya(e){const{event:t}=e;t.preventDefault()}var pa=({ref:e,...t})=>(0,I.jsx)(ha,{elRef:e,...t});function fa(e){const t=(0,i.c)(7),{callToAction:l,className:n}=e,a=void 0===l?null:l,o=void 0===n?null:n;if(null===a)return null;let s,r,c;return t[0]!==o?(s=Ft([o]),t[0]=o,t[1]=s):s=t[1],t[2]!==a?(r=(0,I.jsx)(pa,{...a}),t[2]=a,t[3]=r):r=t[3],t[4]!==s||t[5]!==r?(c=(0,I.jsx)("div",{className:s,children:r}),t[4]=s,t[5]=r,t[6]=c):c=t[6],c}function ba(e){const t=(0,i.c)(25),{label:l,boxStyle:n,className:a,labelClassName:o}=e,s=void 0===l?null:l,r=void 0===n?null:n,c=void 0===a?null:a,d=void 0===o?null:o;let u;t[0]!==s?(u=s||{},t[0]=s,t[1]=u):u=t[1];const{textStyle:m}=u,g=void 0===m?null:m;let h;t[2]!==g?(h=g||{},t[2]=g,t[3]=h):h=t[3];const{lineHeight:y}=h,p=void 0===y?null:y;let f,b=null;if(null!==r){let e,l;t[4]!==r?(e=te(r),t[4]=r,t[5]=e):e=t[5],t[6]!==e?(l={...e},t[6]=e,t[7]=l):l=t[7],b=l}t[8]!==c?(f=Ft(["micromag-element-badge-container",c]),t[8]=c,t[9]=f):f=t[9];const v=b;let x;t[10]!==d?(x=Ft(["micromag-element-badge-label",d]),t[10]=d,t[11]=x):x=t[11];const S=p||1;let w,C,j,k;return t[12]!==S||t[13]!==g?(w={...g,lineHeight:S},t[12]=S,t[13]=g,t[14]=w):w=t[14],t[15]!==s||t[16]!==w?(C=(0,I.jsx)(Wn,{...s,textStyle:w,inline:!0}),t[15]=s,t[16]=w,t[17]=C):C=t[17],t[18]!==x||t[19]!==C?(j=(0,I.jsx)("span",{className:x,children:C}),t[18]=x,t[19]=C,t[20]=j):j=t[20],t[21]!==b||t[22]!==j||t[23]!==f?(k=(0,I.jsx)("div",{className:f,style:v,children:j}),t[21]=b,t[22]=j,t[23]=f,t[24]=k):k=t[24],k}var va={container:"micromag-element-header-container",fade:"micromag-element-header-fade"};function xa(e){const t=(0,i.c)(8),{badge:l,fade:n,className:a}=e,o=void 0===l?null:l,s=void 0===a?null:a;if(null===o)return null;const r=!0===(void 0!==n&&n);let c,d,u;return t[0]!==s||t[1]!==r?(c=Ft([va.container,s,{[va.fade]:r}]),t[0]=s,t[1]=r,t[2]=c):c=t[2],t[3]!==o?(d=null!==o?(0,I.jsx)(ba,{className:va.badge,...o}):null,t[3]=o,t[4]=d):d=t[4],t[5]!==c||t[6]!==d?(u=(0,I.jsx)("div",{className:c,children:d}),t[5]=c,t[6]=d,t[7]=u):u=t[7],u}function Sa(e){const t=(0,i.c)(44),{size:l,body:a,textStyle:o,linksStyle:s,margin:r,withoutNonBreakingSpaces:c,className:d,headingRef:m}=e,g=void 0===a?null:a,h=void 0===o?null:o,y=void 0===s?null:s,p=void 0===r?null:r,f=void 0!==c&&c,b=void 0===d?null:d,v=void 0===m?null:m,x=`h${void 0===l?1:l}`;let S;t[0]!==h?(S=h||{},t[0]=h,t[1]=S):S=t[1];const{link:w,highlight:C}=S,j=void 0===w?null:w,k=void 0===C?null:C;let M,N=null;t[2]!==j?(M=null!==j?ne(j):null,t[2]=j,t[3]=M):M=t[3];let $,F=M;t[4]!==k?($=null!==k?le(k):null,t[4]=k,t[5]=$):$=t[5];const T=$;if(null!==h){let e,l;t[6]!==h?(e=ae(h),t[6]=h,t[7]=e):e=t[7],t[8]!==e?(l={...e},t[8]=e,t[9]=l):l=t[9],N=l}if(null!==p){const e=N;let l,n;t[10]!==p?(l=ie(p),t[10]=p,t[11]=l):l=t[11],t[12]!==N||t[13]!==l?(n={...e,...l},t[12]=N,t[13]=l,t[14]=n):n=t[14],N=n}if(null!==y){const e=F;let l,n;t[15]!==y?(l=ae(y),t[15]=y,t[16]=l):l=t[16],t[17]!==F||t[18]!==l?(n={...e,...l},t[17]=F,t[18]=l,t[19]=n):n=t[19],F=n}const R=null!==F||null!==k,z=(0,n.useId)(),L=R?`heading-component-${z}`:null;let A,P,B,E;var V;let D,_,H;return t[20]!==F||t[21]!==L?(A=null!==F?(0,I.jsx)(Vn,{selector:`#${O(L)}`,style:F}):null,t[20]=F,t[21]=L,t[22]=A):A=t[22],t[23]!==T||t[24]!==L?(P=null!==T?(0,I.jsx)(Bn,{selector:`#${O(L)}`,style:T}):null,t[23]=T,t[24]=L,t[25]=P):P=t[25],t[26]!==b?(B=Ft(["micromag-element-heading-container",b]),t[26]=b,t[27]=B):B=t[27],t[28]!==g||t[29]!==f?(E=f?g:u(V=g)?V.replace(/«\s/g,"« ").replace(/\s»/g," »").replace(/\s:\s/g," : "):V,t[28]=g,t[29]=f,t[30]=E):E=t[30],t[31]!==E?(D={__html:E},t[31]=E,t[32]=D):D=t[32],t[33]!==x||t[34]!==N||t[35]!==v||t[36]!==L||t[37]!==B||t[38]!==D?(_=(0,I.jsx)(x,{id:L,className:B,style:N,dangerouslySetInnerHTML:D,ref:v}),t[33]=x,t[34]=N,t[35]=v,t[36]=L,t[37]=B,t[38]=D,t[39]=_):_=t[39],t[40]!==A||t[41]!==P||t[42]!==_?(H=(0,I.jsxs)(I.Fragment,{children:[A,P,_]}),t[40]=A,t[41]=P,t[42]=_,t[43]=H):H=t[43],H}var wa=({ref:e,...t})=>(0,I.jsx)(Sa,{headingRef:e,...t});const Ca=n.createContext({direction:"horizontal"});function ja(e){const t=(0,i.c)(5),{direction:l,children:n}=e,a=void 0===l?"vertical":l;let o;t[0]!==a?(o={direction:a},t[0]=a,t[1]=o):o=t[1];const s=o;let r;return t[2]!==n||t[3]!==s?(r=(0,I.jsx)(Ca,{value:s,children:n}),t[2]=n,t[3]=s,t[4]=r):r=t[4],r}var ka="micromag-element-stack-spacer-hasSize";function Ma(e){const t=(0,i.c)(13),{size:l,minSize:a,maxSize:o,className:s}=e,r=void 0===l?null:l,c=void 0===a?null:a,d=void 0===o?null:o,u=void 0===s?null:s,m=(()=>{const{direction:e}=(0,n.use)(Ca);return e})(),g=null!==r;let h;t[0]!==u||t[1]!==g?(h=Ft(["micromag-element-stack-spacer-container",u,{[ka]:g}]),t[0]=u,t[1]=g,t[2]=h):h=t[2];const y="horizontal"===m?r:null,p="horizontal"===m?c:null,f="horizontal"===m?d:null,b="vertical"===m?r:null,v="vertical"===m?c:null,x="vertical"===m?d:null;let S,w;return t[3]!==b||t[4]!==v||t[5]!==x||t[6]!==y||t[7]!==p||t[8]!==f?(S={width:y,minWidth:p,maxWidth:f,height:b,minHeight:v,maxHeight:x},t[3]=b,t[4]=v,t[5]=x,t[6]=y,t[7]=p,t[8]=f,t[9]=S):S=t[9],t[10]!==S||t[11]!==h?(w=(0,I.jsx)("div",{className:h,style:S}),t[10]=S,t[11]=h,t[12]=w):w=t[12],w}Ma.withoutTransitionsWrapper=!0;var Na="micromag-element-layout-fullscreen";function $a(e){const t=(0,i.c)(13),{width:l,height:n,horizontalAlign:a,verticalAlign:o,distribution:s,fullscreen:r,className:c,children:d,style:u}=e,m=void 0===l?null:l,g=void 0===n?null:n,h=void 0===a?"left":a,y=void 0===o?"top":o,p=void 0===s?null:s,f=void 0!==r&&r,b=void 0===c?null:c,v=void 0===d?null:d,x=void 0===u?null:u;let S=null;null!==p?S=`space-${p}`:"middle"===y?S="center":"bottom"===y&&(S="flex-end");let w,C=null;"center"===h?C="center":"right"===h&&(C="flex-end"),t[0]!==C||t[1]!==g||t[2]!==S||t[3]!==x||t[4]!==m?(w={width:m,height:g,justifyContent:S,alignItems:C,...x},t[0]=C,t[1]=g,t[2]=S,t[3]=x,t[4]=m,t[5]=w):w=t[5];const j=w;let k,M;return t[6]!==b||t[7]!==f?(k=Ft(["micromag-element-layout-container",b,{[Na]:f}]),t[6]=b,t[7]=f,t[8]=k):k=t[8],t[9]!==v||t[10]!==j||t[11]!==k?(M=(0,I.jsx)(ja,{direction:"vertical",children:(0,I.jsx)("div",{className:k,style:j,children:v})}),t[9]=v,t[10]=j,t[11]=k,t[12]=M):M=t[12],M}var Fa={container:"micromag-element-scroll-container",scrollable:"micromag-element-scroll-scrollable",arrowContainer:"micromag-element-scroll-arrowContainer",arrow:"micromag-element-scroll-arrow",upAndDown:"micromag-element-scroll-upAndDown",withScroll:"micromag-element-scroll-withScroll",withArrow:"micromag-element-scroll-withArrow",withShadow:"micromag-element-scroll-withShadow",top:"micromag-element-scroll-top",scrollee:"micromag-element-scroll-scrollee",middle:"micromag-element-scroll-middle",bottom:"micromag-element-scroll-bottom",disabled:"micromag-element-scroll-disabled"};function Ta(e){const t=(0,i.c)(66),{width:l,height:a,disabled:o,verticalAlign:s,className:r,scrollableClassName:c,scrolleeClassName:d,children:u,scrollPosition:m,triggers:g,onScrolledTrigger:h,onScrolledBottom:y,onScrolledNotBottom:p,onScrollHeightChange:f,ref:b,withShadow:v,withArrow:x}=e,S=void 0===l?null:l,w=void 0===a?null:a,C=void 0!==o&&o,j=void 0===s?null:s,k=void 0===r?null:r,M=void 0===c?null:c,N=void 0===d?null:d,$=void 0===u?null:u,F=void 0===m?null:m;let T;t[0]!==g?(T=void 0===g?[.1,.25,.5,.75,.9,1]:g,t[0]=g,t[1]=T):T=t[1];const R=T,z=void 0===h?null:h,L=void 0===y?null:y,A=void 0===p?null:p,P=void 0===f?null:f,B=void 0===b?null:b,E=void 0!==v&&v,V=void 0===x||x;let D;t[2]!==w||t[3]!==S?(D={width:S,height:w},t[2]=w,t[3]=S,t[4]=D):D=t[4];const _=D;let O;t[5]===Symbol.for("react.memo_cache_sentinel")?(O=[],t[5]=O):O=t[5];const H=(0,n.useRef)(O),[Z,W]=(0,n.useState)(!1),{ref:q,height:G}=_t(),{ref:Y,height:U}=_t(),Q=(0,n.useRef)(!1),X=(0,n.useRef)(!1),J=(0,n.useRef)(!1);let K;t[6]!==L||t[7]!==A||t[8]!==z||t[9]!==G||t[10]!==U||t[11]!==V||t[12]!==R||t[13]!==Z?(K=e=>{const{xy:t}=e,[,l]=t,n=l<=1,a=U-G,i=l+1>=a,o=Math.min(Math.max((l+1)/a,0),1),s=(R||[]).filter(e=>o>=e&&-1===H.current.indexOf(e));s.forEach(e=>{null!=z&&z(e)}),s.length>0&&(H.current=[...H.current,...s]),i?J.current||(null!==L&&L({initial:!Q.current}),Q.current=!0):J.current&&(null!==A&&A({initial:!X.current}),X.current=!0),n!==Z&&V&&W(n),J.current=i},t[6]=L,t[7]=A,t[8]=z,t[9]=G,t[10]=U,t[11]=V,t[12]=R,t[13]=Z,t[14]=K):K=t[14];const ee=K,te=!C;let le;t[15]!==te?(le={enabled:te,threshold:10,axis:"y",filterTaps:!0},t[15]=te,t[16]=le):le=t[16];const ne=(0,$t.useScroll)(ee,le),ae=!C&&U>0&&G>0&&Math.round(U)>Math.round(G);ae!==Z&&W(ae);const ie=U>0&&G>0?U-G:null;let oe,se,re,ce,de,ue;t[17]!==C||t[18]!==ie||t[19]!==L||t[20]!==A||t[21]!==q?(oe=()=>{null!==ie&&!C&&q.current.scrollTop+1>=ie?null!==L&&L({initial:!1}):null!==A&&A({initial:!1})},se=[ie,C,q,L,A],t[17]=C,t[18]=ie,t[19]=L,t[20]=A,t[21]=q,t[22]=oe,t[23]=se):(oe=t[22],se=t[23]),(0,n.useEffect)(oe,se),t[24]!==P||t[25]!==G||t[26]!==U?(re=()=>{null!==P&&P({scrollableHeight:G,scrolleeHeight:U,canScroll:(U||0)>(G||0)})},ce=[G,U,P],t[24]=P,t[25]=G,t[26]=U,t[27]=re,t[28]=ce):(re=t[27],ce=t[28]),(0,n.useEffect)(re,ce),t[29]!==F||t[30]!==q?(de=()=>{null!==q.current&&null!==F&&(q.current.scrollTop=F)},ue=[q,F],t[29]=F,t[30]=q,t[31]=de,t[32]=ue):(de=t[31],ue=t[32]),(0,n.useEffect)(de,ue);const me=Fa[j],ge=null!==j&&U<G,he=V&&Z;let ye,fe,be,ve,xe;t[33]!==k||t[34]!==C||t[35]!==me||t[36]!==ge||t[37]!==he||t[38]!==E?(ye=Ft([Fa.container,Fa.withScroll,k,{[Fa.disabled]:C,[me]:ge,[Fa.withArrow]:he,[Fa.withShadow]:E}]),t[33]=k,t[34]=C,t[35]=me,t[36]=ge,t[37]=he,t[38]=E,t[39]=ye):ye=t[39],t[40]!==M?(fe=Ft([Fa.scrollable,M]),t[40]=M,t[41]=fe):fe=t[41],t[42]!==B||t[43]!==q?(be=pe(q,B),t[42]=B,t[43]=q,t[44]=be):be=t[44],t[45]!==ne?(ve=ne(),t[45]=ne,t[46]=ve):ve=t[46],t[47]!==N?(xe=Ft([Fa.scrollee,N]),t[47]=N,t[48]=xe):xe=t[48];const Se=Y;let we,Ce,je,ke;return t[49]!==$||t[50]!==xe||t[51]!==Se?(we=(0,I.jsx)("div",{className:xe,ref:Se,children:$}),t[49]=$,t[50]=xe,t[51]=Se,t[52]=we):we=t[52],t[53]!==fe||t[54]!==be||t[55]!==ve||t[56]!==we?(Ce=(0,I.jsx)("div",{className:fe,ref:be,...ve,children:we}),t[53]=fe,t[54]=be,t[55]=ve,t[56]=we,t[57]=Ce):Ce=t[57],t[58]!==C||t[59]!==V?(je=!C&&V?(0,I.jsx)("div",{className:Fa.arrowContainer,children:(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"16",viewBox:"0 0 10 16",className:Fa.arrow,fill:"currentColor",children:(0,I.jsx)("polygon",{points:".38 11.38 5 16 9.62 11.38 8.56 10.32 5.75 13.13 5.75 1.61 4.25 1.61 4.25 13.13 1.44 10.32 .38 11.38"})})}):null,t[58]=C,t[59]=V,t[60]=je):je=t[60],t[61]!==_||t[62]!==ye||t[63]!==Ce||t[64]!==je?(ke=(0,I.jsxs)("div",{className:ye,style:_,children:[Ce,je]}),t[61]=_,t[62]=ye,t[63]=Ce,t[64]=je,t[65]=ke):ke=t[65],ke}var Ra={container:"micromag-screen-article-container",background:"micromag-screen-article-background",content:"micromag-screen-article-content",layout:"micromag-screen-article-layout",emptyTitle:"micromag-screen-article-emptyTitle",emptyAuthor:"micromag-screen-article-emptyAuthor",emptySubtitle:"micromag-screen-article-emptySubtitle",emptyText:"micromag-screen-article-emptyText",emptySurtitle:"micromag-screen-article-emptySurtitle",emptyDate:"micromag-screen-article-emptyDate",main:"micromag-screen-article-main",hasText:"micromag-screen-article-hasText",visualContainer:"micromag-screen-article-visualContainer",surtitle:"micromag-screen-article-surtitle",subtitle:"micromag-screen-article-subtitle",date:"micromag-screen-article-date",title:"micromag-screen-article-title",author:"micromag-screen-article-author",text:"micromag-screen-article-text",topContent:"micromag-screen-article-topContent",footer:"micromag-screen-article-footer",disabled:"micromag-screen-article-disabled",isPlaceholder:"micromag-screen-article-isPlaceholder"},za=[{id:"article",type:"screen",group:{label:(0,A.zR)({id:"fIawTr",defaultMessage:"Text"}),order:2},title:(0,A.zR)({id:"ouMwWq",defaultMessage:"Article"}),component:function({image:e=null,title:t=null,surtitle:l=null,date:a=null,author:i=null,subtitle:o=null,text:s=null,spacing:r=20,background:c=null,header:d=null,footer:u=null,current:m=!0,preload:g=!0,type:h=null,mediaRef:y=null,className:p=null}){const f=(0,A.tz)(),b=rl(h),{width:v,height:x,resolution:S}=rt(),{topHeight:w,bottomHeight:C,bottomSidesWidth:j}=ht(),{open:k}=bt(),{muted:M}=Xe(),{ref:N,isCurrent:$=!1}=Je(m,!0),{ref:F,height:T}=_t(),{isView:R,isPreview:z,isPlaceholder:L,isEdit:P,isStatic:B,isCapture:E}=at(),V=m&&(R||P)&&($||!R),D=m||g,_=!P&&(B||E||L||z||P)||!m,{name:O=null,image:H=null,collaborator:Z}=i||{},W=he(s),q=ce(d),Y=de(u),U=he(t),Q=he(l),X=he(o),J=he(i),K=he(O)||me(H)||he(Z),ee=me(e),te=he(a),le=G(u,{isView:R,current:m,openWebView:k,isPreview:z}),ne=(0,n.useMemo)(()=>{if(!ee)return 0;const{metadata:t={}}=e||{},{width:l=0,height:n=0}=t||{};return v*n/l},[e]),ae=te&&a.body||null,ie=(0,n.useMemo)(()=>null!==ae?`<p>${f.formatDate(It(ae).toDate(),{year:"numeric",month:"long",day:"2-digit"})}</p>`:null,[ae]),oe=(0,I.jsx)(zn,{placeholder:"image",emptyLabel:(0,I.jsx)(A.sA,{id:"ebsPd4",defaultMessage:"Image"}),emptyClassName:Ra.emptyText,isEmpty:!ee,children:(0,I.jsx)("div",{ref:F,className:Ra.visualContainer,children:ee?(0,I.jsx)(ra,{media:e,width:v,height:ne,shouldLoad:D,resolution:S,className:Ra.visual}):null})}),se=(0,I.jsx)(zn,{placeholder:"title",emptyLabel:(0,I.jsx)(A.sA,{id:"2ZOPe+",defaultMessage:"Title"}),emptyClassName:Ra.emptyTitle,isEmpty:!U,children:U?(0,I.jsx)(wa,{className:Ra.title,...t}):null},"title"),re=(0,I.jsx)(zn,{placeholder:"line",emptyLabel:(0,I.jsx)(A.sA,{id:"vdWMTA",defaultMessage:"Surtitle"}),emptyClassName:Ra.emptySurtitle,isEmpty:!Q,children:Q?(0,I.jsx)(Wn,{className:Ra.surtitle,...l}):null},"surtitle"),ue=(0,I.jsx)(zn,{placeholder:"line",emptyLabel:(0,I.jsx)(A.sA,{id:"d60tSn",defaultMessage:"Subtitle"}),emptyClassName:Ra.emptySubtitle,isEmpty:!X,children:X?(0,I.jsx)(Wn,{className:Ra.subtitle,...o}):null},"subtitle"),ge=(0,I.jsx)(zn,{placeholder:"line",emptyLabel:(0,I.jsx)(A.sA,{id:"/MsgWe",defaultMessage:"Date"}),emptyClassName:Ra.emptyDate,isEmpty:!te,children:te?(0,I.jsx)(Wn,{className:Ra.date,...a,body:ie}):null},"date"),ye=(0,I.jsxs)(zn,{placeholder:"line",emptyLabel:(0,I.jsx)(A.sA,{id:"xYqGzM",defaultMessage:"Author"}),emptyClassName:Ra.emptyAuthor,isEmpty:!K&&!J,children:[J?(0,I.jsx)(Wn,{className:Ra.author,...i}):null,K?(0,I.jsx)(Yn,{author:i}):null]},"author"),fe=(0,I.jsx)(zn,{placeholder:"text",emptyLabel:(0,I.jsx)(A.sA,{id:"z4CiV1",defaultMessage:"Text"}),emptyClassName:Ra.emptyText,isEmpty:!W,children:W?(0,I.jsx)(Wn,{className:Ra.text,...s}):null}),[be,ve]=(0,n.useState)(!1),xe=(0,n.useCallback)(({initial:e})=>{e&&b("scroll","Screen"),ve(!0)},[b]),Se=(0,n.useCallback)((e=null)=>{if(null!==e){const t=Math.round(100*e);b("scroll",t,{scrollPercent:t})}},[b]),we=(0,n.useCallback)(()=>{ve(!1)},[ve]);return(0,I.jsxs)("div",{className:Ft([Ra.container,p,{[Ra.isPlaceholder]:L}]),"data-screen-ready":!0,children:[(0,I.jsx)(na,{width:v,height:x,className:Ra.content,children:(0,I.jsx)(Ta,{disabled:_,onScrolledTrigger:Se,onScrolledBottom:xe,onScrolledNotBottom:we,withShadow:!0,children:(0,I.jsxs)($a,{className:Ra.layout,style:L?null:{paddingLeft:r,paddingRight:r,paddingTop:q?r/2+(z?0:w):r/2+T,paddingBottom:(m&&!z?C:0)+r/2},children:[!L&&q?(0,I.jsx)("div",{style:{height:ee&&T>0?0:"auto",paddingBottom:T>0?T-w:r},children:(0,I.jsx)(xa,{...d})},"header"):null,(0,I.jsxs)("div",{className:Ft([Ra.main,{[Ra.hasText]:W&&K}]),children:[oe,(0,I.jsxs)("div",{className:Ra.topContent,children:[re,ge]}),se,ye,ue]}),fe,!L&&Y?(0,I.jsx)("div",{className:Ft([Ra.footer,{[Ra.disabled]:!be}]),style:{paddingLeft:Math.max(j-r,0),paddingRight:Math.max(j-r,0),paddingTop:r},children:(0,I.jsx)(fa,{...le})}):null]})})}),L?null:(0,I.jsx)(la,{background:c,width:v,height:x,resolution:S,playing:V,muted:M,shouldLoad:D,mediaRef:pe(N,y),withoutVideo:z,className:Ra.background})]})},layouts:["normal"],fields:[{name:"image",type:"visual",label:(0,A.zR)({id:"xsipID",defaultMessage:"Image"})},{name:"title",type:"heading-element",inline:!0,theme:{textStyle:"header2"},label:(0,A.zR)({id:"N25iDO",defaultMessage:"Title"})},{name:"surtitle",type:"text-element",label:(0,A.zR)({id:"YD9M2p",defaultMessage:"Overtitle"})},{name:"date",type:"date-element",label:(0,A.zR)({id:"9AP246",defaultMessage:"Date"})},{name:"author",type:"author-element",label:(0,A.zR)({id:"73hxYw",defaultMessage:"Author"})},{name:"subtitle",type:"text-element",label:(0,A.zR)({id:"EcZYpr",defaultMessage:"Subtitle"})},{name:"text",type:"text-modal",label:(0,A.zR)({id:"4E2gbX",defaultMessage:"Text"})},{name:"background",type:"background",label:(0,A.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,A.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,A.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]}],La=l(3655);function Ia({progress:e=0,playing:t=!1,duration:l=0,seek:a=null,play:i=null,className:o=null}){const s=(0,A.tz)(),{ref:r,width:c=null,height:d}=_t(),u=e*c,[m,g]=(0,n.useState)(null),h=(0,n.useMemo)(()=>{const e=Math.floor(c/2);return[...Array(e).keys()].map(()=>Math.floor(100*Math.random()))},[c,2]),y=(0,n.useCallback)((e=null)=>{if(null===e)return;const{left:n,width:o}=r.current.getBoundingClientRect(),s=Math.max(0,Math.min(1,(e-n)/o));null!==a&&null!==l&&a(parseFloat(s*l,10)),t||null==i||i()},[r.current,c,l,t,a,i]),p=(0,n.useCallback)(e=>{const{left:t,width:l}=r.current.getBoundingClientRect(),n=Math.max(0,Math.min(1,(e-t)/l));g(n*c)},[r.current,c,g]),f=(0,n.useCallback)(e=>{e&&(y(e.clientX||null),g(null))},[y,g]),b=(0,$t.useGesture)({onDrag:({xy:[e],elapsedTime:t,active:l})=>{!l&&t>300||p(e)},onDragStart:({xy:[e],elapsedTime:t,active:l})=>{!l&&t>300||p(e)},onDragEnd:({xy:[e]})=>{y(e),setTimeout(()=>{g(null)},1e3)}},{drag:{axis:"x",filterTaps:!0}});return(0,I.jsxs)("div",{className:Ft(["micromag-element-audio-audio-bars-container",o]),ref:r,children:[(0,I.jsx)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0",y:"0",width:`${c}px`,height:`${d}px`,viewBox:`0 0 ${c} ${d}`,className:o,xmlSpace:"preserve",children:h.map((e,t)=>(0,I.jsx)("rect",{width:1,height:e,x:2*t,y:d/2-e/2,fill:(m||u)>2*t?"white":"gray",stroke:"black",strokeWidth:"0px",strokeLinejoin:"round",strokeLinecap:"round"},`bar-${t+1}`))}),(0,I.jsx)("button",{...b(),onClick:f,type:"button",className:"micromag-element-audio-audio-bars-seekButton",title:s.formatMessage({id:"G1Gyjn",defaultMessage:"Seek"}),"aria-label":s.formatMessage({id:"G1Gyjn",defaultMessage:"Seek"})})]})}var Aa="micromag-element-audio-withAutoHeight";function Pa({media:e=null,mediaRef:t=null,muted:l=!1,autoPlay:a=!1,paused:o=!1,loop:s=!1,preload:r="auto",shouldLoad:c=!0,waveFake:d=!1,withWave:u=!1,autoWaveHeight:m=!1,updateInterval:g=1e3,className:h=null,withoutSeek:y=!1,onReady:p=null,onPlay:f=null,onPause:b=null,onEnded:v=null,onSeeked:x=null,onTimeUpdate:S=null,onProgressStep:w=null,onDurationChange:C=null,onVolumeChange:j=null,onPlayError:k=null}){const{url:M=null,files:N=null}=e||{},$=(0,n.useMemo)(()=>{if(N){const e=Object.entries(N),[,t=null]=e.find(([e])=>"mp3"===e)||[];if(t)return t.url}return M},[N,M]),F=(0,n.useRef)(null),T=qt(F.current,{id:$,disabled:o||!u&&null===w,updateInterval:g}),R=Kt(F.current,{id:$}),z=Yt(F.current,{id:$});!function(e,t){const l=(0,i.c)(7);let a;l[0]!==t?(a=void 0===t?{}:t,l[0]=t,l[1]=a):a=l[1];const{preload:o,shouldLoad:s}=a,r=void 0===o?"auto":o,c=void 0!==s&&s,d=(0,n.useRef)(r),u=(0,n.useRef)(c),m=(0,n.useRef)("none"!==r&&"metadata"!==r&&c);let g,h;l[2]!==e||l[3]!==r||l[4]!==c?(g=()=>{const t="none"!==r&&"metadata"!==r&&c,l=d.current!==r,n=u.current!==c;t&&(l||n)&&!m.current&&null!==e&&void 0!==e.load&&(m.current=!0,e.load())},h=[e,c,r],l[2]=e,l[3]=r,l[4]=c,l[5]=g,l[6]=h):(g=l[5],h=l[6]),(0,n.useEffect)(g,h)}(F.current,{preload:r,shouldLoad:c});const L=d||R;(0,n.useEffect)(()=>{z>0&&null!==C&&C(z)},[z,C]);const A=(0,n.useCallback)(()=>{const{current:e=null}=F;null!==e&&null!==j&&j(e.volume)},[F.current,j]),P=(0,n.useCallback)(()=>{const{current:e=null}=F;null!==e&&e.play()},[F.current]),E=(0,n.useCallback)(e=>{const{current:t=null}=F;null!==t&&B(e)&&(t.currentTime=e)},[F.current]);(0,n.useEffect)(()=>{L&&null!==p&&p()},[L,p]),(0,n.useEffect)(()=>{const{current:e=null}=F;if(null===e)return;const{paused:t}=e;o&&!t?e.pause():!o&&t&&e.play().catch(e=>{null!==k&&k(e)})},[o,e,k]),ll({currentTime:T,duration:z,disabled:o,onStep:w});const V=null!==T&&z>0?T/z:0;return(0,I.jsxs)("div",{className:Ft(["micromag-element-audio-container",h]),children:[(0,I.jsx)("audio",{ref:e=>{F.current=e,null!==t&&La(t)?t(e):null!==t&&(t.current=e)},src:$,autoPlay:a&&!o,muted:l,loop:s,crossOrigin:"anonymous",preload:r,onPlay:f,onPause:b,onEnded:v,onSeeked:x,onTimeUpdate:S,onVolumeChange:A},$),u?(0,I.jsx)(Ia,{className:Ft(["micromag-element-audio-wave",{[Aa]:m}]),progress:V,duration:z,playing:!o,seek:y?null:E,play:P}):null]})}var Ba=({ref:e,...t})=>(0,I.jsx)(Pa,{mediaRef:e,...t}),Ea=l(9645);function Va(e){const t=(0,i.c)(32),{currentTime:l,timeOffset:a,media:o,textStyle:s,boxStyle:r,className:c}=e,d=void 0===l?0:l,u=void 0===a?null:a,m=void 0===o?null:o,g=void 0===s?null:s,h=void 0===r?null:r,y=void 0===c?null:c;let p;t[0]!==m?(p=m||{},t[0]=m,t[1]=p):p=t[1];const{url:f}=p,b=void 0===f?null:f;let v;t[2]===Symbol.for("react.memo_cache_sentinel")?(v=[],t[2]=v):v=t[2];const[x,S]=(0,n.useState)(v),[w,C]=(0,n.useState)(-1);let j;if(t[3]!==u){const e=null!==u?u.split(/[\t ]*-->[\t ]*/):null;j=null!==e&&e.length?(e=>{const t=e.split(":");try{let e=t[2].split(",");return 1===e.length&&(e=t[2].split(".")),3600*parseFloat(t[0],10)+60*parseFloat(t[1],10)+parseFloat(e[0],10)+parseFloat(e[1],10)/1e3}catch(e){return 0}})(e[0]):0,t[3]=u,t[4]=j}else j=t[4];const k=j;let M,N,$;t[5]!==b?(M=()=>{null!==b&&fetch(b,{mode:"cors"}).then(Oa).then(_a).then(e=>{S(e)}).catch(Da)},N=[b,fetch,S],t[5]=b,t[6]=M,t[7]=N):(M=t[6],N=t[7]),(0,n.useEffect)(M,N),t[8]!==x||t[9]!==k?($=e=>x.findIndex(t=>e>=t.start-k&&e<=t.end-k),t[8]=x,t[9]=k,t[10]=$):$=t[10];const F=$;let T,R;t[11]!==d||t[12]!==F||t[13]!==w||t[14]!==x.length?(T=()=>{if(x.length>0){const e=F(d);e!==w&&C(e)}},t[11]=d,t[12]=F,t[13]=w,t[14]=x.length,t[15]=T):T=t[15],t[16]!==d||t[17]!==F||t[18]!==x?(R=[d,x,F,C],t[16]=d,t[17]=F,t[18]=x,t[19]=R):R=t[19],(0,n.useEffect)(T,R);const z=-1!==w?x[w]:null,L=null!==z;let A;t[20]!==h?(A=null!==h?te(h):null,t[20]=h,t[21]=A):A=t[21];const P=A;let B,E,V;return t[22]!==y?(B=Ft(["micromag-element-closed-captions-container",y]),t[22]=y,t[23]=B):B=t[23],t[24]!==L||t[25]!==P||t[26]!==z||t[27]!==g?(E=L?(0,I.jsx)("div",{className:"micromag-element-closed-captions-captions",style:P,children:(0,I.jsx)(Wn,{textStyle:g,body:z.text})}):null,t[24]=L,t[25]=P,t[26]=z,t[27]=g,t[28]=E):E=t[28],t[29]!==B||t[30]!==E?(V=(0,I.jsx)("div",{className:B,children:E}),t[29]=B,t[30]=E,t[31]=V):V=t[31],V}function Da(e){console.error(e)}function _a(e){return Ea(e)}function Oa(e){return e.text()}var Ha={container:"micromag-screen-audio-container",background:"micromag-screen-audio-background",content:"micromag-screen-audio-content",audio:"micromag-screen-audio-audio",bottom:"micromag-screen-audio-bottom",empty:"micromag-screen-audio-empty",isPreview:"micromag-screen-audio-isPreview"};function Za(){}var Wa={id:"audio",type:"screen",group:{label:(0,A.zR)({id:"+9akmg",defaultMessage:"Audio and Video"}),order:5},title:(0,A.zR)({id:"bhEaUt",defaultMessage:"Audio"}),component:function(e){const t=(0,i.c)(150),{layout:l,audio:a,spacing:o,background:s,header:r,footer:c,current:d,preload:u,mediaRef:m,showWave:g,className:h}=e,y=void 0===a?null:a,p=void 0===o?20:o,f=void 0===s?null:s,b=void 0===r?null:r,v=void 0===c?null:c,x=void 0===d||d,S=void 0===u||u,w=void 0===m?null:m,C=void 0===g||g,j=void 0===h?null:h,{width:k,height:M,resolution:N}=rt(),{isPlaceholder:$,isPreview:F,isView:T,isEdit:R,isStatic:z,isCapture:L}=at(),{topHeight:P,bottomHeight:B,bottomSidesWidth:E}=ht(),{open:V}=bt(),D=cl("audio"),[_,O]=(0,n.useState)(z||$),H=x&&(T||R),Z=x||S;let W;t[0]!==b?(W=ce(b),t[0]=b,t[1]=W):W=t[1];const q=W;let Y;t[2]!==v?(Y=de(v),t[2]=v,t[3]=Y):Y=t[3];const U=Y;let Q;t[4]!==x||t[5]!==v||t[6]!==F||t[7]!==T||t[8]!==V?(Q=G(v,{isView:T,current:x,openWebView:V,isPreview:F}),t[4]=x,t[5]=v,t[6]=F,t[7]=T,t[8]=V,t[9]=Q):Q=t[9];const X=Q,J=null!==y;let K;t[10]!==y?(K=y||{},t[10]=y,t[11]=K):K=t[11];const{media:ee,autoPlay:te,closedCaptions:le,captions:ne,withWave:ae,withControls:ie,withSeekBar:oe,color:se,progressColor:re}=K,me=void 0===ee?null:ee,ge=void 0===te||te,he=void 0===le?null:le,ye=void 0===ne?null:ne,fe=void 0!==ae&&ae,be=void 0!==ie&&ie,ve=void 0!==oe&&oe,xe=void 0===se?null:se,Se=void 0===re?null:re;let we;t[12]!==me?(we=me||{},t[12]=me,t[13]=we):we=t[13];const{url:Ce}=we,je=null!==(void 0===Ce?null:Ce);let ke;t[14]!==y||t[15]!==ge||t[16]!==x||t[17]!==J||t[18]!==L||t[19]!==F||t[20]!==z?(ke=J?{...y,autoPlay:!F&&!z&&!L&&ge&&x}:null,t[14]=y,t[15]=ge,t[16]=x,t[17]=J,t[18]=L,t[19]=F,t[20]=z,t[21]=ke):ke=t[21];const Me=ke,Ne=null!==he||null!==ye,{playing:$e,muted:Fe,setControls:Te,setControlsSuggestPlay:Re,setControlsTheme:ze,setPlaying:Le}=Xe(),{ref:Ie,isCurrent:Ae}=Je(x),Pe=!x||!$e||!(void 0!==Ae&&Ae)&&T;let Be,Ee,Ve;t[22]!==xe||t[23]!==x||t[24]!==Se||t[25]!==Te||t[26]!==ze||t[27]!==be||t[28]!==ve?(Be=()=>x?(be||ve?(Te(!0),ze({seekBarOnly:ve,color:xe,progressColor:Se})):Te(!1),()=>{(be||ve)&&Te(!1)}):Za,t[22]=xe,t[23]=x,t[24]=Se,t[25]=Te,t[26]=ze,t[27]=be,t[28]=ve,t[29]=Be):Be=t[29],t[30]!==xe||t[31]!==x||t[32]!==Se||t[33]!==Te||t[34]!==be||t[35]!==ve?(Ee=[x,be,ve,Te,xe,Se],t[30]=xe,t[31]=x,t[32]=Se,t[33]=Te,t[34]=be,t[35]=ve,t[36]=Ee):Ee=t[36],(0,n.useEffect)(Be,Ee),t[37]===Symbol.for("react.memo_cache_sentinel")?(Ve=()=>{O(!0)},t[37]=Ve):Ve=t[37];const De=Ve,[_e,Oe]=(0,n.useState)(null),[He,Ze]=(0,n.useState)(null);let We;t[38]===Symbol.for("react.memo_cache_sentinel")?(We=ue(),t[38]=We):We=t[38];const qe=We;let Ge,Ye,Ue;t[39]!==ge||t[40]!==x||t[41]!==$e||t[42]!==Le?(Ge=()=>{x&&ge&&!$e&&Le(!0)},t[39]=ge,t[40]=x,t[41]=$e,t[42]=Le,t[43]=Ge):Ge=t[43],t[44]!==ge||t[45]!==x?(Ye=[x,ge],t[44]=ge,t[45]=x,t[46]=Ye):Ye=t[46],(0,n.useEffect)(Ge,Ye),t[47]===Symbol.for("react.memo_cache_sentinel")?(Ue=e=>{const{timeStamp:t}=e;Oe(void 0===t?0:t)},t[47]=Ue):Ue=t[47];const Qe=Ue;let Ke;t[48]!==me||t[49]!==D?(Ke=(e,t)=>{D(me,`progress_${Math.round(100*e,10)}%`,t)},t[48]=me,t[49]=D,t[50]=Ke):Ke=t[50];const et=Ke;let tt;t[51]===Symbol.for("react.memo_cache_sentinel")?(tt=e=>{Ze(e)},t[51]=tt):tt=t[51];const lt=tt;let nt;t[52]!==me||t[53]!==D?(nt=e=>{const{initial:t}=e;D(me,t?"play":"resume")},t[52]=me,t[53]=D,t[54]=nt):nt=t[54];const it=nt;let ot;t[55]!==me||t[56]!==D?(ot=e=>{const{midway:t}=e;D(me,t?"pause":"ended")},t[55]=me,t[56]=D,t[57]=ot):ot=t[57];const st=ot;let ct;t[58]!==x||t[59]!==Le?(ct=()=>{x&&Le(!1)},t[58]=x,t[59]=Le,t[60]=ct):ct=t[60];const dt=ct;let ut;t[61]!==me||t[62]!==D?(ut=e=>{e>0&&D(me,"seek")},t[61]=me,t[62]=D,t[63]=ut):ut=t[63];const mt=ut;let gt;t[64]!==ge||t[65]!==x||t[66]!==J||t[67]!==T||t[68]!==$e||t[69]!==Re||t[70]!==Le?(gt=()=>{T&&$e&&x&&J&&ge&&(Le(!1),Re(!0))},t[64]=ge,t[65]=x,t[66]=J,t[67]=T,t[68]=$e,t[69]=Re,t[70]=Le,t[71]=gt):gt=t[71];const yt=gt;let pt,ft,vt,xt;t[72]!==j||t[73]!==$||t[74]!==F?(pt=Ft([Ha.container,j,{[Ha.placeholder]:$,[Ha.isPreview]:F}]),t[72]=j,t[73]=$,t[74]=F,t[75]=pt):pt=t[75],t[76]!==q||t[77]!==$||t[78]!==F||t[79]!==p||t[80]!==P?(ft=$?null:{paddingLeft:p,paddingRight:p,paddingBottom:p,paddingTop:(F?0:P)+(q?p/2:p)},t[76]=q,t[77]=$,t[78]=F,t[79]=p,t[80]=P,t[81]=ft):ft=t[81],t[82]!==q||t[83]!==b?(vt=q?(0,I.jsx)(xa,{...b}):(0,I.jsx)(Ma,{},"spacer-top"),t[82]=q,t[83]=b,t[84]=vt):vt=t[84],t[85]===Symbol.for("react.memo_cache_sentinel")?(xt=(0,I.jsx)(A.sA,{id:"MYZwSA",defaultMessage:"Audio"}),t[85]=xt):xt=t[85];const St=!je;let wt;t[86]!==w||t[87]!==Ie?(wt=pe(Ie,w),t[86]=w,t[87]=Ie,t[88]=wt):wt=t[88];const Ct=qe||F;let jt;t[89]!==xe||t[90]!==F||t[91]!==Se?(jt=F?{sampleWidth:10,sampleMargin:5,minSampleHeight:5,backgroundColor:xe,progressColor:Se}:{backgroundColor:xe,progressColor:Se},t[89]=xe,t[90]=F,t[91]=Se,t[92]=jt):jt=t[92];const kt=C&&fe;let Mt,Nt,$t,Tt,Rt,zt,Lt,It;return t[93]!==Me||t[94]!==Fe||t[95]!==dt||t[96]!==st||t[97]!==it||t[98]!==yt||t[99]!==et||t[100]!==mt||t[101]!==Pe||t[102]!==wt||t[103]!==Ct||t[104]!==jt||t[105]!==kt?(Mt=(0,I.jsx)(Ba,{...Me,mediaRef:wt,waveFake:Ct,waveProps:jt,paused:Pe,muted:Fe,className:Ha.audio,onReady:De,onPlay:it,onPause:st,onTimeUpdate:Qe,onProgressStep:et,onDurationChange:lt,onSeeked:mt,onEnded:dt,onPlayError:yt,withWave:kt}),t[93]=Me,t[94]=Fe,t[95]=dt,t[96]=st,t[97]=it,t[98]=yt,t[99]=et,t[100]=mt,t[101]=Pe,t[102]=wt,t[103]=Ct,t[104]=jt,t[105]=kt,t[106]=Mt):Mt=t[106],t[107]!==St||t[108]!==Mt?(Nt=(0,I.jsx)(zn,{placeholder:"audio",emptyLabel:xt,emptyClassName:Ha.empty,isEmpty:St,children:Mt},"audio"),t[107]=St,t[108]=Mt,t[109]=Nt):Nt=t[109],t[110]===Symbol.for("react.memo_cache_sentinel")?($t=(0,I.jsx)(Ma,{},"spacer-middle"),t[110]=$t):$t=t[110],t[111]!==ye||t[112]!==he||t[113]!==x||t[114]!==_e||t[115]!==X||t[116]!==Ne||t[117]!==U||t[118]!==L||t[119]!==$||t[120]!==F||t[121]!==z||t[122]!==p||t[123]!==B||t[124]!==E?(Tt=$?null:(0,I.jsxs)("div",{className:Ha.bottom,style:{transform:x&&!F?`translate(0, -${B}px)`:null,paddingLeft:Math.max(p/2,E),paddingRight:Math.max(p/2,E),paddingBottom:p/2,paddingTop:0},children:[!Ne||F||L||z?null:(0,I.jsx)(Va,{className:Ha.closedCaptions,media:he,...ye,currentTime:_e}),U?(0,I.jsx)(fa,{...X,className:Ha.callToAction}):null]},"bottom"),t[111]=ye,t[112]=he,t[113]=x,t[114]=_e,t[115]=X,t[116]=Ne,t[117]=U,t[118]=L,t[119]=$,t[120]=F,t[121]=z,t[122]=p,t[123]=B,t[124]=E,t[125]=Tt):Tt=t[125],t[126]!==ft||t[127]!==vt||t[128]!==Nt||t[129]!==Tt?(Rt=(0,I.jsxs)($a,{fullscreen:!0,style:ft,children:[vt,Nt,$t,Tt]}),t[126]=ft,t[127]=vt,t[128]=Nt,t[129]=Tt,t[130]=Rt):Rt=t[130],t[131]!==M||t[132]!==Rt||t[133]!==k?(zt=(0,I.jsx)(na,{width:k,height:M,className:Ha.content,children:Rt}),t[131]=M,t[132]=Rt,t[133]=k,t[134]=zt):zt=t[134],t[135]!==f||t[136]!==H||t[137]!==M||t[138]!==$||t[139]!==F||t[140]!==Z||t[141]!==Fe||t[142]!==N||t[143]!==k?(Lt=$?null:(0,I.jsx)(la,{background:f,width:k,height:M,resolution:N,playing:H,muted:Fe,shouldLoad:Z,withoutVideo:F,className:Ha.background}),t[135]=f,t[136]=H,t[137]=M,t[138]=$,t[139]=F,t[140]=Z,t[141]=Fe,t[142]=N,t[143]=k,t[144]=Lt):Lt=t[144],t[145]!==_||t[146]!==pt||t[147]!==zt||t[148]!==Lt?(It=(0,I.jsxs)("div",{className:pt,"data-screen-ready":_,children:[zt,Lt]}),t[145]=_,t[146]=pt,t[147]=zt,t[148]=Lt,t[149]=It):It=t[149],It},layouts:["middle"],fields:[{name:"audio",type:"audio-element",theme:{color:"primary"},defaultValue:{autoPlay:!0},label:(0,A.zR)({id:"169xnt",defaultMessage:"Audio"})},{name:"background",type:"background",label:(0,A.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,A.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,A.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]},qa=l(1685),Ga=l(7519),Ya=l(7749),Ua=(l(2311),l(6451));const Qa=n.createContext(null),Xa=()=>(0,n.useContext)(Qa),Ja=(e,t)=>{const l=(0,i.c)(13);let a;l[0]!==t?(a=void 0===t?{}:t,l[0]=t,l[1]=a):a=l[1];const{initialData:o,autoload:s}=a,r=void 0===o?null:o,c=void 0===s||s,[d,u]=(0,n.useState)(!1),[m,g]=(0,n.useState)(!1),[h,y]=(0,n.useState)(r);let p;l[2]!==e?(p=(...t)=>{const l=t;let n=!1;u(!0);const a=e(...l).then(e=>(n||(y(e),u(!1)),e)).catch(e=>{g(e),u(!1)});return a.cancel=()=>{n=!0,u(!1)},a},l[2]=e,l[3]=p):p=l[3];const f=p;let b,v,x;return l[4]!==c||l[5]!==f?(b=()=>{let e=null;return c&&(e=f()),()=>{null!==e&&e.cancel()}},v=[c,f],l[4]=c,l[5]=f,l[6]=b,l[7]=v):(b=l[6],v=l[7]),(0,n.useEffect)(b,v),l[8]!==h||l[9]!==m||l[10]!==f||l[11]!==d?(x={data:h,load:f,loading:d,error:m},l[8]=h,l[9]=m,l[10]=f,l[11]=d,l[12]=x):x=l[12],x},Ka=(e=null)=>{const{screenId:t=null,visitorId:l=null,storyId:a=null,onSuccess:i=null}=e||{},o=Xa(),[s,r]=(0,n.useState)(!1),{id:c}=kt()||{},{id:d,document_id:u}=Be()||{};return{create:(0,n.useCallback)(e=>null===o?null:(r(!0),o.quiz.create({screen_id:t,visitor_id:l||c,story_id:u||a||d,...e}).then(e=>(r(!1),null!==i&&i(e),e))),[o,r,i,t,c,d,l,a]),creating:s}};var ei="micromag-element-text-input-element";function ti(e){const t=(0,i.c)(56),{label:l,labelOutside:a,labelClassName:o,textStyle:r,placeholderTextStyle:c,buttonStyle:d,labelOutsideStyle:u,margin:m,multiline:g,value:h,onChange:y,onFocus:p,onBlur:f,required:b,disabled:v,focusable:x,className:S}=e,w=void 0===l?null:l,C=void 0!==a&&a,j=void 0===o?null:o,k=void 0===r?null:r,M=void 0===c?null:c,N=void 0===d?null:d,$=void 0===u?null:u,F=void 0===m?null:m,T=void 0!==g&&g,R=void 0===h?"":h,z=void 0===y?null:y,L=void 0===p?null:p,A=void 0===f?null:f,P=void 0!==b&&b,B=void 0!==v&&v,E=void 0===x||x,V=void 0===S?null:S;let D;t[0]===Symbol.for("react.memo_cache_sentinel")?(D={},t[0]=D):D=t[0];let _,O=D;t[1]===Symbol.for("react.memo_cache_sentinel")?(_={},t[1]=_):_=t[1];let H,Z=_;t[2]===Symbol.for("react.memo_cache_sentinel")?(H={},t[2]=H):H=t[2];let W,q=H;t[3]===Symbol.for("react.memo_cache_sentinel")?(W={},t[3]=W):W=t[3];let G=W;const Y=(0,n.useId)();if(null!==F){const e=O;let l,n;t[4]!==F?(l=ie(F),t[4]=F,t[5]=l):l=t[5],t[6]!==l?(n={...e,...l},t[6]=l,t[7]=n):n=t[7],O=n}if(null!==$){const e=Z;let l,n;t[8]!==$?(l=ae($),t[8]=$,t[9]=l):l=t[9],t[10]!==l?(n={...e,...l},t[10]=l,t[11]=n):n=t[11],Z=n}if(null!==k){const e=q;let l,n;t[12]!==k?(l=ae(k),t[12]=k,t[13]=l):l=t[13],t[14]!==l?(n={...e,...l},t[14]=l,t[15]=n):n=t[15],q=n}if(null!==N){const e=q;let l,n;t[16]!==N?(l=te(N),t[16]=N,t[17]=l):l=t[17],t[18]!==q||t[19]!==l?(n={...e,...l},t[18]=q,t[19]=l,t[20]=n):n=t[20],q=n}if(null!==M){const e=G;let l,n;t[21]!==M?(l=ae(M),t[21]=M,t[22]=l):l=t[22],t[23]!==l?(n={...e,...l},t[23]=l,t[24]=n):n=t[24],G=n}const U=!C;let Q,X;t[25]!==V||t[26]!==U?(Q=Ft(["micromag-element-text-input-container",V,{[ei]:U},V]),t[25]=V,t[26]=U,t[27]=Q):Q=t[27],t[28]!==O||t[29]!==Q?(X={className:Q,style:O},t[28]=O,t[29]=Q,t[30]=X):X=t[30];const J=X,K=C?null:J,ee=C?void 0:w;let le;t[31]!==B||t[32]!==q||t[33]!==A||t[34]!==z||t[35]!==L||t[36]!==P||t[37]!==K||t[38]!==ee||t[39]!==R?(le={className:ei,...K,style:q,placeholder:ee,value:R,onChange:z,onFocus:L,onBlur:A,required:P,disabled:B},t[31]=B,t[32]=q,t[33]=A,t[34]=z,t[35]=L,t[36]=P,t[37]=K,t[38]=ee,t[39]=R,t[40]=le):le=t[40];const ne=le;let oe;t[41]!==ne||t[42]!==E||t[43]!==Y||t[44]!==T?(oe=T?(0,I.jsx)("textarea",{...ne,tabIndex:E?0:-1,id:`input-${Y}`}):(0,I.jsx)("input",{...ne,type:"text",tabIndex:E?0:-1,id:`input-${Y}`}),t[41]=ne,t[42]=E,t[43]=Y,t[44]=T,t[45]=oe):oe=t[45];const se=oe,re=function(e,t){const l=null!==t?Object.keys(t).reduce((e,l)=>{const n=t[l];return s(n)?e:{...e,[l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()]:n}},{}):null;return null!==l&&Object.keys(l).length>0?`\n ${e}::placeholder {\n ${Object.keys(l).map(e=>`${e}: ${l[e]};`).join("\n")}\n }\n `:null}(`#input-${Y}`,G);let ce;t[46]!==re?(ce=null!==re?(0,I.jsx)("style",{type:"text/css",children:re}):null,t[46]=re,t[47]=ce):ce=t[47];const de=ce;let ue;return t[48]!==J||t[49]!==se||t[50]!==w||t[51]!==j||t[52]!==C||t[53]!==Z||t[54]!==de?(ue=C?(0,I.jsxs)("label",{...J,children:[(0,I.jsx)("div",{className:j,style:Z,children:w}),se,de]}):(0,I.jsxs)(I.Fragment,{children:[se,de]}),t[48]=J,t[49]=se,t[50]=w,t[51]=j,t[52]=C,t[53]=Z,t[54]=de,t[55]=ue):ue=t[55],ue}var li={container:"micromag-screen-contribution-container",background:"micromag-screen-contribution-background",content:"micromag-screen-contribution-content",inner:"micromag-screen-contribution-inner",layout:"micromag-screen-contribution-layout",header:"micromag-screen-contribution-header",emptyTitle:"micromag-screen-contribution-emptyTitle",emptyInputName:"micromag-screen-contribution-emptyInputName",emptyInputMessage:"micromag-screen-contribution-emptyInputMessage",emptySubmit:"micromag-screen-contribution-emptySubmit",emptySkip:"micromag-screen-contribution-emptySkip",title:"micromag-screen-contribution-title",interactiveContainer:"micromag-screen-contribution-interactiveContainer",form:"micromag-screen-contribution-form",inputName:"micromag-screen-contribution-inputName",inputMessage:"micromag-screen-contribution-inputMessage",buttonSubmit:"micromag-screen-contribution-buttonSubmit",buttonSkip:"micromag-screen-contribution-buttonSkip",showBack:"micromag-screen-contribution-showBack",formContent:"micromag-screen-contribution-formContent",formLoading:"micromag-screen-contribution-formLoading",loadingIcon:"micromag-screen-contribution-loadingIcon",contributionsContainer:"micromag-screen-contribution-contributionsContainer",contributionsContent:"micromag-screen-contribution-contributionsContent",contributions:"micromag-screen-contribution-contributions",contribution:"micromag-screen-contribution-contribution",footer:"micromag-screen-contribution-footer",disabled:"micromag-screen-contribution-disabled",submitting:"micromag-screen-contribution-submitting",submitted:"micromag-screen-contribution-submitted",showContributions:"micromag-screen-contribution-showContributions",isPlaceholder:"micromag-screen-contribution-isPlaceholder",reset:"micromag-screen-contribution-reset"},ni={id:"contribution",type:"screen",group:{label:(0,A.zR)({id:"ZiWlL6",defaultMessage:"Questions"}),order:7},title:(0,A.zR)({id:"g6b9Lg",defaultMessage:"Contribution"}),component:function({id:e=null,layout:t="middle",title:l=null,name:a=null,message:i=null,submit:o=null,nameStyle:s=null,messageStyle:r=null,settings:c=null,spacing:d=20,background:u=null,header:m=null,footer:g=null,current:h=!0,preload:y=!0,transitions:p=null,transitionStagger:f=100,resizeTransitionDuration:b=750,type:v=null,mediaRef:x=null,className:S=null}){const w=(0,A.tz)(),C=e||"screen-id",j=rl(v),{width:k,height:M,resolution:N}=rt(),{topHeight:$,bottomHeight:F,bottomSidesWidth:T}=ht(),{isView:R,isPreview:z,isPlaceholder:L,isEdit:P,isStatic:B,isCapture:E}=at(),{open:V}=bt(),{muted:D}=Xe(),{ref:_,isCurrent:O=!1}=Je(h,!0),H=h&&(R||P)&&(O||!R),Z=h||y,W=h,q=B||E||L||z||P,Y=!P&&q||!h,U=ce(m),Q=de(g),X=G(g,{isView:R,current:h,openWebView:V,isPreview:z}),K=he(l),ee=ge(a),te=ge(i),le=he(o),ne=(0,n.useRef)(null),ae=(0,n.useRef)(null),[ie,oe]=(0,n.useState)(null),[se,re]=(0,n.useState)(""),[ue,me]=(0,n.useState)(""),[ye,fe]=(0,n.useState)(B||E?4:0),[be,ve]=(0,n.useState)(!1),{canViewAnswers:xe=!1,skipButton:Se=null,backButton:we=null}=c||{},Ce=4===ye?we:Se,je=he(Ce)?Ce:{...Ce,body:4===ye?w.formatMessage({id:"8NyYTH",defaultMessage:"Back"}):w.formatMessage({id:"HpkW4J",defaultMessage:"Skip"})},ke=(0,n.useCallback)(()=>{fe(2),j("submit_success",`${se}: ${ue}`),ve(!0)},[fe,ve,j,se,ue]),{create:Me}=(({screenId:e,visitorId:t=null,storyId:l=null,onSuccess:a=null}={})=>{const i=Xa(),[o,s]=(0,n.useState)(!1),{id:r}=kt()||{},{id:c,document_id:d}=Be()||{};return{create:(0,n.useCallback)(n=>null===i?null:(s(!0),i.contributions.create({screen_id:e,visitor_id:t||r,story_id:d||l||c,...n}).then(e=>(s(!1),null!==a&&a(e),e))),[i,s,a,e,r,c,t,l]),creating:o}})({screenId:C}),{contributions:Ne}=((e=null)=>{const{screenId:t,storyId:l=null,opts:a={}}=e||{},i=Xa(),{id:o,document_id:s}=Be()||{},[r]=(0,n.useState)([...new Array(10)].map((e,t)=>({name:`Nom ${t+1}`,message:`Message ${t+1}`}))),c=(0,n.useCallback)(()=>null!==i?i.contributions.get(t,{story_id:s||l||o}):null,[i,t,s,l,o]),{data:d,...u}=null!==i?Ja(c,a):{data:null};return{contributions:d||r,...u}})({screenId:C,opts:{autoload:!L}}),$e=(0,n.useCallback)(e=>{const t=Ga.A.sanitize(e.currentTarget.value||"");re(t)},[re]),Fe=(0,n.useCallback)(e=>{const t=Ga.A.sanitize(e.currentTarget.value||"");me(t)},[me]),Te=(0,n.useCallback)(()=>{re(""),me(""),fe(0),ve(!1)},[re,me,fe,ve]),Re=(0,n.useRef)(!1),ze=(0,n.useCallback)(e=>{!Re.current&&e.currentTarget.value.length>0&&(Re.current=!0,j("input_filled","Name",{userName:e.currentTarget.value,userMessage:ue}))},[j,ue]),Le=(0,n.useRef)(!1),Ie=(0,n.useCallback)(e=>{!Le.current&&e.currentTarget.value.length>0&&(Le.current=!0,j("input_filled","Message",{userName:se,userMessage:e.currentTarget.value}))},[j,se]),[Ae,Pe]=(0,n.useState)(!1),Ee=Ae&&4===ye,{ref:Ve,height:De=0}=_t(),_e=(0,n.useCallback)(({initial:e})=>{e&&j("scroll","Contributions list"),Pe(!0)},[j,Pe]),Oe=(0,n.useCallback)(()=>{Pe(!1)},[Pe]),He=(0,n.useCallback)((e=null)=>{if(null!==e){const t=Math.round(100*e);j("scroll",t,{scrollPercent:t})}},[j]),Ze=(0,n.useCallback)(e=>{e.preventDefault(),0===ye&&(oe(ae.current.offsetHeight),fe(1),Me({name:se,message:ue}),ke(),j("click_submit",`${se}: ${ue}`,{userName:se,userMessage:ue}))},[ye,fe,se,ue,j,ke]),We=(0,n.useCallback)(()=>{4===ye?(fe(0),j("click_skip","Skip button")):(fe(4),j("click_back","Back button"))},[ye,fe,j]);(0,n.useEffect)(()=>{let e=null;return 2===ye&&(e=setTimeout(fe,b,4),oe(ne.current.offsetHeight),fe(3)),()=>{3===ye&&null!==e&&clearTimeout(e)}},[ye,oe,fe,b]);const qe=[(0,I.jsx)(zn,{placeholder:"title",placeholderProps:{height:"0.75em"},emptyLabel:(0,I.jsx)(A.sA,{id:"2ZOPe+",defaultMessage:"Title"}),emptyClassName:li.emptyTitle,isEmpty:!K,children:K?(0,I.jsx)(wa,{...l,className:li.title}):null},"title")],Ge=[...null!==se&&""!==se&&null!==ue&&""!==ue?[{name:se,message:ue}]:[],...Ne||[]];qe.push((0,I.jsxs)("div",{className:li.interactiveContainer,style:{height:ye<4?ie:null,transitionDuration:`${b}ms`},children:[(0,I.jsxs)("form",{className:li.form,onSubmit:Ze,ref:ae,children:[(0,I.jsxs)("div",{className:li.formContent,children:[(0,I.jsx)(zn,{placeholder:"inputText",placeholderProps:{height:"0.25em"},emptyLabel:(0,I.jsx)(A.sA,{id:"G/ITGY",defaultMessage:"Your name"}),emptyClassName:li.emptyInputName,isEmpty:!ee,children:(0,I.jsx)(Pn,{transitions:p,playing:W,delay:f,disabled:q,children:(0,I.jsx)(ti,{className:li.inputName,...a,value:se,onChange:e=>$e(e),onBlur:e=>ze(e),focusable:h&&R,disabled:z,required:!0})})}),(0,I.jsx)(zn,{placeholder:"inputText",placeholderProps:{height:"0.75em"},emptyLabel:(0,I.jsx)(A.sA,{id:"JAguka",defaultMessage:"Your message"}),emptyClassName:li.emptyInputMessage,isEmpty:!te,children:(0,I.jsx)(Pn,{transitions:p,playing:W,delay:2*f,disabled:q,children:(0,I.jsx)(ti,{className:li.inputMessage,...i,value:ue,onChange:e=>Fe(e),onBlur:e=>Ie(e),disabled:z,focusable:h&&R,multiline:!0,required:!0})})}),(0,I.jsx)(zn,{placeholder:"button",emptyLabel:(0,I.jsx)(A.sA,{id:"5uH4x7",defaultMessage:"Submit"}),emptyClassName:li.emptySubmit,isEmpty:!le,children:(0,I.jsx)(Pn,{transitions:p,playing:W,delay:3*f,disabled:q,children:(0,I.jsx)(da,{type:"submit",className:li.buttonSubmit,disabled:z,buttonStyle:null!==o?o.buttonStyle:null,focusable:h&&R,children:(0,I.jsx)(Wn,{...o,inline:!0})})})})]}),(0,I.jsx)("div",{className:li.formLoading,children:(0,I.jsx)(yl.gc,{className:li.loadingIcon,icon:qa.z1})})]}),xe&&!be?(0,I.jsx)(zn,{placeholder:"button",emptyLabel:4!==ye?(0,I.jsx)(A.sA,{id:"U2RZp5",defaultMessage:"Skip"}):(0,I.jsx)(A.sA,{id:"AzN1aW",defaultMessage:"Back"}),emptyClassName:li.emptySkip,children:(0,I.jsx)(Pn,{transitions:p,playing:W,delay:3*f,disabled:q,children:(0,I.jsx)(da,{type:"button",className:Ft([li.buttonSkip,{[li.showBack]:4===ye}]),disabled:z,onClick:We,buttonStyle:null!==je?je.buttonStyle:null,focusable:h&&R,children:(0,I.jsx)(Wn,{...je,inline:!0})})})}):null,(0,I.jsx)("div",{className:li.contributionsContainer,"aria-hidden":4===ye?null:"true",children:(0,I.jsx)("div",{className:li.contributionsContent,children:(0,I.jsx)("div",{className:li.contributions,ref:ne,children:Ge.map((e,t)=>{const l=null!==s&&s.style||null,n=null!==r&&r.style||null;return(0,I.jsxs)("div",{className:li.contribution,style:null!==l?J(l.color,"borderColor"):null,children:[(0,I.jsx)(wa,{className:li.contributionName,body:e.name,size:2,textStyle:l}),(0,I.jsx)(Wn,{className:li.contributionMessage,body:e.message,textStyle:n})]},`contribution-${t}`)})})})}),Q?(0,I.jsx)("div",{style:{height:De}}):null]},"form"));const Ye=!L&&U?(0,I.jsx)("div",{className:li.header,style:{paddingBottom:d},children:(0,I.jsx)(xa,{...m})}):null,Ue=P&&4===ye;return(0,I.jsxs)("div",{className:Ft([li.container,S,{[li.isPlaceholder]:L,[li.submitting]:1===ye,[li.submitted]:ye>1,[li.showContributions]:4===ye}]),"data-screen-ready":!0,children:[(0,I.jsxs)(na,{width:k,height:M,className:li.content,children:[Ue?(0,I.jsx)(da,{className:li.reset,icon:(0,I.jsx)(yl.gc,{icon:Cl.ye,size:"md"}),onClick:Te}):null,(0,I.jsxs)("div",{className:li.inner,children:[(0,I.jsx)(Ta,{verticalAlign:t,disabled:Y,onScrolledTrigger:He,onScrolledBottom:_e,onScrolledNotBottom:Oe,scrolleeClassName:li.scrollee,withShadow:!0,children:(0,I.jsxs)($a,{className:li.layout,style:L?null:{paddingLeft:d,paddingRight:d,paddingTop:U?d/2+(z?0:$):d/2,paddingBottom:(h&&!z?F:0)+d/2},children:[Ye,qe]})}),!L&&Q?(0,I.jsx)("div",{ref:Ve,className:Ft([li.footer,{[li.disabled]:!Ee}]),style:{paddingLeft:Math.max(T,d/2),paddingRight:Math.max(T,d/2),paddingTop:0,paddingBottom:(z?0:F)+d/2},children:(0,I.jsx)(fa,{...X})}):null]})]}),L?null:(0,I.jsx)(la,{background:u,width:k,height:M,resolution:N,playing:H,muted:D,shouldLoad:Z,mediaRef:pe(_,x),withoutVideo:z,className:li.background})]})},layouts:["top","middle","bottom"],fields:[{name:"layout",type:"screen-layout",defaultValue:"top",label:(0,A.zR)({id:"4iBXj2",defaultMessage:"Layout"})},{name:"title",type:"heading-element",theme:{textStyle:"heading2"},label:(0,A.zR)({id:"N25iDO",defaultMessage:"Title"})},{name:"name",type:"input-element",theme:{textStyle:"text"},label:(0,A.zR)({id:"nXVNeg",defaultMessage:"Name"})},{name:"message",type:"input-element",theme:{textStyle:"text"},label:(0,A.zR)({id:"RcLsua",defaultMessage:"Message"})},{name:"submit",type:"button-element",theme:{textStyle:"button"},label:(0,A.zR)({id:"uAKPQ9",defaultMessage:"Submit"})},{name:"nameStyle",type:"item-text-style",theme:{style:{textStyle:"heading2"}},label:(0,A.zR)({id:"SyMSDa",defaultMessage:"Published name style"})},{name:"messageStyle",type:"item-text-style",theme:{style:{textStyle:"text"}},label:(0,A.zR)({id:"+SlKOi",defaultMessage:"Published message style"})},{name:"settings",component:"toggle-section",toggleField:"canViewAnswers",isList:!0,label:(0,A.zR)({id:"9omJnT",defaultMessage:"Answer settings"}),fields:[{name:"canViewAnswers",type:"toggle",isHorizontal:!0,label:(0,A.zR)({id:"xcHW4o",defaultMessage:"Can view answers"})},{name:"skipButton",type:"button-element",theme:{textStyle:"button"},label:(0,A.zR)({id:"CpCykm",defaultMessage:"Skip button"})},{name:"backButton",type:"button-element",theme:{textStyle:"button"},label:(0,A.zR)({id:"KIXg9M",defaultMessage:"Back button"})}]},{name:"background",type:"background",label:(0,A.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,A.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,A.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]},ai=l(3104),ii={container:"micromag-screen-conversation-container",background:"micromag-screen-conversation-background",content:"micromag-screen-conversation-content",empty:"micromag-screen-conversation-empty",title:"micromag-screen-conversation-title",footer:"micromag-screen-conversation-footer",disabled:"micromag-screen-conversation-disabled",layout:"micromag-screen-conversation-layout",messageContainer:"micromag-screen-conversation-messageContainer",message:"micromag-screen-conversation-message",normalLeft:"micromag-screen-conversation-normalLeft",inBetweenLeft:"micromag-screen-conversation-inBetweenLeft",normalRight:"micromag-screen-conversation-normalRight",inBetweenRight:"micromag-screen-conversation-inBetweenRight",last:"micromag-screen-conversation-last",messageBody:"micromag-screen-conversation-messageBody",speakerDetails:"micromag-screen-conversation-speakerDetails",right:"micromag-screen-conversation-right",avatarContainer:"micromag-screen-conversation-avatarContainer",avatar:"micromag-screen-conversation-avatar",imageContainer:"micromag-screen-conversation-imageContainer",withAnimation:"micromag-screen-conversation-withAnimation",loadingContainer:"micromag-screen-conversation-loadingContainer",loading:"micromag-screen-conversation-loading",dot:"micromag-screen-conversation-dot",loadingSpeakerName:"micromag-screen-conversation-loadingSpeakerName",audioMessageContainer:"micromag-screen-conversation-audioMessageContainer",playButtonContainer:"micromag-screen-conversation-playButtonContainer",button:"micromag-screen-conversation-button",audioMessage:"micromag-screen-conversation-audioMessage",icon:"micromag-screen-conversation-icon"};function oi(e){const t=(0,i.c)(29),{audio:l,audioEventsChannelName:a,messageId:o,nextAudioMessageId:s,className:r}=e,c=void 0===l?null:l,d=void 0===a?null:a,u=void 0===o?null:o,m=void 0===s?null:s,g=void 0===r?null:r,[h,y]=(0,n.useState)(!0);let p;t[0]!==d?(p=new BroadcastChannel(d),t[0]=d,t[1]=p):p=t[1];const f=p;let b,v,x;t[2]!==f||t[3]!==u?(b=()=>{const e=e=>{const{type:t,id:l}=e.data;"play"===t&&y(l!==u)};return f.addEventListener("message",e),()=>f.removeEventListener("message",e)},t[2]=f,t[3]=u,t[4]=b):b=t[4],t[5]!==f?(v=[f],t[5]=f,t[6]=v):v=t[6],(0,n.useEffect)(b,v),t[7]!==f||t[8]!==u||t[9]!==h?(x=()=>{h?(y(!1),f.postMessage({type:"play",id:u})):y(!0)},t[7]=f,t[8]=u,t[9]=h,t[10]=x):x=t[10];const S=x;let w;t[11]!==f||t[12]!==m?(w=()=>{m&&f.postMessage({type:"play",id:m}),y(!0)},t[11]=f,t[12]=m,t[13]=w):w=t[13];const C=w;let j,k,M,N,$;return t[14]!==g?(j=Ft([ii.audioMessageContainer,g]),t[14]=g,t[15]=j):j=t[15],t[16]!==h?(k=(0,I.jsx)("div",{className:ii.playButtonContainer,children:h?(0,I.jsx)(ql,{className:ii.icon}):(0,I.jsx)(Wl,{className:ii.icon})}),t[16]=h,t[17]=k):k=t[17],t[18]!==c||t[19]!==C||t[20]!==h?(M=(0,I.jsx)(Ba,{withWave:!0,autoWaveHeight:!0,className:ii.audioMessage,media:c,paused:h,updateInterval:100,onEnded:C}),t[18]=c,t[19]=C,t[20]=h,t[21]=M):M=t[21],t[22]!==S?(N=(0,I.jsx)(El,{onClick:S,className:ii.button}),t[22]=S,t[23]=N):N=t[23],t[24]!==j||t[25]!==k||t[26]!==M||t[27]!==N?($=(0,I.jsxs)("div",{className:j,children:[k,M,N]}),t[24]=j,t[25]=k,t[26]=M,t[27]=N,t[28]=$):$=t[28],$}function si(e){const t=(0,i.c)(41),{message:l,messageId:a,previousMessage:o,nextMessage:s,nextAudioMessageId:r,nextMessageState:c,currentSpeaker:d,conversationTiming:u,typingTiming:m,onChange:g,withAnimation:h,active:y,isPlaying:p,messageStyle:f,speakerStyle:b,className:v,audioEventsChannelName:x}=e,S=void 0===l?null:l,w=void 0===a?null:a,C=void 0===o?null:o,j=void 0===s?null:s,k=void 0===r?null:r,M=void 0===c?null:c,N=void 0===d?null:d,$=void 0===u?null:u,F=void 0===m?null:m,T=void 0===g?null:g,R=void 0!==h&&h,z=void 0!==y&&y,L=void 0!==p&&p,A=void 0===f?null:f,P=void 0===b?null:b,B=void 0===v?null:v,E=void 0===x?null:x;let V;t[0]!==S?(V=S||{},t[0]=S,t[1]=V):V=t[1];const{message:D,image:_,audio:O,putAudioBeforeText:H}=V,Z=void 0===_?null:_,W=void 0!==H&&H;let q;t[2]!==N?(q=N||{},t[2]=N,t[3]=q):q=t[3];const{avatar:G,name:Y,side:U,id:Q,color:X}=q,K=void 0===G?null:G,ee=void 0===U?"left":U;let te;t[4]!==K?(te=K||{},t[4]=K,t[5]=te):te=t[5];const{url:le}=te,ne=void 0===le?null:le,ae="right"===ee,ie=null!==C&&C.speaker===Q,oe=null!==j&&j.speaker===Q,[se,re]=(0,n.useState)(R?"pause":"send"),ce=$,de=F;let ue,me,ge,he;t[6]!==L||t[7]!==se||t[8]!==ce||t[9]!==de||t[10]!==R?(ue=()=>{if(!R||!L)return ri;let e=null;return"pause"===se?e=setTimeout(()=>re("typing"),ce):"typing"===se&&(e=setTimeout(()=>re("send"),de)),()=>{null!==e&&clearTimeout(e)}},me=[R,L,se,re,ce,de],t[6]=L,t[7]=se,t[8]=ce,t[9]=de,t[10]=R,t[11]=ue,t[12]=me):(ue=t[11],me=t[12]),(0,n.useEffect)(ue,me),t[13]!==se||t[14]!==T?(ge=()=>{"pause"!==se&&null!==T&&T(se)},t[13]=se,t[14]=T,t[15]=ge):ge=t[15],t[16]!==se?(he=[se],t[16]=se,t[17]=he):he=t[17],(0,n.useEffect)(ge,he);const ye=oe&&M;let pe;return t[18]!==z||t[19]!==O||t[20]!==E||t[21]!==ne||t[22]!==ye||t[23]!==B||t[24]!==X||t[25]!==Z||t[26]!==oe||t[27]!==L||t[28]!==ie||t[29]!==D||t[30]!==w||t[31]!==se||t[32]!==A||t[33]!==k||t[34]!==W||t[35]!==ae||t[36]!==ee||t[37]!==Y||t[38]!==P||t[39]!==R?(pe="pause"!==se?(0,I.jsx)("div",{className:Ft([ii.messageContainer,B,{[ii.withAnimation]:!0===R,[ii.right]:ae}]),children:"typing"===se?(0,I.jsxs)("div",{className:ii.loadingContainer,children:[(0,I.jsxs)("div",{className:ii.loading,children:[(0,I.jsx)("div",{className:ii.dot}),(0,I.jsx)("div",{className:ii.dot}),(0,I.jsx)("div",{className:ii.dot})]}),(0,I.jsx)("div",{className:ii.loadingSpeakerName,children:Y})]}):(0,I.jsxs)("div",{className:Ft([ii.message,{[ii.normalRight]:ae,[ii.nextTheSame]:!0===oe&&ie,[ii.inBetweenRight]:ye&&ae,[ii.normalLeft]:!ae,[ii.inBetweenLeft]:ye&&!ae,[ii.last]:!1===oe}]),style:{...J(X)},children:[ie?null:(0,I.jsxs)("div",{className:Ft([ii.speakerDetails,{[ii.right]:"right"===ee}]),children:[null!==ne?(0,I.jsx)("div",{className:Ft([ii.avatarContainer,{[ii.right]:"right"===ee}]),children:(0,I.jsx)("img",{className:ii.avatar,src:ne,alt:Y,loading:"lazy"})}):null,(0,I.jsx)(Wn,{body:Y,textStyle:P})]}),(0,I.jsxs)("div",{className:ii.messageBody,children:[null!==Z?(0,I.jsx)("div",{className:ii.imageContainer,children:(0,I.jsx)(ra,{media:Z,width:"100%",playing:L,active:z})}):null,O&&W?(0,I.jsx)(oi,{audio:O,messageId:w,nextAudioMessageId:k,audioEventsChannelName:E,className:Ft(ii.audioAttachment,ii.beforeText)}):null,(0,I.jsx)(Wn,{className:ii.messageText,body:D,textStyle:A}),O&&!W?(0,I.jsx)(oi,{audio:O,messageId:w,nextAudioMessageId:k,audioEventsChannelName:E,className:Ft(ii.audioAttachment,ii.afterText)}):null]})]})}):null,t[18]=z,t[19]=O,t[20]=E,t[21]=ne,t[22]=ye,t[23]=B,t[24]=X,t[25]=Z,t[26]=oe,t[27]=L,t[28]=ie,t[29]=D,t[30]=w,t[31]=se,t[32]=A,t[33]=k,t[34]=W,t[35]=ae,t[36]=ee,t[37]=Y,t[38]=P,t[39]=R,t[40]=pe):pe=t[40],pe}function ri(){}var ci={id:"conversation",type:"screen",group:{label:(0,A.zR)({id:"fIawTr",defaultMessage:"Text"}),order:3},title:(0,A.zR)({id:"rBPIgw",defaultMessage:"Conversation"}),component:function({title:e=null,timing:t="sequence",readingSpeed:l=255,spacing:a=20,background:i=null,header:o=null,footer:s=null,current:r=!0,preload:c=!0,type:d=null,conversation:u=null,transitions:m=null,mediaRef:g=null,className:h=null}){const{width:y,height:p,resolution:f}=rt(),{topHeight:b,bottomHeight:v,bottomSidesWidth:x}=ht(),{open:S}=bt(),w=rl(d),{muted:C}=Xe(),{ref:j,isCurrent:k=!1}=Je(r,!0),M=new BroadcastChannel(`conversation_${(0,ai.A)()}_audioEvents`),{isView:N,isPreview:$,isPlaceholder:F,isEdit:T,isStatic:R,isCapture:z}=at(),L=r&&(N||T)&&(k||!N),P=r||c,B=N&&!R&&"sequence"===t,{speakers:E=null,messages:V=[],messageStyle:D,speakerStyle:_}=u||{},[O,H]=(0,n.useState)([]),Z=(0,n.useRef)(null),W=ce(o),q=de(s),Y=G(s,{isView:N,current:r,openWebView:S,isPreview:$}),U=he(e),{ref:Q,height:X}=_t(),J=(0,n.useRef)(null),[K,ee]=(0,n.useState)(!1);(0,n.useEffect)(()=>{B&&null!==J.current&&K&&J.current.scrollTo({top:X,behavior:"smooth"})},[X,B]);const te=V.length===O.length,le=(0,n.useCallback)(e=>{const t=[...O];"send"===e&&(t.push(!0),H(t))},[O,H]),ne=6e4/l,ae=(V||[]).filter(e=>null!==e),ie=ae.map((e,t)=>{if(0===t)return 0;const{timing:l=null,message:n=null,image:a,audio:i,timingOverrides:o}=e||{};if(null!==l)return l;if(o?.enabled&&Number.isFinite(o?.writingDuration))return 1e3*o.writingDuration;if(i)return i.metadata?.duration;let s=(n?n.replace(/[^\w\d\s]/g,"").trim().split(/\s/g).length:0)*ne;return a&&(s+=5e3),s}),oe=ae.map((e,t)=>{const{timingOverrides:l}=e;return 0!==t&&l?.enabled&&Number.isFinite(l?.appearDelay)?1e3*l.appearDelay:1500}),se=(0,n.useMemo)(()=>(V||[]).map(()=>(0,ai.A)()),[V]),re=R||z||F||$||T,ue=!T&&re||!r,me=te&&!F&&q||!B,ge=(0,n.useCallback)(({initial:e})=>{e&&w("scroll","Screen"),ee(!0)},[w]),ye=(0,n.useCallback)(()=>{ee(!1)},[ee]),fe=(0,n.useCallback)((e=null)=>{if(null!==e){const t=Math.round(100*e);w("scroll",t,{scrollPercent:t})}},[w]);return(0,I.jsxs)("div",{className:Ft([ii.container,h,{[ii.isPlaceholder]:F}]),"data-screen-ready":!0,children:[(0,I.jsx)(na,{width:y,height:p,className:ii.content,children:(0,I.jsx)(Ta,{ref:J,disabled:ue,onScrolledTrigger:fe,onScrolledBottom:ge,onScrolledNotBottom:ye,withShadow:!0,children:(0,I.jsx)("div",{ref:Q,children:(0,I.jsxs)($a,{className:ii.layout,style:F?null:{paddingLeft:a,paddingRight:a,paddingTop:($?0:b)+a/2,paddingBottom:(r&&!$?v:0)+a/2},children:[!F&&W?(0,I.jsx)("div",{style:{paddingBottom:a},children:(0,I.jsx)(xa,{...o})},"header"):null,(0,I.jsx)(zn,{placeholder:"conversation",emptyLabel:(0,I.jsx)(A.sA,{id:"NmCfTO",defaultMessage:"Conversation"}),emptyClassName:ii.empty,isEmpty:0===V.length&&null===e,children:(0,I.jsxs)(Pn,{transitions:m,playing:r,disabled:re,children:[U?(0,I.jsx)(wa,{...e,className:ii.title,isEmpty:null===e}):null,(0,I.jsx)("div",{className:ii.conversation,children:ae.map((e,t)=>{const l=0!==t?V[t-1]:null,n=t+1<V.length?V[t+1]:null,{speaker:a}=e,i=(E||[]).find(e=>e.id===a)||null,o=0===t||!0===O[t-1],s=oe[t],c=ie[t],d=`${e.message}-${se[t]}`,u=ae.slice(t+1).find(e=>null!=e.audio),m=u?`${e.message}-${se[ae.indexOf(u)]}`:null;return(0,I.jsx)(si,{message:e,messageId:d,previousMessage:l,nextMessage:n,nextAudioMessageId:m,nextMessageState:O[t+1]||!B,currentSpeaker:i,conversationTiming:s,typingTiming:c,onChange:le,withAnimation:B,isPlaying:r&&o,shouldLoad:P,withoutVideo:$,messageStyle:D,speakerStyle:_,audioEventsChannelName:M.name},d)})}),me?(0,I.jsx)("div",{className:Ft([ii.footer,{[ii.disabled]:!K}]),style:{paddingLeft:Math.max(x-a,0),paddingRight:Math.max(x-a,0),paddingTop:a},children:(0,I.jsx)(fa,{...Y})}):null,(0,I.jsx)("div",{ref:Z})]})})]})})})}),F?null:(0,I.jsx)(la,{background:i,width:y,height:p,resolution:f,playing:L,muted:C,shouldLoad:P,mediaRef:pe(j,g),withoutVideo:$,className:ii.background})]})},layouts:["normal"],fields:[{name:"timing",type:"select",options:[{value:"instant",label:"Instant"},{value:"sequence",label:"Sequence"}],label:(0,A.zR)({id:"6DV50M",defaultMessage:"Timing"})},{name:"title",type:"heading-element",theme:{textStyle:"heading1"},label:(0,A.zR)({id:"N25iDO",defaultMessage:"Title"})},{name:"conversation",type:"conversation",label:(0,A.zR)({id:"8tANs8",defaultMessage:"Conversation"})},{name:"readingSpeed",type:"number",defaultValue:255,label:(0,A.zR)({id:"QjbLZ9",defaultMessage:"Reading speed (in Words Per Minute)"})},{name:"background",type:"background",label:(0,A.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,A.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,A.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]},di=l(8360);function ui({items:e=null,layout:t=null,width:l=null,height:n=null,spacing:a=0,vertical:i=!1,className:o=null,axisClassName:s=null,crossClassName:r=null}){let c=0;const d=e||[],u=m(t)?t:[{rows:i?d.map(()=>1):1,columns:i?1:d.map(()=>1)}],g=u.reduce((e,{rows:t=1,columns:l=1})=>e+(i?l:t),0);return(0,I.jsx)("div",{className:Ft(["micromag-element-grid-container",o]),style:{width:l,height:n,padding:null!==a&&a>0?a/2:null},children:(0,I.jsx)("div",{className:"micromag-element-grid-items",style:{flexDirection:i?"row":"column"},children:u.map(({rows:e,columns:t},l)=>{const n=(i?t:e)/g*100+"%",o=i?e:t,u=m(o)?o:[o],h=u.reduce((e,t)=>e+t,0);return(0,I.jsx)("div",{className:Ft(["micromag-element-grid-cross",r]),style:{flexDirection:i?"column":"row",width:i?n:null,height:i?null:n},children:u.map((e,t)=>{const l=e/h*100+"%",n=d[c];return c+=1,(0,I.jsx)("div",{className:Ft(["micromag-element-grid-axis",s]),style:{width:i?null:l,height:i?l:null,padding:a>0?a/2:0},children:n},`axis-${t}`)})},`cross-${l}`)})})})}var mi={"two-vertical-equal":{vertical:!0,layout:[{columns:1,rows:[1,1]}]},"two-vertical-top":{vertical:!0,layout:[{columns:1,rows:[2,1]}]},"two-vertical-bottom":{vertical:!0,layout:[{columns:1,rows:[1,2]}]},"three-vertical":{vertical:!0,layout:[{columns:1,rows:[1,1,1]}]},"one-two":{layout:[{rows:2,columns:[1]},{rows:1,columns:[1,1]}]},"two-one":{layout:[{rows:1,columns:[1,1]},{rows:2,columns:[1]}]},"two-by-two":{layout:[{rows:1,columns:[1,1]},{rows:1,columns:[1,1]}]},"four-vertical":{vertical:!0,layout:[{columns:1,rows:[1,1,1,1]}]},"one-two-one":{layout:[{rows:3,columns:[1]},{rows:2,columns:[1,1]},{rows:3,columns:[1]}]},"four-mosaic":{vertical:!0,layout:[{columns:1,rows:[2,1]},{columns:1,rows:[1,2]}]},"two-one-two":{layout:[{rows:2,columns:[1,1]},{rows:3,columns:[1]},{rows:2,columns:[1,1]}]},"one-two-two":{layout:[{rows:3,columns:[1]},{rows:2,columns:[1,1]},{rows:2,columns:[1,1]}]},"two-two-one":{layout:[{rows:2,columns:[1,1]},{rows:2,columns:[1,1]},{rows:3,columns:[1]}]},"two-by-three":{layout:[{rows:1,columns:[1,1]},{rows:1,columns:[1,1]},{rows:1,columns:[1,1]}]},"one-one-two-two":{layout:[{rows:1,columns:[1]},{rows:1,columns:[1]},{rows:1,columns:[1,1]},{rows:1,columns:[1,1]}]},"two-two-one-one":{layout:[{rows:1,columns:[1,1]},{rows:1,columns:[1,1]},{rows:1,columns:[1]},{rows:1,columns:[1]}]}},gi={container:"micromag-screen-gallery-container",background:"micromag-screen-gallery-background",content:"micromag-screen-gallery-content",inner:"micromag-screen-gallery-inner",grid:"micromag-screen-gallery-grid",placeholder:"micromag-screen-gallery-placeholder",emptyImage:"micromag-screen-gallery-emptyImage",emptyCaption:"micromag-screen-gallery-emptyCaption",gridItem:"micromag-screen-gallery-gridItem",imageContainer:"micromag-screen-gallery-imageContainer",header:"micromag-screen-gallery-header",footer:"micromag-screen-gallery-footer",image:"micromag-screen-gallery-image",caption:"micromag-screen-gallery-caption"};const hi=[];function yi(e){const t=(0,i.c)(73),{layout:l,images:a,withCaptions:o,imageCaptionStyle:s,background:r,header:c,footer:d,current:u,active:m,preload:g,spacing:h,captionMaxLines:y,mediaRef:p,className:f}=e,b=void 0===l?"four-mosaic":l,v=void 0===a?hi:a,x=void 0!==o&&o,S=void 0===s?null:s,w=void 0===r?null:r,C=void 0===c?null:c,j=void 0===d?null:d,k=void 0===u||u,M=void 0===m||m,N=void 0===g||g,$=void 0===h?20:h,F=void 0===y?2:y,T=void 0===p?null:p,R=void 0===f?null:f,{width:z,height:L,resolution:P}=rt(),{topHeight:B,bottomHeight:E,bottomSidesWidth:V}=ht(),{open:D}=bt(),{muted:_}=Xe(),{ref:O,isCurrent:H}=Je(k,!0),Z=void 0!==H&&H,W=null!==$?Math.max(0,$||0):20,{isView:q,isPreview:Y,isPlaceholder:U,isEdit:Q}=at(),X=k&&(q||Q)&&(Z||!q),J=k||N,K=U?5:W,ee=di(mi[b])?mi[b]:{},{layout:te,vertical:le}=ee,ne=void 0!==le&&le,ae=(void 0===te?[]:te).reduce((e,t)=>{const{rows:l,columns:n}=t;return e+(ne?l:n).length},0),[ie,oe]=(0,n.useState)(0),se=ie>=(null!==v?Math.min(ae,v.length):0);let re;t[0]===Symbol.for("react.memo_cache_sentinel")?(re=()=>{oe(fi)},t[0]=re):re=t[0];const ue=re;let ge;t[1]===Symbol.for("react.memo_cache_sentinel")?(ge=[],t[1]=ge):ge=t[1];const ye=(0,n.useRef)(ge);let fe;t[2]===Symbol.for("react.memo_cache_sentinel")?(fe=[],t[2]=fe):fe=t[2];const[be,ve]=(0,n.useState)(fe),{ref:xe,width:Se,height:we}=_t(),Ce=void 0===Se?null:Se,je=void 0===we?null:we;let ke,Me,Ne;t[3]===Symbol.for("react.memo_cache_sentinel")?(ke=()=>{ye.current.length&&ve(ye.current.map(pi))},t[3]=ke):ke=t[3],t[4]!==je||t[5]!==Ce||t[6]!==b?(Me=[Ce,je,b,ve],t[4]=je,t[5]=Ce,t[6]=b,t[7]=Me):Me=t[7],(0,n.useEffect)(ke,Me),t[8]!==C?(Ne=ce(C),t[8]=C,t[9]=Ne):Ne=t[9];const $e=Ne;let Fe;t[10]!==j?(Fe=de(j),t[10]=j,t[11]=Fe):Fe=t[11];const Te=Fe;let Re;t[12]!==k||t[13]!==j||t[14]!==Y||t[15]!==q||t[16]!==D?(Re=G(j,{isView:q,current:k,openWebView:D,isPreview:Y}),t[12]=k,t[13]=j,t[14]=Y,t[15]=q,t[16]=D,t[17]=Re):Re=t[17];const ze=Re,{ref:Le,height:Ie}=_t(),Ae=void 0===Ie?0:Ie,{ref:Pe,height:Be}=_t(),Ee=void 0===Be?0:Be,Ve=[...Array(ae)].map((e,t)=>{const l=null!==v?v[t]:null,n=be[t]||{},a=x?l:{media:l},{caption:i}=a||{},o=void 0===i?null:i,s=me(a),r=he(o),{textStyle:c}=o||{},d=void 0===c?null:c;return(0,I.jsxs)("div",{className:gi.gridItem,children:[(0,I.jsx)("div",{className:gi.imageContainer,ref:e=>{ye.current[t]=e},children:(0,I.jsx)(zn,{placeholder:"image",placeholderProps:{className:gi.placeholder,height:"100%"},emptyLabel:(0,I.jsx)(A.sA,{id:"ebsPd4",defaultMessage:"Image"}),emptyClassName:gi.emptyImage,isEmpty:!s,children:M||k?(0,I.jsx)(ra,{className:gi.image,...a,...n,loadingMode:"lazy",resolution:P,objectFit:{fit:"cover"},playing:X,active:M,shouldLoad:J,withoutVideo:Y,onLoaded:ue}):null})}),x?(0,I.jsx)(zn,{placeholder:"line",emptyLabel:(0,I.jsx)(A.sA,{id:"6tIigB",defaultMessage:"Caption"}),emptyClassName:gi.emptyCaption,isEmpty:!r,children:(0,I.jsx)("div",{className:gi.caption,children:(0,I.jsx)(Wn,{...o,className:gi.captionText,lineClamp:F,textStyle:{...S||null,...d}})})}):null]},`item-${t}`)});let De;t[18]!==R||t[19]!==U?(De=Ft([gi.container,R,{[gi.isPlaceholder]:U}]),t[18]=R,t[19]=U,t[20]=De):De=t[20];const _e=($e?Ae:0)+(Y?0:B),Oe=(Te?Ee:0)+(k&&!Y?E:0);let He,Ze,We,qe,Ge,Ye,Ue,Qe;return t[21]!==_e||t[22]!==Oe?(He={paddingTop:_e,paddingBottom:Oe},t[21]=_e,t[22]=Oe,t[23]=He):He=t[23],t[24]!==K||t[25]!==$e||t[26]!==C||t[27]!==Le||t[28]!==U||t[29]!==Y||t[30]!==W||t[31]!==B?(Ze=!U&&$e?(0,I.jsx)("div",{className:gi.header,ref:Le,style:{paddingTop:$e?K/2:W,paddingLeft:W,paddingRight:W,transform:Y?null:`translate(0, ${B}px)`},children:(0,I.jsx)(xa,{...C})}):null,t[24]=K,t[25]=$e,t[26]=C,t[27]=Le,t[28]=U,t[29]=Y,t[30]=W,t[31]=B,t[32]=Ze):Ze=t[32],t[33]!==K||t[34]!==ee||t[35]!==Ve?(We=(0,I.jsx)(ui,{className:gi.grid,spacing:K,items:Ve,...ee}),t[33]=K,t[34]=ee,t[35]=Ve,t[36]=We):We=t[36],t[37]!==K||t[38]!==ze||t[39]!==Pe||t[40]!==Te||t[41]!==U||t[42]!==Y||t[43]!==E||t[44]!==V?(qe=!U&&Te?(0,I.jsx)("div",{className:gi.footer,ref:Pe,style:{paddingLeft:Math.max(K/2,V),paddingRight:Math.max(K/2,V),paddingBottom:K/2,transform:Y?null:`translate(0, -${E}px)`},children:(0,I.jsx)(fa,{...ze})}):null,t[37]=K,t[38]=ze,t[39]=Pe,t[40]=Te,t[41]=U,t[42]=Y,t[43]=E,t[44]=V,t[45]=qe):qe=t[45],t[46]!==xe||t[47]!==He||t[48]!==Ze||t[49]!==We||t[50]!==qe?(Ge=(0,I.jsxs)("div",{className:gi.inner,style:He,ref:xe,children:[Ze,We,qe]}),t[46]=xe,t[47]=He,t[48]=Ze,t[49]=We,t[50]=qe,t[51]=Ge):Ge=t[51],t[52]!==L||t[53]!==Ge||t[54]!==z?(Ye=(0,I.jsx)(na,{width:z,height:L,className:gi.content,children:Ge}),t[52]=L,t[53]=Ge,t[54]=z,t[55]=Ye):Ye=t[55],t[56]!==w||t[57]!==X||t[58]!==T||t[59]!==L||t[60]!==U||t[61]!==Y||t[62]!==O||t[63]!==J||t[64]!==_||t[65]!==P||t[66]!==z?(Ue=U?null:(0,I.jsx)(la,{background:w,width:z,height:L,resolution:P,playing:X,muted:_,shouldLoad:J,mediaRef:pe(O,T),withoutVideo:Y,className:gi.background}),t[56]=w,t[57]=X,t[58]=T,t[59]=L,t[60]=U,t[61]=Y,t[62]=O,t[63]=J,t[64]=_,t[65]=P,t[66]=z,t[67]=Ue):Ue=t[67],t[68]!==se||t[69]!==De||t[70]!==Ye||t[71]!==Ue?(Qe=(0,I.jsxs)("div",{className:De,"data-screen-ready":se,children:[Ye,Ue]}),t[68]=se,t[69]=De,t[70]=Ye,t[71]=Ue,t[72]=Qe):Qe=t[72],Qe}function pi(e){return null!==e?{width:e.offsetWidth,height:e.offsetHeight}:{}}function fi(e){return e+1}var bi=[{id:"gallery",type:"screen",group:{label:(0,A.zR)({id:"6mX2ya",defaultMessage:"Images"}),order:4},title:(0,A.zR)({id:"jaFXki",defaultMessage:"Gallery"}),component:yi,layouts:["two-vertical-equal","two-vertical-top","two-vertical-bottom","three-vertical","one-two","two-one","two-by-two","four-vertical","one-two-one","four-mosaic","two-one-two","one-two-two","two-two-one","two-by-three","one-one-two-two","two-two-one-one"],fields:[{name:"layout",type:"screen-layout",defaultValue:"two-vertical-equal",label:(0,A.zR)({id:"4iBXj2",defaultMessage:"Layout"})},{name:"images",type:"visuals",label:(0,A.zR)({id:"muYwrB",defaultMessage:"Images"})},{name:"background",type:"background",label:(0,A.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,A.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,A.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]},{id:"gallery-captions",type:"screen",group:{label:(0,A.zR)({id:"6mX2ya",defaultMessage:"Images"}),order:4},title:(0,A.zR)({id:"MmJQ7o",defaultMessage:"Gallery with captions"}),component:function(e){const t=(0,i.c)(4);let l,n;return t[0]!==e?(({...l}=e),t[0]=e,t[1]=l):l=t[1],t[2]!==l?(n=(0,I.jsx)(yi,{...l,withCaptions:!0}),t[2]=l,t[3]=n):n=t[3],n},layouts:["two-vertical-equal","two-vertical-top","two-vertical-bottom","three-vertical","one-two","two-one","two-by-two","four-vertical","one-two-one","four-mosaic","two-one-two","one-two-two","two-two-one","two-by-three","one-one-two-two","two-two-one-one"],fields:[{name:"layout",type:"screen-layout",defaultValue:"two-vertical-equal",label:(0,A.zR)({id:"4iBXj2",defaultMessage:"Layout"})},{name:"images",type:"visuals-with-caption",theme:{caption:{textStyle:"text"}},label:(0,A.zR)({id:"59f2bg",defaultMessage:"Images"})},{name:"imageCaptionStyle",type:"text-style-form",label:(0,A.zR)({id:"Qz7nUz",defaultMessage:"Caption style"})},{name:"background",type:"background",label:(0,A.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,A.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,A.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]}],vi={container:"micromag-screen-gallery-feed-container",background:"micromag-screen-gallery-feed-background",content:"micromag-screen-gallery-feed-content",emptyImage:"micromag-screen-gallery-feed-emptyImage",emptyCaption:"micromag-screen-gallery-feed-emptyCaption",image:"micromag-screen-gallery-feed-image",imageContainer:"micromag-screen-gallery-feed-imageContainer",video:"micromag-screen-gallery-feed-video",footer:"micromag-screen-gallery-feed-footer",disabled:"micromag-screen-gallery-feed-disabled",caption:"micromag-screen-gallery-feed-caption",isPlaceholder:"micromag-screen-gallery-feed-isPlaceholder",layout:"micromag-screen-gallery-feed-layout"};function xi(e){const t=(0,i.c)(52),{layout:l,images:a,withCaptions:o,imageCaptionStyle:s,spacing:r,background:c,header:d,footer:u,current:m,active:g,preload:h,type:y,mediaRef:p,className:f}=e,b=void 0===l?"normal":l,v=void 0===a?null:a,x=void 0!==o&&o,S=void 0===s?null:s,w=void 0===r?20:r,C=void 0===c?null:c,j=void 0===d?null:d,k=void 0===u?null:u,M=void 0===m||m,N=void 0===g||g,$=void 0===h||h,F=void 0===p?null:p,T=void 0===f?null:f,R=rl(void 0===y?null:y),{width:z,height:L,resolution:P}=rt(),{topHeight:B,bottomHeight:E,bottomSidesWidth:V}=ht(),{open:D}=bt(),{muted:_}=Xe(),{ref:O,isCurrent:H}=Je(M,!0),Z=void 0!==H&&H,W=null!==w?Math.max(0,w||0):20,{isView:q,isPreview:Y,isPlaceholder:U,isEdit:Q,isStatic:X,isCapture:J}=at(),K=M&&(q||Q)&&(Z||!q),ee=M||$,te=null!==v?v.length:0,[le,ne]=(0,n.useState)(0),ae=le>=te,ie=!Q&&(X||J||U||Y||Q)||!M;let oe;t[0]!==le?(oe=()=>{ne(le+1)},t[0]=le,t[1]=oe):oe=t[1];const se=oe,re="reverse"===b,ue=[],ge=Q&&0===te?[null]:v,ye=U?[...Array(5)]:ge,{ref:fe,width:be}=_t();let ve;(ye||[]).forEach((e,t)=>{const l=x?e:{media:e},{caption:n}=l||{},a=void 0===n?null:n,i=me(l),o=he(a),{textStyle:s}=a||{},r=void 0===s?null:s,c=(0,I.jsx)(zn,{placeholder:"image",emptyLabel:(0,I.jsx)(A.sA,{id:"ebsPd4",defaultMessage:"Image"}),emptyClassName:vi.emptyImage,isEmpty:!i,children:(0,I.jsx)("div",{className:vi.imageContainer,ref:0===t?fe:null,children:(0,I.jsx)(ra,{...l,loadingMode:"lazy",className:vi.image,videoClassName:vi.video,width:be,resolution:P,playing:K,active:N,shouldLoad:ee,withoutVideo:Y,onLoaded:se})})},`image-${t}`);let d=null;if(x){const e=!re||t>0?W/2:0,l=re||t<(ye||[]).length-1?W/2:0;d=(0,I.jsx)(zn,{placeholder:"text",placeholderProps:{lines:2},emptyLabel:(0,I.jsx)(A.sA,{id:"6tIigB",defaultMessage:"Caption"}),emptyClassName:vi.emptyCaption,isEmpty:!o,children:o?(0,I.jsx)("div",{className:vi.caption,style:{marginTop:e,marginBottom:l},children:(0,I.jsx)(Wn,{...a,textStyle:{...S||null,...r},className:vi.captionText})}):null},`caption-${t}`)}re?(x&&ue.push(d),ue.push(c)):(ue.push(c),x&&ue.push(d)),!U&&t<(ye||[]).length-1&&ue.push((0,I.jsx)("div",{style:{height:W}},`spacing-${t}`))}),t[2]!==j?(ve=ce(j),t[2]=j,t[3]=ve):ve=t[3];const xe=ve;let Se;t[4]!==k?(Se=de(k),t[4]=k,t[5]=Se):Se=t[5];const we=Se;let Ce;t[6]!==M||t[7]!==k||t[8]!==Y||t[9]!==q||t[10]!==D?(Ce=G(k,{isView:q,current:M,openWebView:D,isPreview:Y}),t[6]=M,t[7]=k,t[8]=Y,t[9]=q,t[10]=D,t[11]=Ce):Ce=t[11];const je=Ce,[ke,Me]=(0,n.useState)(!1);let Ne;t[12]!==R?(Ne=e=>{const{initial:t}=e;t&&R("scroll","Screen"),Me(!0)},t[12]=R,t[13]=Ne):Ne=t[13];const $e=Ne;let Fe;t[14]===Symbol.for("react.memo_cache_sentinel")?(Fe=()=>{Me(!1)},t[14]=Fe):Fe=t[14];const Te=Fe;let Re;t[15]!==R?(Re=e=>{const t=void 0===e?null:e;if(null!==t){const e=Math.round(100*t);R("scroll",e,{scrollPercent:e})}},t[15]=R,t[16]=Re):Re=t[16];const ze=Re;let Le,Ie,Ae,Pe,Be;return t[17]!==T||t[18]!==U?(Le=Ft([vi.container,T,{[vi.isPlaceholder]:U}]),t[17]=T,t[18]=U,t[19]=Le):Le=t[19],t[20]!==M||t[21]!==xe||t[22]!==U||t[23]!==Y||t[24]!==W||t[25]!==E||t[26]!==B?(Ie=U?null:{paddingLeft:W,paddingRight:W,paddingTop:(Y?0:B)+(xe?W/2:W),paddingBottom:(M&&!Y?E:0)+W/2},t[20]=M,t[21]=xe,t[22]=U,t[23]=Y,t[24]=W,t[25]=E,t[26]=B,t[27]=Ie):Ie=t[27],t[28]!==xe||t[29]!==j||t[30]!==U||t[31]!==W?(Ae=!U&&xe?(0,I.jsx)("div",{style:{paddingBottom:W},children:(0,I.jsx)(xa,{...j})},"header"):null,t[28]=xe,t[29]=j,t[30]=U,t[31]=W,t[32]=Ae):Ae=t[32],t[33]!==je||t[34]!==we||t[35]!==U||t[36]!==ke||t[37]!==W||t[38]!==V?(Pe=!U&&we?(0,I.jsx)("div",{className:Ft([vi.footer,{[vi.disabled]:!ke}]),style:{paddingLeft:Math.max(V-W,0),paddingRight:Math.max(V-W,0),paddingTop:W},children:(0,I.jsx)(fa,{...je})}):null,t[33]=je,t[34]=we,t[35]=U,t[36]=ke,t[37]=W,t[38]=V,t[39]=Pe):Pe=t[39],t[40]!==C||t[41]!==K||t[42]!==F||t[43]!==L||t[44]!==U||t[45]!==Y||t[46]!==O||t[47]!==ee||t[48]!==_||t[49]!==P||t[50]!==z?(Be=U?null:(0,I.jsx)(la,{background:C,width:z,height:L,resolution:P,playing:K,muted:_,shouldLoad:ee,mediaRef:pe(O,F),withoutVideo:Y,className:vi.background}),t[40]=C,t[41]=K,t[42]=F,t[43]=L,t[44]=U,t[45]=Y,t[46]=O,t[47]=ee,t[48]=_,t[49]=P,t[50]=z,t[51]=Be):Be=t[51],(0,I.jsxs)("div",{className:Le,"data-screen-ready":ae,children:[(0,I.jsx)(na,{width:z,height:L,className:vi.content,children:(0,I.jsx)(Ta,{disabled:ie,onScrolledTrigger:ze,onScrolledBottom:$e,onScrolledNotBottom:Te,withShadow:!0,children:(0,I.jsxs)($a,{className:vi.layout,style:Ie,children:[Ae,ue,Pe]})})}),Be]})}var Si=[{id:"gallery-feed",type:"screen",group:{label:(0,A.zR)({id:"6mX2ya",defaultMessage:"Images"}),order:4},title:(0,A.zR)({id:"4bHvRS",defaultMessage:"Gallery Feed"}),component:xi,layouts:["normal"],fields:[{name:"images",type:"visuals",label:(0,A.zR)({id:"muYwrB",defaultMessage:"Images"})},{name:"spacing",type:"number",defaultValue:20,isHorizontal:!0,label:(0,A.zR)({id:"Zpl5bJ",defaultMessage:"Spacing"})},{name:"background",type:"background",label:(0,A.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,A.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,A.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]},{id:"gallery-feed-captions",type:"screen",group:{label:(0,A.zR)({id:"6mX2ya",defaultMessage:"Images"}),order:4},title:(0,A.zR)({id:"XTJGzY",defaultMessage:"Gallery feed with captions"}),component:function(e){const t=(0,i.c)(4);let l,n;return t[0]!==e?(({...l}=e),t[0]=e,t[1]=l):l=t[1],t[2]!==l?(n=(0,I.jsx)(xi,{...l,withCaptions:!0}),t[2]=l,t[3]=n):n=t[3],n},layouts:["normal","reverse"],fields:[{name:"layout",type:"screen-layout",defaultValue:"normal",label:(0,A.zR)({id:"4iBXj2",defaultMessage:"Layout"})},{name:"images",type:"visuals-with-caption",theme:{caption:{textStyle:"text"}},label:(0,A.zR)({id:"T9NZPQ",defaultMessage:"Images"})},{name:"spacing",type:"number",defaultValue:20,isHorizontal:!0,label:(0,A.zR)({id:"Zpl5bJ",defaultMessage:"Spacing"})},{name:"imageCaptionStyle",type:"text-style-form",label:(0,A.zR)({id:"Qz7nUz",defaultMessage:"Caption style"})},{name:"background",type:"background",label:(0,A.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,A.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,A.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]}],wi=l(938),Ci={container:"micromag-screen-game-sort-container",background:"micromag-screen-game-sort-background",content:"micromag-screen-game-sort-content",heading:"micromag-screen-game-sort-heading",layout:"micromag-screen-game-sort-layout",emptyHeading:"micromag-screen-game-sort-emptyHeading",emptyItems:"micromag-screen-game-sort-emptyItems",header:"micromag-screen-game-sort-header",footer:"micromag-screen-game-sort-footer",items:"micromag-screen-game-sort-items",item:"micromag-screen-game-sort-item",itemInner:"micromag-screen-game-sort-itemInner",thumbnail:"micromag-screen-game-sort-thumbnail",sorted:"micromag-screen-game-sort-sorted",draggable:"micromag-screen-game-sort-draggable",button:"micromag-screen-game-sort-button",buttonLabel:"micromag-screen-game-sort-buttonLabel",buttonResults:"micromag-screen-game-sort-buttonResults",label:"micromag-screen-game-sort-label",isEmpty:"micromag-screen-game-sort-isEmpty",valid:"micromag-screen-game-sort-valid",invalid:"micromag-screen-game-sort-invalid",resultsVisible:"micromag-screen-game-sort-resultsVisible",layoutLabelTop:"micromag-screen-game-sort-layoutLabelTop",layoutNoLabel:"micromag-screen-game-sort-layoutNoLabel",layoutLabelOver:"micromag-screen-game-sort-layoutLabelOver",buttonVisual:"micromag-screen-game-sort-buttonVisual",submitButton:"micromag-screen-game-sort-submitButton",results:"micromag-screen-game-sort-results"},ji={id:"game-sort",type:"screen",group:{label:(0,A.zR)({id:"w3+kFW",defaultMessage:"Game"}),order:12},title:(0,A.zR)({id:"eJMcXw",defaultMessage:"Sort game"}),component:function({layout:e="top",heading:t=null,items:l=null,spacing:a=20,itemsLayout:i="label-bottom",itemsBoxStyle:o=null,itemsTextStyle:s=null,itemsResultsTextStyle:r=null,validBoxStyle:c=null,invalidBoxStyle:d=null,submitBoxStyle:m=null,submitTextStyle:g=null,submitButtonLabel:h=null,results:y=null,resultsBoxStyle:p=null,background:f=null,header:b=null,footer:v=null,current:x=!0,active:S=!0,mediaRef:w=null,className:C=null}){const j=(0,A.tz)(),{width:k,height:M,resolution:N}=rt(),{isView:$,isPreview:F,isPlaceholder:T,isEdit:R}=at(),{topHeight:z,bottomHeight:L,bottomSidesWidth:P}=ht(),{open:B}=bt(),{muted:E}=Xe(),{ref:V,isCurrent:D=!1}=Je(x,!0),_=x&&($||R)&&(D||!$),O=x||S,H=ce(b),Z=de(v),W=G(v,{isView:$,current:x,openWebView:B,isPreview:F}),{ref:q,height:Y=0}=_t(),{ref:U,height:Q=0}=_t(),{ref:X,height:J=0}=_t(),K=$,ee=rl("game-sort"),le=(0,n.useMemo)(()=>(l||[]).map((e,t)=>({id:`item-${t}`,...e})),[l]),ne=$,[ie,oe]=(0,n.useState)(ne?wi(le||[]):le||[]),se=(0,n.useRef)(ie),re=(0,n.useRef)(le),ue=(0,n.useRef)({}),[me,ge]=(0,n.useState)(!1),[he,ye]=(0,n.useState)(null);(0,n.useRef)(ie);const[fe,be]=(0,n.useState)(!1),ve=$&&S&&x&&null===he;(0,n.useEffect)(()=>{if(re.current!==le&&!$){const e=ne?wi(le||[]):le||[];oe(e),se.current=e,re.current=le}},[le]);const xe=(0,n.useCallback)((e,t,l)=>{const n=e.findIndex(e=>e===t),a=[...e],i=a[l];return a[l]=t,a[n]=i,a},[]),Se=(0,n.useCallback)((e,t)=>{const l=xe(ie,e,t);oe(l),se.current=l},[ie,xe]),[we,Ce]=(0,Tl.mX)((le||[]).length,()=>({y:0,scale:1}),[]),je=(0,n.useCallback)((e,{dragItem:t,dragY:l,initial:n=!1}={})=>{const a=e.map(e=>ue.current[e.id]||null),i=(le||[]).map(e=>ue.current[e.id]||null).map(e=>e?.getBoundingClientRect()?.height||0),o=a.map(e=>e?.getBoundingClientRect()?.height||0);Ce.start(a=>{const s=(le||[])[a]||null,r=e.findIndex(e=>e.id===s.id),c=i[a]||0,d=i.slice(0,a).reduce((e,t)=>e+t,0);if(s===t)return{y:0!==c?(l-d)/c*100:0,scale:1.02,immediate:!0};const u=o.slice(0,r).reduce((e,t)=>e+t,0);return{y:0!==c?(u-d)/c*100:0,scale:1,immediate:n}}),n&&ge(!0)},[Ce]),ke=(0,n.useRef)(!1);(0,n.useLayoutEffect)(()=>{if(!$||0===J)return;Ce.stop();const e=ie.map(e=>ue.current[e.id]||null),t=(le||[]).map(e=>ue.current[e.id]||null).map(e=>e?.getBoundingClientRect()?.height||0),l=e.map(e=>e?.getBoundingClientRect()?.height||0);l.some(e=>e>0)&&(Ce.start(e=>{const n=(le||[])[e]||null,a=ie.findIndex(e=>e.id===n.id),i=t[e]||0,o=t.slice(0,e).reduce((e,t)=>e+t,0),s=l.slice(0,a).reduce((e,t)=>e+t,0);return{y:0!==i?(s-o)/i*100:0,scale:1,immediate:!0}}),ke.current||(ke.current=!0,ge(!0)))});const Me=(0,$t.useDrag)(({args:[e],active:t,movement:[,l],tap:n})=>{const a=le[e]||{};if(n){const t=ie.findIndex(e=>e===a),l=0===t?ie.length-1:t-1;return Se(a,l),void(K&&ee("tap",`item_${e}`))}const i=ie.findIndex(e=>e===a),o=ie.map(e=>ue.current[e.id]||null).map(e=>e?.getBoundingClientRect()?.height||0),s=o.map((e,t)=>{const l=e+o.slice(0,t).reduce((e,t)=>e+t,0);return{isStart:0===t,isEnd:t===o.length-1,start:l-e,end:l}}),r=s[i].end-o[i]/2+l,c=s.findIndex(({isStart:e,isEnd:t,start:l,end:n})=>(e||r>=l)&&(t||r<n));if(t){const e=xe(se.current,a,c);se.current=e,je(e,{dragItem:a,dragY:s[i].start+l})}else oe(se.current),K&&ee("drag",`item_${e}`)},{axis:"y",preventDefault:!0,filterTaps:!0,enabled:ve}),Ne=(0,n.useCallback)(()=>{const e=le.map((e,t)=>t===ie.findIndex(t=>t===e));ye(e);const t=e.reduce((e,t)=>e&&t,!0),l=e.filter(e=>!e).length;K&&ee("submit",t?"valid":`invalid_${l}`)},[le,ie,K,ee]);return(0,n.useEffect)(()=>{if(null===he)return()=>{};const e=setTimeout(()=>{oe(le),be(!0)},1e3);return()=>{clearTimeout(e)}},[he]),(0,I.jsxs)("div",{className:Ft([Ci.container,C,{[Ci.sorted]:me||!$,[Ci.draggable]:ve,[Ci.resultsVisible]:fe,[Ci.isPlaceholder]:T}]),"data-screen-ready":!0,children:[(0,I.jsx)(na,{width:k,height:M,className:Ci.content,children:(0,I.jsxs)($a,{className:Ci.layout,verticalAlign:e,fullscreen:!0,style:T?null:{paddingLeft:a,paddingRight:a,paddingTop:(F?0:z)+(Y||a),paddingBottom:(x&&!F?L:0)+(Q||a)},children:[!T&&H?(0,I.jsx)("div",{className:Ci.header,ref:q,style:{paddingTop:a/2,paddingBottom:a,paddingLeft:a,paddingRight:a,transform:`translate(0px, ${z}px)`},children:(0,I.jsx)(xa,{...b})}):null,(0,I.jsx)(zn,{placeholder:"title",emptyLabel:(0,I.jsx)(A.sA,{id:"X7kRRa",defaultMessage:"Heading"}),emptyClassName:Ci.emptyHeading,isEmpty:!t||""===t?.body,children:t?(0,I.jsx)(wa,{className:Ft([Ci.heading]),...t}):null},"title"),(0,I.jsxs)("div",{className:Ci.items,ref:X,children:[(0,I.jsx)(Ma,{size:5},"spacer"),(0,I.jsx)(zn,{placeholder:"items",emptyLabel:(0,I.jsx)(A.sA,{id:"03U69o",defaultMessage:"Buttons"}),emptyClassName:Ci.emptyItems,isEmpty:0===(le||[]).length,children:we.map(({y:e,scale:t},l)=>{const n=le[l]||{},{id:a=null,visual:m=null,label:g,boxStyle:h=null,results:y=null}=n||{},p=u(g)?{body:g}:g||{},{body:f=null,textStyle:b}=p||{},v=null===f&&null===m,x=null!==he&&he[l];return(0,I.jsx)(Tl.CS.div,{className:Ft([Ci.item,{clickable:ve,[Ci.isEmpty]:v,[Ci.valid]:null!==he&&x,[Ci.invalid]:null!==he&&!x}]),ref:e=>{ue.current[a]=e},style:{transform:e.to(e=>`translateY(${e}%)`),...ae(s),...ae(b)},...Me(l),children:(0,I.jsx)("div",{className:Ci.itemInner,children:(0,I.jsxs)(Tl.CS.div,{className:Ft([Ci.button,{[Ci.layoutLabelBottom]:"label-bottom"===i,[Ci.layoutLabelTop]:"label-top"===i,[Ci.layoutNoLabel]:"no-label"===i,[Ci.layoutLabelOver]:"label-over"===i}]),style:{transform:t.to(e=>`scale(${e})`),...te(o),...te(h),...te(he&&x?c:null),...te(he&&!x?d:null)},children:[null!==m?(0,I.jsx)(ra,{className:Ci.buttonVisual,imageClassName:Ci.thumbnail,media:m,width:"auto"}):null,null!==f||null!==y&&fe?(0,I.jsxs)("div",{className:Ci.buttonLabel,children:[null!==f?(0,I.jsx)(Wn,{...p,textStyle:{...s,...b},className:Ci.label}):null,null!==y&&fe?(0,I.jsx)(Wn,{...y,className:Ci.buttonResults,textStyle:{...r,...y.textStyle}}):null]}):null]})})},`button-${l}`)})},"items")]}),fe&&null!==y?(0,I.jsx)("div",{className:Ci.results,style:{...te(p)},children:(0,I.jsx)(Wn,{...y})}):T?null:(0,I.jsx)(da,{className:Ci.submitButton,disabled:null!==he,type:"button",onClick:Ne,style:{...te(m),...ae(g)},children:h||j.formatMessage({id:"IbZVf0",defaultMessage:"Submit"})}),!T&&Z?(0,I.jsx)("div",{className:Ci.footer,ref:U,style:{paddingTop:a,paddingBottom:a/2,paddingLeft:Math.max(P-a,0),paddingRight:Math.max(P-a,0)},children:(0,I.jsx)(fa,{...W})}):null]})}),T?null:(0,I.jsx)(la,{background:f,width:k,height:M,resolution:N,playing:_,muted:E,shouldLoad:O,mediaRef:pe(V,w),withoutVideo:F,className:Ci.background})]})},layouts:["top","middle","bottom"],fields:[{name:"layout",type:"screen-layout",defaultValue:"middle",label:(0,A.zR)({id:"4iBXj2",defaultMessage:"Layout"})},{name:"heading",type:"heading-element",label:(0,A.zR)({id:"wx5PI0",defaultMessage:"Heading"})},{name:"items",type:"game-sort-items",label:(0,A.zR)({id:"fbUW2U",defaultMessage:"Items"}),isSection:!0},{label:(0,A.zR)({id:"83959F",defaultMessage:"Items style"}),type:"fields",isList:!0,isSection:!0,fields:[{name:"itemsLayout",type:"button-layout",label:(0,A.zR)({id:"OPxJx/",defaultMessage:"Layout"})},{name:"itemsTextStyle",type:"text-style-form",label:(0,A.zR)({id:"rzXCu2",defaultMessage:"Label style"})},{name:"resultsTextStyle",type:"text-style-form",label:(0,A.zR)({id:"ex1Bgx",defaultMessage:"Results style"})},{name:"itemsBoxStyle",type:"box-style-form",label:(0,A.zR)({id:"p1pghO",defaultMessage:"Box style"})},{name:"validBoxStyle",type:"box-style-form",label:(0,A.zR)({id:"ao5VYd",defaultMessage:"Valid box style"})},{name:"invalidBoxStyle",type:"box-style-form",label:(0,A.zR)({id:"JLYWNN",defaultMessage:"Invalid box style"})}]},{label:(0,A.zR)({id:"WjigmA",defaultMessage:"Submit button"}),type:"fields",isList:!0,isSection:!0,fields:[{name:"submitButtonLabel",type:"text",label:(0,A.zR)({id:"Cg3LGu",defaultMessage:"Label"})},{name:"submitBoxStyle",type:"box-style-form",label:(0,A.zR)({id:"nno1Pq",defaultMessage:"Button style"})},{name:"submitTextStyle",type:"text-style-form",label:(0,A.zR)({id:"OEckOD",defaultMessage:"Text style"})}]},{label:(0,A.zR)({id:"jINZkT",defaultMessage:"Results"}),type:"fields",isList:!0,isSection:!0,fields:[{name:"results",type:"text-element",theme:{textStyle:"text"},label:(0,A.zR)({id:"ZMS1Wv",defaultMessage:"Text"})},{name:"resultsBoxStyle",type:"box-style-form",label:(0,A.zR)({id:"p1pghO",defaultMessage:"Box style"})}]},{name:"background",type:"background",label:(0,A.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,A.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,A.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]},ki={container:"micromag-screen-image-container",background:"micromag-screen-image-background",content:"micromag-screen-image-content",emptyImage:"micromag-screen-image-emptyImage",emptyTitle:"micromag-screen-image-emptyTitle",emptyText:"micromag-screen-image-emptyText",emptyLegend:"micromag-screen-image-emptyLegend",imageContainer:"micromag-screen-image-imageContainer",image:"micromag-screen-image-image",placeholderImage:"micromag-screen-image-placeholderImage",isPlaceholder:"micromag-screen-image-isPlaceholder",layout:"micromag-screen-image-layout",isCard:"micromag-screen-image-isCard",isCardReverse:"micromag-screen-image-isCardReverse",footer:"micromag-screen-image-footer",isFullscreen:"micromag-screen-image-isFullscreen",header:"micromag-screen-image-header"};function Mi(e){const t=(0,i.c)(133),{layout:l,image:a,imageFit:o,defaultImageFit:s,title:r,text:c,legend:d,withTitle:u,withText:m,withLegend:g,spacing:h,background:y,header:p,footer:f,current:b,active:v,preload:x,mediaRef:S,className:w}=e,C=void 0===l?"normal":l,j=void 0===a?null:a,k=void 0===o?null:o,M=void 0===s?"cover":s,N=void 0===r?null:r,$=void 0===c?null:c,F=void 0===d?null:d,T=void 0!==u&&u,R=void 0!==m&&m,z=void 0!==g&&g,L=void 0===h?20:h,P=void 0===y?null:y,B=void 0===p?null:p,E=void 0===f?null:f,V=void 0===b||b,D=void 0===v||v,_=void 0===x||x,O=void 0===S?null:S,H=void 0===w?null:w,{width:Z,height:W,resolution:q}=rt(),{isView:Y,isPreview:U,isPlaceholder:Q,isEdit:X}=at(),{topHeight:J,bottomHeight:K,bottomSidesWidth:ee}=ht(),{open:te}=bt(),{muted:le}=Xe(),{ref:ne,isCurrent:ae}=Je(V,!0),ie=void 0!==ae&&ae;let oe;t[0]!==B?(oe=ce(B),t[0]=B,t[1]=oe):oe=t[1];const se=oe;let re;t[2]!==E?(re=de(E),t[2]=E,t[3]=re):re=t[3];const ue=re;let me;t[4]!==V||t[5]!==E||t[6]!==U||t[7]!==Y||t[8]!==te?(me=G(E,{isView:Y,current:V,openWebView:te,isPreview:U}),t[4]=V,t[5]=E,t[6]=U,t[7]=Y,t[8]=te,t[9]=me):me=t[9];const ge=me,ye=null!==j;let fe;t[10]!==N?(fe=he(N),t[10]=N,t[11]=fe):fe=t[11];const be=fe;let ve;t[12]!==$?(ve=he($),t[12]=$,t[13]=ve):ve=t[13];const xe=ve;let Se;t[14]!==F?(Se=he(F),t[14]=F,t[15]=Se):Se=t[15];const we=Se,[Ce,je]=(0,n.useState)(!ye),ke=V&&(Y||X)&&(ie||!Y),Me=V||_;let Ne;t[16]===Symbol.for("react.memo_cache_sentinel")?(Ne=()=>{je(!0)},t[16]=Ne):Ne=t[16];const $e=Ne,Fe=k||M;let Te;t[17]!==Fe?(Te={fit:Fe},t[17]=Fe,t[18]=Te):Te=t[18];const Re=Te,ze="reverse"===C||"card-reverse"===C,Le="title-top"===C,Ie="card"===C||"card-reverse"===C,Ae="card"===C,Pe="card-reverse"===C,Be="fullscreen"===C,Ee=Be||Q?0:L,{ref:Ve,width:De,height:_e}=_t(),Oe=Ie?Pe?`${Ee/2}px ${-Ee/2}px 0`:`0 ${-Ee/2}px ${Ee/2}px`:Ee/2;let He;t[19]!==Ee||t[20]!==se||t[21]!==Ae||t[22]!==Pe||t[23]!==Q?(He=Q?null:{margin:Ee/2,marginTop:Pe&&!se?Ee:Ee/2,marginBottom:Ae&&!se?Ee:Ee/2},t[19]=Ee,t[20]=se,t[21]=Ae,t[22]=Pe,t[23]=Q,t[24]=He):He=t[24];const Ze=He;let We,qe,Ge;t[25]!==Oe||t[26]!==Q?(We=Q?null:{margin:Oe},t[25]=Oe,t[26]=Q,t[27]=We):We=t[27],t[28]===Symbol.for("react.memo_cache_sentinel")?(qe={className:ki.placeholderImage,height:"100%"},Ge=(0,I.jsx)(A.sA,{id:"ebsPd4",defaultMessage:"Image"}),t[28]=qe,t[29]=Ge):(qe=t[28],Ge=t[29]);const Ye=!ye;let Ue,Qe,Ke,et,tt,lt,nt;t[30]!==D||t[31]!==ke||t[32]!==Re||t[33]!==ye||t[34]!==j||t[35]!==_e||t[36]!==De||t[37]!==U||t[38]!==Me||t[39]!==le||t[40]!==q?(Ue=ye?(0,I.jsx)(ra,{className:ki.image,media:j,objectFit:Re,width:De,height:_e,resolution:q,playing:ke,muted:le,active:D,shouldLoad:Me,withoutVideo:U,onLoaded:$e}):null,t[30]=D,t[31]=ke,t[32]=Re,t[33]=ye,t[34]=j,t[35]=_e,t[36]=De,t[37]=U,t[38]=Me,t[39]=le,t[40]=q,t[41]=Ue):Ue=t[41],t[42]!==Ye||t[43]!==Ue?(Qe=(0,I.jsx)(zn,{placeholder:"image",placeholderProps:qe,emptyLabel:Ge,emptyClassName:ki.emptyImage,isEmpty:Ye,children:Ue}),t[42]=Ye,t[43]=Ue,t[44]=Qe):Qe=t[44],t[45]!==Ve||t[46]!==We||t[47]!==Qe?(Ke=(0,I.jsx)("div",{ref:Ve,className:ki.imageContainer,style:We,children:Qe},"image"),t[45]=Ve,t[46]=We,t[47]=Qe,t[48]=Ke):Ke=t[48],t[49]!==be||t[50]!==Ze||t[51]!==N||t[52]!==T?(et=T&&(0,I.jsx)(zn,{placeholder:"title",emptyLabel:(0,I.jsx)(A.sA,{id:"2ZOPe+",defaultMessage:"Title"}),emptyClassName:ki.emptyTitle,isEmpty:!be,children:be?(0,I.jsx)("div",{style:Ze,children:(0,I.jsx)(wa,{...N})}):null},"title"),t[49]=be,t[50]=Ze,t[51]=N,t[52]=T,t[53]=et):et=t[53],t[54]!==xe||t[55]!==Ze||t[56]!==$||t[57]!==R?(tt=R&&(0,I.jsx)(zn,{placeholder:"text",emptyLabel:(0,I.jsx)(A.sA,{id:"z4CiV1",defaultMessage:"Text"}),emptyClassName:ki.emptyText,isEmpty:!xe,children:xe?(0,I.jsx)("div",{style:Ze,children:(0,I.jsx)(Wn,{...$})}):null},"text"),t[54]=xe,t[55]=Ze,t[56]=$,t[57]=R,t[58]=tt):tt=t[58],t[59]!==we||t[60]!==Ze||t[61]!==F||t[62]!==z?(lt=z&&(0,I.jsx)(zn,{placeholder:"shortText",emptyLabel:(0,I.jsx)(A.sA,{id:"dqnkQk",defaultMessage:"Legend"}),emptyClassName:ki.emptyLegend,isEmpty:!we,children:we?(0,I.jsx)("div",{style:Ze,children:(0,I.jsx)(Wn,{...F})}):null},"legend"),t[59]=we,t[60]=Ze,t[61]=F,t[62]=z,t[63]=lt):lt=t[63],t[64]!==be||t[65]!==Q||t[66]!==ze||t[67]!==Le||t[68]!==Ke||t[69]!==et||t[70]!==tt||t[71]!==lt||t[72]!==T?(nt=[Ke,et,tt,lt],ze?nt.reverse():Le&&T&&(be||Q)&&nt.splice(0,0,nt.splice(1,1)[0]),t[64]=be,t[65]=Q,t[66]=ze,t[67]=Le,t[68]=Ke,t[69]=et,t[70]=tt,t[71]=lt,t[72]=T,t[73]=nt):nt=t[73];let it,ot,st,ct,dt,ut,mt,gt,yt=(V&&!U?K:0)+Ee/2,pt=(U?0:J)+Ee/2;return(Ie||Be)&&(pt=0,yt=0),Pe&&(pt=V&&!U?J:0,yt=V&&!U?K:0),t[74]!==H||t[75]!==Ae||t[76]!==Pe||t[77]!==Be||t[78]!==Q||t[79]!==ze?(it=Ft([ki.container,H,{[ki.isReversed]:ze,[ki.isPlaceholder]:Q,[ki.isCard]:Ae,[ki.isCardReverse]:Pe,[ki.isFullscreen]:Be}]),t[74]=H,t[75]=Ae,t[76]=Pe,t[77]=Be,t[78]=Q,t[79]=ze,t[80]=it):it=t[80],t[81]!==Ee||t[82]!==Q||t[83]!==yt||t[84]!==pt?(ot=Q?null:{padding:Ee/2,paddingTop:pt,paddingBottom:yt},t[81]=Ee,t[82]=Q,t[83]=yt,t[84]=pt,t[85]=ot):ot=t[85],t[86]!==se||t[87]!==B||t[88]!==Ie||t[89]!==Pe||t[90]!==Be||t[91]!==Q||t[92]!==U||t[93]!==L||t[94]!==J?(st=!Q&&se?(0,I.jsx)("div",{className:ki.header,style:Be||Pe?{paddingTop:se?L/2:L,paddingBottom:se?L/2:L,paddingLeft:Pe?L/2:L,paddingRight:Pe?L/2:L,transform:U?null:`translate(0, ${J}px)`}:{paddingTop:Ie?L/2:null,paddingBottom:Ie?L:L/2,paddingLeft:L/2,paddingRight:L/2},children:(0,I.jsx)(xa,{...B})}):null,t[86]=se,t[87]=B,t[88]=Ie,t[89]=Pe,t[90]=Be,t[91]=Q,t[92]=U,t[93]=L,t[94]=J,t[95]=st):st=t[95],t[96]!==ge||t[97]!==ue||t[98]!==Ie||t[99]!==Pe||t[100]!==Be||t[101]!==Q||t[102]!==U||t[103]!==L||t[104]!==K||t[105]!==ee?(ct=!Q&&ue?(0,I.jsx)("div",{className:ki.footer,style:Be||Pe?{paddingLeft:Math.max(L/2,ee),paddingRight:Math.max(L/2,ee),paddingTop:L/2,paddingBottom:L/2,transform:U?null:`translate(0, -${K}px)`}:{paddingLeft:Math.max(ee-L,0),paddingRight:Math.max(ee-L,0),paddingTop:Ie?L/2:null,paddingBottom:Ie?L/2:null},children:(0,I.jsx)(fa,{...ge})}):null,t[96]=ge,t[97]=ue,t[98]=Ie,t[99]=Pe,t[100]=Be,t[101]=Q,t[102]=U,t[103]=L,t[104]=K,t[105]=ee,t[106]=ct):ct=t[106],t[107]!==nt||t[108]!==ot||t[109]!==st||t[110]!==ct?(dt=(0,I.jsxs)($a,{className:ki.layout,fullscreen:!0,style:ot,children:[st,nt,ct]}),t[107]=nt,t[108]=ot,t[109]=st,t[110]=ct,t[111]=dt):dt=t[111],t[112]!==W||t[113]!==dt||t[114]!==Z?(ut=(0,I.jsx)(na,{width:Z,height:W,className:ki.content,children:dt}),t[112]=W,t[113]=dt,t[114]=Z,t[115]=ut):ut=t[115],t[116]!==P||t[117]!==ke||t[118]!==O||t[119]!==W||t[120]!==Q||t[121]!==U||t[122]!==ne||t[123]!==Me||t[124]!==le||t[125]!==q||t[126]!==Z?(mt=Q?null:(0,I.jsx)(la,{background:P,width:Z,height:W,resolution:q,playing:ke,muted:le,shouldLoad:Me,mediaRef:pe(ne,O),withoutVideo:U,className:ki.background}),t[116]=P,t[117]=ke,t[118]=O,t[119]=W,t[120]=Q,t[121]=U,t[122]=ne,t[123]=Me,t[124]=le,t[125]=q,t[126]=Z,t[127]=mt):mt=t[127],t[128]!==Ce||t[129]!==it||t[130]!==ut||t[131]!==mt?(gt=(0,I.jsxs)("div",{className:it,"data-screen-ready":Ce,children:[ut,mt]}),t[128]=Ce,t[129]=it,t[130]=ut,t[131]=mt,t[132]=gt):gt=t[132],gt}var Ni=[{id:"image",type:"screen",group:{label:(0,A.zR)({id:"6mX2ya",defaultMessage:"Images"}),order:4},title:(0,A.zR)({id:"uJ9eBc",defaultMessage:"Image"}),component:Mi,layouts:["normal","fullscreen"],fields:[{name:"layout",type:"screen-layout",defaultValue:"normal",label:(0,A.zR)({id:"4iBXj2",defaultMessage:"Layout"})},{name:"image",type:"visual",label:(0,A.zR)({id:"xsipID",defaultMessage:"Image"})},{name:"imageFit",type:"fit",defaultValue:"cover",values:["cover","contain"],label:(0,A.zR)({id:"dkBBRa",defaultMessage:"Image fit"})},{name:"background",type:"background",label:(0,A.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,A.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,A.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]},{id:"image-title",type:"screen",group:{label:(0,A.zR)({id:"S/mavZ",defaultMessage:"Text and Images"}),order:3},title:(0,A.zR)({id:"AA8TV9",defaultMessage:"Image with title"}),component:function(e){const t=(0,i.c)(4);let l,n;return t[0]!==e?(({...l}=e),t[0]=e,t[1]=l):l=t[1],t[2]!==l?(n=(0,I.jsx)(Mi,{...l,withTitle:!0}),t[2]=l,t[3]=n):n=t[3],n},layouts:["normal","reverse","card","card-reverse"],fields:[{name:"layout",type:"screen-layout",defaultValue:"normal",label:(0,A.zR)({id:"4iBXj2",defaultMessage:"Layout"})},{name:"image",type:"visual",label:(0,A.zR)({id:"xsipID",defaultMessage:"Image"})},{name:"imageFit",type:"fit",defaultValue:"cover",values:["cover","contain"],label:(0,A.zR)({id:"dkBBRa",defaultMessage:"Image fit"})},{name:"title",type:"heading-element",inline:!0,theme:{textStyle:"heading2"},label:(0,A.zR)({id:"N25iDO",defaultMessage:"Title"})},{name:"background",type:"background",label:(0,A.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,A.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,A.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]},{id:"image-text",type:"screen",group:{label:(0,A.zR)({id:"S/mavZ",defaultMessage:"Text and Images"}),order:3},title:(0,A.zR)({id:"CJmQeh",defaultMessage:"Image with text"}),component:function(e){const t=(0,i.c)(4);let l,n;return t[0]!==e?(({...l}=e),t[0]=e,t[1]=l):l=t[1],t[2]!==l?(n=(0,I.jsx)(Mi,{...l,withText:!0}),t[2]=l,t[3]=n):n=t[3],n},layouts:["normal","reverse","card","card-reverse"],fields:[{name:"layout",type:"screen-layout",defaultValue:"normal",label:(0,A.zR)({id:"4iBXj2",defaultMessage:"Layout"})},{name:"image",type:"visual",label:(0,A.zR)({id:"xsipID",defaultMessage:"Image"})},{name:"imageFit",type:"fit",defaultValue:"cover",values:["cover","contain"],label:(0,A.zR)({id:"dkBBRa",defaultMessage:"Image fit"})},{name:"text",type:"text-element",theme:{textStyle:"text"},label:(0,A.zR)({id:"4E2gbX",defaultMessage:"Text"})},{name:"background",type:"background",label:(0,A.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,A.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,A.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]},{id:"image-title-text",type:"screen",group:{label:(0,A.zR)({id:"S/mavZ",defaultMessage:"Text and Images"}),order:3},title:(0,A.zR)({id:"eWIM/8",defaultMessage:"Image with title and text"}),component:function(e){const t=(0,i.c)(4);let l,n;return t[0]!==e?(({...l}=e),t[0]=e,t[1]=l):l=t[1],t[2]!==l?(n=(0,I.jsx)(Mi,{...l,withTitle:!0,withText:!0}),t[2]=l,t[3]=n):n=t[3],n},layouts:["normal","reverse","title-top","card","card-reverse"],fields:[{name:"layout",type:"screen-layout",defaultValue:"normal",label:(0,A.zR)({id:"4iBXj2",defaultMessage:"Layout"})},{name:"image",type:"visual",isHorizontal:!1,label:(0,A.zR)({id:"xsipID",defaultMessage:"Image"})},{name:"imageFit",type:"fit",defaultValue:"cover",values:["cover","contain"],label:(0,A.zR)({id:"dkBBRa",defaultMessage:"Image fit"})},{name:"title",type:"text-element",inline:!0,theme:{textStyle:"heading2"},label:(0,A.zR)({id:"N25iDO",defaultMessage:"Title"})},{name:"text",type:"text-element",theme:{textStyle:"text"},label:(0,A.zR)({id:"4E2gbX",defaultMessage:"Text"})},{name:"background",type:"background",label:(0,A.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,A.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,A.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]},{id:"image-legend",type:"screen",group:{label:(0,A.zR)({id:"6mX2ya",defaultMessage:"Images"}),order:4},title:(0,A.zR)({id:"H1YcaV",defaultMessage:"Image with legend"}),component:function(e){const t=(0,i.c)(4);let l,n;return t[0]!==e?(({...l}=e),t[0]=e,t[1]=l):l=t[1],t[2]!==l?(n=(0,I.jsx)(Mi,{...l,withLegend:!0}),t[2]=l,t[3]=n):n=t[3],n},layouts:["normal","reverse","card","card-reverse"],fields:[{name:"layout",type:"screen-layout",defaultValue:"normal",label:(0,A.zR)({id:"4iBXj2",defaultMessage:"Layout"})},{name:"image",type:"visual",label:(0,A.zR)({id:"xsipID",defaultMessage:"Image"})},{name:"imageFit",type:"fit",defaultValue:"cover",values:["cover","contain"],label:(0,A.zR)({id:"dkBBRa",defaultMessage:"Image fit"})},{name:"legend",type:"text-element",theme:{textStyle:"text"},label:(0,A.zR)({id:"3OS3Ms",defaultMessage:"Legend"})},{name:"background",type:"background",label:(0,A.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,A.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,A.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]}],$i={inner:"micromag-element-keypad-inner"};function Fi(e){const t=(0,i.c)(20),{items:l,align:n,columns:a,spacing:o,className:s,itemClassName:r,innerClassName:c}=e,d=void 0===l?null:l,u=void 0===n?null:n,m=void 0===o?10:o,g=void 0===s?null:s,h=void 0===r?null:r,y=void 0===c?null:c,p=100/(void 0===a?1:a)+"%";let f,b,v,x,S,w,C;return t[0]!==g?(f=Ft([$i.container,g]),t[0]=g,t[1]=f):f=t[1],t[2]!==y?(b=Ft([$i.inner,y]),t[2]=y,t[3]=b):b=t[3],t[4]!==u?(v=((e,t=!1,l=null)=>{if(null===e)return null;const{horizontal:n=null,vertical:a=null}=e,i=function(e){return"left"===e?"flex-start":"middle"===e?"center":"right"===e?"flex-end":null}(n),o=function(e){return"top"===e?"flex-start":"middle"===e?"center":"bottom"===e?"flex-end":null}(a);return t?{justifyContent:o||l,alignItems:i||l}:{justifyContent:i||l,alignItems:o||o}})({horizontal:u}),t[4]=u,t[5]=v):v=t[5],t[6]!==v?(x={...v},t[6]=v,t[7]=x):x=t[7],t[8]!==h||t[9]!==p||t[10]!==d||t[11]!==m?(S=null!==d?d.map(e=>{const{key:t}=e||{};return(0,I.jsx)("div",{className:Ft([$i.item,h]),style:{width:p,padding:m/2},children:e},t)}):null,t[8]=h,t[9]=p,t[10]=d,t[11]=m,t[12]=S):S=t[12],t[13]!==x||t[14]!==S||t[15]!==b?(w=(0,I.jsx)("div",{className:b,style:x,children:S}),t[13]=x,t[14]=S,t[15]=b,t[16]=w):w=t[16],t[17]!==w||t[18]!==f?(C=(0,I.jsx)("div",{className:f,children:w}),t[17]=w,t[18]=f,t[19]=C):C=t[19],C}var Ti={container:"micromag-screen-keypad-container",isPlaceholder:"micromag-screen-keypad-isPlaceholder",layout:"micromag-screen-keypad-layout",background:"micromag-screen-keypad-background",fixedHeader:"micromag-screen-keypad-fixedHeader",open:"micromag-screen-keypad-open",close:"micromag-screen-keypad-close",closeIcon:"micromag-screen-keypad-closeIcon",header:"micromag-screen-keypad-header",footer:"micromag-screen-keypad-footer",inner:"micromag-screen-keypad-inner",title:"micromag-screen-keypad-title",subtitle:"micromag-screen-keypad-subtitle",emptyTitle:"micromag-screen-keypad-emptyTitle",emptyText:"micromag-screen-keypad-emptyText",grid:"micromag-screen-keypad-grid",item:"micromag-screen-keypad-item",button:"micromag-screen-keypad-button",withSquareItems:"micromag-screen-keypad-withSquareItems",isEmpty:"micromag-screen-keypad-isEmpty",disableHover:"micromag-screen-keypad-disableHover",isLink:"micromag-screen-keypad-isLink",imagePlaceholder:"micromag-screen-keypad-imagePlaceholder",buttonPlaceholder:"micromag-screen-keypad-buttonPlaceholder",buttonLabel:"micromag-screen-keypad-buttonLabel",empty:"micromag-screen-keypad-empty",emptyButtonVisual:"micromag-screen-keypad-emptyButtonVisual",emptyButtonLabel:"micromag-screen-keypad-emptyButtonLabel",popupBackdrop:"micromag-screen-keypad-popupBackdrop",popup:"micromag-screen-keypad-popup",popupButton:"micromag-screen-keypad-popupButton",popupScroll:"micromag-screen-keypad-popupScroll",popupInner:"micromag-screen-keypad-popupInner",withShadow:"micromag-screen-keypad-withShadow",popupContent:"micromag-screen-keypad-popupContent",popupVisualImage:"micromag-screen-keypad-popupVisualImage",popupVisualVideo:"micromag-screen-keypad-popupVisualVideo",placeholder:"micromag-screen-keypad-placeholder",popupHeading:"micromag-screen-keypad-popupHeading",popupVisual:"micromag-screen-keypad-popupVisual",contentSplit:"micromag-screen-keypad-contentSplit",emptyHeading:"micromag-screen-keypad-emptyHeading",emptyVisual:"micromag-screen-keypad-emptyVisual",emptyContent:"micromag-screen-keypad-emptyContent",emptyCTA:"micromag-screen-keypad-emptyCTA",popupCTA:"micromag-screen-keypad-popupCTA",contentBottom:"micromag-screen-keypad-contentBottom"};const Ri=[{id:"1"},{id:"2"},{id:"3"},{id:"4"},{id:"5"},{id:"6"},{id:"7"},{id:"8"},{id:"9"}],zi={padding:{left:30,top:30,right:30,bottom:30}};function Li(e){return Math.abs(e)>.5?"none":"auto"}function Ii(e){return`translateY(${100*e}%) scale(${1-Math.abs(.5*e)})`}function Ai(e){return 1-Math.abs(e)}function Pi(){}function Bi(e){const t=void 0===e?null:e;null!==t&&t.stopPropagation()}function Ei(e){return!s(e)}var Vi=[{id:"keypad",type:"screen",group:{label:(0,A.zR)({id:"cGItoy",defaultMessage:"List"}),order:4},title:(0,A.zR)({id:"75nZbY",defaultMessage:"Keypad"}),layouts:["top","middle","bottom"],component:function(e){const t=(0,i.c)(315),{items:l,title:a,subtitle:o,layout:s,spacing:r,keypadLayout:c,buttonStyles:d,popupStyles:m,header:g,footer:h,background:p,current:f,preload:b,withoutCloseButton:v,mediaRef:x,className:S}=e,w=void 0===l?null:l,C=void 0===a?null:a,j=void 0===o?null:o,k=void 0===s?null:s,M=void 0===r?20:r,N=void 0===c?null:c,$=void 0===d?null:d,F=void 0===m?null:m,T=void 0===g?null:g,R=void 0===h?null:h,z=void 0===p?null:p,L=void 0===f||f,P=void 0===b||b,B=void 0!==v&&v,E=void 0===x?null:x,V=void 0===S?null:S,D=(0,n.useRef)(null),_=(0,n.useRef)(null),O=rl("keypad"),{muted:H}=Xe(),{ref:Z,isCurrent:W}=Je(L,!0),q=void 0!==W&&W,Y=it(),{width:U,height:Q,resolution:X}=rt(),{topHeight:J,bottomHeight:K,bottomSidesWidth:ee}=ht(),{open:le}=bt(),{enableInteraction:ne,disableInteraction:ae}=ft(),{isView:ie,isPreview:oe,isPlaceholder:se,isEdit:re}=at();let ue;t[0]!==T?(ue=ce(T),t[0]=T,t[1]=ue):ue=t[1];const me=ue;let ge;t[2]!==R?(ge=de(R),t[2]=R,t[3]=ge):ge=t[3];const ye=ge;let fe;t[4]!==L||t[5]!==R||t[6]!==oe||t[7]!==ie||t[8]!==le?(fe=G(R,{isView:ie,current:L,openWebView:le,isPreview:oe}),t[4]=L,t[5]=R,t[6]=oe,t[7]=ie,t[8]=le,t[9]=fe):fe=t[9];const be=fe;let ve;t[10]!==C?(ve=he(C),t[10]=C,t[11]=ve):ve=t[11];const xe=ve;let Se;t[12]!==C?(Se=C||{},t[12]=C,t[13]=Se):Se=t[13];const{textStyle:we}=Se,Ce=void 0===we?null:we;let je;t[14]!==j?(je=he(j),t[14]=j,t[15]=je):je=t[15];const ke=je,{ref:Me,height:Ne}=_t(),$e=void 0===Ne?0:Ne,{ref:Fe,height:Te}=_t(),Re=void 0===Te?0:Te,[,ze]=(0,n.useState)(!1),Le=L&&(ie||re)&&(q||!ie),Ie=!se&&(L||P),Ae=re&&null===Y,Pe=re&&null!==Y,{columnAlign:Be,columns:Ee,spacing:Ve,withSquareItems:De}=N||{},_e=void 0===Be?null:Be,Oe=void 0===Ee?null:Ee,He=void 0===Ve?null:Ve,Ze=void 0!==De&&De;let We;t[16]!==$?(We=$||{},t[16]=$,t[17]=We):We=t[17];const{layout:qe,textStyle:Ge,labelBoxStyle:Ye,boxStyle:Ue,visualWidth:Qe}=We,Ke=void 0===qe?null:qe,et=void 0===Ge?null:Ge,tt=void 0===Ye?null:Ye,lt=void 0===Ue?null:Ue,nt=void 0===Qe?null:Qe;let ot;t[18]!==F?(ot=F||{},t[18]=F,t[19]=ot):ot=t[19];const{layout:st,headingTextStyle:ct,contentTextStyle:dt,button:ut,boxStyle:mt}=ot,gt=void 0===st?null:st,yt=void 0===ct?null:ct,pt=void 0===dt?null:dt,vt=void 0===ut?null:ut,xt=void 0===mt?null:mt;let St;t[20]!==vt?(St=vt||{},t[20]=vt,t[21]=St):St=t[21];const{buttonTextStyle:wt,boxStyle:Ct}=St,jt=void 0===wt?null:wt,kt=void 0===Ct?null:Ct,Mt=null!==gt?(0,y.xQ)(gt):"",[Nt,$t]=(0,n.useState)(!1),[Tt,Rt]=(0,n.useState)(null);let zt;t[22]!==Tt?(zt=Tt||{},t[22]=Tt,t[23]=zt):zt=t[23];const{heading:Lt,content:It,largeVisual:At,button:Pt,popupBoxStyle:Bt}=zt,Vt=void 0===Lt?null:Lt,Dt=void 0===It?null:It,Ot=void 0===At?null:At,Ht=void 0===Pt?null:Pt,Zt=void 0===Bt?null:Bt;let Wt;t[24]!==Ot?(Wt=Ot||{},t[24]=Ot,t[25]=Wt):Wt=t[25];const{metadata:qt}=Wt,Gt=void 0===qt?null:qt;let Yt;t[26]!==Gt?(Yt=Gt||{},t[26]=Gt,t[27]=Yt):Yt=t[27];const{width:Ut,height:Qt}=Yt,Xt=void 0===Ut?0:Ut,Jt=void 0===Qt?0:Qt,Kt=Xt>0&&Jt>0?Xt/Jt:null;let el;t[28]!==Vt?(el=he(Vt),t[28]=Vt,t[29]=el):el=t[29];const tl=el;let ll;t[30]!==Vt?(ll=Vt||{},t[30]=Vt,t[31]=ll):ll=t[31];const{textStyle:nl}=ll,al=void 0===nl?null:nl;let il;t[32]!==Dt?(il=he(Dt),t[32]=Dt,t[33]=il):il=t[33];const ol=il;let sl;t[34]!==Dt?(sl=Dt||{},t[34]=Dt,t[35]=sl):sl=t[35];const{textStyle:cl}=sl,dl=void 0===cl?null:cl;let ul;t[36]!==Ht?(ul=Ht||{},t[36]=Ht,t[37]=ul):ul=t[37];const{label:ml,url:gl,inWebView:hl,boxStyle:yl}=ul,pl=void 0===ml?null:ml,fl=void 0===gl?null:gl,bl=void 0!==hl&&hl,vl=void 0===yl?null:yl,[xl,Sl]=(0,n.useState)(!1);let wl,Cl,jl;t[38]!==xl?(wl=()=>{xl&&(Sl(!1),$t(!0))},Cl=[xl,$t,Sl],t[38]=xl,t[39]=wl,t[40]=Cl):(wl=t[39],Cl=t[40]),(0,n.useEffect)(wl,Cl),t[41]!==Pe||t[42]!==le||t[43]!==O?(jl=(e,t,l)=>{if(e.stopPropagation(),Pe)return;const{label:n,heading:a,inWebView:i,url:o}=t||{},s=void 0===n?null:n,r=void 0===a?null:a,c=void 0===o?null:o;void 0!==i&&i&&null!==c?le({url:c}):(Rt(t),Sl(!0));const{body:d}=r||{},m=void 0===d?null:d,g=u(s)?s:(s||{}).body||null;O("click_item",[`#${l+1}`,g||m||""].filter(Ei).join(" "),{linkType:"keypad_item",linkUrl:c||null})},t[41]=Pe,t[42]=le,t[43]=O,t[44]=jl):jl=t[44];const kl=jl;let Ml;t[45]!==Pe||t[46]!==O?(Ml=e=>{Pe||(void 0!==e&&e&&O("close_modal"),$t(!1),ze(!1))},t[45]=Pe,t[46]=O,t[47]=Ml):Ml=t[47];const Nl=Ml;let $l;t[48]!==Pe||t[49]!==Nl||t[50]!==Nt?($l=e=>{Pe||(e.preventDefault(),e.stopPropagation(),Nl(Nt))},t[48]=Pe,t[49]=Nl,t[50]=Nt,t[51]=$l):$l=t[51];const Fl=$l,Rl=Bi,[zl,Ll]=(0,n.useState)(null);let Il;t[52]!==Q?(Il=e=>{const{scrolleeHeight:t}=e,l=void 0===t?0:t;Math.floor(l)>=Math.floor(Q)?Ll("top"):Ll("bottom")},t[52]=Q,t[53]=Il):Il=t[53];const Al=Il;let Pl;t[54]!==Nl||t[55]!==zl?(Pl=e=>{const{active:t,movement:l,velocity:n}=e,a=void 0!==t&&t,[,i]=l,o=void 0===i?null:i,[,s]=n,r=void 0===s?null:s,c="undefined"!=typeof window?window.innerHeight:0,d=c>0&&null!==o?Math.abs(o)/c:0;let u=0;return"top"===zl&&null!==o&&o<0?u=.5*d*-1:"bottom"===zl&&null!==o&&o>0&&(u=.5*d),a?u:null!==r&&(r>1||d>.3)?(Nl(!0),1):0},t[54]=Nl,t[55]=zl,t[56]=Pl):Pl=t[56];const Bl=Pl;let El,Vl,Dl,_l,Ol;t[57]!==ae||t[58]!==ne||t[59]!==Nt?(El=()=>{Nt?ae():ne()},Vl=[Nt,ne,ae],t[57]=ae,t[58]=ne,t[59]=Nt,t[60]=El,t[61]=Vl):(El=t[60],Vl=t[61]),(0,n.useEffect)(El,Vl),t[62]!==L||t[63]!==re||t[64]!==Ae||t[65]!==ie||t[66]!==Nl||t[67]!==Nt?(Dl=()=>{const e=function(e){(!L&&ie||_.current&&!_.current.contains(e.target)&&D.current&&D.current.contains(e.target)&&!Ae&&!re&&Nt)&&(e.preventDefault(),e.stopPropagation(),Nl(Nt))};return document.addEventListener("mouseup",e),()=>{document.removeEventListener("mouseup",e)}},t[62]=L,t[63]=re,t[64]=Ae,t[65]=ie,t[66]=Nl,t[67]=Nt,t[68]=Dl):Dl=t[68],t[69]!==L||t[70]!==re||t[71]!==Ae||t[72]!==Nt?(_l=[L,_,D,Ae,re,Nt],t[69]=L,t[70]=re,t[71]=Ae,t[72]=Nt,t[73]=_l):_l=t[73],(0,n.useEffect)(Dl,_l),t[74]===Symbol.for("react.memo_cache_sentinel")?(Ol=()=>{ze(!1)},t[74]=Ol):Ol=t[74];const Hl=Ol;let Zl;t[75]===Symbol.for("react.memo_cache_sentinel")?(Zl=()=>{ze(!0)},t[75]=Zl):Zl=t[75];const Wl=Zl;let ql;t[76]!==O?(ql=e=>{const t=void 0===e?null:e;if(null!==t){const e=Math.round(100*t);O("scroll",e,{scrollPercent:e})}},t[76]=O,t[77]=ql):ql=t[77];const Gl=ql;let Yl;t[78]!==Nl||t[79]!==Nt?(Yl=()=>{Nl(Nt)},t[78]=Nl,t[79]=Nt,t[80]=Yl):Yl=t[80];const Ul=Yl,Ql=Pi,Jl=Nt?0:1;let Kl,en,tn;t[81]===Symbol.for("react.memo_cache_sentinel")?(Kl={config:{tension:300,friction:30}},en={filterTaps:!0,preventDefault:!0,stopPropagation:!0},t[81]=Kl,t[82]=en):(Kl=t[81],en=t[82]),t[83]!==Bl||t[84]!==Ul||t[85]!==Jl?(tn={disabled:!0,progress:Jl,computeProgress:Bl,onResolve:Ql,springParams:Kl,dragOptions:en,onTap:Ul},t[83]=Bl,t[84]=Ul,t[85]=Jl,t[86]=tn):tn=t[86];const{bind:ln,progress:nn,transitioning:an}=Et(tn);let on,sn;t[87]!==Nl||t[88]!==Nt?(on=()=>{const e=e=>{"Escape"===e.key&&Nt&&Nl(Nt)};return document.addEventListener("keyup",e),()=>{document.removeEventListener("keyup",e)}},sn=[Nt,Nl],t[87]=Nl,t[88]=Nt,t[89]=on,t[90]=sn):(on=t[89],sn=t[90]),(0,n.useEffect)(on,sn);const rn=null===w||0===w.length?Ri:w;let cn;if(t[91]!==lt||t[92]!==tt||t[93]!==Ke||t[94]!==et||t[95]!==nt||t[96]!==L||t[97]!==kl||t[98]!==X||t[99]!==rn){let e;t[101]!==lt||t[102]!==tt||t[103]!==Ke||t[104]!==et||t[105]!==nt||t[106]!==L||t[107]!==kl||t[108]!==X?(e=(e,t)=>{const{id:l,label:n,visual:a,boxStyle:i,heading:o,content:s,url:r,inWebView:c,largeVisual:d}=e||{},m=void 0===l?null:l,g=void 0===n?null:n,h=void 0===a?null:a,y=void 0===i?null:i,p=void 0===o?null:o,f=void 0===s?null:s,b=void 0===r?null:r,v=void 0!==c&&c,x=void 0===d?null:d,{url:S}=h||{},w=void 0===S?null:S,{body:C}=p||{},j=void 0===C?null:C,{body:k}=f||{},M=void 0===k?null:k,N=u(g)?{body:g}:g||{},{textStyle:$}=N||{},F=void 0===$?null:$,{body:T}=N||{},R=void 0===T?null:T,z=R||w||m,A=null===R&&null===h,P=null!==b&&!v,B=!(null!==p&&null!==j&&""!==j||null!==f&&null!==M&&""!==M||null!==x);return(0,I.jsx)("div",{className:Ti.item,children:(0,I.jsx)(ua,{className:Ft([Ti.button,{[Ti.isEmpty]:A,[Ti.isLink]:null!==b,[Ti.disableHover]:B&&null===b}]),layout:Ke||null,external:P,href:P?b:null,focusable:L,onClick:!B||null!==b&&!P?l=>kl(l,e,t):null,textStyle:{...et,...F},buttonStyle:{...lt,...y},label:N,labelBoxStyle:tt,visual:h,visualWidth:null!==nt?`${nt}%`:null,resolution:X,textClassName:Ti.buttonLabel})},z)},t[101]=lt,t[102]=tt,t[103]=Ke,t[104]=et,t[105]=nt,t[106]=L,t[107]=kl,t[108]=X,t[109]=e):e=t[109],cn=rn.map(e),t[91]=lt,t[92]=tt,t[93]=Ke,t[94]=et,t[95]=nt,t[96]=L,t[97]=kl,t[98]=X,t[99]=rn,t[100]=cn}else cn=t[100];const dn=cn;let un,mn,gn,hn;t[110]!==se||t[111]!==ie||t[112]!==w||t[113]!==Y?(un=()=>{if("popup"===Y&&se&&(Rt(zi),$t(!0)),"keypad"===Y&&(Rt(null),$t(!1)),null!==Y&&Y.includes("popup")){const e=Y.split(".").pop(),t=w[e];Rt(t),$t(!0)}null!==Y||ie||(Rt(null),$t(!1))},t[110]=se,t[111]=ie,t[112]=w,t[113]=Y,t[114]=un):un=t[114],t[115]!==ie||t[116]!==w||t[117]!==Y?(mn=[Y,w,ie],t[115]=ie,t[116]=w,t[117]=Y,t[118]=mn):mn=t[118],(0,n.useEffect)(un,mn),t[119]!==ie||t[120]!==an||t[121]!==Y||t[122]!==Nt?(gn=()=>{!ie||null!==Y||Nt||an||Rt(null)},hn=[ie,Y,Nt,an],t[119]=ie,t[120]=an,t[121]=Y,t[122]=Nt,t[123]=gn,t[124]=hn):(gn=t[123],hn=t[124]),(0,n.useEffect)(gn,hn);const yn=Ft([Ti.container,V,{[Ti.isPlaceholder]:se,[Ti.withSquareItems]:Ze}]);let pn,fn;t[125]!==z||t[126]!==Le||t[127]!==E||t[128]!==Q||t[129]!==se||t[130]!==Z||t[131]!==Ie||t[132]!==H||t[133]!==X||t[134]!==U?(pn=se?null:(0,I.jsx)(la,{background:z,width:U,height:Q,resolution:X,playing:Le,muted:H,shouldLoad:Ie,mediaRef:pe(Z,E),className:Ti.background}),t[125]=z,t[126]=Le,t[127]=E,t[128]=Q,t[129]=se,t[130]=Z,t[131]=Ie,t[132]=H,t[133]=X,t[134]=U,t[135]=pn):pn=t[135],t[136]!==se||t[137]!==oe||t[138]!==ie||t[139]!==Fl||t[140]!==Nt||t[141]!==B?(fn=!ie||se||B?null:(0,I.jsx)(Tl.CS.div,{className:Ft([Ti.fixedHeader,{[Ti.open]:Nt}]),children:(0,I.jsx)("div",{className:Ti.buttons,children:(0,I.jsx)(da,{className:Ti.close,onClick:Fl,focusable:!oe&&!se&&Nt,withoutStyle:!0,children:(0,I.jsx)(Xl,{color:"#000",className:Ti.closeIcon})})})}),t[136]=se,t[137]=oe,t[138]=ie,t[139]=Fl,t[140]=Nt,t[141]=B,t[142]=fn):fn=t[142];const bn=!Nt,vn=!Nt,xn=oe||se||Nt;let Sn,wn,Cn,jn;t[143]!==L||t[144]!==Re||t[145]!==ye||t[146]!==me||t[147]!==$e||t[148]!==se||t[149]!==oe||t[150]!==M||t[151]!==K||t[152]!==J?(Sn=se?null:{paddingLeft:M,paddingRight:M,paddingTop:(me?$e:M)+(L&&!oe?J:0),paddingBottom:(ye?Re:M)+(L&&!oe?K:0)},t[143]=L,t[144]=Re,t[145]=ye,t[146]=me,t[147]=$e,t[148]=se,t[149]=oe,t[150]=M,t[151]=K,t[152]=J,t[153]=Sn):Sn=t[153],t[154]!==me||t[155]!==T||t[156]!==Me||t[157]!==se||t[158]!==oe||t[159]!==M||t[160]!==J?(wn=!se&&me?(0,I.jsx)("div",{ref:Me,className:Ti.header,style:{paddingTop:M/2,paddingLeft:M,paddingRight:M,paddingBottom:M,transform:oe?null:`translate(0, ${J}px)`},children:(0,I.jsx)(xa,{...T})}):null,t[154]=me,t[155]=T,t[156]=Me,t[157]=se,t[158]=oe,t[159]=M,t[160]=J,t[161]=wn):wn=t[161],t[162]===Symbol.for("react.memo_cache_sentinel")?(Cn=(0,I.jsx)(A.sA,{id:"BSTWf8",defaultMessage:"Title"}),jn=Ft([Ti.empty,Ti.emptyHeading]),t[162]=Cn,t[163]=jn):(Cn=t[162],jn=t[163]);const kn=!xe;let Mn,Nn,$n,Fn;t[164]!==xe||t[165]!==C||t[166]!==Ce?(Mn=xe?(0,I.jsx)(wa,{className:Ti.title,...C,textStyle:Ce}):null,t[164]=xe,t[165]=C,t[166]=Ce,t[167]=Mn):Mn=t[167],t[168]!==kn||t[169]!==Mn?(Nn=(0,I.jsx)(zn,{placeholder:"Title",emptyLabel:Cn,emptyClassName:jn,isEmpty:kn,children:Mn}),t[168]=kn,t[169]=Mn,t[170]=Nn):Nn=t[170],t[171]===Symbol.for("react.memo_cache_sentinel")?($n=(0,I.jsx)(A.sA,{id:"ZG8/oK",defaultMessage:"Subtitle"}),Fn=Ft([Ti.empty,Ti.emptyHeading]),t[171]=$n,t[172]=Fn):($n=t[171],Fn=t[172]);const Tn=!ke;let Rn,Ln,In;t[173]!==ke||t[174]!==j?(Rn=ke?(0,I.jsx)(Wn,{className:Ti.subtitle,...j}):null,t[173]=ke,t[174]=j,t[175]=Rn):Rn=t[175],t[176]!==Tn||t[177]!==Rn?(Ln=(0,I.jsx)(zn,{placeholder:"Subtitle",emptyLabel:$n,emptyClassName:Fn,isEmpty:Tn,children:Rn}),t[176]=Tn,t[177]=Rn,t[178]=Ln):Ln=t[178],t[179]!==se?(In=Ft([Ti.grid,{[Ti.gridPlaceholder]:se}]),t[179]=se,t[180]=In):In=t[180];const An=se?3:Oe,Pn=se?2:He;let Bn,En,Vn,Dn,_n,On,Hn,Zn,qn;t[181]!==_e||t[182]!==dn||t[183]!==In||t[184]!==An||t[185]!==Pn?(Bn=(0,I.jsx)(Fi,{className:In,align:_e,columns:An,spacing:Pn,items:dn}),t[181]=_e,t[182]=dn,t[183]=In,t[184]=An,t[185]=Pn,t[186]=Bn):Bn=t[186],t[187]!==k||t[188]!==Sn||t[189]!==wn||t[190]!==Nn||t[191]!==Ln||t[192]!==Bn||t[193]!==U?(En=(0,I.jsxs)($a,{className:Ti.layout,verticalAlign:k,width:U,style:Sn,children:[wn,Nn,Ln,Bn]}),t[187]=k,t[188]=Sn,t[189]=wn,t[190]=Nn,t[191]=Ln,t[192]=Bn,t[193]=U,t[194]=En):En=t[194],t[195]===Symbol.for("react.memo_cache_sentinel")?(Vn=Ft([Ti.popupBackdrop]),t[195]=Vn):Vn=t[195],t[196]!==nn?(Dn=nn.to(Ai),t[196]=nn,t[197]=Dn):Dn=t[197],t[198]!==Dn?(_n=(0,I.jsx)(Tl.CS.div,{className:Vn,style:{opacity:Dn}}),t[198]=Dn,t[199]=_n):_n=t[199],t[200]!==nn?(On=nn.to(Ii),t[200]=nn,t[201]=On):On=t[201],t[202]!==nn?(Hn=nn.to(Li),t[202]=nn,t[203]=Hn):Hn=t[203],t[204]!==On||t[205]!==Hn?(Zn={transform:On,pointerEvents:Hn},t[204]=On,t[205]=Hn,t[206]=Zn):Zn=t[206],t[207]!==ln?(qn=ln(),t[207]=ln,t[208]=qn):qn=t[208];const Gn=oe||se,Yn=Nt?null:1,Un=Ti[Mt],Qn=null===xt;let Xn,Jn,Kn,ea,ta,aa,ia;t[209]!==Un||t[210]!==Qn?(Xn=Ft([Ti.popupInner,Un,{[Ti.withShadow]:Qn}]),t[209]=Un,t[210]=Qn,t[211]=Xn):Xn=t[211],t[212]===Symbol.for("react.memo_cache_sentinel")?(Jn=te(zi),t[212]=Jn):Jn=t[212],t[213]!==xt?(Kn=te(xt),t[213]=xt,t[214]=Kn):Kn=t[214],t[215]!==Zt?(ea=te(Zt),t[215]=Zt,t[216]=ea):ea=t[216],t[217]!==Kn||t[218]!==ea?(ta={...Jn,...Kn,...ea},t[217]=Kn,t[218]=ea,t[219]=ta):ta=t[219],t[220]===Symbol.for("react.memo_cache_sentinel")?(aa=(0,I.jsx)(A.sA,{id:"IE7U/Q",defaultMessage:"Heading"}),ia=Ft([Ti.empty,Ti.emptyHeading]),t[220]=aa,t[221]=ia):(aa=t[220],ia=t[221]);const oa=!tl;let sa,ca,ma,ga;t[222]!==tl||t[223]!==yt||t[224]!==Vt||t[225]!==al?(sa=tl?(0,I.jsx)(wa,{className:Ti.popupHeading,...Vt,textStyle:{...yt,...al}}):null,t[222]=tl,t[223]=yt,t[224]=Vt,t[225]=al,t[226]=sa):sa=t[226],t[227]!==oa||t[228]!==sa?(ca=(0,I.jsx)(zn,{emptyLabel:aa,emptyClassName:ia,isEmpty:oa,children:sa}),t[227]=oa,t[228]=sa,t[229]=ca):ca=t[229],t[230]===Symbol.for("react.memo_cache_sentinel")?(ma=(0,I.jsx)(A.sA,{id:"JRZoe6",defaultMessage:"Content"}),ga=Ft([Ti.empty,Ti.emptyContent]),t[230]=ma,t[231]=ga):(ma=t[230],ga=t[231]);const ha=!ol;let ya,ba,va,Sa;t[232]!==pt||t[233]!==ol||t[234]!==Dt||t[235]!==dl?(ya=ol?(0,I.jsx)(Wn,{className:Ti.popupContent,...Dt,textStyle:{...pt,...dl}}):null,t[232]=pt,t[233]=ol,t[234]=Dt,t[235]=dl,t[236]=ya):ya=t[236],t[237]!==ha||t[238]!==ya?(ba=(0,I.jsx)(zn,{placeholder:"popupContent",emptyLabel:ma,emptyClassName:ga,isEmpty:ha,children:ya}),t[237]=ha,t[238]=ya,t[239]=ba):ba=t[239],t[240]===Symbol.for("react.memo_cache_sentinel")?(va=(0,I.jsx)(A.sA,{id:"z4Pr+g",defaultMessage:"Visual (Image or Video)"}),Sa=Ft([Ti.empty,Ti.emptyVisual]),t[240]=va,t[241]=Sa):(va=t[240],Sa=t[241]);const Ca=null===Ot;let ja,ka,Ma,Na;t[242]!==Ot||t[243]!==Kt||t[244]!==X?(ja=null!==Ot?(0,I.jsx)(ra,{className:Ti.popupVisual,imageClassName:Ti.popupVisualImage,videoClassName:Ti.popupVisualVideo,media:Ot,resolution:X,ratio:Kt,width:"100%",height:"auto"}):null,t[242]=Ot,t[243]=Kt,t[244]=X,t[245]=ja):ja=t[245],t[246]!==Ca||t[247]!==ja?(ka=(0,I.jsx)(zn,{placeholder:"image",emptyLabel:va,emptyClassName:Sa,isEmpty:Ca,children:ja}),t[246]=Ca,t[247]=ja,t[248]=ka):ka=t[248],t[249]===Symbol.for("react.memo_cache_sentinel")?(Ma=(0,I.jsx)(A.sA,{id:"N7Kj8z",defaultMessage:"Button"}),Na=Ft([Ti.empty,Ti.emptyCTA]),t[249]=Ma,t[250]=Na):(Ma=t[249],Na=t[250]);const Fa=null===Ht;let Ra,za,La,Ia,Aa,Pa,Ba,Ea,Va,Da;return t[251]!==pl||t[252]!==fl||t[253]!==Rl||t[254]!==le||t[255]!==Ht||t[256]!==vl||t[257]!==kt||t[258]!==jt||t[259]!==bl?(Ra=null!==Ht?(0,I.jsx)(pa,{className:Ti.popupCTA,label:{...jt,...pl},url:fl,onClick:Rl,inWebView:bl,openWebView:le,type:"click",boxStyle:{...kt,...vl}}):null,t[251]=pl,t[252]=fl,t[253]=Rl,t[254]=le,t[255]=Ht,t[256]=vl,t[257]=kt,t[258]=jt,t[259]=bl,t[260]=Ra):Ra=t[260],t[261]!==Fa||t[262]!==Ra?(za=(0,I.jsx)(zn,{placeholder:"button",emptyLabel:Ma,emptyClassName:Na,isEmpty:Fa,children:Ra}),t[261]=Fa,t[262]=Ra,t[263]=za):za=t[263],t[264]!==Xn||t[265]!==ta||t[266]!==ca||t[267]!==ba||t[268]!==ka||t[269]!==za?(La=(0,I.jsxs)("div",{ref:_,className:Xn,style:ta,children:[ca,ba,ka,za]}),t[264]=Xn,t[265]=ta,t[266]=ca,t[267]=ba,t[268]=ka,t[269]=za,t[270]=La):La=t[270],t[271]!==Hl||t[272]!==Al||t[273]!==Wl||t[274]!==Gn||t[275]!==Yn||t[276]!==La?(Ia=(0,I.jsx)(Ta,{disabled:Gn,verticalAlign:"middle",withArrow:!1,scrollPosition:Yn,onScrolledBottom:Hl,onScrolledNotBottom:Wl,onScrollHeightChange:Al,className:Ti.popupScroll,withShadow:!0,children:La}),t[271]=Hl,t[272]=Al,t[273]=Wl,t[274]=Gn,t[275]=Yn,t[276]=La,t[277]=Ia):Ia=t[277],t[278]!==Zn||t[279]!==qn||t[280]!==Ia?(Aa=(0,I.jsx)(Tl.CS.div,{className:Ti.popup,style:Zn,...qn,children:Ia}),t[278]=Zn,t[279]=qn,t[280]=Ia,t[281]=Aa):Aa=t[281],t[282]!==_n||t[283]!==Aa?(Pa=(0,I.jsxs)(I.Fragment,{children:[_n,Aa]}),t[282]=_n,t[283]=Aa,t[284]=Pa):Pa=t[284],t[285]!==Q||t[286]!==k||t[287]!==Gl||t[288]!==xn||t[289]!==En||t[290]!==Pa||t[291]!==bn||t[292]!==vn||t[293]!==U?(Ba=(0,I.jsxs)(Ta,{width:U,height:Q,verticalAlign:k,withArrow:bn,withShadow:vn,disabled:xn,onScrolledTrigger:Gl,children:[En,Pa]}),t[285]=Q,t[286]=k,t[287]=Gl,t[288]=xn,t[289]=En,t[290]=Pa,t[291]=bn,t[292]=vn,t[293]=U,t[294]=Ba):Ba=t[294],t[295]!==L||t[296]!==be||t[297]!==Fe||t[298]!==ye||t[299]!==se||t[300]!==oe||t[301]!==M||t[302]!==K||t[303]!==ee?(Ea=!se&&ye?(0,I.jsx)("div",{ref:Fe,className:Ti.footer,style:{transform:L&&!oe?`translate(0, -${K}px)`:null,paddingLeft:Math.max(M/2,ee),paddingRight:Math.max(M/2,ee),paddingBottom:M/2,paddingTop:M},children:(0,I.jsx)(fa,{...be})}):null,t[295]=L,t[296]=be,t[297]=Fe,t[298]=ye,t[299]=se,t[300]=oe,t[301]=M,t[302]=K,t[303]=ee,t[304]=Ea):Ea=t[304],t[305]!==Q||t[306]!==Ba||t[307]!==Ea||t[308]!==U?(Va=(0,I.jsxs)(na,{width:U,height:Q,className:Ti.inner,children:[Ba,Ea]}),t[305]=Q,t[306]=Ba,t[307]=Ea,t[308]=U,t[309]=Va):Va=t[309],t[310]!==Va||t[311]!==yn||t[312]!==pn||t[313]!==fn?(Da=(0,I.jsxs)("div",{ref:D,className:yn,"data-screen-ready":!0,children:[pn,fn,Va]}),t[310]=Va,t[311]=yn,t[312]=pn,t[313]=fn,t[314]=Da):Da=t[314],Da},states:[{id:"keypad",label:(0,A.zR)({id:"Z4f5qh",defaultMessage:"Buttons"}),fields:[{name:"layout",type:"screen-layout",defaultValue:"middle",label:(0,A.zR)({id:"4iBXj2",defaultMessage:"Layout"})},{name:"items",type:"buttons",label:(0,A.zR)({id:"fbUW2U",defaultMessage:"Items"}),isSection:!0},{name:"keypadLayout",type:"keypad-layout",isList:!0,withoutLabel:!0,defaultValue:{columnAlign:"middle",columns:3,spacing:2,withSquareItems:!1},label:(0,A.zR)({id:"FjuRaw",defaultMessage:"Keypad settings"})},{name:"buttonStyles",type:"rich-button-styles",defaultValue:{layout:"label-bottom",boxStyle:{backgroundColor:{alpha:.15,color:"#000000"}}},label:(0,A.zR)({id:"Arl5Ze",defaultMessage:"Button styles"}),isList:!0}]},{id:"popups",label:(0,A.zR)({id:"FYm4w+",defaultMessage:"Popups"}),fields:[{name:"popupStyles",type:"fields",defaultValue:{layout:"content-top"},fields:[{name:"layout",type:"card-layout",label:(0,A.zR)({id:"OPxJx/",defaultMessage:"Layout"})},{name:"headingTextStyle",type:"text-style-form",label:(0,A.zR)({id:"zrK6ak",defaultMessage:"Heading text style"})},{name:"contentTextStyle",type:"text-style-form",label:(0,A.zR)({id:"z9nSIG",defaultMessage:"Content text style"})},{name:"boxStyle",type:"box-style-form",label:(0,A.zR)({id:"p1pghO",defaultMessage:"Box style"})},{name:"button",type:"fields",isList:!0,label:(0,A.zR)({id:"i6bmbD",defaultMessage:"Button"}),fields:[{name:"buttonTextStyle",type:"text-style-form",label:(0,A.zR)({id:"p5RHzq",defaultMessage:"Button text style"})},{name:"buttonStyle",type:"box-style-form",label:(0,A.zR)({id:"nno1Pq",defaultMessage:"Button style"})}]}]}]},{id:"popup",label:(0,A.zR)({id:"sSahY1",defaultMessage:"Popup"}),defaultValue:[],repeatable:!0,fieldName:"items",fields:[{name:"heading",type:"heading-element",label:(0,A.zR)({id:"6iR9Mt",defaultMessage:"Heading"})},{name:"content",type:"text-element",label:(0,A.zR)({id:"uoF5Pv",defaultMessage:"Content"}),theme:{label:{textStyle:"text"}}},{name:"largeVisual",type:"visual",label:(0,A.zR)({id:"HwqzVR",defaultMessage:"Visual"})},{name:"popupBoxStyle",type:"box-style-form",label:(0,A.zR)({id:"p1pghO",defaultMessage:"Box style"})},{name:"button",type:"button-link",label:(0,A.zR)({id:"i6bmbD",defaultMessage:"Button"}),theme:{label:{textStyle:"button"}}}]}],fields:[{name:"title",type:"heading-element",theme:{textStyle:"heading1"},label:(0,A.zR)({id:"N25iDO",defaultMessage:"Title"})},{name:"subtitle",type:"text-element",theme:{textStyle:"text"},label:(0,A.zR)({id:"EcZYpr",defaultMessage:"Subtitle"})},{name:"background",type:"background",label:(0,A.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,A.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,A.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]}],Di=[{elementType:"geometry",stylers:[{color:"#f5f5f5"}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{elementType:"labels.text.stroke",stylers:[{color:"#f5f5f5"}]},{featureType:"administrative.land_parcel",stylers:[{visibility:"off"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#bdbdbd"}]},{featureType:"administrative.neighborhood",stylers:[{visibility:"off"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"poi",elementType:"labels.text",stylers:[{visibility:"off"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"poi.business",stylers:[{visibility:"off"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#e5e5e5"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#ffffff"}]},{featureType:"road",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"road",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"road.arterial",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"road.arterial",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#dadada"}]},{featureType:"road.highway",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"road.local",stylers:[{visibility:"off"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"transit",stylers:[{visibility:"off"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{color:"#e5e5e5"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#c9c9c9"}]},{featureType:"water",elementType:"labels.text",stylers:[{visibility:"off"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]}];const _i={onClick:["click",e=>e.getCenter()],onCenterChanged:["center_changed",e=>e.getCenter()],onBoundsChanged:["bounds_changed",e=>e.getBounds()],onDragEnd:["dragend",e=>e.getCenter()],onTilesLoaded:["tilesloaded",()=>{}]};var Oi="micromag-element-map-preventScroll";const Hi={onTouchMove:e=>e.stopPropagation(),onTouchStart:e=>e.stopPropagation(),onTouchEnd:e=>e.stopPropagation(),onPointerMove:e=>e.stopPropagation(),onPointerUp:e=>e.stopPropagation(),onPointerDown:e=>e.stopPropagation()};function Zi(e){const t=(0,i.c)(30),{center:l,zoom:a,maxZoom:o,bounds:s,draggable:r,withoutStyle:c,events:d,fitBounds:u,zoomControl:m,mapTypeControl:g,scaleControl:h,streetViewControl:y,rotateControl:p,fullscreenControl:f,className:b,children:v,focusable:x}=e,S=void 0===l?null:l,w=void 0===a?null:a,C=void 0===o?16:o,j=void 0===s?null:s,k=void 0===r||r,M=void 0!==c&&c,N=void 0===d?null:d,$=void 0!==u&&u,F=void 0!==m&&m,T=void 0!==g&&g,R=void 0!==h&&h,z=void 0!==y&&y,L=void 0!==p&&p,A=void 0!==f&&f,P=void 0===b?null:b,B=void 0===v?null:v,E=void 0===x||x;let V;t[0]!==j||t[1]!==S||t[2]!==k||t[3]!==N||t[4]!==$||t[5]!==A||t[6]!==T||t[7]!==C||t[8]!==L||t[9]!==R||t[10]!==z||t[11]!==M||t[12]!==w||t[13]!==F?(V={zoom:w,maxZoom:C,bounds:j,draggable:k,fitBounds:$,center:S,events:N,withoutStyle:M,zoomControl:F,mapTypeControl:T,scaleControl:R,streetViewControl:z,rotateControl:L,fullscreenControl:A},t[0]=j,t[1]=S,t[2]=k,t[3]=N,t[4]=$,t[5]=A,t[6]=T,t[7]=C,t[8]=L,t[9]=R,t[10]=z,t[11]=M,t[12]=w,t[13]=F,t[14]=V):V=t[14];const{map:D,ref:_}=function({zoom:e,maxZoom:t=null,center:l=null,withoutStyle:a=!1,fitBounds:i=!1,bounds:o=null,events:s,draggable:r=!1,zoomControl:c,mapTypeControl:d,scaleControl:u,streetViewControl:m,rotateControl:g,fullscreenControl:h}){const y=Ge(),[p,f]=(0,n.useState)(!1),b=(0,n.useRef)(null),v=(0,n.useRef)(null),{ref:x,width:S=null,height:w=null}=_t();(0,n.useEffect)(()=>{const{current:e}=v;if(null!==e&&null!==l){const{lat:t=null,lng:n=null}=l||{};e.panTo({lat:t||0,lng:n||0})}},[l]),(0,n.useEffect)(()=>{const{current:l}=v;null!==l&&null!==e&&l.setZoom(Math.min(t,e))},[e,t]);const C=(0,n.useCallback)((e,l)=>{null===l||l.equals(e.getBounds())||(e.fitBounds(l),e.getZoom()>t&&e.setZoom(t),e.panToBounds(l))},[t]);return(0,n.useEffect)(()=>{const{current:e}=v;null!==e&&i&&C(e,o)},[C,o,i,S,w]),(0,n.useEffect)(()=>{const{current:e}=v;p&&null!==e&&e.setOptions({draggable:r,scrollWheel:r,disableDoubleClickZoom:!r,gestureHandling:r?"cooperative":"none"})},[p,r]),(0,n.useEffect)(()=>{if(null===y||null===b.current||null!==v.current)return()=>{};const t=new y.maps.Map(b.current,{zoom:e,center:l,styles:a?null:Di,zoomControl:c,mapTypeControl:d,scaleControl:u,streetViewControl:m,rotateControl:g,fullscreenControl:h});return i&&C(t,o),v.current=t,null!==s&&Object.keys(s).forEach(e=>{null!==s[e]&&t.addListener(_i[e][0],()=>s[e](_i[e][1](t)))}),f(!0),()=>{}},[y,f]),{ref:(0,n.useCallback)(e=>{x.current=e,b.current=e},[]),map:v.current,ready:p,loading:!p}}(V),O=!k;let H;t[15]!==P||t[16]!==O?(H=Ft(["micromag-element-map-container",P,{[Oi]:O}]),t[15]=P,t[16]=O,t[17]=H):H=t[17];const Z=E?"0":"-1";let W,q,G;if(t[18]!==_||t[19]!==Z?(W=(0,I.jsx)("div",{ref:_,className:"micromag-element-map-map",tabIndex:Z}),t[18]=_,t[19]=Z,t[20]=W):W=t[20],t[21]!==B||t[22]!==D){let e;t[24]!==D?(e=e=>n.cloneElement(e,{map:D}),t[24]=D,t[25]=e):e=t[25],q=n.Children.map(B,e),t[21]=B,t[22]=D,t[23]=q}else q=t[23];return t[26]!==H||t[27]!==W||t[28]!==q?(G=(0,I.jsxs)("div",{className:H,...Hi,children:[W,q]}),t[26]=H,t[27]=W,t[28]=q,t[29]=G):G=t[29],G}const Wi={onClick:"click",onDoubleClick:"dblclick"};function qi(e){const t=(0,i.c)(9),{map:l,position:a,type:o,events:s,active:r,title:c,image:d,iconSize:u}=e,m=void 0===l?null:l,h=void 0===s?null:s,y=void 0===r||r,p=void 0===c?null:c,f=void 0===d?null:d;let b;t[0]!==u?(b=void 0===u?{width:50,height:50}:u,t[0]=u,t[1]=b):b=t[1];const v=b,x=f||(y?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAArCAYAAACJrvP4AAAC+ElEQVR4AWIgBP7//88DxCGAWssB1pIkCsO1iLG27WCtYG17x3Ywtm3bthlNMLZtz/NrXvStM/cbP/Vln6RSOfq/xqlOi2nO10bxUe26RRKLRdnxiZOnTqVpQO6NOc5AiYSd6O4dRcbAnlJQv4rk/fWt5HzzkbDjEydPHfX0pQr6Q4dcI7RqqZP7Z1z8i/cSLuqop4/+ZCB3iOt214UFVkG9SoikvOijHx1fGAXeqWNm7u9f0Zj2oh+dCoHcOlfkA0oZiB66ZYaBZ53uo/N7pOiWGBqmyF21xKEg24uhQf/mOWJsmaYgYOiiDwfYn5yTRE2X42vNWy/KyKcelZ6PPMCOTzwhEH04ii8ABzMRaNwzj0uXB+8rs4gnAqIPR/HJ4UvgV8wdlICUXOR9+9GHo/jG8enxK+aR+cDI+/ajD0eJ50Vzvv3Yt5h35Acj79ePPhylbetyXuVfA70z9OEoXVy0pbBl40DfGfpwVMy1R1kTRnpBTqM1cZQHh3P2Tiwv1wzynKEPR2HaNI4VNmsQyBcE3bj+UTgYE1kncmCvFQQMXRGpfQsmcre27fNFHVtkFYSeOM459OHcDvw+/mwtzkQ2QOigh64qz7RlrXRmTw1nA4ZOXG+F3z/Iozrkmvm1/80IRD866CkfY1hqeSeOGZnA6EdHJWPaNjdYw/tH0wHRR38q/43Padcx8/75ISUQ9fTRr1IxiUZbR7ZtSulxUk9fsoySZ8+xjxZ1bpkUiDrq6Uv3f/9TXVxk53z3qS+IPHXUq0xMbHuRNWGk77CQp05laiLysoRCbu4vn5cLIk6eOpUN06a52J46zisPRpy8ypaJyOvaMqycrz4sAcInTl5l07RprC3u1qYEDJ+4yraJSI3w5vVmiXO1dYNJPAjYQzo+CDlfvi+A2PGJqyBMG8aegiY1BRg7vgrKYqY53RjUS4Cx4wcGk1isa3zUNTB2/OBgIvVDq5bawNjxg4R96Z07U5T393fCjh8k7E7t2PPEi7rs+Kn0XwF82Z38cjx5pwAAAABJRU5ErkJggg==":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAArCAYAAACJrvP4AAAACXBIWXMAAAsTAAALEwEAmpwYAAAFFmlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDAgNzkuMTYwNDUxLCAyMDE3LzA1LzA2LTAxOjA4OjIxICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgKE1hY2ludG9zaCkiIHhtcDpDcmVhdGVEYXRlPSIyMDIwLTA0LTA3VDE2OjQ0OjQ4LTA0OjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAyMC0wNC0wN1QxNzo1MToxMi0wNDowMCIgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMC0wNC0wN1QxNzo1MToxMi0wNDowMCIgZGM6Zm9ybWF0PSJpbWFnZS9wbmciIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDoxMDRhNzAzOS01Mjk1LTQzNjktYmMxNS1kYzEzODM3NDQ0MmIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MTA0YTcwMzktNTI5NS00MzY5LWJjMTUtZGMxMzgzNzQ0NDJiIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6MTA0YTcwMzktNTI5NS00MzY5LWJjMTUtZGMxMzgzNzQ0NDJiIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDoxMDRhNzAzOS01Mjk1LTQzNjktYmMxNS1kYzEzODM3NDQ0MmIiIHN0RXZ0OndoZW49IjIwMjAtMDQtMDdUMTY6NDQ6NDgtMDQ6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDQyAoTWFjaW50b3NoKSIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5lxvhNAAAEzUlEQVRYhbWXTWgbRxiG329mNLuKtVrrEMlEQsL4YhNIIoiQffFhcwkG44MugRBIXFpyq2+BUnJom0Mgh/bWQ35EcimE3kJoAg605BZMqLB7SEKMChKKA7bDypK1vz1UNrZr70qx+l52Z76fZ2b4ZoYhhMj3/RiAi51O55LneWeFECeFEEOO42w5jvORMfanoii/APiNiJpBuSgAMmxZ1k3O+fVarWZVKhW9Xq/DNE20221Eo1FomoZTp07hzJkzn9LptHRd92cp5XdEtNkzzPf9km3bD1ZWVsTi4mK02QwcMAAgFovhwoUL7dOnTzuRSOQaEf0aCPN9n2zb/t627YVHjx4NNRqNUMhBjYyM4MqVK1uRSORHKeW3R8Isy/phc3Pz63K5HGu1Wn2DdnTixAlcvXq1OTw8/NNeINv56S7dwnFBANBqtVAul2O2bS/4vl/a6acuaNi27b/v37+vfc7SHaWRkRHMz8+bkUgkS0SbDAAsy7q5vLwsBgkCgEajgZWVFWFZ1k0AYL7vxzjn11+8eBEdKKmrxcXFKOf8uu/7MQHgYq1Ws5rNZiisWq1ibW1td58lk0nkcrnAmGaziVqtZmWz2Yui0+lcqlQqehjo9evX2NjY2G2bpgnTNLG+vo58Ph8YW6lU9FQqdYl5nne2Xq+HzmgvaK82NjZQrVYD4+v1OjzPO8uEECdN0wx0XltbO5bdNE0IIU4yzvlQu90OdB6EnXM+xGzbXo/H44HO0Whw7YTZ4/E4bNteZ57nVROJRKBzMpk8lj2RSMDzvCrjnC+l02k3yDmXy+GoASUSidDyz2QyLud8iUkp7xYKheBFB5DP5zE2NgZN0yCEgKZpGBsbCy17ADh//nxbSnlXENFSu93+MDo6GltdXQ0MyuVyobM4qNHRUUQikQYRLTEAkFLeNgxjq68sPcowjC1VVW8D3SuGMfYgmUx+Gh8fHyhofHwcqVRqE0B5F0ZEjpTyy5mZmS3O+UBAnHPMzMxsRSKRr4jI2YV1gU+llH8YhmENAmYYhiWl/J2Inu70sb0OiqLMFwoFK2zfhCmZTKJQKFiKonyxt38fjIganPOFUqkUfFiGqFQqmZzzBSLadxuzg46c83u6ri8Xi0Xnc0DFYtHRdX2Zc37voO0/MABQFOWyYRjbYWfmQcXjcRiGsa0oyuXD7IfCiGhVCHFrbm6ur+Wcm5szhRC3iOjQ0+FQGAAwxu5kMpkPExMTPYEmJiaQyWQ+MMbuHJnzKEN3712bnZ1tCSECQUIIzM7OtqSU13b2VF+wLvAl5/z51NRUYLFMTU05nPPnRPQyyC8QBgBSyhvT09OOqqqH2lVVxfT0tCOlvBGWKxRGRG8cx3k2OTl56J03OTnpOo7zjIjeHBsGAKqqflMsFrcZ2+/OGEOxWNxWVfWbXvL0BCOivwC8OliZ3farrn0wMABQVfXhuXPn9r0K8/l8U1XVh73m6BkG4EkulxNE/z7piAjZbFYAeDJwGBF9dF33bTqdBgCk02m4rvuWiD4OHNZVJZVKAQC630o/wX3BFEV5r2maDwCapvmKorz/32BEVNd1vQ0Auq63iSj4RXIcGIB32WzW1jQN2WzWBvCuz/je5fs+63Q6j13XbXc6nce+7/c12H8A3aa8zLNKuWMAAAAASUVORK5CYII=");let S;return t[2]!==h||t[3]!==v||t[4]!==a||t[5]!==x||t[6]!==p||t[7]!==o?(S={position:a,type:o,events:h,title:p,icon:x,iconSize:v},t[2]=h,t[3]=v,t[4]=a,t[5]=x,t[6]=p,t[7]=o,t[8]=S):S=t[8],function(e=null,t=null){const{position:l=null,icon:a=null,iconSize:i=null,events:o=null,title:s=null}=t||{},r=Ge(),c=(0,n.useRef)(null);(0,n.useEffect)(()=>{const{current:e}=c;null!==e&&null!==l&&e.setPosition(l)},[l]);const d=(0,n.useCallback)((e,t)=>{if(null!==r)if(g(t)){const{url:l=null}=t||{};e.setIcon({url:l,scaledSize:new r.maps.Size(i.width,i.height)})}else e.setIcon(t)},[r,i]);(0,n.useEffect)(()=>{const{current:e}=c;null!==e&&null!==r&&d(e,a)},[r,a,d]),(0,n.useEffect)(()=>{if(null===r||null===e||null!==c.current)return()=>{};const t=new r.maps.Marker({position:l,map:e,title:s});return d(t,a),Object.keys(o).forEach(e=>{t.addListener(Wi[e],o[e])}),c.current=t,()=>{r.maps.event.clearInstanceListeners(t),t.setMap(null)}},[r,e]),c.current}(m,S),null}function Gi(e){const t=(0,i.c)(45),{center:l,zoom:a,draggable:o,markers:s,onClickMap:r,onClickMarker:c,className:d,onReady:u,onCenterChanged:m,onBoundsChanged:g,onDrag:h,onDragEnd:y,withoutStyle:p,fitBounds:f,zoomControl:b,mapTypeControl:v,scaleControl:x,streetViewControl:S,rotateControl:w,fullscreenControl:C,focusable:j}=e,k=void 0===l?null:l,M=void 0===a?null:a,N=void 0===o||o,$=void 0===s?null:s,F=void 0===r?null:r,T=void 0===c?null:c,R=void 0===d?null:d,z=void 0===u?null:u,L=void 0===m?null:m,A=void 0===g?null:g,P=void 0===h?null:h,B=void 0===y?null:y,E=void 0!==p&&p,V=void 0!==f&&f,D=void 0!==b&&b,_=void 0!==v&&v,O=void 0!==x&&x,H=void 0!==S&&S,Z=void 0!==w&&w,W=void 0!==C&&C,q=void 0===j||j;let G;t[0]!==$?(G=$||[],t[0]=$,t[1]=G):G=t[1];const Y=G,U=Ge();let Q;t[2]!==F?(Q=e=>{null!==F&&F(e)},t[2]=F,t[3]=Q):Q=t[3];const X=Q;let J;if(t[4]!==U||t[5]!==Y){e:{const e=(Y||[]).filter(Yi);if(null===U||null===e||0===e.length){J=null;break e}let l;t[7]!==U.maps.LatLng?(l=(e,t)=>{const{geoPosition:l}=t,n=void 0===l?null:l,{lat:a,lng:i}=n||{},o=void 0===a?null:a,s=void 0===i?null:i;return null!==o&&null!==s&&e.extend(new U.maps.LatLng(o,s)),e},t[7]=U.maps.LatLng,t[8]=l):l=t[8],J=e.reduce(l,new U.maps.LatLngBounds)}t[4]=U,t[5]=Y,t[6]=J}else J=t[6];const K=J,[ee,te]=(0,n.useState)(!1);let le,ne,ae;t[9]!==U||t[10]!==ee||t[11]!==z?(le=()=>{null!==U&&ee&&null!==z&&z(U)},ne=[U,ee,z],t[9]=U,t[10]=ee,t[11]=z,t[12]=le,t[13]=ne):(le=t[12],ne=t[13]),(0,n.useEffect)(le,ne),t[14]===Symbol.for("react.memo_cache_sentinel")?(ae=()=>te(!0),t[14]=ae):ae=t[14];const ie=ae;let oe;t[15]!==A||t[16]!==L||t[17]!==X||t[18]!==P||t[19]!==B?(oe={onClick:X,onCenterChanged:L,onBoundsChanged:A,onDrag:P,onDragEnd:B,onTilesLoaded:ie},t[15]=A,t[16]=L,t[17]=X,t[18]=P,t[19]=B,t[20]=oe):oe=t[20];const se=oe;let re,ce,de,ue;return t[21]!==R?(re=Ft(["micromag-element-map-container",R]),t[21]=R,t[22]=re):re=t[22],t[23]!==Y||t[24]!==T?(ce=null!==Y?Y.map((e,t)=>{const{active:l,geoPosition:n,image:a,title:i}=e,o=void 0===l||l,s=void 0===n?null:n,r=void 0===a?null:a,c=void 0===i?null:i;return null!==s&&null!==(s.lat||null)&&null!==(s.lng||null)?(0,I.jsx)(qi,{active:o,title:null!==c&&(c.body,1)?c.body:null,image:r,position:s,events:{onClick:null!==T?e=>T(e,t):()=>console.log(t)}},`marker-${t}`):(0,I.jsx)("div",{})}):null,t[23]=Y,t[24]=T,t[25]=ce):ce=t[25],t[26]!==K||t[27]!==k||t[28]!==N||t[29]!==se||t[30]!==V||t[31]!==q||t[32]!==W||t[33]!==_||t[34]!==Z||t[35]!==O||t[36]!==H||t[37]!==ce||t[38]!==E||t[39]!==M||t[40]!==D?(de=(0,I.jsx)(Zi,{center:k,zoom:M,withoutStyle:E,bounds:K,draggable:N,events:se,fitBounds:V,zoomControl:D,mapTypeControl:_,scaleControl:O,streetViewControl:H,rotateControl:Z,fullscreenControl:W,focusable:q,children:ce}),t[26]=K,t[27]=k,t[28]=N,t[29]=se,t[30]=V,t[31]=q,t[32]=W,t[33]=_,t[34]=Z,t[35]=O,t[36]=H,t[37]=ce,t[38]=E,t[39]=M,t[40]=D,t[41]=de):de=t[41],t[42]!==re||t[43]!==de?(ue=(0,I.jsx)("div",{className:re,children:de}),t[42]=re,t[43]=de,t[44]=ue):ue=t[44],ue}function Yi(e){return null!==e&&null!==(e.geoPosition||null)}var Ui={container:"micromag-screen-map-container",background:"micromag-screen-map-background",content:"micromag-screen-map-content",placeholder:"micromag-screen-map-placeholder",markerOverlayContainer:"micromag-screen-map-markerOverlayContainer",markerOverlayScrollable:"micromag-screen-map-markerOverlayScrollable",markerOverlaySafe:"micromag-screen-map-markerOverlaySafe",markerOverlay:"micromag-screen-map-markerOverlay",markerOverlayContent:"micromag-screen-map-markerOverlayContent",markerOverlayContentInner:"micromag-screen-map-markerOverlayContentInner",swipeIndicator:"micromag-screen-map-swipeIndicator",splash:"micromag-screen-map-splash",title:"micromag-screen-map-title",description:"micromag-screen-map-description",button:"micromag-screen-map-button",emptyTitle:"micromag-screen-map-emptyTitle",emptyDescription:"micromag-screen-map-emptyDescription",emptyButton:"micromag-screen-map-emptyButton",splashButton:"micromag-screen-map-splashButton",closeButton:"micromag-screen-map-closeButton",markerImage:"micromag-screen-map-markerImage",markerTitle:"micromag-screen-map-markerTitle",markerSubtitle:"micromag-screen-map-markerSubtitle",markerDescription:"micromag-screen-map-markerDescription",hasSelectedMarker:"micromag-screen-map-hasSelectedMarker",opened:"micromag-screen-map-opened"};const Qi={lat:45.5,lng:-73.56},Xi={onTouchMove:e=>e.stopPropagation(),onTouchStart:e=>e.stopPropagation(),onTouchEnd:e=>e.stopPropagation(),onPointerMove:e=>e.stopPropagation(),onPointerUp:e=>e.stopPropagation(),onPointerDown:e=>e.stopPropagation()},Ji=[];function Ki({layout:e="normal",draggable:t=!0,markers:l=Ji,title:a=null,description:i=null,button:o=null,openedMarkerSpacerHeight:s=.75,withMarkerImages:r=!1,zoom:c=10,center:d=Qi,fitBounds:u=!0,background:m=null,current:g=!0,active:h=!0,type:y=null,mediaRef:p=null,className:f=null}){const{locale:b}=(0,A.tz)(),{apiKey:v=null}=Ze(),x=rl(y),[S,w]=(0,n.useState)(null),C=null!==S,j=(0,n.useRef)(null),{width:k,height:M,resolution:N}=rt(),{muted:$}=Xe(),{ref:F,isCurrent:T=!1}=Je(g,!0),{color:R}=m||{},z=J(R),{isView:L,isPreview:P,isPlaceholder:B,isEdit:E,isStatic:V,isCapture:D}=at(),_=it(),[O,H]=(0,n.useState)(!1),Z=!E&&(V||D||B||P||E)||!g,W=g&&(L||E)&&(T||!L),q=g||h,[G,Y]=(0,n.useState)(V||D),{enableInteraction:U,disableInteraction:Q}=ft(),X=(0,n.useCallback)(()=>H(!0),[H]),K=(0,n.useMemo)(()=>(l||[]).map((e,t)=>({...e,active:t===S})),[l,S]),ee=(0,n.useCallback)(()=>{const e=K[S];j.current=e,w(null)},[K,S,w]),te=(0,n.useCallback)(()=>{const e=K[S];x("click_marker_close",`Marker ${S+1}: ${e.title.body}`,{marker:e,markerIndex:S}),ee()},[K,S,x,ee]),le=(0,n.useCallback)((e,t)=>{const l=K[t];w(t),x("click_marker_open",`Marker ${t+1}: ${l.title.body}`,{marker:l,markerIndex:t})},[K,w,x]),ne=(0,n.useCallback)(()=>{Y(!0),null!==Q&&Q(),x("click_button",o.body)},[Y,Q,x,o]),ae=(0,n.useCallback)(()=>{Y(!1),null!==U&&U(),x("click_close","Close icon"),ee()},[Y,U,x]),ie=(0,n.useCallback)(e=>{const t=e.toJSON();x("drag_map",`Latitude: ${t.lat.toFixed(4)}, Longitude: ${t.lng.toFixed(4)}`,{coords:t})},[x]),oe=(0,n.useCallback)(({initial:e})=>{if(e){const e=(l||[])[S];x("scroll",`Marker ${S+1}: ${e.title.body}`,{marker:e,markerIndex:S})}},[x,l,S]),{ref:se,width:re="100%"}=_t({disabled:!L}),[ce,de]=(0,n.useState)(0),ue=ce===(l||[]).length,me=O&&(!r||ue);let ge;if((0,n.useEffect)(()=>{if(r&&null!==l&&(l||[]).length){de(0);const e=l.map(e=>{const{image:t=null}=e||{},{url:l=null}=t||{};if(null!==l){const e=new Image;return e.src=l,e.onload=()=>{de(e=>de(e+1))},e}return null});return()=>{e.filter(e=>null!==e).forEach(e=>{e.onload=()=>{}})}}return()=>{}},[r,l]),(0,n.useEffect)(()=>{if(!E&&!P)return;const[e=null,t=null]=null!==_?_.split("."):[];"intro"===e?(Y(!1),w(null)):"map"===e?(Y(!0),w(null)):"markers"!==e&&"markers-with-image"!==e||(Y(!0),w(parseInt(t,10)))},[_,E,Y]),k>0&&M>0&&null!==v){const e=null!==l?l.filter(e=>null!==e).filter(({geoPosition:e=null})=>null!==e):null;if(ge=`https://maps.googleapis.com/maps/api/staticmap?size=${Math.round(k)}x${Math.round(M)}`,null!==d&&(null===e||0===e.length)){const{lat:e=null,lng:t=null}=d||{};ge+=`&center=${e},${t}`}null!==c&&(ge+=`&zoom=${c}`),null!==v&&(ge+=`&key=${v}`),null!==b&&(ge+=`&language=${b}`),null!==e&&(ge+=e.map(e=>{const{geoPosition:t=null}=e||{},{lat:l=null,lng:n=null}=t||{},{image:a=null}=e||{},{url:i=null}=a||{};return null!==l&&null!==n?`&markers=${null!==i?`icon:${i}`:""}%7C${l},${n}`:""}).join(""))}const ye=C?K[S]:j.current,{title:fe=null,subtitle:be=null,description:ve=null,image:xe=null}=ye||{},Se=null!==fe,we=null!==be,Ce=null!==ve,je=null!==xe,ke=he(a),Me=he(i),Ne=he(o);return(0,I.jsxs)("div",{className:Ft([Ui.container,f,{[Ui[`${e}Layout`]]:null!==e,[Ui.opened]:G||P&&"intro"!==_,[Ui.hasSelectedMarker]:C}]),"data-screen-ready":me,children:[(0,I.jsx)(na,{width:k,height:M,className:Ui.content,children:B?(0,I.jsx)(fn,{className:Ui.placeholder,withImages:r}):(0,I.jsxs)(I.Fragment,{children:[P?(0,I.jsx)(ia,{media:null!==ge?{url:ge,metadata:{width:Math.min(640,k),height:Math.min(640,M)}}:null,width:k,height:M,resolution:N,objectFit:{fit:"cover"}}):(0,I.jsx)(Gi,{center:d,zoom:c,draggable:t,markers:K,fitBounds:u,onClickMarker:le,onReady:X,onDragEnd:ie},"map"),(0,I.jsx)("div",{className:Ui.markerOverlayContainer,...Xi,children:(0,I.jsx)("div",{className:Ui.markerOverlayScrollable,children:(0,I.jsxs)(Ta,{fullscreen:!0,disabled:Z,onScrolledBottom:oe,children:[(0,I.jsx)(El,{className:Ui.markerOverlaySafe,onClick:te,withoutStyle:!0,style:{height:M*s},disabled:P,focusable:g&&L}),(0,I.jsx)("div",{className:Ui.markerOverlay,style:{minHeight:M*(1-s)},children:(0,I.jsxs)("div",{className:Ui.markerOverlayContent,style:z,children:[(0,I.jsx)("div",{className:Ui.swipeIndicator}),(0,I.jsxs)("div",{className:Ui.markerOverlayContentInner,ref:se,children:[je?(0,I.jsx)(ia,{className:Ui.markerImage,media:xe,width:re,resolution:N}):null,Se?(0,I.jsx)(wa,{className:Ui.markerTitle,...fe}):null,we?(0,I.jsx)(wa,{size:3,className:Ui.markerSubtitle,...be}):null,Ce?(0,I.jsx)(Wn,{className:Ui.markerDescription,...ve}):null]},`markerContent-${S}`)]})})]})})},"marker-overlay"),(0,I.jsxs)("div",{className:Ft([Ui.splash]),children:[(0,I.jsx)(zn,{emptyLabel:(0,I.jsx)(A.sA,{id:"2ZOPe+",defaultMessage:"Title"}),emptyClassName:Ui.emptyTitle,isEmpty:!ke,children:(0,I.jsx)(wa,{className:Ui.title,...a})}),(0,I.jsx)(zn,{emptyLabel:(0,I.jsx)(A.sA,{id:"507VAi",defaultMessage:"Description"}),emptyClassName:Ui.emptyDescription,isEmpty:!Me,children:(0,I.jsx)(Wn,{className:Ui.description,...i})}),(0,I.jsx)(zn,{emptyLabel:(0,I.jsx)(A.sA,{id:"bv3rRe",defaultMessage:"Button"}),emptyClassName:Ui.emptyButton,isEmpty:!Ne,children:(0,I.jsx)(da,{className:Ui.splashButton,onClick:ne,buttonStyle:null!==o?o.buttonStyle:null,focusable:g&&L,children:Ne?(0,I.jsx)(Wn,{...o,className:Ui.button}):(0,I.jsx)(A.sA,{id:"sXfFFw",defaultMessage:"Enter"})})})]},"splash"),V||D||P||E?null:(0,I.jsx)(El,{className:Ui.closeButton,onClick:ae,focusable:g&&L,children:"×"},"close-button")]})}),B?null:(0,I.jsx)(ta,{color:{color:"#FFFFFF",alpha:1},width:k,height:M,resolution:N,playing:W,muted:$,shouldLoad:q,mediaRef:pe(F,p),withoutVideo:P,className:Ui.background})]})}var eo=[{id:"map",type:"screen",group:{label:(0,A.zR)({id:"Z27IP6",defaultMessage:"Map"}),order:6},title:(0,A.zR)({id:"dPYwJG",defaultMessage:"Map"}),component:Ki,layouts:["normal"],states:[{id:"intro",label:(0,A.zR)({id:"BgrRxZ",defaultMessage:"Intro"}),fields:[{name:"title",type:"heading-element",theme:{textStyle:"heading1"},label:(0,A.zR)({id:"+AEVbJ",defaultMessage:"Title"})},{name:"description",type:"text-element",theme:{textStyle:"text"},label:(0,A.zR)({id:"ZCe0r4",defaultMessage:"Description"})},{name:"button",type:"button-element",theme:{textStyle:"button"},label:(0,A.zR)({id:"i6bmbD",defaultMessage:"Button"})}]},{id:"map",label:(0,A.zR)({id:"eYHEYe",defaultMessage:"Map"}),fields:[{name:"draggable",type:"toggle",defaultValue:!0,label:(0,A.zR)({id:"A7ncT3",defaultMessage:"Draggable"})},{name:"fitBounds",type:"toggle",defaultValue:!0,label:(0,A.zR)({id:"NVUpOG",defaultMessage:"Map fit markers"})},{name:"zoom",type:"slider",defaultValue:9,min:0,max:16,label:(0,A.zR)({id:"vRzzo6",defaultMessage:"Zoom"})},{name:"center",type:"geo-position",label:(0,A.zR)({id:"W5qWPj",defaultMessage:"Center"})}]},{id:"markers",label:(0,A.zR)({id:"+LvOvJ",defaultMessage:"Markers"}),repeatable:!0,fieldName:"markers",fields:[{name:"title",type:"heading-element",label:(0,A.zR)({id:"+AEVbJ",defaultMessage:"Title"})},{name:"description",type:"text-element",label:(0,A.zR)({id:"ZCe0r4",defaultMessage:"Description"})},{name:"geoPosition",type:"geo-position",label:(0,A.zR)({id:"u3ok54",defaultMessage:"Position"})}]}],fields:[{name:"background",type:"background",label:(0,A.zR)({id:"cDj1mZ",defaultMessage:"Background"})}]},{id:"map-images",type:"screen",group:{label:(0,A.zR)({id:"Z27IP6",defaultMessage:"Map"}),order:6},title:(0,A.zR)({id:"ro6yHS",defaultMessage:"Map with image markers"}),component:function(e){const t=(0,i.c)(4);let l,n;return t[0]!==e?(({...l}=e),t[0]=e,t[1]=l):l=t[1],t[2]!==l?(n=(0,I.jsx)(Ki,{...l,withMarkerImages:!0}),t[2]=l,t[3]=n):n=t[3],n},layouts:["normal"],states:[{id:"intro",label:(0,A.zR)({id:"BgrRxZ",defaultMessage:"Intro"}),fields:[{name:"title",type:"heading-element",theme:{textStyle:"heading1"},label:(0,A.zR)({id:"+AEVbJ",defaultMessage:"Title"})},{name:"description",type:"text-element",theme:{textStyle:"text"},label:(0,A.zR)({id:"ZCe0r4",defaultMessage:"Description"})},{name:"button",type:"button-element",theme:{textStyle:"button"},label:(0,A.zR)({id:"i6bmbD",defaultMessage:"Button"})}]},{id:"map",label:(0,A.zR)({id:"eYHEYe",defaultMessage:"Map"}),fields:[{name:"draggable",type:"toggle",defaultValue:!0,label:(0,A.zR)({id:"A7ncT3",defaultMessage:"Draggable"})},{name:"fitBounds",type:"toggle",defaultValue:!0,label:(0,A.zR)({id:"NVUpOG",defaultMessage:"Map fit markers"})},{name:"zoom",type:"slider",defaultValue:9,min:0,max:16,label:(0,A.zR)({id:"vRzzo6",defaultMessage:"Zoom"})},{name:"center",type:"geo-position",label:(0,A.zR)({id:"W5qWPj",defaultMessage:"Center"})}]},{id:"markers-with-image",label:(0,A.zR)({id:"+LvOvJ",defaultMessage:"Markers"}),repeatable:!0,fieldName:"markers",fields:[{name:"title",type:"heading-element",label:(0,A.zR)({id:"+AEVbJ",defaultMessage:"Title"})},{name:"description",type:"text-element",label:(0,A.zR)({id:"ZCe0r4",defaultMessage:"Description"})},{name:"geoPosition",type:"geo-position",label:(0,A.zR)({id:"u3ok54",defaultMessage:"Position"})}]}],fields:[{name:"background",type:"background",label:(0,A.zR)({id:"cDj1mZ",defaultMessage:"Background"})}]}],to={container:"micromag-screen-quiz-answers-container",items:"micromag-screen-quiz-answers-items",emptyAnswer:"micromag-screen-quiz-answers-emptyAnswer",item:"micromag-screen-quiz-answers-item",isPlaceholder:"micromag-screen-quiz-answers-isPlaceholder",userAnswer:"micromag-screen-quiz-answers-userAnswer",otherAnswer:"micromag-screen-quiz-answers-otherAnswer",withoutOpacity:"micromag-screen-quiz-answers-withoutOpacity",button:"micromag-screen-quiz-answers-button",withIcon:"micromag-screen-quiz-answers-withIcon",withSquareItems:"micromag-screen-quiz-answers-withSquareItems",resultIcon:"micromag-screen-quiz-answers-resultIcon",answered:"micromag-screen-quiz-answers-answered",rightAnswer:"micromag-screen-quiz-answers-rightAnswer",faIcon:"micromag-screen-quiz-answers-faIcon",itemContent:"micromag-screen-quiz-answers-itemContent"};function lo({items:e,keypadLayout:t=null,answeredIndex:l=null,answersCollapseDelay:a=1e3,buttonsStyle:i=null,buttonsLayout:o=null,inactiveButtonsStyle:s=null,buttonsTextStyle:r=null,inactiveButtonsTextStyle:c=null,goodAnswerColor:d=null,badAnswerColor:u=null,showUserAnswer:m=!1,withoutGoodAnswer:g=!1,withoutIcon:h=!1,focusable:y=!1,animated:p=!1,collapsed:f=!1,onClick:b=null,onCollapse:v=null,onCollapsed:x=null,onTransitionEnd:S=null,withoutCollapse:w=!1,className:C=null}){const{isView:j,isPreview:k,isPlaceholder:M,isEdit:N}=at(),$=null!==l,{good:F=!1}=null!==l?e[l]:{},[T]=(0,n.useState)(!0),R=null!==e&&!M&&e.reduce((e,t)=>{const{good:l=!1}=t||{};return e||l},!1),z=m||!R,L=!g||z&&null!==l&&!w,[P,B]=(0,n.useState)(null!==l),[E,V]=(0,n.useState)(f||null!==l),[D,_]=(0,n.useState)(f||null!==l);(0,n.useEffect)(()=>{let e=null;return null!==l&&L?e=setTimeout(()=>{B(!0),null!==v&&v()},F||z?500:a):null===l||L?null===l&&L&&B(!1):e=setTimeout(()=>{null!==v&&v(),null!==x&&x(),null!==S&&S()},a),()=>{null!==e&&clearTimeout(e)}},[l,g,B,v,x,S,a,F,z,L]),(0,n.useEffect)(()=>{let e=null,t=null;return P&&(e=setTimeout(()=>{_(!0)},300),t=setTimeout(()=>{null!==S&&S()},500)),()=>{null!==e&&clearTimeout(e),null!==t&&clearTimeout(t)}},[P,S,_]);const O=(0,n.useRef)([]),H=M||N&&0===e.length?[...new Array(2)]:e,Z=(0,n.useMemo)(()=>p?H.reduce((e,t,l)=>{if(O.current[l]&&p){const{height:t=0}=O.current[l].getBoundingClientRect()||{};e.push(t)}return e},[]):[],[p,l,L,p,H]),W=j||N,q=H.map((e,t)=>{const n=Z[t]?Z[t]:0,a=t===l,{good:i=!1}=e||{};let o=!1;null===l||!W||!E||i||!R&&a||(o=!0),null!==l&&W&&P&&!i&&(o=!0);const{label:s=null}=e||{},r=`key-${t}-${s?.body||null}`;return{...e,hidden:o,userAnswer:a,index:t,maxHeight:n,key:r}}),G=(0,n.useMemo)(()=>null!==q&&q.reduce((e,t)=>e||!0===t.good&&!g||!1===t.good&&!h,!1),[q,g,h]),Y=(0,n.useMemo)(()=>{const{backgroundColor:e=null}=s||{};return null===e},[s]),U=(q.map(e=>{const{hidden:t,maxHeight:l}=e||{},n={opacity:t&&W&&!g?0:1,maxHeight:t&&W&&!g&&p&&D?0:l>0?l:null,height:t&&W&&!g&&!p&&D?0:"auto"};return{...e,style:n}})||[]).map((e,t)=>{const n=t===l,{good:a=null,label:m=null,visual:p=null,buttonLayout:f=null,buttonStyle:v=null,textStyle:x=null,style:S=null}=e||{},{textStyle:w=null}=m||{},C=he(m),j=me(p),M=C||j,N=g&&n,F=g&&!n,R=F&&null!==l,z=R?c:null,L={...i,...R?s:null,...v},P={...Object.keys(r||{}).reduce((e,t)=>{const l=r[t];return null!==l&&""!==l&&(e[t]=l),e},{}),...Object.keys(w||{}).reduce((e,t)=>{const l=w[t];return null!==l&&""!==l&&(e[t]=l),e},{}),...z,...x};return(0,I.jsx)("div",{className:Ft([to.item,{[to.rightAnswer]:!g&&!0===a,[to.userAnswer]:N,[to.otherAnswer]:F,[to.withoutOpacity]:!Y}]),style:{...S},children:(0,I.jsx)("div",{className:to.itemContent,ref:e=>{O.current[t]=e},children:(0,I.jsx)(zn,{placeholder:"quizAnswer",placeholderProps:{good:0===t},emptyLabel:(0,I.jsx)(A.sA,{id:"+Ok+7S",defaultMessage:"Answer"}),emptyClassName:to.emptyAnswer,isEmpty:!M,children:M?(0,I.jsxs)(ua,{className:to.button,onPointerUp:l=>{"mouse"===l.pointerType&&0!==l.button||b(e,t)},disabled:!T||k||$,focusable:y,buttonStyle:L,textStyle:P,label:m,visual:p,visualClassName:to.optionVisual,imageClassName:to.optionImage,layout:f||o||(j?"label-right":null),children:[$&&!h&&!0===a?(0,I.jsx)("span",{className:to.resultIcon,style:J(d,"backgroundColor"),children:(0,I.jsx)(yl.gc,{className:to.faIcon,icon:kl.e6})}):null,!h&&$&&!1===a?(0,I.jsx)("span",{className:to.resultIcon,style:J(u,"backgroundColor"),children:(0,I.jsx)(yl.gc,{className:to.faIcon,icon:Ml.GR})}):null]}):null})})},`answer-${t}`)}),{columnAlign:Q=null,columns:X=1,spacing:K=null,withSquareItems:ee=!1}=t||{};return(0,I.jsx)("div",{className:Ft([to.container,C,{[to.answered]:$,[to.withIcon]:!h&&G,[to.withSquareItems]:!0===ee,[to.isPlaceholder]:M}]),children:null!==q||M?(0,I.jsx)(Fi,{className:to.items,items:U,align:Q,columns:X,spacing:K}):null})}var no={container:"micromag-screen-quiz-question-container",question:"micromag-screen-quiz-question-question",index:"micromag-screen-quiz-question-index",resultContent:"micromag-screen-quiz-question-resultContent",result:"micromag-screen-quiz-question-result",emptyQuestion:"micromag-screen-quiz-question-emptyQuestion",emptyResult:"micromag-screen-quiz-question-emptyResult",resultVisible:"micromag-screen-quiz-question-resultVisible",resultHidden:"micromag-screen-quiz-question-resultHidden",isPlaceholder:"micromag-screen-quiz-question-isPlaceholder"};function ao(e){const t=(0,i.c)(97),{question:l,answers:a,keypadLayout:o,result:s,resultImage:r,index:c,totalCount:d,answeredIndex:u,buttonsLayout:m,buttonsStyle:g,inactiveButtonsStyle:h,buttonsTextStyle:y,inactiveButtonsTextStyle:p,questionsHeadingStyle:f,feedbackTextStyle:b,numbersTextStyle:v,goodAnswerColor:x,badAnswerColor:S,focusable:w,animated:C,showInstantAnswer:j,withResult:k,withoutGoodAnswer:M,withoutTrueFalse:N,withoutIndex:$,layout:F,transitions:T,transitionPlaying:R,transitionStagger:z,transitionDisabled:L,onAnswerClick:P,onAnswerTransitionEnd:B,withoutCollapse:E,className:V,style:D}=e,_=void 0===l?null:l,O=void 0===a?null:a,H=void 0===o?null:o,Z=void 0===s?null:s,W=void 0===r?null:r,q=void 0===c?null:c,G=void 0===d?null:d,Y=void 0===u?null:u,U=void 0===m?null:m,Q=void 0===g?null:g,X=void 0===h?null:h,J=void 0===y?null:y,K=void 0===p?null:p,ee=void 0===f?null:f,te=void 0===b?null:b,le=void 0===v?null:v,ne=void 0===x?null:x,ae=void 0===S?null:S,ie=void 0!==w&&w,oe=void 0!==C&&C,se=void 0!==j&&j,re=void 0!==k&&k,ce=void 0!==M&&M,de=void 0!==N&&N,ue=void 0!==$&&$,ge=void 0===F?null:F,ye=void 0===T?null:T,pe=void 0!==R&&R,fe=void 0===z?100:z,be=void 0!==L&&L,ve=void 0===P?null:P,xe=void 0===B?null:B,Se=void 0!==E&&E,we=void 0===V?null:V,Ce=void 0===D?null:D,{isPlaceholder:je}=at(),ke="split"===ge,Me=ke?null:ge;let Ne;t[0]!==_?(Ne=he(_),t[0]=_,t[1]=Ne):Ne=t[1];const $e=Ne;let Fe;t[2]!==_?(Fe=_||{},t[2]=_,t[3]=Fe):Fe=t[3];const{textStyle:Te}=Fe,Re=void 0===Te?null:Te,[ze,Le]=(0,n.useState)(se),Ie=null!==Y,Ae=null!==Y&&O[Y]?O[Y]:null;let Pe;t[4]!==Ae?(Pe=Ae||{},t[4]=Ae,t[5]=Pe):Pe=t[5];const{result:Be,answerImage:Ee}=Pe,Ve=void 0===Be?null:Be,De=void 0===Ee?null:Ee;let _e;t[6]!==Ve||t[7]!==Z?(_e=he(Ve)||he(Z),t[6]=Ve,t[7]=Z,t[8]=_e):_e=t[8];const Oe=_e;let He;t[9]!==De||t[10]!==W?(He=me(De)||me(W),t[9]=De,t[10]=W,t[11]=He):He=t[11];const Ze=He;let We;t[12]!==Z?(We=he(Z)?Z:null,t[12]=Z,t[13]=We):We=t[13];const qe=We;let Ge;t[14]!==Ve?(Ge=he(Ve)?Ve:null,t[14]=Ve,t[15]=Ge):Ge=t[15];const Ye=Ge||qe;let Ue;t[16]!==Ye?(Ue=Ye||{},t[16]=Ye,t[17]=Ue):Ue=t[17];const{textStyle:Qe}=Ue,Xe=void 0===Qe?null:Qe;let Je;t[18]===Symbol.for("react.memo_cache_sentinel")?(Je=()=>{Le(!0)},t[18]=Je):Je=t[18];const Ke=Je,et=null!==q&&null!==G,tt=!Oe;let lt,nt,it;t[19]!==we||t[20]!==je||t[21]!==ze||t[22]!==tt?(lt=Ft([no.container,we,{[no.isPlaceholder]:je,[no.resultVisible]:ze,[no.resultHidden]:tt}]),t[19]=we,t[20]=je,t[21]=ze,t[22]=tt,t[23]=lt):lt=t[23],t[24]!==et||t[25]!==q||t[26]!==le||t[27]!==G||t[28]!==be||t[29]!==pe||t[30]!==ye||t[31]!==ue?(nt=!ue&&et?(0,I.jsx)(zn,{placeholder:(0,I.jsx)("div",{className:no.index,children:"1 / 10"}),children:G>1?(0,I.jsx)(Pn,{transitions:ye,playing:pe,disabled:be,children:(0,I.jsx)(Wn,{className:no.index,body:`${q+1} / ${G}`,textStyle:le})}):null},"stats"):null,t[24]=et,t[25]=q,t[26]=le,t[27]=G,t[28]=be,t[29]=pe,t[30]=ye,t[31]=ue,t[32]=nt):nt=t[32],t[33]===Symbol.for("react.memo_cache_sentinel")?(it=(0,I.jsx)(A.sA,{id:"FOmgqv",defaultMessage:"Question"}),t[33]=it):it=t[33];const ot=!$e;let st,rt,ct,dt,ut,mt,gt,ht;return t[34]!==$e||t[35]!==_||t[36]!==Re||t[37]!==ee||t[38]!==be||t[39]!==pe||t[40]!==ye?(st=$e?(0,I.jsx)(Pn,{transitions:ye,playing:pe,disabled:be,children:(0,I.jsx)(wa,{..._,className:no.question,textStyle:{...ee,...Re}})}):null,t[34]=$e,t[35]=_,t[36]=Re,t[37]=ee,t[38]=be,t[39]=pe,t[40]=ye,t[41]=st):st=t[41],t[42]!==ot||t[43]!==st?(rt=(0,I.jsx)(zn,{placeholder:"title",emptyLabel:it,emptyClassName:no.emptyQuestion,isEmpty:ot,children:st},"question"),t[42]=ot,t[43]=st,t[44]=rt):rt=t[44],t[45]!==ke?(ct=ke?(0,I.jsx)(Ma,{},"spacer"):null,t[45]=ke,t[46]=ct):ct=t[46],t[47]!==O?(dt=O||[],t[47]=O,t[48]=dt):dt=t[48],t[49]!==oe||t[50]!==Y||t[51]!==ae||t[52]!==U||t[53]!==Q||t[54]!==J||t[55]!==ie||t[56]!==ne||t[57]!==X||t[58]!==K||t[59]!==H||t[60]!==ve||t[61]!==xe||t[62]!==dt||t[63]!==be||t[64]!==pe||t[65]!==fe||t[66]!==ye||t[67]!==Se||t[68]!==ce||t[69]!==de?(ut=(0,I.jsx)(lo,{items:dt,keypadLayout:H,answeredIndex:Y,goodAnswerColor:ne,badAnswerColor:ae,withoutGoodAnswer:ce,withoutIcon:de,showUserAnswer:de,buttonsLayout:U,buttonsStyle:Q,inactiveButtonsStyle:X,buttonsTextStyle:J,inactiveButtonsTextStyle:K,focusable:ie,animated:oe,transitions:ye,transitionStagger:fe,transitionPlaying:pe,transitionDisabled:be,onClick:ve,onCollapse:Ke,onTransitionEnd:xe,withoutCollapse:Se},"answers"),t[49]=oe,t[50]=Y,t[51]=ae,t[52]=U,t[53]=Q,t[54]=J,t[55]=ie,t[56]=ne,t[57]=X,t[58]=K,t[59]=H,t[60]=ve,t[61]=xe,t[62]=dt,t[63]=be,t[64]=pe,t[65]=fe,t[66]=ye,t[67]=Se,t[68]=ce,t[69]=de,t[70]=ut):ut=t[70],t[71]!==De||t[72]!==Ie||t[73]!==O||t[74]!==te||t[75]!==Ye||t[76]!==Oe||t[77]!==Ze||t[78]!==W||t[79]!==Xe||t[80]!==be||t[81]!==pe||t[82]!==fe||t[83]!==ye||t[84]!==re?(mt=re?(0,I.jsx)("div",{className:no.result,children:(0,I.jsx)("div",{className:no.resultContent,children:(0,I.jsx)(zn,{emptyLabel:Ie?(0,I.jsx)(A.sA,{id:"li7ADr",defaultMessage:"Result"}):null,isEmpty:Ie&&!Oe,emptyClassName:no.emptyResult,children:(Oe||Ze)&&null!==O?(0,I.jsxs)(Pn,{transitions:ye,playing:pe,delay:(1+O.length)*fe,disabled:be,children:[Oe?(0,I.jsx)(Wn,{...Ye||{},className:no.resultText,textStyle:{...te||null,...Xe||null}}):null,Ze?(0,I.jsx)(ra,{media:De||W,width:"100%",height:"auto"}):null]}):null})})},"results"):null,t[71]=De,t[72]=Ie,t[73]=O,t[74]=te,t[75]=Ye,t[76]=Oe,t[77]=Ze,t[78]=W,t[79]=Xe,t[80]=be,t[81]=pe,t[82]=fe,t[83]=ye,t[84]=re,t[85]=mt):mt=t[85],t[86]!==nt||t[87]!==rt||t[88]!==ct||t[89]!==ut||t[90]!==mt?(gt=[nt,rt,ct,ut,mt],t[86]=nt,t[87]=rt,t[88]=ct,t[89]=ut,t[90]=mt,t[91]=gt):gt=t[91],t[92]!==Ce||t[93]!==lt||t[94]!==gt||t[95]!==Me?(ht=(0,I.jsx)($a,{className:lt,verticalAlign:Me,style:Ce,children:gt}),t[92]=Ce,t[93]=lt,t[94]=gt,t[95]=Me,t[96]=ht):ht=t[96],ht}var io={container:"micromag-screen-quiz-container",background:"micromag-screen-quiz-background",content:"micromag-screen-quiz-content",disabled:"micromag-screen-quiz-disabled",reset:"micromag-screen-quiz-reset",points:"micromag-screen-quiz-points",header:"micromag-screen-quiz-header",footer:"micromag-screen-quiz-footer",nextButton:"micromag-screen-quiz-nextButton",question:"micromag-screen-quiz-question",results:"micromag-screen-quiz-results",intro:"micromag-screen-quiz-intro"};function oo(e){return null!==e&&e.good}var so={container:"micromag-screen-quiz-results-container",title:"micromag-screen-quiz-results-title",emptyTitle:"micromag-screen-quiz-results-emptyTitle",emptyDescription:"micromag-screen-quiz-results-emptyDescription"};function ro(e){const t=(0,i.c)(46),{layout:l,title:n,description:a,resultsHeadingStyle:o,resultsTextStyle:s,transitions:r,transitionPlaying:c,transitionStagger:d,transitionDisabled:u,className:m,style:g}=e,h=void 0===l?null:l,y=void 0===n?null:n,p=void 0===a?null:a,f=void 0===o?null:o,b=void 0===s?null:s,v=void 0===r?null:r,x=void 0!==c&&c,S=void 0===d?100:d,w=void 0!==u&&u,C=void 0===m?null:m,j=void 0===g?null:g,k="split"===h,M=k?null:h;let N;t[0]!==y?(N=he(y),t[0]=y,t[1]=N):N=t[1];const $=N;let F;t[2]!==y?(F=y||{},t[2]=y,t[3]=F):F=t[3];const{textStyle:T}=F,R=void 0===T?null:T;let z;t[4]!==p?(z=he(p),t[4]=p,t[5]=z):z=t[5];const L=z;let P;t[6]!==p?(P=p||{},t[6]=p,t[7]=P):P=t[7];const{textStyle:B}=P,E=void 0===B?null:B;let V,D;t[8]!==C?(V=Ft([so.container,C]),t[8]=C,t[9]=V):V=t[9],t[10]===Symbol.for("react.memo_cache_sentinel")?(D=(0,I.jsx)(A.sA,{id:"BSTWf8",defaultMessage:"Title"}),t[10]=D):D=t[10];const _=!$;let O,H,Z,W;t[11]!==$||t[12]!==f||t[13]!==y||t[14]!==R||t[15]!==w||t[16]!==x||t[17]!==v?(O=$?(0,I.jsx)(Pn,{transitions:v,playing:x,disabled:w,children:(0,I.jsx)(wa,{...y,className:so.title,textStyle:{...f,...R}})}):null,t[11]=$,t[12]=f,t[13]=y,t[14]=R,t[15]=w,t[16]=x,t[17]=v,t[18]=O):O=t[18],t[19]!==_||t[20]!==O?(H=(0,I.jsx)(zn,{placeholder:"title",emptyLabel:D,emptyClassName:so.emptyTitle,isEmpty:_,children:O},"title"),t[19]=_,t[20]=O,t[21]=H):H=t[21],t[22]!==k?(Z=k?(0,I.jsx)(Ma,{},"spacer"):null,t[22]=k,t[23]=Z):Z=t[23],t[24]===Symbol.for("react.memo_cache_sentinel")?(W=(0,I.jsx)(A.sA,{id:"hoDz0O",defaultMessage:"Description"}),t[24]=W):W=t[24];const q=!L;let G,Y,U,Q;return t[25]!==p||t[26]!==E||t[27]!==$||t[28]!==b||t[29]!==w||t[30]!==x||t[31]!==S||t[32]!==v?(G=$?(0,I.jsx)(Pn,{transitions:v,playing:x,disabled:w,delay:S,children:(0,I.jsx)(Wn,{...p,className:so.description,textStyle:{...b,...E}})}):null,t[25]=p,t[26]=E,t[27]=$,t[28]=b,t[29]=w,t[30]=x,t[31]=S,t[32]=v,t[33]=G):G=t[33],t[34]!==q||t[35]!==G?(Y=(0,I.jsx)(zn,{placeholder:"text",emptyLabel:W,emptyClassName:so.emptyDescription,isEmpty:q,children:G},"description"),t[34]=q,t[35]=G,t[36]=Y):Y=t[36],t[37]!==H||t[38]!==Z||t[39]!==Y?(U=[H,Z,Y],t[37]=H,t[38]=Z,t[39]=Y,t[40]=U):U=t[40],t[41]!==j||t[42]!==V||t[43]!==U||t[44]!==M?(Q=(0,I.jsx)($a,{className:V,fullscreen:!0,verticalAlign:M,style:j,children:U}),t[41]=j,t[42]=V,t[43]=U,t[44]=M,t[45]=Q):Q=t[45],Q}var co={container:"micromag-screen-quiz-title-container",title:"micromag-screen-quiz-title-title",description:"micromag-screen-quiz-title-description",emptyTitle:"micromag-screen-quiz-title-emptyTitle",emptyDescription:"micromag-screen-quiz-title-emptyDescription"};function uo(e){const t=(0,i.c)(43),{layout:l,title:n,description:a,button:o,buttonDisabled:s,focusable:r,className:c,style:d,onClickButton:u}=e,m=void 0===l?null:l,g=void 0===n?null:n,h=void 0===a?null:a,y=void 0===o?null:o,p=void 0!==s&&s,f=void 0!==r&&r,b=void 0===c?null:c,v=void 0===d?null:d,x=void 0===u?null:u,S="split"===m,w=S?null:m;let C;t[0]!==g?(C=he(g),t[0]=g,t[1]=C):C=t[1];const j=C;let k;t[2]!==h?(k=he(h),t[2]=h,t[3]=k):k=t[3];const M=k;let N;t[4]!==y?(N=he(y),t[4]=y,t[5]=N):N=t[5];const $=N;let F,T;t[6]!==b?(F=Ft([co.container,b]),t[6]=b,t[7]=F):F=t[7],t[8]===Symbol.for("react.memo_cache_sentinel")?(T=(0,I.jsx)(A.sA,{id:"BSTWf8",defaultMessage:"Title"}),t[8]=T):T=t[8];const R=!j;let z,L,P;t[9]!==j||t[10]!==g?(z=j?(0,I.jsx)(wa,{...g,className:co.title}):null,t[9]=j,t[10]=g,t[11]=z):z=t[11],t[12]!==R||t[13]!==z?(L=(0,I.jsx)(zn,{placeholder:"title",emptyLabel:T,emptyClassName:co.emptyTitle,isEmpty:R,children:z},"title"),t[12]=R,t[13]=z,t[14]=L):L=t[14],t[15]===Symbol.for("react.memo_cache_sentinel")?(P=(0,I.jsx)(A.sA,{id:"hoDz0O",defaultMessage:"Description"}),t[15]=P):P=t[15];const B=!M;let E,V,D;t[16]!==h||t[17]!==M?(E=M?(0,I.jsx)(Wn,{...h,className:co.description}):null,t[16]=h,t[17]=M,t[18]=E):E=t[18],t[19]!==B||t[20]!==E?(V=(0,I.jsx)(zn,{placeholder:"text",emptyLabel:P,emptyClassName:co.emptyDescription,isEmpty:B,children:E},"description"),t[19]=B,t[20]=E,t[21]=V):V=t[21],t[22]!==S?(D=S?(0,I.jsx)(Ma,{},"spacer"):null,t[22]=S,t[23]=D):D=t[23];const _=null!==y?y.buttonStyle:null;let O,H,Z,W;return t[24]!==y||t[25]!==$?(O=$?(0,I.jsx)(Wn,{...y,className:co.label}):(0,I.jsx)(A.sA,{id:"D7LIZQ",defaultMessage:"Start"}),t[24]=y,t[25]=$,t[26]=O):O=t[26],t[27]!==p||t[28]!==f||t[29]!==x||t[30]!==_||t[31]!==O?(H=(0,I.jsx)(zn,{placeholder:"button",children:(0,I.jsx)(da,{disabled:p,focusable:f,buttonStyle:_,className:co.button,onClick:x,children:O})},"button"),t[27]=p,t[28]=f,t[29]=x,t[30]=_,t[31]=O,t[32]=H):H=t[32],t[33]!==L||t[34]!==V||t[35]!==D||t[36]!==H?(Z=[L,V,D,H],t[33]=L,t[34]=V,t[35]=D,t[36]=H,t[37]=Z):Z=t[37],t[38]!==v||t[39]!==F||t[40]!==Z||t[41]!==w?(W=(0,I.jsx)($a,{className:F,fullscreen:!0,verticalAlign:w,style:v,children:Z}),t[38]=v,t[39]=F,t[40]=Z,t[41]=w,t[42]=W):W=t[42],W}var mo=[{id:"quiz",type:"screen",group:{label:(0,A.zR)({id:"ZiWlL6",defaultMessage:"Questions"}),order:7},title:(0,A.zR)({id:"zW7IVm",defaultMessage:"Quiz"}),component:function(e){const t=(0,i.c)(135),{id:l,layout:a,keypadLayout:o,question:s,answers:r,result:c,resultImage:d,buttonsLayout:u,buttonsStyle:m,inactiveButtonsStyle:g,buttonsTextStyle:h,inactiveButtonsTextStyle:y,feedbackTextStyle:p,numbersTextStyle:f,goodAnswerColor:b,badAnswerColor:v,withoutTrueFalse:x,spacing:S,header:w,footer:C,background:j,current:k,preload:M,ready:N,transitions:$,transitionStagger:F,type:T,mediaRef:R,className:z}=e,L=void 0===a?"middle":a,A=void 0===o?null:o,P=void 0===s?null:s,B=void 0===r?null:r,E=void 0===c?null:c,V=void 0===d?null:d,D=void 0===u?null:u,_=void 0===m?null:m,O=void 0===g?null:g,H=void 0===h?null:h,Z=void 0===y?null:y,W=void 0===p?null:p,q=void 0===f?null:f,Y=void 0===b?null:b,U=void 0===v?null:v,Q=void 0!==x&&x,X=void 0===S?20:S,J=void 0===w?null:w,K=void 0===C?null:C,ee=void 0===j?null:j,te=void 0===k||k,le=void 0===M||M,ne=void 0===N||N,ae=void 0===$?null:$,ie=void 0===F?100:F,oe=void 0===R?null:R,se=void 0===z?null:z,re=(void 0===l?null:l)||"screen-id",ue=rl(void 0===T?null:T),{width:me,height:ge,resolution:he}=rt(),{isView:ye,isPreview:fe,isPlaceholder:be,isEdit:ve,isStatic:xe,isCapture:Se}=at(),we=!ne,{topHeight:Ce,bottomHeight:je,bottomSidesWidth:ke}=ht(),{open:Me}=bt(),{muted:Ne}=Xe(),{ref:$e,isCurrent:Fe}=Je(te,!0),Te=te&&ne,Re=xe||Se||be||fe||ve,ze=te&&(ye||ve)&&(void 0!==Fe&&Fe||!ye),Le=te||le;let Ie;t[0]!==J?(Ie=ce(J),t[0]=J,t[1]=Ie):Ie=t[1];const Ae=Ie;let Pe;t[2]!==K?(Pe=de(K),t[2]=K,t[3]=Pe):Pe=t[3];const Be=Pe;let Ee;t[4]!==te||t[5]!==K||t[6]!==fe||t[7]!==ye||t[8]!==Me?(Ee=G(K,{isView:ye,current:te,openWebView:Me,isPreview:fe}),t[4]=te,t[5]=K,t[6]=fe,t[7]=ye,t[8]=Me,t[9]=Ee):Ee=t[9];const Ve=Ee,{ref:De,height:_e}=_t(),Oe=void 0===_e?0:_e,{ref:He,height:Ze}=_t(),We=void 0===Ze?0:Ze,qe=xe||Se;let Ge;t[10]!==B?(Ge=null!==B?B.findIndex(oo):null,t[10]=B,t[11]=Ge):Ge=t[11];const Ye=Ge,Ue=null===Ye||-1===Ye,[Qe,Ke]=(0,n.useState)(qe?Ye:null);let et;t[12]!==re?(et={screenId:re},t[12]=re,t[13]=et):et=t[13];const{create:tt}=Ka(et);let lt;t[14]!==ue||t[15]!==Qe?(lt=(e,t)=>{null===Qe&&(Ke(t),ue("click_answer",`${Qe+1}: ${e.label.body}`,{linkType:"quiz_answer",answer:e,answerIndex:t,isGood:e.good||!1}))},t[14]=ue,t[15]=Qe,t[16]=lt):lt=t[16];const nt=lt;let it,ot,st,ct;t[17]!==te||t[18]!==ve||t[19]!==Qe?(it=()=>{!te&&ve&&null!==Qe&&Ke(null)},ot=[ve,te,Qe,Ke],t[17]=te,t[18]=ve,t[19]=Qe,t[20]=it,t[21]=ot):(it=t[20],ot=t[21]),(0,n.useEffect)(it,ot),t[22]!==B||t[23]!==ye||t[24]!==tt||t[25]!==Qe?(st=()=>{if(ye&&null!==Qe){const{good:e,label:t}=null!==Qe&&B?B[Qe]:{},l=void 0!==e&&e,n=void 0===t?{}:t,{body:a}=n||{};tt({choice:(void 0===a?"":a)||Qe,value:l?1:0})}},ct=[ye,Qe,B,tt],t[22]=B,t[23]=ye,t[24]=tt,t[25]=Qe,t[26]=st,t[27]=ct):(st=t[26],ct=t[27]),(0,n.useEffect)(st,ct);const dt=!ve&&Re||!te,[ut,mt]=(0,n.useState)(!1);let gt;t[28]!==ue?(gt=e=>{const{initial:t}=e;t&&ue("scroll","Screen"),mt(!0)},t[28]=ue,t[29]=gt):gt=t[29];const yt=gt;let pt;t[30]===Symbol.for("react.memo_cache_sentinel")?(pt=()=>{mt(!1)},t[30]=pt):pt=t[30];const ft=pt;let vt;t[31]!==ue?(vt=e=>{const t=void 0===e?null:e;if(null!==t){const e=Math.round(100*t);ue("scroll",e,{scrollPercent:e})}},t[31]=ue,t[32]=vt):vt=t[32];const xt=vt,[St,wt]=(0,n.useState)(!1);let Ct;t[33]===Symbol.for("react.memo_cache_sentinel")?(Ct=e=>{const{canScroll:t}=e;wt(void 0!==t&&t)},t[33]=Ct):Ct=t[33];const jt=Ct;let kt;t[34]===Symbol.for("react.memo_cache_sentinel")?(kt=()=>{Ke(null)},t[34]=kt):kt=t[34];const Mt=kt;let Nt;t[35]!==B?(Nt=B||[],t[35]=B,t[36]=Nt):Nt=t[36];const $t=Nt.length;let Tt,Rt;t[37]===Symbol.for("react.memo_cache_sentinel")?(Tt=()=>{Mt()},t[37]=Tt):Tt=t[37],t[38]!==$t?(Rt=[$t,Mt],t[38]=$t,t[39]=Rt):Rt=t[39],(0,n.useEffect)(Tt,Rt);const zt="split"===L?null:L,Lt=ve&&null!==Qe;let It,At,Pt;t[40]!==se||t[41]!==we?(It=Ft([io.container,se,{[io.disabled]:we}]),t[40]=se,t[41]=we,t[42]=It):It=t[42],t[43]!==Lt?(At=Lt?(0,I.jsx)(El,{className:io.reset,icon:(0,I.jsx)(yl.gc,{icon:Cl.ye,size:"md"}),onClick:Mt}):null,t[43]=Lt,t[44]=At):At=t[44],t[45]!==Ae||t[46]!==St||t[47]!==J||t[48]!==De||t[49]!==be||t[50]!==fe||t[51]!==ut||t[52]!==dt||t[53]!==X||t[54]!==Qe||t[55]!==Ce?(Pt=!be&&Ae?(0,I.jsx)("div",{className:Ft([io.header,{[io.disabled]:null!==Qe||ut&&!dt&&St}]),ref:De,style:{paddingTop:X/2,paddingLeft:X,paddingRight:X,paddingBottom:X,transform:fe?null:`translate(0, ${Ce}px)`},children:(0,I.jsx)(xa,{...J})}):null,t[45]=Ae,t[46]=St,t[47]=J,t[48]=De,t[49]=be,t[50]=fe,t[51]=ut,t[52]=dt,t[53]=X,t[54]=Qe,t[55]=Ce,t[56]=Pt):Pt=t[56];const Bt=te&&ye;let Et,Vt,Dt,Ot,Ht,Zt,Wt;return t[57]!==te||t[58]!==We||t[59]!==Oe||t[60]!==be||t[61]!==fe||t[62]!==X||t[63]!==je||t[64]!==Ce?(Et=be?null:{paddingLeft:X,paddingRight:X,paddingTop:(fe?0:Ce)+(Oe||X),paddingBottom:(te&&!fe?je:0)+(We||X)},t[57]=te,t[58]=We,t[59]=Oe,t[60]=be,t[61]=fe,t[62]=X,t[63]=je,t[64]=Ce,t[65]=Et):Et=t[65],t[66]!==B||t[67]!==U||t[68]!==D||t[69]!==_||t[70]!==H||t[71]!==W||t[72]!==Y||t[73]!==O||t[74]!==Z||t[75]!==ye||t[76]!==A||t[77]!==L||t[78]!==q||t[79]!==nt||t[80]!==P||t[81]!==E||t[82]!==V||t[83]!==qe||t[84]!==Bt||t[85]!==Et||t[86]!==Re||t[87]!==Te||t[88]!==ie||t[89]!==ae||t[90]!==Qe||t[91]!==Ue||t[92]!==Q?(Vt=(0,I.jsx)(ao,{question:P,answers:B,keypadLayout:A,result:E,resultImage:V,answeredIndex:Qe,buttonsLayout:D,buttonsStyle:_,buttonsTextStyle:H,inactiveButtonsStyle:O,inactiveButtonsTextStyle:Z,feedbackTextStyle:W,numbersTextStyle:q,goodAnswerColor:Y,badAnswerColor:U,withoutTrueFalse:Q,withoutGoodAnswer:Ue,focusable:Bt,animated:ye,showInstantAnswer:qe,withResult:!0,layout:L,transitions:ae,transitionPlaying:Te,transitionStagger:ie,transitionDisabled:Re,onAnswerClick:nt,className:io.question,style:Et}),t[66]=B,t[67]=U,t[68]=D,t[69]=_,t[70]=H,t[71]=W,t[72]=Y,t[73]=O,t[74]=Z,t[75]=ye,t[76]=A,t[77]=L,t[78]=q,t[79]=nt,t[80]=P,t[81]=E,t[82]=V,t[83]=qe,t[84]=Bt,t[85]=Et,t[86]=Re,t[87]=Te,t[88]=ie,t[89]=ae,t[90]=Qe,t[91]=Ue,t[92]=Q,t[93]=Vt):Vt=t[93],t[94]!==yt||t[95]!==xt||t[96]!==dt||t[97]!==Pt||t[98]!==Vt||t[99]!==zt?(Dt=(0,I.jsxs)(Ta,{verticalAlign:zt,disabled:dt,onScrolledTrigger:xt,onScrolledBottom:yt,onScrolledNotBottom:ft,onScrollHeightChange:jt,withShadow:!0,children:[Pt,Vt]}),t[94]=yt,t[95]=xt,t[96]=dt,t[97]=Pt,t[98]=Vt,t[99]=zt,t[100]=Dt):Dt=t[100],t[101]!==te||t[102]!==Ve||t[103]!==He||t[104]!==Be||t[105]!==St||t[106]!==be||t[107]!==fe||t[108]!==ut||t[109]!==X||t[110]!==je||t[111]!==ke?(Ot=!be&&Be?(0,I.jsx)("div",{ref:He,className:Ft([io.footer,{[io.disabled]:!ut&&St}]),style:{transform:te&&!fe?`translate(0, -${je}px)`:null,paddingLeft:Math.max(X/2,ke),paddingRight:Math.max(X/2,ke),paddingTop:X/2,paddingBottom:X/2},children:(0,I.jsx)(fa,{...Ve})}):null,t[101]=te,t[102]=Ve,t[103]=He,t[104]=Be,t[105]=St,t[106]=be,t[107]=fe,t[108]=ut,t[109]=X,t[110]=je,t[111]=ke,t[112]=Ot):Ot=t[112],t[113]!==ge||t[114]!==At||t[115]!==Dt||t[116]!==Ot||t[117]!==me?(Ht=(0,I.jsxs)(na,{width:me,height:ge,className:io.content,children:[At,Dt,Ot]}),t[113]=ge,t[114]=At,t[115]=Dt,t[116]=Ot,t[117]=me,t[118]=Ht):Ht=t[118],t[119]!==ee||t[120]!==ze||t[121]!==oe||t[122]!==ge||t[123]!==be||t[124]!==fe||t[125]!==$e||t[126]!==Le||t[127]!==Ne||t[128]!==he||t[129]!==me?(Zt=be?null:(0,I.jsx)(la,{background:ee,width:me,height:ge,resolution:he,playing:ze,muted:Ne,shouldLoad:Le,mediaRef:pe($e,oe),withoutVideo:fe,className:io.background}),t[119]=ee,t[120]=ze,t[121]=oe,t[122]=ge,t[123]=be,t[124]=fe,t[125]=$e,t[126]=Le,t[127]=Ne,t[128]=he,t[129]=me,t[130]=Zt):Zt=t[130],t[131]!==It||t[132]!==Ht||t[133]!==Zt?(Wt=(0,I.jsxs)("div",{className:It,"data-screen-ready":!0,children:[Ht,Zt]}),t[131]=It,t[132]=Ht,t[133]=Zt,t[134]=Wt):Wt=t[134],Wt},layouts:["top","middle","bottom","split"],fields:[{name:"question",type:"heading-element",theme:{textStyle:"heading2"},label:(0,A.zR)({id:"hVE7TA",defaultMessage:"Question"})},{name:"answers",type:"quiz-answers",theme:{label:{textStyle:"button"}},label:(0,A.zR)({id:"KHWeV7",defaultMessage:"Answers"})},{name:"keypadLayout",type:"keypad-layout",isList:!0,defaultValue:{columnAlign:"middle",columns:1,spacing:10,withSquareItems:!1},label:(0,A.zR)({id:"FjuRaw",defaultMessage:"Keypad settings"})},{name:"withoutTrueFalse",type:"toggle",label:(0,A.zR)({id:"LFziCV",defaultMessage:"Without right/wrong icon"})},{name:"result",type:"text-element",theme:{textStyle:"text"},label:(0,A.zR)({id:"iQ5Uf7",defaultMessage:"Default feedback"})},{name:"resultImage",type:"visual",label:(0,A.zR)({id:"yA4B6h",defaultMessage:"Result feedback image"})},{type:"fields",isList:!0,label:(0,A.zR)({id:"R9DB4a",defaultMessage:"Styles"}),fields:[{name:"buttonsLayout",type:"button-layout",label:(0,A.zR)({id:"8Dmlwh",defaultMessage:"Answer button layout"})},{name:"buttonsTextStyle",type:"text-style-form",label:(0,A.zR)({id:"gwPu/I",defaultMessage:"Buttons text"})},{name:"buttonsStyle",type:"box-style-form",label:(0,A.zR)({id:"l5uLMd",defaultMessage:"Buttons"})},{name:"inactiveButtonsTextStyle",type:"text-style-form",label:(0,A.zR)({id:"my7Kox",defaultMessage:"Inactive buttons text"})},{name:"inactiveButtonsStyle",type:"box-style-form",label:(0,A.zR)({id:"xlFOg3",defaultMessage:"Inactive buttons"})},{name:"feedbackTextStyle",type:"text-style-form",label:(0,A.zR)({id:"4w7K2K",defaultMessage:"Feedback text"})},{name:"goodAnswerColor",type:"color",label:(0,A.zR)({id:"hZcXoa",defaultMessage:"Good answer icon color"})},{name:"badAnswerColor",type:"color",label:(0,A.zR)({id:"NbTtNk",defaultMessage:"Bad answer icon color"})}]},{name:"background",type:"background",label:(0,A.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,A.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,A.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]},{id:"quiz-multiple",type:"screen",group:{label:(0,A.zR)({id:"ZiWlL6",defaultMessage:"Questions"}),order:7},title:(0,A.zR)({id:"ACkeH6",defaultMessage:"Quiz with multiple questions"}),component:function({id:e=null,layout:t="middle",introLayout:l=null,title:a=null,description:i=null,questions:o=null,results:s=null,buttonsStyle:r=null,inactiveButtonsStyle:c=null,buttonsTextStyle:d=null,inactiveButtonsTextStyle:u=null,questionsHeadingStyle:g=null,resultsHeadingStyle:h=null,resultsTextStyle:y=null,feedbackTextStyle:p=null,numbersTextStyle:f=null,goodAnswerColor:b=null,badAnswerColor:v=null,spacing:x=20,background:S=null,introBackground:w=null,introButton:C=null,nextButton:j=null,header:k=null,footer:M=null,current:N=!0,active:$=!0,transitions:F=null,transitionStagger:T=100,type:R=null,mediaRef:z=null,className:L=null}){const P=e||"screen-id",B=rl(R),{width:E,height:V,resolution:D}=rt(),{topHeight:_,bottomHeight:O,bottomSidesWidth:H}=ht(),{isView:Z,isPreview:W,isPlaceholder:q,isEdit:Y,isStatic:U,isCapture:Q}=at(),{muted:X}=Xe(),{open:J}=bt(),K=it(),[ee=null,te=0]=null!==K?K.split("."):[],le=N,ne=U||Q||q||W||Y,ae=he(j),ie=ce(k),oe=de(M),se=G(M,{isView:Z,current:N,openWebView:J,isPreview:W}),{ref:re,height:ue=0}=_t(),{ref:ge,height:ye=0}=_t(),fe=U||Q,be=null!==a||null!==i||Y||"intro"===ee,[ve,xe]=(0,n.useState)(null);let Se="intro";null!==ee?Se="questions"===ee?parseInt(te,10):ee:!q&&be||(Se=0);const[we,Ce]=(0,n.useState)(Se);(0,n.useEffect)(()=>{W&&be&&"intro"!==we&&Ce("intro")},[W,be,we,Ce]);const je=(0,n.useCallback)((e,t)=>{xe({...ve,[we]:t}),B("click_answer",`Question #${we+1} ${t+1}: ${e.label.body}`,{linkType:"quiz_answer",question:o[we],questionIndex:we,answer:e,answerIndex:t})},[ve,xe,B,o,we]),ke=(0,n.useCallback)(()=>{Ce(0)},[Ce]);(0,n.useEffect)(()=>{!N&&Y&&null!==ve&&xe(null)},[Y,N,ve,xe]);const Me=null!==o&&o.length>0&&o[we]||{},{text:Ne=null,answers:$e=[],background:Fe=null,layout:Te=null,keypadLayout:Re=null,result:ze=null,resultImage:Le=null}=Me||{},Ie=null!==ve&&void 0!==ve[we]?ve[we]:null,Ae=null!==Ie&&void 0!==$e[Ie]?$e[Ie]:null,{result:Pe=null}=Ae||{},Be=null!==$e&&void 0!==($e||[]).find(e=>!0===e?.good||!1===e?.good),Ee=null!==$e?$e.findIndex(e=>null!==e&&!0===e.good):null,Ve=null===Ee||-1===Ee,De=he(ze),_e=me(Le),Oe=he(Pe),He=De||_e||Oe,Ze=(0,n.useCallback)(()=>{if(Y||W)return;const e=we+1,t=o.length;e<t?Ce(e):e===t&&Ce("results")},[o,we,Ce,Y,W]),We=(0,n.useMemo)(()=>null!==ve?Object.keys(ve).reduce((e,t)=>{const{answers:l=[]}=null!==o&&o[t]||{},n=ve[t],{points:a=0}=l[n]||{};return a+e},0):0,[ve,o]),qe=be&&"intro"===we,Ge="results"===we,Ye=!qe&&!Ge,Ue=(0,n.useMemo)(()=>Ge?"results"===ee?(s||[])[parseInt(te,10)]||null:(s||[]).sort(({points:e=0},{points:t=0})=>e===t?0:e>t?1:-1).reduce((e,t)=>{const{points:l=0}=e||{},{points:n=0}=t||{};return We>=(l||0)&&We>=n?t:e},null):null,[Ge,s,We,ee,te]);(0,n.useEffect)(()=>{if(null!==Ue&&Ge){const{title:e=null,points:t=null}=Ue||{};B("view_result",`Result: ${e?.body||"No title"}`,{resultPoints:t||null,userPoints:We||null})}},[Ue,We,Ge,B]);const{background:Qe=null,layout:Ke=null}=Ue||{},{create:et}=Ka({screenId:P});(0,n.useEffect)(()=>{if(!Ge||!Z)return;const e=m(ve)?JSON.stringify(ve):ve;et({choice:e,value:We})},[Z,Ge,ve,et]),(0,n.useEffect)(()=>{(Y||W)&&("questions"===ee?Ce(parseInt(te,10)):"results"===ee?Ce("results"):"intro"===ee&&Ce("intro"))},[ee,te,Y,W,Ce]);let tt=S,lt="background";qe&&null!==w?(tt=w,lt="results"):Ge&&null!==Qe?(tt=Qe,lt="results"):Ye&&null!==Fe&&(tt=Fe,lt=`question_${we}`);const{ref:nt,isCurrent:ot=!1}=Je(N,null!==tt,lt),st=N&&(Z||Y)&&(ot||!Z),ct=N||$,dt=(0,n.useRef)(we),ut=(0,n.useMemo)(()=>{if(we===dt.current)return null;const{current:e}=dt;return dt.current=we,"intro"===we||"results"===e||e>we?"left":(dt.current=we,"right")},[we]),mt=!Y&&ne||!N||qe,[gt,yt]=(0,n.useState)(!1),pt=(0,n.useCallback)(({initial:e})=>{e&&B("scroll","Screen"),yt(!0)},[B]),ft=(0,n.useCallback)(()=>{yt(!1)},[yt]),vt=(0,n.useCallback)((e=null)=>{if(null!==e){const t=Math.round(100*e);B("scroll",t,{scrollPercent:t})}},[B]),[xt,St]=(0,n.useState)(!1),wt=(0,n.useCallback)(({canScroll:e=!1})=>{St(e)},[St]),Ct=(0,n.useCallback)(()=>{xe(null)},[xe]);let jt=t;qe&&null!==l?jt=l:(Ye&&null!==Te||Ge&&null!==Ke)&&(jt=Te);const kt=Y,Mt=Y&&null!==Ie,Nt=[];qe&&Nt.push({key:"intro",element:(0,I.jsx)(uo,{title:a,description:i,layout:l||t,button:C,buttonDisabled:(o||[]).length<1||Y||W,focusable:N&&Z,transitions:F,transitionPlaying:le,transitionStagger:T,transitionDisabled:ne,className:io.intro,style:q?null:{paddingLeft:x,paddingRight:x,paddingTop:(W?0:_)+x,paddingBottom:(N&&!W?O:0)+(ye||x)},onClickButton:ke})}),Ye&&Nt.push({key:`question-${we}`,element:(0,I.jsx)(ao,{index:we,totalCount:(o||[]).length,question:Ne,answers:$e,keypadLayout:Re,answeredIndex:Ie,buttonsStyle:r,inactiveButtonsStyle:c,buttonsTextStyle:d,inactiveButtonsTextStyle:u,questionsHeadingStyle:g,feedbackTextStyle:p,numbersTextStyle:f,goodAnswerColor:b,badAnswerColor:v,focusable:N&&Z,showInstantAnswer:fe,layout:Te||t,result:ze,resultImage:Le,withResult:He,withoutGoodAnswer:Ve,withoutTrueFalse:!Be,withoutCollapse:Be,transitions:F,transitionPlaying:le,transitionStagger:T,transitionDisabled:ne,onAnswerClick:je,onAnswerTransitionEnd:He?null:Ze,className:io.question,style:q?null:{paddingLeft:x,paddingRight:x,paddingTop:(N&&!W?_:0)+(ue||x),paddingBottom:(N&&!W?O:0)+(ye||x)}})}),He&&null!==Ie&&Nt.push({key:"next",element:(0,I.jsx)("div",{className:io.next,style:q?null:{paddingLeft:x,paddingRight:x,paddingTop:(N&&!W?_:0)+(ue||x),paddingBottom:(N&&!W?O:0)+(ye||x)},children:(0,I.jsx)(da,{disabled:null===Ie,focusable:!0,buttonStyle:null!==j?j.buttonStyle:null,className:io.nextButton,onClick:Ze,children:ae?(0,I.jsx)(Wn,{...j,className:io.label}):(0,I.jsx)("span",{className:io.label,children:(0,I.jsx)(A.sA,{id:"SVLGTA",defaultMessage:"Next"})})})})}),Ge&&Nt.push({key:"results",element:(0,I.jsx)(ro,{...Ue,resultsHeadingStyle:h,resultsTextStyle:y,layout:Ke||t,transitions:F,transitionPlaying:le,transitionStagger:T,transitionDisabled:ne,className:io.results,style:q?null:{paddingLeft:x,paddingRight:x,paddingTop:(N&&!W?_:0)+(ue||x),paddingBottom:(N&&!W?O:0)+(ye||x)}})});const $t=(0,Tl.pn)(Nt,{keys:e=>e.key,from:e=>"next"===e.key?{transform:"translateX(0%)"}:{transform:"left"===ut?"translateX(-100%)":"translateX(100%)"},enter:{transform:"translateX(0%)"},leave:e=>"next"===e.key?{transform:"translateX(0%)"}:{transform:"left"===ut?"translateX(100%)":"translateX(-100%)"},config:e=>"next"===e.key?{duration:0}:{duration:1e3,easing:Tl.le.easeInOutSine}}),Tt=(0,n.useMemo)(()=>({key:lt,background:tt||null}),[lt,tt]),Rt=(0,Tl.pn)(Tt,{keys:e=>e.key,from:{opacity:0},enter:{opacity:1},leave:{opacity:0},config:{duration:1e3,easing:Tl.le.easeInOutSine}});return(0,I.jsxs)("div",{className:Ft([io.container,L]),"data-screen-ready":!0,children:[(0,I.jsxs)(na,{width:E,height:V,className:io.content,children:[kt&&null!==We&&We>0?(0,I.jsxs)("div",{className:io.points,children:[`${We} `,(0,I.jsx)(A.sA,{id:"Xr1v8l",defaultMessage:"points gained"})]}):null,Mt?(0,I.jsx)(da,{className:io.reset,icon:(0,I.jsx)(yl.gc,{icon:Cl.ye,size:"md"}),onClick:Ct}):null,!q&&ie?(0,I.jsx)("div",{className:Ft([io.header,{[io.disabled]:gt&&!mt&&xt}]),ref:re,style:{paddingTop:x/2,paddingLeft:x,paddingRight:x,paddingBottom:x,transform:W?null:`translate(0, ${_}px)`},children:(0,I.jsx)(xa,{...k})}):null,(0,I.jsx)(Ta,{verticalAlign:jt,disabled:mt,onScrolledTrigger:vt,onScrolledBottom:pt,onScrolledNotBottom:ft,onScrollHeightChange:wt,withShadow:!0,children:(0,I.jsx)("div",{style:{position:"absolute",inset:"0"},children:$t((e,t)=>{const l=Nt.some(e=>e.key===t.key);return(0,I.jsx)(Tl.CS.div,{style:{...e,...l?{position:"relative",zIndex:1,top:0,left:0,width:"100%",minHeight:He&&null!==Ie?0:"100%"}:{position:"absolute",top:0,left:0,width:"100%",minHeight:"100%",zIndex:0}},children:t.element})})})}),!q&&oe?(0,I.jsx)("div",{ref:ge,className:Ft([io.footer,{[io.disabled]:!gt}]),style:{paddingLeft:Math.max(x/2,H),paddingRight:Math.max(x/2,H),paddingTop:x/2,paddingBottom:x/2,transform:W?null:`translate(0, -${O}px)`},children:(0,I.jsx)(fa,{...se})}):null]}),q?null:Rt((e,t)=>(0,I.jsx)(Tl.CS.div,{style:{...e,position:"absolute",top:0,left:0,width:"100%",height:"100%",zIndex:t.key===Tt.key?1:0},children:(0,I.jsx)(la,{background:t.background,width:E,height:V,resolution:D,playing:t.key===Tt.key&&st,muted:X,shouldLoad:ct,mediaRef:t.key===Tt.key?pe(nt,z):null,className:io.background,withoutVideo:W})}))]})},layouts:["top","middle","bottom","split"],states:[{id:"intro",label:(0,A.zR)({id:"BgrRxZ",defaultMessage:"Intro"}),fields:[{name:"introLayout",type:"screen-layout",defaultValue:"middle",screenState:"intro",label:(0,A.zR)({id:"4iBXj2",defaultMessage:"Layout"})},{name:"title",type:"heading-element",theme:{textStyle:"heading2"},label:(0,A.zR)({id:"+AEVbJ",defaultMessage:"Title"})},{name:"description",type:"text-element",theme:{textStyle:"text"},label:(0,A.zR)({id:"ZCe0r4",defaultMessage:"Description"})},{name:"introButton",type:"button-element",theme:{textStyle:"button"},label:(0,A.zR)({id:"i6bmbD",defaultMessage:"Button"})},{name:"introBackground",type:"background",label:(0,A.zR)({id:"cDj1mZ",defaultMessage:"Background"})}]},{id:"questions",label:(0,A.zR)({id:"VMd1oG",defaultMessage:"Questions"}),repeatable:!0,fieldName:"questions",fields:[{name:"text",type:"heading-element",theme:{textStyle:"heading2"},label:(0,A.zR)({id:"hVE7TA",defaultMessage:"Question"})},{name:"answers",type:"quiz-points-answers",theme:{label:{textStyle:"button"}},label:(0,A.zR)({id:"KHWeV7",defaultMessage:"Answers"})},{name:"keypadLayout",type:"keypad-layout",isList:!0,withoutLabel:!0,defaultValue:{columnAlign:"middle",columns:1,spacing:10,withSquareItems:!1},label:(0,A.zR)({id:"FjuRaw",defaultMessage:"Keypad settings"})},{name:"background",type:"background",label:(0,A.zR)({id:"cDj1mZ",defaultMessage:"Background"})}]},{id:"results",label:(0,A.zR)({id:"uiTxd7",defaultMessage:"Results"}),repeatable:!0,fields:[{name:"layout",type:"screen-layout",defaultValue:"top",screenState:"results",label:(0,A.zR)({id:"4iBXj2",defaultMessage:"Layout"})},{name:"title",type:"heading-element",theme:{textStyle:"heading2"},label:(0,A.zR)({id:"+AEVbJ",defaultMessage:"Title"})},{name:"description",type:"text-element",theme:{textStyle:"text"},label:(0,A.zR)({id:"ZCe0r4",defaultMessage:"Description"})},{name:"points",type:"number",isHorizontal:!0,label:(0,A.zR)({id:"jWAJW4",defaultMessage:"Points"}),help:(0,A.zR)({id:"JoyIgA",defaultMessage:"Minimum points for this result"})},{name:"background",type:"background",label:(0,A.zR)({id:"cDj1mZ",defaultMessage:"Background"})}]}],fields:[{name:"layout",type:"screen-layout",defaultValue:"top",label:(0,A.zR)({id:"OPxJx/",defaultMessage:"Layout"})},{type:"fields",label:(0,A.zR)({id:"LOknw0",defaultMessage:"Styles"}),isList:!0,fields:[{name:"buttonsStyle",type:"box-style-form",label:(0,A.zR)({id:"l5uLMd",defaultMessage:"Buttons"})},{name:"buttonsTextStyle",type:"text-style-form",label:(0,A.zR)({id:"gwPu/I",defaultMessage:"Buttons text"})},{name:"inactiveButtonsTextStyle",type:"text-style-form",label:(0,A.zR)({id:"my7Kox",defaultMessage:"Inactive buttons text"})},{name:"inactiveButtonsStyle",type:"box-style-form",label:(0,A.zR)({id:"xlFOg3",defaultMessage:"Inactive buttons"})},{name:"questionsHeadingStyle",type:"text-style-form",label:(0,A.zR)({id:"+FHxPO",defaultMessage:"Questions title"})},{name:"resultsHeadingStyle",type:"text-style-form",label:(0,A.zR)({id:"BnRW4y",defaultMessage:"Results title"})},{name:"resultsTextStyle",type:"text-style-form",label:(0,A.zR)({id:"uDHTZn",defaultMessage:"Results description"})},{name:"numbersTextStyle",type:"text-style-form",label:(0,A.zR)({id:"iltluX",defaultMessage:"Numbers text"})}]},{name:"nextButton",type:"button-element",theme:{textStyle:"button"},label:(0,A.zR)({id:"Yu/PB5",defaultMessage:"Next button"})},{name:"background",type:"background",label:(0,A.zR)({id:"cDj1mZ",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,A.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,A.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]}],go="micromag-element-quote-showEmpty";function ho(e){const t=(0,i.c)(43),{body:l,textStyle:a,linksStyle:o,margin:s,showEmpty:r,className:c,emptyClassName:d}=e,u=void 0===l?null:l,m=void 0===a?null:a,g=void 0===o?null:o,h=void 0===s?null:s,y=void 0!==r&&r,p=void 0===c?null:c,f=void 0===d?null:d;let b;t[0]!==m?(b=m||{},t[0]=m,t[1]=b):b=t[1];const{link:v,highlight:x}=b,S=void 0===v?null:v,w=void 0===x?null:x;let C;t[2]===Symbol.for("react.memo_cache_sentinel")?(C={},t[2]=C):C=t[2];let j,k=C;t[3]!==S?(j=null!==S?ne(S):null,t[3]=S,t[4]=j):j=t[4];let M,N=j;t[5]!==w?(M=null!==w?le(w):null,t[5]=w,t[6]=M):M=t[6];const $=M;if(null!==m){const e=k;let l,n;t[7]!==m?(l=ae(m),t[7]=m,t[8]=l):l=t[8],t[9]!==l?(n={...e,...l},t[9]=l,t[10]=n):n=t[10],k=n}if(null!==h){const e=k;let l,n;t[11]!==h?(l=ie(h),t[11]=h,t[12]=l):l=t[12],t[13]!==k||t[14]!==l?(n={...e,...l},t[13]=k,t[14]=l,t[15]=n):n=t[15],k=n}if(null!==g){const e=N;let l,n;t[16]!==g?(l=ae(g),t[16]=g,t[17]=l):l=t[17],t[18]!==N||t[19]!==l?(n={...e,...l},t[18]=N,t[19]=l,t[20]=n):n=t[20],N=n}const F=(0,n.useId)(),T=null!==N?`quote-component-${F}`:null;let R,z;t[21]!==N||t[22]!==T?(R=null!==N?(0,I.jsx)(Vn,{selector:`#${O(T)}`,style:N}):null,t[21]=N,t[22]=T,t[23]=R):R=t[23],t[24]!==$||t[25]!==T?(z=null!==$?(0,I.jsx)(Bn,{selector:`#${O(T)}`,style:$}):null,t[24]=$,t[25]=T,t[26]=z):z=t[26];const L=y&&null!==f;let A,P,B,E;return t[27]!==p||t[28]!==f||t[29]!==y||t[30]!==L?(A=Ft(["micromag-element-quote-container",p,{[go]:y,[f]:L}]),t[27]=p,t[28]=f,t[29]=y,t[30]=L,t[31]=A):A=t[31],t[32]!==u?(P={__html:u},t[32]=u,t[33]=P):P=t[33],t[34]!==k||t[35]!==T||t[36]!==A||t[37]!==P?(B=(0,I.jsx)("blockquote",{id:T,className:A,style:k,dangerouslySetInnerHTML:P}),t[34]=k,t[35]=T,t[36]=A,t[37]=P,t[38]=B):B=t[38],t[39]!==R||t[40]!==z||t[41]!==B?(E=(0,I.jsxs)(I.Fragment,{children:[R,z,B]}),t[39]=R,t[40]=z,t[41]=B,t[42]=E):E=t[42],E}var yo={container:"micromag-screen-quote-container",background:"micromag-screen-quote-background",content:"micromag-screen-quote-content",emptyQuote:"micromag-screen-quote-emptyQuote",emptyAuthor:"micromag-screen-quote-emptyAuthor",quote:"micromag-screen-quote-quote",withMargin:"micromag-screen-quote-withMargin",isPlaceholder:"micromag-screen-quote-isPlaceholder",layout:"micromag-screen-quote-layout"},po={id:"quote",type:"screen",group:{label:(0,A.zR)({id:"fIawTr",defaultMessage:"Text"}),order:2},title:(0,A.zR)({id:"3q9GPv",defaultMessage:"Quote"}),component:function(e){const t=(0,i.c)(159),{layout:l,quote:n,author:a,spacing:o,background:s,header:r,footer:c,current:d,preload:u,mediaRef:m,className:g}=e,h=void 0===l?"top":l,y=void 0===n?null:n,p=void 0===a?null:a,f=void 0===o?20:o,b=void 0===s?null:s,v=void 0===r?null:r,x=void 0===c?null:c,S=void 0===d||d,w=void 0===u||u,C=void 0===m?null:m,j=void 0===g?null:g,{width:k,height:M,resolution:N}=rt(),{isView:$,isPreview:F,isPlaceholder:T,isEdit:R}=at(),{topHeight:z,bottomHeight:L,bottomSidesWidth:P}=ht(),{open:B}=bt(),{muted:E}=Xe(),{ref:V,isCurrent:D}=Je(S,!0),_=void 0!==D&&D,O="split"===h,H="top"===h,Z="middle"===h,W="bottom"===h,q=O?null:h;let Y;t[0]!==v?(Y=ce(v),t[0]=v,t[1]=Y):Y=t[1];const U=Y;let Q;t[2]!==x?(Q=de(x),t[2]=x,t[3]=Q):Q=t[3];const X=Q;let J;t[4]!==S||t[5]!==x||t[6]!==F||t[7]!==$||t[8]!==B?(J=G(x,{isView:$,current:S,openWebView:B,isPreview:F}),t[4]=S,t[5]=x,t[6]=F,t[7]=$,t[8]=B,t[9]=J):J=t[9];const K=J;let ee,te,le,ne,ae,ie,oe,se,re,ue,me,ge,ye,fe,be,ve,xe,Se,we,Ce,je,ke,Me,Ne,$e,Fe,Te,Re;if(t[10]!==p||t[11]!==j||t[12]!==S||t[13]!==X||t[14]!==U||t[15]!==v||t[16]!==M||t[17]!==W||t[18]!==_||t[19]!==R||t[20]!==Z||t[21]!==T||t[22]!==F||t[23]!==O||t[24]!==$||t[25]!==w||t[26]!==y||t[27]!==f||t[28]!==q||t[29]!==L||t[30]!==z||t[31]!==k){const e=he(y);ae=he(p);const l=e&&ae&&!O;ne=S&&($||R)&&(_||!$),ie=S||w,t[57]!==j||t[58]!==T?(Ne=Ft([yo.container,j,{[yo.isPlaceholder]:T}]),t[57]=j,t[58]=T,t[59]=Ne):Ne=t[59],$e=!0,le=na,je=k,ke=M,Me=yo.content,te=$a,ye=yo.layout,fe=!0,be=q,t[60]!==X||t[61]!==U||t[62]!==T||t[63]!==F||t[64]!==f||t[65]!==L||t[66]!==z?(ve=T?null:{paddingLeft:f,paddingRight:f,paddingTop:(F?0:z)+(U?f/2:f),paddingBottom:(F?0:L)+(X?f/2:f)},t[60]=X,t[61]=U,t[62]=T,t[63]=F,t[64]=f,t[65]=L,t[66]=z,t[67]=ve):ve=t[67],t[68]!==U||t[69]!==v||t[70]!==T||t[71]!==f?(xe=!T&&U?(0,I.jsx)("div",{style:{paddingBottom:f},children:(0,I.jsx)(xa,{...v})}):null,t[68]=U,t[69]=v,t[70]=T,t[71]=f,t[72]=xe):xe=t[72],t[73]!==X||t[74]!==Z||t[75]!==T?(Se=!T&&X&&Z?(0,I.jsx)(Ma,{},"spacer-cta-top"):null,t[73]=X,t[74]=Z,t[75]=T,t[76]=Se):Se=t[76],t[77]!==U||t[78]!==W||t[79]!==T?(we=!T&&U&&W?(0,I.jsx)(Ma,{},"spacer-cta-top"):null,t[77]=U,t[78]=W,t[79]=T,t[80]=we):we=t[80],t[81]!==X||t[82]!==U||t[83]!==Z||t[84]!==T?(Ce=!T&&U&&!X&&Z?(0,I.jsx)(Ma,{},"spacer-cta-top"):null,t[81]=X,t[82]=U,t[83]=Z,t[84]=T,t[85]=Ce):Ce=t[85],ee=zn,oe="quote",se="quote",t[86]===Symbol.for("react.memo_cache_sentinel")?(re=(0,I.jsx)(A.sA,{id:"CrzYgw",defaultMessage:"Quote"}),t[86]=re):re=t[86],ue=yo.emptyQuote,me=!e,ge=e?(0,I.jsx)(ho,{className:Ft([yo.quote,{[yo.withMargin]:l}]),...y}):null,t[10]=p,t[11]=j,t[12]=S,t[13]=X,t[14]=U,t[15]=v,t[16]=M,t[17]=W,t[18]=_,t[19]=R,t[20]=Z,t[21]=T,t[22]=F,t[23]=O,t[24]=$,t[25]=w,t[26]=y,t[27]=f,t[28]=q,t[29]=L,t[30]=z,t[31]=k,t[32]=ee,t[33]=te,t[34]=le,t[35]=ne,t[36]=ae,t[37]=ie,t[38]=oe,t[39]=se,t[40]=re,t[41]=ue,t[42]=me,t[43]=ge,t[44]=ye,t[45]=fe,t[46]=be,t[47]=ve,t[48]=xe,t[49]=Se,t[50]=we,t[51]=Ce,t[52]=je,t[53]=ke,t[54]=Me,t[55]=Ne,t[56]=$e}else ee=t[32],te=t[33],le=t[34],ne=t[35],ae=t[36],ie=t[37],oe=t[38],se=t[39],re=t[40],ue=t[41],me=t[42],ge=t[43],ye=t[44],fe=t[45],be=t[46],ve=t[47],xe=t[48],Se=t[49],we=t[50],Ce=t[51],je=t[52],ke=t[53],Me=t[54],Ne=t[55],$e=t[56];t[87]!==ee||t[88]!==oe||t[89]!==se||t[90]!==re||t[91]!==ue||t[92]!==me||t[93]!==ge?(Fe=(0,I.jsx)(ee,{placeholder:se,emptyLabel:re,emptyClassName:ue,isEmpty:me,children:ge},oe),t[87]=ee,t[88]=oe,t[89]=se,t[90]=re,t[91]=ue,t[92]=me,t[93]=ge,t[94]=Fe):Fe=t[94],t[95]!==O?(Te=O?(0,I.jsx)(Ma,{},"spacer"):null,t[95]=O,t[96]=Te):Te=t[96],t[97]===Symbol.for("react.memo_cache_sentinel")?(Re=(0,I.jsx)(A.sA,{id:"xYqGzM",defaultMessage:"Author"}),t[97]=Re):Re=t[97];const ze=!ae;let Le,Ie,Ae,Pe,Be,Ee,Ve,De,_e;return t[98]!==p||t[99]!==ae?(Le=ae?(0,I.jsx)(Wn,{className:yo.author,...p}):null,t[98]=p,t[99]=ae,t[100]=Le):Le=t[100],t[101]!==ze||t[102]!==Le?(Ie=(0,I.jsx)(zn,{placeholder:"subtitle",emptyLabel:Re,emptyClassName:yo.emptyAuthor,isEmpty:ze,children:Le},"author"),t[101]=ze,t[102]=Le,t[103]=Ie):Ie=t[103],t[104]!==X||t[105]!==Z||t[106]!==T||t[107]!==H?(Ae=!T&&X&&(H||Z)?(0,I.jsx)(Ma,{},"spacer-cta-bottom"):null,t[104]=X,t[105]=Z,t[106]=T,t[107]=H,t[108]=Ae):Ae=t[108],t[109]!==X||t[110]!==U||t[111]!==Z||t[112]!==T?(Pe=!T&&U&&!X&&Z?(0,I.jsx)(Ma,{},"spacer-cta-bottom"):null,t[109]=X,t[110]=U,t[111]=Z,t[112]=T,t[113]=Pe):Pe=t[113],t[114]!==K||t[115]!==X||t[116]!==T||t[117]!==f||t[118]!==P?(Be=!T&&X?(0,I.jsx)("div",{style:{paddingTop:f,paddingLeft:Math.max(P-f,0),paddingRight:Math.max(P-f,0)},children:(0,I.jsx)(fa,{...K})}):null,t[114]=K,t[115]=X,t[116]=T,t[117]=f,t[118]=P,t[119]=Be):Be=t[119],t[120]!==te||t[121]!==ye||t[122]!==fe||t[123]!==be||t[124]!==ve||t[125]!==xe||t[126]!==Se||t[127]!==we||t[128]!==Ce||t[129]!==Fe||t[130]!==Te||t[131]!==Ie||t[132]!==Ae||t[133]!==Pe||t[134]!==Be?(Ee=(0,I.jsxs)(te,{className:ye,fullscreen:fe,verticalAlign:be,style:ve,children:[xe,Se,we,Ce,Fe,Te,Ie,Ae,Pe,Be]}),t[120]=te,t[121]=ye,t[122]=fe,t[123]=be,t[124]=ve,t[125]=xe,t[126]=Se,t[127]=we,t[128]=Ce,t[129]=Fe,t[130]=Te,t[131]=Ie,t[132]=Ae,t[133]=Pe,t[134]=Be,t[135]=Ee):Ee=t[135],t[136]!==le||t[137]!==je||t[138]!==ke||t[139]!==Me||t[140]!==Ee?(Ve=(0,I.jsx)(le,{width:je,height:ke,className:Me,children:Ee}),t[136]=le,t[137]=je,t[138]=ke,t[139]=Me,t[140]=Ee,t[141]=Ve):Ve=t[141],t[142]!==b||t[143]!==ne||t[144]!==C||t[145]!==M||t[146]!==T||t[147]!==F||t[148]!==V||t[149]!==ie||t[150]!==E||t[151]!==N||t[152]!==k?(De=T?null:(0,I.jsx)(la,{background:b,width:k,height:M,resolution:N,playing:ne,muted:E,shouldLoad:ie,mediaRef:pe(V,C),withoutVideo:F,className:yo.background}),t[142]=b,t[143]=ne,t[144]=C,t[145]=M,t[146]=T,t[147]=F,t[148]=V,t[149]=ie,t[150]=E,t[151]=N,t[152]=k,t[153]=De):De=t[153],t[154]!==Ne||t[155]!==$e||t[156]!==Ve||t[157]!==De?(_e=(0,I.jsxs)("div",{className:Ne,"data-screen-ready":$e,children:[Ve,De]}),t[154]=Ne,t[155]=$e,t[156]=Ve,t[157]=De,t[158]=_e):_e=t[158],_e},layouts:["top","middle","bottom","split"],fields:[{name:"layout",type:"screen-layout",defaultValue:"top",label:(0,A.zR)({id:"4iBXj2",defaultMessage:"Layout"})},{name:"quote",type:"heading-element",fieldType:"multi",theme:{textStyle:"heading2"},label:(0,A.zR)({id:"88/Ge8",defaultMessage:"Quote"})},{name:"author",type:"text-element",theme:{textStyle:"text"},label:(0,A.zR)({id:"73hxYw",defaultMessage:"Author"})},{name:"background",type:"background",label:(0,A.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,A.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,A.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]},fo={container:"micromag-screen-ranking-container",background:"micromag-screen-ranking-background",content:"micromag-screen-ranking-content",empty:"micromag-screen-ranking-empty",emptyTitle:"micromag-screen-ranking-emptyTitle",item:"micromag-screen-ranking-item",rankText:"micromag-screen-ranking-rankText",itemTitle:"micromag-screen-ranking-itemTitle",description:"micromag-screen-ranking-description",callToAction:"micromag-screen-ranking-callToAction",disabled:"micromag-screen-ranking-disabled",sideLayout:"micromag-screen-ranking-sideLayout",elementsContainer:"micromag-screen-ranking-elementsContainer",rank:"micromag-screen-ranking-rank",label:"micromag-screen-ranking-label",isPlaceholder:"micromag-screen-ranking-isPlaceholder",scroll:"micromag-screen-ranking-scroll"};const bo=[null];function vo(){return{}}var xo={id:"ranking",type:"screen",group:{label:(0,A.zR)({id:"cGItoy",defaultMessage:"List"}),order:8},title:(0,A.zR)({id:"17BMn2",defaultMessage:"Ranking"}),component:function(e){const t=(0,i.c)(109),{layout:l,title:a,items:o,itemTitleStyle:s,itemDescriptionStyle:r,numbersStyle:c,ascending:d,spacing:u,background:m,header:g,footer:h,current:y,preload:p,type:f,mediaRef:b,className:v}=e,x=void 0===l?"side":l,S=void 0===a?null:a,w=void 0===o?bo:o,C=void 0===s?null:s,j=void 0===r?null:r,k=void 0===c?null:c,M=void 0!==d&&d,N=void 0===u?20:u,$=void 0===m?null:m,F=void 0===g?null:g,T=void 0===h?null:h,R=void 0===y||y,z=void 0===p||p,L=void 0===b?null:b,P=void 0===v?null:v,B=rl(void 0===f?null:f),{width:E,height:V,resolution:D}=rt(),{topHeight:_,bottomHeight:O,bottomSidesWidth:H}=ht(),{open:Z}=bt(),{muted:W}=Xe(),{ref:q,isCurrent:Y}=Je(R,!0),U=void 0!==Y&&Y,{isView:Q,isPreview:X,isPlaceholder:J,isEdit:K,isStatic:ee,isCapture:te}=at();let le;t[0]!==J||t[1]!==w?(le=J?[...new Array(10)].map(vo):w||[null],t[0]=J,t[1]=w,t[2]=le):le=t[2];const ne=le,ae=null!==ne?ne.length:0,ie=!K&&(ee||te||J||X||K)||!R,oe=R&&(Q||K)&&(U||!Q),se=R||z;let re;t[3]!==S?(re=he(S),t[3]=S,t[4]=re):re=t[4];const ue=re;let me,ge;t[5]===Symbol.for("react.memo_cache_sentinel")?(me=(0,I.jsx)(A.sA,{id:"BSTWf8",defaultMessage:"Title"}),ge=Ft([fo.empty,fo.emptyTitle]),t[5]=me,t[6]=ge):(me=t[5],ge=t[6]);const ye=!ue;let fe,be;t[7]!==ue||t[8]!==S?(fe=ue?(0,I.jsx)(wa,{className:fo.title,...S}):null,t[7]=ue,t[8]=S,t[9]=fe):fe=t[9],t[10]!==ye||t[11]!==fe?(be=(0,I.jsx)(zn,{placeholder:"Title",emptyLabel:me,emptyClassName:ge,isEmpty:ye,children:fe}),t[10]=ye,t[11]=fe,t[12]=be):be=t[12];const ve=be;let xe,Se;if(t[13]!==ne?(xe=ne||[],t[13]=ne,t[14]=xe):xe=t[14],t[15]!==M||t[16]!==J||t[17]!==j||t[18]!==C||t[19]!==ae||t[20]!==k||t[21]!==xe){let e;t[23]!==M||t[24]!==J||t[25]!==j||t[26]!==C||t[27]!==ae||t[28]!==k?(e=(e,t)=>{const{title:l,description:n}=e||{},a=void 0===l?null:l,i=void 0===n?null:n,o=he(a),s=he(i),{textStyle:r}=a||{},c=void 0===r?null:r,{textStyle:d}=i||{},u=void 0===d?null:d,m=(0,I.jsx)("div",{className:fo.itemTitle,children:(0,I.jsx)(zn,{placeholder:"title",emptyLabel:(0,I.jsx)(A.sA,{id:"bmO4Ss",defaultMessage:"Entry Title"}),emptyClassName:fo.empty,isEmpty:!o,children:o?(0,I.jsx)(wa,{...a,textStyle:{...C||null,...c}}):null})}),g=(0,I.jsx)("div",{className:fo.description,children:(0,I.jsx)(zn,{placeholder:"text",emptyLabel:(0,I.jsx)(A.sA,{id:"507VAi",defaultMessage:"Description"}),emptyClassName:fo.empty,isEmpty:!s,children:s?(0,I.jsx)(Wn,{...i,textStyle:{...j||null,...u}}):null})}),h=`${M?t+1:ae-t}`;return(0,I.jsxs)("div",{className:fo.item,children:[(0,I.jsx)("div",{className:fo.rank,children:J?h:(0,I.jsx)(Wn,{className:fo.rankText,body:h,textStyle:k})}),(0,I.jsxs)("div",{className:fo.label,children:[m,g]})]},`item-${t}`)},t[23]=M,t[24]=J,t[25]=j,t[26]=C,t[27]=ae,t[28]=k,t[29]=e):e=t[29],Se=xe.map(e),t[15]=M,t[16]=J,t[17]=j,t[18]=C,t[19]=ae,t[20]=k,t[21]=xe,t[22]=Se}else Se=t[22];const we=Se;let Ce;t[30]!==F?(Ce=ce(F),t[30]=F,t[31]=Ce):Ce=t[31];const je=Ce;let ke;t[32]!==T?(ke=de(T),t[32]=T,t[33]=ke):ke=t[33];const Me=ke;let Ne;t[34]!==R||t[35]!==T||t[36]!==X||t[37]!==Q||t[38]!==Z?(Ne=G(T,{isView:Q,current:R,openWebView:Z,isPreview:X}),t[34]=R,t[35]=T,t[36]=X,t[37]=Q,t[38]=Z,t[39]=Ne):Ne=t[39];const $e=Ne,[Fe,Te]=(0,n.useState)(!1),{ref:Re,height:ze}=_t(),Le=void 0===ze?0:ze;let Ie;t[40]!==B?(Ie=e=>{const{initial:t}=e;t&&B("scroll","Screen"),Te(!0)},t[40]=B,t[41]=Ie):Ie=t[41];const Ae=Ie;let Pe;t[42]===Symbol.for("react.memo_cache_sentinel")?(Pe=()=>{Te(!1)},t[42]=Pe):Pe=t[42];const Be=Pe;let Ee;t[43]!==B?(Ee=e=>{const t=void 0===e?null:e;if(null!==t){const e=Math.round(100*t);B("scroll",e,{scrollPercent:e})}},t[43]=B,t[44]=Ee):Ee=t[44];const Ve=Ee,De=fo[`${x}Layout`],_e=null!==x;let Oe,He,Ze,We,qe,Ge,Ye,Ue,Qe,Ke;return t[45]!==P||t[46]!==J||t[47]!==De||t[48]!==_e?(Oe=Ft([fo.container,P,{[De]:_e,[fo.isPlaceholder]:J}]),t[45]=P,t[46]=J,t[47]=De,t[48]=_e,t[49]=Oe):Oe=t[49],t[50]!==je||t[51]!==F||t[52]!==J||t[53]!==N||t[54]!==_?(He=!J&&je?(0,I.jsx)("div",{style:{paddingTop:N/2+_,paddingLeft:N,paddingRight:N},children:(0,I.jsx)(xa,{...F})}):null,t[50]=je,t[51]=F,t[52]=J,t[53]=N,t[54]=_,t[55]=He):He=t[55],t[56]!==R||t[57]!==Le||t[58]!==je||t[59]!==J||t[60]!==X||t[61]!==N||t[62]!==O||t[63]!==_?(Ze=J?null:{paddingLeft:N,paddingRight:N,paddingTop:!J&&je?N:(X?0:_)+N,paddingBottom:(R&&!X?O:0)+(Le||N)},t[56]=R,t[57]=Le,t[58]=je,t[59]=J,t[60]=X,t[61]=N,t[62]=O,t[63]=_,t[64]=Ze):Ze=t[64],t[65]!==we?(We=(0,I.jsx)("div",{className:fo.elementsContainer,children:we}),t[65]=we,t[66]=We):We=t[66],t[67]!==Ze||t[68]!==We||t[69]!==ve?(qe=(0,I.jsxs)($a,{className:fo.layout,style:Ze,children:[ve,We]}),t[67]=Ze,t[68]=We,t[69]=ve,t[70]=qe):qe=t[70],t[71]!==Ae||t[72]!==Ve||t[73]!==ie||t[74]!==He||t[75]!==qe?(Ge=(0,I.jsxs)(Ta,{className:fo.scroll,verticalAlign:"middle",disabled:ie,onScrolledTrigger:Ve,onScrolledBottom:Ae,onScrolledNotBottom:Be,withShadow:!0,children:[He,qe]}),t[71]=Ae,t[72]=Ve,t[73]=ie,t[74]=He,t[75]=qe,t[76]=Ge):Ge=t[76],t[77]!==R||t[78]!==$e||t[79]!==Re||t[80]!==Me||t[81]!==J||t[82]!==X||t[83]!==Fe||t[84]!==N||t[85]!==O||t[86]!==H?(Ye=!J&&Me?(0,I.jsx)("div",{ref:Re,className:Ft([fo.callToAction,{[fo.disabled]:!Fe}]),style:{transform:R&&!X?`translate(0, -${O}px)`:null,paddingLeft:Math.max(N/2,H),paddingRight:Math.max(N/2,H),paddingTop:N/2,paddingBottom:N/2},children:(0,I.jsx)(fa,{...$e})}):null,t[77]=R,t[78]=$e,t[79]=Re,t[80]=Me,t[81]=J,t[82]=X,t[83]=Fe,t[84]=N,t[85]=O,t[86]=H,t[87]=Ye):Ye=t[87],t[88]!==V||t[89]!==Ge||t[90]!==Ye||t[91]!==E?(Ue=(0,I.jsxs)(na,{width:E,height:V,className:fo.content,children:[Ge,Ye]}),t[88]=V,t[89]=Ge,t[90]=Ye,t[91]=E,t[92]=Ue):Ue=t[92],t[93]!==$||t[94]!==oe||t[95]!==L||t[96]!==V||t[97]!==J||t[98]!==X||t[99]!==q||t[100]!==se||t[101]!==W||t[102]!==D||t[103]!==E?(Qe=J?null:(0,I.jsx)(la,{background:$,width:E,height:V,resolution:D,playing:oe,muted:W,shouldLoad:se,mediaRef:pe(q,L),withoutVideo:X,className:fo.background}),t[93]=$,t[94]=oe,t[95]=L,t[96]=V,t[97]=J,t[98]=X,t[99]=q,t[100]=se,t[101]=W,t[102]=D,t[103]=E,t[104]=Qe):Qe=t[104],t[105]!==Oe||t[106]!==Ue||t[107]!==Qe?(Ke=(0,I.jsxs)("div",{className:Oe,"data-screen-ready":!0,children:[Ue,Qe]}),t[105]=Oe,t[106]=Ue,t[107]=Qe,t[108]=Ke):Ke=t[108],Ke},layouts:["side","over"],fields:[{name:"layout",type:"screen-layout",defaultValue:"side",label:(0,A.zR)({id:"4iBXj2",defaultMessage:"Layout"})},{name:"title",type:"heading-element",theme:{textStyle:"heading1"},label:(0,A.zR)({id:"N25iDO",defaultMessage:"Title"})},{name:"items",type:"entries",theme:{title:{textStyle:"heading2"},description:{textStyle:"text"}},label:(0,A.zR)({id:"sESmah",defaultMessage:"Entries"})},{type:"fields",label:(0,A.zR)({id:"xac4z/",defaultMessage:"Entry styles"}),isList:!0,fields:[{name:"itemTitleStyle",type:"text-style-form",label:(0,A.zR)({id:"+AEVbJ",defaultMessage:"Title"})},{name:"itemDescriptionStyle",type:"text-style-form",label:(0,A.zR)({id:"ZCe0r4",defaultMessage:"Description"})},{name:"numbersStyle",type:"text-style-form",theme:{textStyle:"heading1"},label:(0,A.zR)({id:"UdrdRF",defaultMessage:"Numbers style"})}]},{name:"ascending",type:"toggle",label:(0,A.zR)({id:"9DhYaZ",defaultMessage:"Ascending"})},{name:"background",type:"background",label:(0,A.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,A.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,A.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]},So=l(4625);function wo(e){const t=(0,i.c)(7),{className:l,size:n}=e,a=void 0===l?null:l,o=void 0===n?45:n;let s,r,c,d;return t[0]!==a?(s=Ft([a]),t[0]=a,t[1]=s):s=t[1],t[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,I.jsxs)("g",{clipPath:"url(#clip0_837_18233)",children:[(0,I.jsx)("path",{d:"M32.8293 17.0498L27.3973 22.5436C27.3582 22.5825 27.3582 22.6453 27.3973 22.6842L31.1987 26.7044C31.4557 26.9576 31.4568 27.3694 31.2007 27.6247L31.1987 27.6267C30.9417 27.8809 30.526 27.8809 30.2699 27.6267L26.4836 23.6214C26.4435 23.5816 26.3782 23.5816 26.337 23.6214L25.4143 24.5557C24.6512 25.3304 23.607 25.7671 22.5156 25.7691C21.4011 25.7631 20.3367 25.3135 19.5606 24.5198L18.672 23.6224C18.6318 23.5826 18.5666 23.5826 18.5254 23.6224L14.7371 27.6286C14.48 27.8829 14.0644 27.8829 13.8083 27.6286C13.5513 27.3754 13.5503 26.9636 13.8063 26.7084L13.8083 26.7064L17.6097 22.6862C17.6448 22.6463 17.6448 22.5855 17.6097 22.5456L12.1717 17.0498C12.1335 17.0109 12.0703 17.0099 12.0301 17.0478C12.011 17.0667 12 17.0927 12 17.1196V28.1132C12.003 28.9976 12.7239 29.7145 13.6155 29.7175H31.3855C32.2761 29.7145 32.998 28.9986 33.001 28.1132V17.1196C33.001 17.0647 32.9568 17.0199 32.9016 17.0199C32.8745 17.0199 32.8484 17.0308 32.8293 17.0498Z",fill:"currentColor"}),(0,I.jsx)("path",{d:"M22.4995 24.459C23.2425 24.461 23.9544 24.1648 24.4735 23.6364L32.3946 15.631C32.1114 15.4036 31.759 15.28 31.3955 15.28H13.6105C13.246 15.279 12.8936 15.4026 12.6105 15.631L20.5305 23.6364C21.0476 24.1628 21.7585 24.46 22.4995 24.459Z",fill:"currentColor"})]}),t[2]=r):r=t[2],t[3]===Symbol.for("react.memo_cache_sentinel")?(c=(0,I.jsx)("defs",{children:(0,I.jsx)("clipPath",{id:"clip0_837_18233",children:(0,I.jsx)("rect",{width:"21",height:"14.4375",fill:"currentColor",transform:"translate(12 15.28)"})})}),t[3]=c):c=t[3],t[4]!==o||t[5]!==s?(d=(0,I.jsxs)("svg",{width:o,height:o,viewBox:"0 0 45 45",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,children:[r,c]}),t[4]=o,t[5]=s,t[6]=d):d=t[6],d}function Co(e){const t=(0,i.c)(7),{className:l,size:n}=e,a=void 0===l?null:l,o=void 0===n?45:n;let s,r,c,d;return t[0]!==a?(s=Ft([a]),t[0]=a,t[1]=s):s=t[1],t[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,I.jsx)("path",{d:"M29.1,33.4a7.19,7.19,0,0,0,10.1,1.4,5,5,0,0,0,.8-.7l4.3-4.3a7.24,7.24,0,0,0,.1-10.2,7.34,7.34,0,0,0-10.2.1l-.1.1-2.5,2.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"3"}),c=(0,I.jsx)("path",{d:"M34.9,30.6a7.19,7.19,0,0,0-10.1-1.4,5,5,0,0,0-.8.7l-4.3,4.3a7.24,7.24,0,0,0-.1,10.2,7.15,7.15,0,0,0,10.2.1l.1-.1,2.5-2.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"3"}),t[2]=r,t[3]=c):(r=t[2],c=t[3]),t[4]!==o||t[5]!==s?(d=(0,I.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 64 64",className:s,children:[r,c]}),t[4]=o,t[5]=s,t[6]=d):d=t[6],d}function jo(e){const t=(0,i.c)(6),{className:l,size:n}=e,a=void 0===l?null:l,o=void 0===n?45:n;let s,r,c;return t[0]!==a?(s=Ft([a]),t[0]=a,t[1]=s):s=t[1],t[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,I.jsx)("path",{d:"M30.8988 12H14.1001C12.9444 12.0053 12.0106 12.9444 12.0106 14.1001L12 32.9989L16.2002 28.7987H30.8999C32.0578 28.7955 32.9968 27.8576 33 26.6986V14.1001C32.9968 12.9422 32.0588 12.0032 30.8999 12H30.8988ZM19.3498 20.3999C19.3498 20.9798 18.8797 21.4499 18.2998 21.4499V21.4499C17.7199 21.4499 17.2497 20.9798 17.2497 20.3999V20.3999C17.2497 19.82 17.7199 19.3498 18.2998 19.3498V19.3498C18.8797 19.3498 19.3498 19.82 19.3498 20.3999V20.3999ZM23.5501 20.3999C23.5501 20.9798 23.0799 21.4499 22.5 21.4499V21.4499C21.9201 21.4499 21.4499 20.9798 21.4499 20.3999V20.3999C21.4499 19.82 21.9201 19.3498 22.5 19.3498V19.3498C23.0799 19.3498 23.5501 19.82 23.5501 20.3999V20.3999ZM27.7503 20.3999C27.7503 20.9798 27.2801 21.4499 26.7002 21.4499V21.4499C26.1203 21.4499 25.6502 20.9798 25.6502 20.3999V20.3999C25.6502 19.82 26.1203 19.3498 26.7002 19.3498V19.3498C27.2801 19.3498 27.7503 19.82 27.7503 20.3999V20.3999Z",fill:"currentColor"}),t[2]=r):r=t[2],t[3]!==o||t[4]!==s?(c=(0,I.jsx)("svg",{width:o,height:o,viewBox:"0 0 45 45",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,children:r}),t[3]=o,t[4]=s,t[5]=c):c=t[5],c}var ko={item:"micromag-element-share-options-item",button:"micromag-element-share-options-button",icon:"micromag-element-share-options-icon",label:"micromag-element-share-options-label",spacer:"micromag-element-share-options-spacer",labelText:"micromag-element-share-options-labelText"};function Mo({className:e=null,itemClassName:t=null,labelClassName:l=null,buttonClassName:a=null,title:i=null,url:o=null,options:s=null,buttonsStyle:r=null,buttonsTextStyle:c=null,iconSize:d=45,theme:u=null,onShare:g=null,onClose:h=null,focusable:y=!0}){const{menuTheme:p=null}=u||{},{colors:f=null}=p||{},{primary:b=null}=f||{};let v=J(b,"color");null!==c&&(v={...v,...ae(c)}),null!==r&&(v={...v,...te(r)});const[x,S]=(0,n.useState)(!1),w=(0,n.useCallback)(()=>{(async function(e){try{await async function(e){if(!navigator.clipboard)throw D();return navigator.clipboard.writeText(e)}(e)}catch(t){try{await async function(e){const t=document.createElement("span");t.textContent=e,t.style.whiteSpace="pre",t.style.webkitUserSelect="auto",t.style.userSelect="all",document.body.appendChild(t);const l=window.getSelection(),n=window.document.createRange();l.removeAllRanges(),n.selectNode(t),l.addRange(n);let a=!1;try{a=window.document.execCommand("copy")}finally{l.removeAllRanges(),window.document.body.removeChild(t)}if(!a)throw D()}(e)}catch(e){throw e||t||D()}}})(o).then(()=>{S(!0),setTimeout(()=>{S(!1)},2e3)})},[o,S]),C=(0,n.useCallback)(e=>{null!==g&&g(e)},[g]),j=(0,n.useMemo)(()=>({className:Ft([ko.button,a]),url:o,onShareWindowClose:()=>{null!==h&&h()}}),[o,h]),k=(0,n.useMemo)(()=>({className:ko.icon,size:d,bgStyle:{fill:"none"},iconFillColor:"currentColor"}),[d]),M=[{id:"facebook",button:(0,I.jsxs)(So.uI,{...j,quote:i,beforeOnClick:()=>(C("Facebook"),Promise.resolve()),tabIndex:y?null:"-1",style:v,children:[(0,I.jsx)(So.ik,{...k}),(0,I.jsx)("div",{className:Ft([ko.label,l]),children:"Facebook"}),(0,I.jsx)("div",{className:ko.spacer,style:{width:`${d}px`}})]})},{id:"twitter",button:(0,I.jsxs)(So.r6,{...j,title:i,beforeOnClick:()=>(C("Twitter"),Promise.resolve()),tabIndex:y?null:"-1",style:v,children:[(0,I.jsx)(So.Fi,{...k}),(0,I.jsx)("div",{className:Ft([ko.label,l]),children:"X (Twitter)"}),(0,I.jsx)("div",{className:ko.spacer,style:{width:`${d}px`}})]})},{id:"linkedin",button:(0,I.jsxs)(So.wk,{...j,title:i,beforeOnClick:()=>(C("LinkedIn"),Promise.resolve()),tabIndex:y?null:"-1",style:v,children:[(0,I.jsx)(So._z,{...k}),(0,I.jsx)("div",{className:Ft([ko.label,l]),children:"LinkedIn"}),(0,I.jsx)("div",{className:ko.spacer,style:{width:`${d}px`}})]})},{id:"whatsapp",button:(0,I.jsxs)(So.Kz,{...j,title:i,beforeOnClick:()=>(C("Whatsapp"),Promise.resolve()),tabIndex:y?null:"-1",style:v,children:[(0,I.jsx)(So.Y4,{...k}),(0,I.jsx)("div",{className:Ft([ko.label,l]),children:"Whatsapp"}),(0,I.jsx)("div",{className:ko.spacer,style:{width:`${d}px`}})]})},{id:"email",button:(0,I.jsxs)(So.Ot,{...j,subject:i,beforeOnClick:()=>(C("Email"),Promise.resolve()),tabIndex:y?null:"-1",style:v,children:[(0,I.jsx)(wo,{...k}),(0,I.jsx)("div",{className:Ft([ko.label,l]),children:(0,I.jsx)(A.sA,{id:"Lrwi2G",defaultMessage:"Email"})}),(0,I.jsx)("div",{className:ko.spacer,style:{width:`${d}px`}})]})},{id:"sms",button:(0,I.jsxs)(El,{className:Ft([ko.button,a]),href:`sms:?&body=${o}`,focusable:y,style:v,external:!0,withoutBootstrapStyles:!0,children:[(0,I.jsx)(jo,{...k}),(0,I.jsx)("div",{className:Ft([ko.label,l]),children:(0,I.jsx)("span",{className:ko.labelText,children:(0,I.jsx)(A.sA,{id:"dSfmnf",defaultMessage:"SMS"})})}),(0,I.jsx)("div",{className:ko.spacer,style:{width:`${d}px`}})]})}],N=null===s||s.includes("copylink"),$=null!==s&&m(s)?M.filter(e=>s.includes(e.id)):M;return(0,I.jsx)("div",{className:Ft([ko.container,e]),children:(0,I.jsxs)("div",{className:ko.options,children:[N?(0,I.jsx)("div",{className:Ft([ko.item,t,{[ko.isLinkCopied]:x}]),children:(0,I.jsxs)(El,{className:Ft([ko.button,a]),onClick:w,focusable:y,style:v,withoutBootstrapStyles:!0,children:[(0,I.jsx)(Co,{...k}),(0,I.jsx)("div",{className:Ft([ko.label,l]),children:(0,I.jsxs)("span",{className:ko.labelText,children:[x?null:(0,I.jsx)(A.sA,{id:"D21uVQ",defaultMessage:"Copy link"}),x?(0,I.jsx)(A.sA,{id:"xFlbR7",defaultMessage:"Link copied!"}):null]})}),(0,I.jsx)("div",{className:ko.spacer,style:{width:`${d}px`}})]})}):null,$.map(({id:e,button:l})=>(0,I.jsx)("div",{className:Ft([ko.item,t]),children:l},e))]})})}var No={container:"micromag-screen-share-container",background:"micromag-screen-share-background",content:"micromag-screen-share-content",heading:"micromag-screen-share-heading",layout:"micromag-screen-share-layout",shareOptions:"micromag-screen-share-shareOptions",isCentered:"micromag-screen-share-isCentered",shareButton:"micromag-screen-share-shareButton",emptyHeading:"micromag-screen-share-emptyHeading",emptyOptions:"micromag-screen-share-emptyOptions",header:"micromag-screen-share-header",footer:"micromag-screen-share-footer"},$o={id:"share",type:"screen",group:{label:(0,A.zR)({id:"64JlRq",defaultMessage:"Share"}),order:12},title:(0,A.zR)({id:"5mk1b+",defaultMessage:"Share"}),component:function({layout:e="top",heading:t=null,shareUrl:l=null,options:a=null,buttonsStyle:i=null,buttonsTextStyle:o=null,centered:s=!1,spacing:r=20,background:c=null,header:d=null,footer:u=null,id:m=null,index:g=null,current:h=!0,active:y=!0,mediaRef:p=null,className:f=null}){const{width:b,height:v,resolution:x}=rt(),{isView:S,isPreview:w,isPlaceholder:C,isEdit:j}=at(),{topHeight:k,bottomHeight:M,bottomSidesWidth:N}=ht(),{open:$}=bt(),{muted:F}=Xe(),{ref:T,isCurrent:R=!1}=Je(h,!0),z=h&&(S||j)&&(R||!S),L=h||y,P=ce(d),B=de(u),E=G(u,{isView:S,current:h,openWebView:$,isPreview:w}),{ref:V,height:D=0}=_t(),{ref:_,height:O=0}=_t(),H=(0,n.useMemo)(()=>{if("undefined"==typeof window)return"";const{hostname:e=null,pathname:t=null}=window.location||{},l=t.split("/");return l.reduce((e,t,n)=>n===l.length-1&&parseInt(t,10)===g||t===m||""===t?e:`${e}/${t}`,e)},[g,m]),Z=l||H,W=null!==a?["email","facebook","twitter","linkedin","whatsapp"]:[],q=null!==a?Object.keys(a).reduce((e,t)=>a[t]?[...e,t]:e,[]):W,Y=S,U=rl("share"),Q=(0,n.useCallback)(e=>{Y&&U("click_share",e,{shareUrl:Z})},[U]);return(0,I.jsxs)("div",{className:Ft([No.container,f,{[No.isPlaceholder]:C}]),"data-screen-ready":!0,children:[(0,I.jsx)(na,{width:b,height:v,className:No.content,children:(0,I.jsxs)($a,{className:No.layout,verticalAlign:e,fullscreen:!0,style:C?null:{paddingLeft:r,paddingRight:r,paddingTop:(w?0:k)+(D||r),paddingBottom:(h&&!w?M:0)+(O||r)},children:[!C&&P?(0,I.jsx)("div",{className:No.header,ref:V,style:{paddingTop:r/2,paddingBottom:r,paddingLeft:r,paddingRight:r,transform:`translate(0px, ${k}px)`},children:(0,I.jsx)(xa,{...d})}):null,(0,I.jsx)(zn,{placeholder:"title",emptyLabel:(0,I.jsx)(A.sA,{id:"X7kRRa",defaultMessage:"Heading"}),emptyClassName:No.emptyHeading,isEmpty:!t||""===t?.body,children:t?(0,I.jsx)(wa,{className:Ft([No.heading]),...t}):null},"title"),(0,I.jsx)(Ma,{size:5},"spacer"),(0,I.jsx)(zn,{placeholder:"share-options",emptyLabel:(0,I.jsx)(A.sA,{id:"RucIeL",defaultMessage:"Share options"}),emptyClassName:No.emptyOptions,isEmpty:!a,children:(0,I.jsx)(Mo,{className:Ft([No.shareOptions,{[No.isCentered]:s}]),buttonClassName:No.shareButton,url:Z,options:q,onShare:Q,buttonsStyle:i,buttonsTextStyle:o})},"share-options"),!C&&B?(0,I.jsx)("div",{className:No.footer,ref:_,style:{paddingTop:r,paddingBottom:r/2,paddingLeft:Math.max(N-r,0),paddingRight:Math.max(N-r,0)},children:(0,I.jsx)(fa,{...E})}):null]})}),C?null:(0,I.jsx)(la,{background:c,width:b,height:v,resolution:x,playing:z,muted:F,shouldLoad:L,mediaRef:pe(T,p),withoutVideo:w,className:No.background})]})},layouts:["top","middle","bottom"],fields:[{name:"layout",type:"screen-layout",defaultValue:"top",label:(0,A.zR)({id:"4iBXj2",defaultMessage:"Layout"})},{name:"shareUrl",type:"url",label:(0,A.zR)({id:"0R+nB5",defaultMessage:"Custom URL"}),help:(0,A.zR)({id:"bQsPrs",defaultMessage:"If this field is left empty, this Micromag's URL will be shared."})},{name:"heading",type:"heading-element",theme:{textStyle:"heading2"},label:(0,A.zR)({id:"wx5PI0",defaultMessage:"Heading"})},{name:"options",type:"fields",isList:!0,label:(0,A.zR)({id:"4js1kW",defaultMessage:"Share Options"}),fields:[{name:"copylink",type:"toggle",defaultValue:!0,label:(0,A.zR)({id:"rKuiKj",defaultMessage:"Copy link"})},{name:"facebook",type:"toggle",defaultValue:!0,label:(0,A.zR)({id:"r+bcpa",defaultMessage:"Facebook"})},{name:"twitter",type:"toggle",defaultValue:!0,label:(0,A.zR)({id:"mlucL+",defaultMessage:"Twitter"})},{name:"linkedin",type:"toggle",defaultValue:!0,label:(0,A.zR)({id:"hvxkzE",defaultMessage:"LinkedIn"})},{name:"whatsapp",type:"toggle",defaultValue:!0,label:(0,A.zR)({id:"3B9cb3",defaultMessage:"Whatsapp"})},{name:"email",type:"toggle",defaultValue:!0,label:(0,A.zR)({id:"LI0Gz4",defaultMessage:"Email"})},{name:"sms",type:"toggle",defaultValue:!0,label:(0,A.zR)({id:"d3va12",defaultMessage:"SMS"})}]},{name:"buttonsTextStyle",type:"text-style-form",label:(0,A.zR)({id:"gwPu/I",defaultMessage:"Buttons text"})},{name:"buttonsStyle",type:"box-style-form",label:(0,A.zR)({id:"l5uLMd",defaultMessage:"Buttons"})},{name:"background",type:"background",label:(0,A.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,A.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,A.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]},Fo={container:"micromag-screen-slideshow-container",background:"micromag-screen-slideshow-background",content:"micromag-screen-slideshow-content",inner:"micromag-screen-slideshow-inner",placeholder:"micromag-screen-slideshow-placeholder",caption:"micromag-screen-slideshow-caption",header:"micromag-screen-slideshow-header",footer:"micromag-screen-slideshow-footer"};const To=[];var Ro=[{id:"slideshow",type:"screen",group:{label:(0,A.zR)({id:"6mX2ya",defaultMessage:"Images"}),order:7},title:(0,A.zR)({id:"MhGUaY",defaultMessage:"Slideshow"}),component:function(e){const t=(0,i.c)(79),{slides:l,withCaptions:a,background:o,header:s,footer:r,current:c,active:d,preload:u,spacing:m,transitionDelay:g,captionMaxLines:h,transitions:y,mediaRef:p,className:f}=e,b=void 0===l?To:l,v=void 0!==a&&a,x=void 0===o?null:o,S=void 0===s?null:s,w=void 0===r?null:r,C=void 0===c||c,j=void 0===d||d,k=void 0===u||u,M=void 0===m?20:m,N=void 0===g?1:g,$=void 0===h?2:h,F=void 0===y?null:y,T=void 0===p?null:p,R=void 0===f?null:f,{width:z,height:L,resolution:P}=rt(),{topHeight:B,bottomHeight:E}=ht(),{enableInteraction:V,disableInteraction:D}=ft(),{isView:_,isPreview:O,isPlaceholder:H,isEdit:Z,isStatic:W,isCapture:q}=at(),{muted:Y}=Xe(),{ref:U,isCurrent:Q}=Je(C,!0),X=C&&(_||Z)&&(void 0!==Q&&Q||!_),J=C||k,K=H?5:M,[ee,te]=(0,n.useState)(0),le=C&&!0,ne=W||q||H||O;let ae;t[0]!==ee?(ae=()=>{te(ee+1)},t[0]=ee,t[1]=ae):ae=t[1];const ie=ae;let oe;t[2]===Symbol.for("react.memo_cache_sentinel")?(oe=[],t[2]=oe):oe=t[2];const se=(0,n.useRef)(oe);let re;t[3]!==S?(re=ce(S),t[3]=S,t[4]=re):re=t[4];const ue=re;let me;t[5]!==w?(me=de(w),t[5]=w,t[6]=me):me=t[6];const ge=me;let ye;t[7]!==C||t[8]!==D||t[9]!==V||t[10]!==w||t[11]!==O||t[12]!==_?(ye=G(w,{isView:_,current:C,isPreview:O,enableInteraction:V,disableInteraction:D}),t[7]=C,t[8]=D,t[9]=V,t[10]=w,t[11]=O,t[12]=_,t[13]=ye):ye=t[13];const fe=ye,{ref:be,height:ve}=_t(),xe=void 0===ve?0:ve,{ref:Se}=_t();let we;t[14]!==j||t[15]!==X||t[16]!==$||t[17]!==L||t[18]!==O||t[19]!==J||t[20]!==Y||t[21]!==ie||t[22]!==P||t[23]!==b||t[24]!==N||t[25]!==ne||t[26]!==le||t[27]!==F||t[28]!==z||t[29]!==v?(we=(b||[]).map((e,t)=>{const{media:l,caption:n}=e||{},a=void 0===l?null:l,i=void 0===n?null:n,o={width:z,height:L},s=null!==a,r=he(i),c=t>0?t*(1e3*N):0;return(0,I.jsxs)("div",{className:Fo.gridItem,children:[(0,I.jsx)("div",{className:Fo.imageContainer,ref:e=>{se.current[t]=e},children:(0,I.jsx)(Pn,{transitions:F,delay:c,playing:le,disabled:ne,fullscreen:!0,children:(0,I.jsx)(zn,{placeholder:"image",placeholderProps:{className:Fo.placeholder,height:"100%"},emptyLabel:(0,I.jsx)(A.sA,{id:"ebsPd4",defaultMessage:"Image"}),emptyClassName:Fo.emptyImage,isEmpty:!s,children:J?(0,I.jsx)(ra,{className:Fo.image,media:a,muted:Y,...o,resolution:P,objectFit:{fit:"cover"},playing:X,active:j,withoutVideo:O,onLoaded:ie}):null})})}),v?(0,I.jsx)(Pn,{transitions:F,delay:c,playing:le,disabled:ne,children:(0,I.jsx)(zn,{placeholder:"line",emptyLabel:(0,I.jsx)(A.sA,{id:"6tIigB",defaultMessage:"Caption"}),emptyClassName:Fo.emptyCaption,isEmpty:!r,children:r?(0,I.jsx)("div",{className:Fo.caption,children:(0,I.jsx)(Wn,{...i,className:Fo.captionText,lineClamp:$})}):null})}):null]},`item-${t}`)}),t[14]=j,t[15]=X,t[16]=$,t[17]=L,t[18]=O,t[19]=J,t[20]=Y,t[21]=ie,t[22]=P,t[23]=b,t[24]=N,t[25]=ne,t[26]=le,t[27]=F,t[28]=z,t[29]=v,t[30]=we):we=t[30];const Ce=we;let je;t[31]!==R||t[32]!==H?(je=Ft([Fo.container,R,{[Fo.isPlaceholder]:H}]),t[31]=R,t[32]=H,t[33]=je):je=t[33];const ke=O?null:B,Me=(ge?xe-K:0)+(C&&!O?E:0);let Ne,$e,Fe,Te,Re,ze,Le,Ie;return t[34]!==ke||t[35]!==Me?(Ne={paddingTop:ke,paddingBottom:Me},t[34]=ke,t[35]=Me,t[36]=Ne):Ne=t[36],t[37]!==H?($e=H?(0,I.jsx)(zn,{placeholder:"image",placeholderProps:{className:Fo.placeholder,height:"100%"},emptyLabel:(0,I.jsx)(A.sA,{id:"ebsPd4",defaultMessage:"Image"})}):null,t[37]=H,t[38]=$e):$e=t[38],t[39]!==K||t[40]!==ue||t[41]!==S||t[42]!==Se||t[43]!==H||t[44]!==O||t[45]!==B?(Fe=!H&&ue?(0,I.jsx)("div",{className:Fo.header,ref:Se,style:{padding:K,paddingTop:K/2,transform:O?null:`translate(0, ${B}px)`},children:(0,I.jsx)(xa,{...S})}):null,t[39]=K,t[40]=ue,t[41]=S,t[42]=Se,t[43]=H,t[44]=O,t[45]=B,t[46]=Fe):Fe=t[46],t[47]!==K||t[48]!==fe||t[49]!==be||t[50]!==ge||t[51]!==H?(Te=!H&&ge?(0,I.jsx)("div",{className:Fo.footer,ref:be,style:{padding:K/2},children:(0,I.jsx)(fa,{...fe})}):null,t[47]=K,t[48]=fe,t[49]=be,t[50]=ge,t[51]=H,t[52]=Te):Te=t[52],t[53]!==Ce||t[54]!==Ne||t[55]!==$e||t[56]!==Fe||t[57]!==Te?(Re=(0,I.jsxs)("div",{className:Fo.inner,style:Ne,children:[$e,Fe,Ce,Te]}),t[53]=Ce,t[54]=Ne,t[55]=$e,t[56]=Fe,t[57]=Te,t[58]=Re):Re=t[58],t[59]!==L||t[60]!==Re||t[61]!==z?(ze=(0,I.jsx)(na,{width:z,height:L,className:Fo.content,children:Re}),t[59]=L,t[60]=Re,t[61]=z,t[62]=ze):ze=t[62],t[63]!==x||t[64]!==X||t[65]!==T||t[66]!==L||t[67]!==H||t[68]!==O||t[69]!==U||t[70]!==J||t[71]!==Y||t[72]!==P||t[73]!==z?(Le=H?null:(0,I.jsx)(la,{background:x,width:z,height:L,resolution:P,muted:Y,mediaRef:pe(U,T),playing:X,shouldLoad:J,withoutVideo:O,className:Fo.background}),t[63]=x,t[64]=X,t[65]=T,t[66]=L,t[67]=H,t[68]=O,t[69]=U,t[70]=J,t[71]=Y,t[72]=P,t[73]=z,t[74]=Le):Le=t[74],t[75]!==je||t[76]!==ze||t[77]!==Le?(Ie=(0,I.jsxs)("div",{className:je,"data-screen-ready":!0,children:[ze,Le]}),t[75]=je,t[76]=ze,t[77]=Le,t[78]=Ie):Ie=t[78],Ie},fields:[{name:"slides",type:"visuals-with-caption",label:(0,A.zR)({id:"muYwrB",defaultMessage:"Images"})},{name:"transitionDelay",type:"number",min:0,float:!0,label:(0,A.zR)({id:"/6zaOP",defaultMessage:"Transition Delay (in seconds)"})},{name:"background",type:"background",label:(0,A.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,A.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,A.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]}],zo="micromag-screen-survey-disabled",Lo="micromag-screen-survey-resultText",Io="micromag-screen-survey-userAnswer",Ao="micromag-screen-survey-selected",Po="micromag-screen-survey-focused",Bo="micromag-screen-survey-filled",Eo="micromag-screen-survey-multiline",Vo="micromag-screen-survey-answered",Do="micromag-screen-survey-withPercentage",_o="micromag-screen-survey-withBar",Oo="micromag-screen-survey-inputFocused",Ho="micromag-screen-survey-isPlaceholder",Zo={id:"survey",type:"screen",group:{label:(0,A.zR)({id:"ZiWlL6",defaultMessage:"Questions"}),order:7},title:(0,A.zR)({id:"650XRF",defaultMessage:"Survey"}),component:function({id:e=null,layout:t="middle",question:l=null,answers:a=null,result:i=null,buttonsStyle:o=null,buttonsTextStyle:s=null,resultsStyle:r=null,spacing:c=20,header:d=null,footer:u=null,background:g=null,customAnswer:h=!1,showCount:y=!1,withoutPercentage:p=!1,withoutBar:f=!1,current:b=!0,preload:v=!0,transitions:x=null,resultTransitionDuration:S=500,type:w=null,mediaRef:C=null,className:j=null}){const k=e||"screen-id",M=rl(w),{width:N,height:$,resolution:F}=rt(),{create:T}=Ka({screenId:k}),{isView:R,isPreview:z,isPlaceholder:L,isEdit:P,isStatic:E,isCapture:V}=at(),{topHeight:D,bottomHeight:_,bottomSidesWidth:O}=ht(),{open:H}=bt(),{muted:Z}=Xe(),{ref:W,isCurrent:q=!1}=Je(b,!0),{quiz:U=[]}=((e=null)=>{const{screenId:t=null,storyId:l=null,opts:a={}}=e||{},i=Xa(),{id:o,document_id:s}=Be()||{},r=(0,n.useCallback)(()=>null!==i?i.quiz.results(t,{story_id:s||l||o}):null,[i,t,s,l,o]),{data:c,...d}=null!==i?Ja(r,a):{data:null};return{quiz:c||[],...d}})({screenId:k,opts:{autoload:!L}}),Q=U.filter(e=>{const{choice:t=null}=e||{};return!!(a||[]).map(e=>{const{label:t=null}=e||{},{body:l=null}=t||{};return l}).filter(e=>null!==e).find(e=>e===t)}),X=he(l),K=he(i),{active:ee=!1,placeholder:te=null,textStyle:le=null,boxStyle:ne=null,submit:ae=null,multiline:ie=!1}=h||{},{body:oe=null,textStyle:se=null}=te||{},re=E||V,[ue,me]=(0,n.useState)(re?-1:null),ge=null!==ue,ye=(0,n.useMemo)(()=>{const e=null!==a?(Q||[]).reduce((e,{count:t=0})=>e+parseInt(t,10),null!==ue&&ue>-1?1:0):0,t=null!==a?(a||[]).reduce((t,l,n)=>{const{label:a={}}=l||{},{body:i=null}=a||{},{count:o=0}=Q.find(e=>e.choice===i)||{},s=n===ue?o+1:o;return null!==i?{...t,[i]:{percent:e>0?s/e*100:0,count:s}}:t},{}):{},l=(e=>{if(!m(e)||e.length<1)return e;const t=e.map((e,t)=>({floor:Math.floor(e)||0,remainder:Y(e),index:t})).sort((e,t)=>t.remainder-e.remainder),l=100-t.reduce((e,t)=>e+t.floor,0);for(let e=0;e<l;e+=1)t[e]&&(t[e].floor+=1);return t.sort((e,t)=>e.index-t.index).map(e=>e.floor)})(e>0?Object.keys(t).map(e=>t[e].percent||0):[]);return Object.keys(t).reduce((e,n,a)=>({...e,[n]:{...t[n],percent:l[a]}}),{})},[a,Q,ue]),fe="split"===t,be="middle"===t,ve=fe?null:t,xe=b,Se=E||V||L||z||P,we=b&&(R||P)&&(q||!R),Ce=b||v,je=(0,n.useCallback)(e=>{if(null===ue){me(e);const t=null!==a?a[e]:null;T({choice:t.label.body||e,value:1}),M("click_answer",`Answer ${ue+1}: ${t.label.body}`,{linkType:"survey_answer",answer:t,answerIndex:e,answerType:"button"})}},[ue,me,M,T]);(0,n.useEffect)(()=>{!b&&P&&null!==ue&&me(null)},[P,b,ue,me]);const ke=(0,n.useCallback)(()=>{me(null)},[me]),[Me,Ne]=(0,n.useState)(null),[$e,Fe]=(0,n.useState)(!1),Te=z||ge,Re=(0,n.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),Fe(!0)},[Fe]),ze=(0,n.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),Fe(!1)},[Fe]),Le=(0,n.useCallback)(e=>{const t=Ga.A.sanitize(e.currentTarget.value||"");Ne(""!==t?t:null)},[Ne]),Ie=(0,n.useCallback)(()=>{Ne("")},[Ne]),Ae=(0,n.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),null===Me||""===Me||ge||(T({choice:Me,value:1}),me("input"),Fe(!1),M("click_answer",`Answer input: ${Me}`,{textInput:Me,answerIndex:null,answerType:"custom"}))},[Me,T,ge,me,Fe,M]),Pe=ce(d),Ee=de(u),Ve=G(u,{isView:R,current:b,openWebView:H,isPreview:z}),{ref:De,height:_e=0}=_t(),{ref:Oe,height:He=0}=_t(),Ze=!P&&Se||!b,[We,qe]=(0,n.useState)(!1),Ge=(0,n.useCallback)(({initial:e})=>{e&&M("scroll","Screen"),qe(!0)},[M]),Ye=(0,n.useCallback)(()=>{qe(!1)},[qe]),Ue=(0,n.useCallback)((e=null)=>{if(null!==e){const t=Math.round(100*e);M("scroll",t,{scrollPercent:t})}},[M]),[Qe,Ke]=(0,n.useState)(!1),et=(0,n.useCallback)(({canScroll:e=!1})=>{Ke(e)},[Ke]),tt=[(0,I.jsx)(zn,{placeholder:"title",emptyLabel:(0,I.jsx)(A.sA,{id:"e1I+KU",defaultMessage:"Question"}),emptyClassName:"micromag-screen-survey-emptyQuestion",isEmpty:!X,children:X?(0,I.jsx)(Pn,{transitions:x,playing:xe,disabled:Se,children:(0,I.jsx)(wa,{...l,className:"micromag-screen-survey-question"})}):null},"question")];(fe||!L&&Ee&&be)&&tt.push((0,I.jsx)(Ma,{},"spacer"));const lt=(0,n.useMemo)(()=>re?0:`${S}ms`,[re,S]),{barColor:nt=null,textColor:it=null,percentageTextStyle:ot=null}=r||{},st=(0,n.useMemo)(()=>{const e=K?i:null,t=null!==a&&null!==ue?a[ue]:null,{result:l=null}=t||{};return l||e},[K,i,a,ue]),ct=P&&null!==ue;return tt.push((0,I.jsx)("div",{className:"micromag-screen-survey-answers",children:null!==a||L?(0,I.jsx)("div",{className:"micromag-screen-survey-items",children:(L?[...new Array(3)]:a).map((e,t)=>{const l=null!==e,{label:n=null,buttonStyle:a=null,textStyle:i=null,resultStyle:r=null}=e||{},{barColor:c=null,textColor:d,percentageTextStyle:u=null}=r||{},{body:m=null}=n||{},{percent:g=0,count:h=0}=null!==m&&ye[m]||{},{textStyle:v=null}=n||{},{color:x=null}=v||{},S=he(n),w=ue===t,C={...o,...a,...ge?{textAlign:"left"}:null},{borderRadius:j=null}=C||{},k=null!==j&&B(j)&&j>2?j-2:j;return(0,I.jsx)("div",{className:Ft(["micromag-screen-survey-item",{[Io]:w}]),children:(0,I.jsx)(zn,{placeholder:"surveyAnswer",placeholderProps:{className:"micromag-screen-survey-placeholderAnswer"},emptyLabel:(0,I.jsx)(A.sA,{id:"+Ok+7S",defaultMessage:"Answer"}),emptyClassName:"micromag-screen-survey-emptyAnswer",isEmpty:!S,children:l?(0,I.jsx)("div",{className:"micromag-screen-survey-itemContent",children:(0,I.jsx)("div",{className:"micromag-screen-survey-itemInner",style:{borderRadius:j,transitionDuration:lt},children:(0,I.jsx)(da,{className:"micromag-screen-survey-button",onPointerUp:e=>{"mouse"===e.pointerType&&0!==e.button||je(t)},disabled:z||null!==ue,focusable:b&&R,buttonStyle:C,textStyle:{...s,...v,...i},children:(0,I.jsxs)("span",{className:"micromag-screen-survey-itemLabel",children:[(0,I.jsx)(Wn,{...n,textStyle:{...s,...v,...i},inline:!0,className:"micromag-screen-survey-itemText"}),p?null:(0,I.jsx)("div",{className:"micromag-screen-survey-resultLabel",style:{...J(ge?d||it||c||nt||x:null,"color"),...ge?{opacity:1}:{opacity:0}},children:(0,I.jsx)(Wn,{...n,textStyle:{...s,...v,...i,...it,...ot,...d,...u},inline:!0,className:Lo,body:y?h:`${g}%`})}),f?null:(0,I.jsx)("div",{className:"micromag-screen-survey-resultBar",style:{borderRadius:k,transitionDuration:lt,width:null!==g?`${g}%`:"0%",...J(c||nt||x,"backgroundColor"),...ge?{opacity:.5}:{opacity:0}}})]})})})}):null})},`answer-${t+1}`)})}):null},"answers")),(0,I.jsxs)("div",{className:Ft(["micromag-screen-survey-container",j,{[Vo]:ge,[Oo]:$e,[Do]:!p,[_o]:!f,[Ho]:L}]),children:[(0,I.jsxs)(na,{width:N,height:$,className:"micromag-screen-survey-content",children:[(0,I.jsxs)(Ta,{verticalAlign:ve,disabled:Ze,onScrolledTrigger:Ue,onScrolledBottom:Ge,onScrolledNotBottom:Ye,onScrollHeightChange:et,withShadow:!0,children:[ct?(0,I.jsx)(da,{className:"micromag-screen-survey-reset",icon:(0,I.jsx)(yl.gc,{icon:Cl.ye,size:"md"}),onClick:ke}):null,!L&&Pe?(0,I.jsx)("div",{className:Ft(["micromag-screen-survey-header",{[zo]:We&&!Ze&&Qe}]),ref:De,style:{paddingTop:c/2,paddingLeft:c,paddingRight:c,paddingBottom:c,transform:z?null:`translate(0, ${D}px)`},children:(0,I.jsx)(xa,{...d})}):null,(0,I.jsxs)($a,{className:"micromag-screen-survey-layout",verticalAlign:ve,style:L?null:{paddingLeft:c,paddingRight:c,paddingTop:(b&&!z?D:0)+(_e||c),paddingBottom:(b&&!z?_:0)+(He+c)},children:[tt,!L&&ee?(0,I.jsxs)("form",{className:Ft(["micromag-screen-survey-input",{[Po]:$e,[Bo]:null!==Me&&""!==Me,[zo]:Te,[Ao]:"input"===ue,[Eo]:ie}]),onSubmit:Ae,children:[(0,I.jsx)(ti,{className:"micromag-screen-survey-textInput",disabled:Te,focusable:b&&R,buttonStyle:{...o,...ne},textStyle:{...s,...le},placeholderTextStyle:{...s,...le,...se},value:Me,label:oe,onChange:Le,onFocus:Re,onBlur:ze,multiline:ie}),ge?null:(0,I.jsx)(da,{className:Ft(["micromag-screen-survey-confirm",{[zo]:Te||null===Me||""===Me}]),type:"button",onClick:Ie,disabled:Te||null===Me||""===Me,children:(0,I.jsx)(Ol,{className:"micromag-screen-survey-icon"})}),ge?null:(0,I.jsx)(da,{className:Ft(["micromag-screen-survey-submit",{[zo]:Te||null===Me||""===Me}]),type:"submit",buttonStyle:ae?.buttonStyle,disabled:Te||null===Me||""===Me,children:(0,I.jsx)(Wn,{...ae,inline:!0})})]}):null,null!==ue&&null!==st?(0,I.jsx)(Pn,{transitions:x,playing:xe,disabled:Se,children:(0,I.jsx)(Wn,{...st||{},className:Lo})}):null]})]}),!L&&Ee?(0,I.jsx)("div",{ref:Oe,className:Ft(["micromag-screen-survey-footer",{[zo]:!We}]),style:{transform:z?null:`translate(0, -${_}px)`,paddingLeft:Math.max(c/2,O),paddingRight:Math.max(c/2,O),paddingTop:c/2,paddingBottom:c/2},children:(0,I.jsx)(fa,{...Ve})}):null]}),L?null:(0,I.jsx)(la,{background:g,width:N,height:$,resolution:F,playing:we,muted:Z,shouldLoad:Ce,mediaRef:pe(W,C),withoutVideo:z,className:"micromag-screen-survey-background"})]})},layouts:["top","middle","bottom","split"],fields:[{name:"layout",type:"screen-layout",defaultValue:"top",label:(0,A.zR)({id:"4iBXj2",defaultMessage:"Layout"})},{name:"question",type:"heading-element",theme:{textStyle:"heading2"},label:(0,A.zR)({id:"hVE7TA",defaultMessage:"Question"})},{name:"answers",type:"answers",theme:{label:{textStyle:"button"}},label:(0,A.zR)({id:"KHWeV7",defaultMessage:"Answers"})},{name:"result",type:"text-element",theme:{textStyle:"text"},label:(0,A.zR)({id:"iQ5Uf7",defaultMessage:"Default feedback"})},{name:"customAnswer",type:"custom-answer",defaultValue:!1,isList:!0,theme:{textStyle:"button"}},{type:"fields",isList:!0,label:(0,A.zR)({id:"R9DB4a",defaultMessage:"Styles"}),fields:[{name:"showCount",type:"toggle",defaultValue:!1,label:(0,A.zR)({id:"ppGXAR",defaultMessage:"Show the answer count"})},{name:"withoutPercentage",type:"toggle",defaultValue:!1,label:(0,A.zR)({id:"crLqJd",defaultMessage:"Without percentage"})},{name:"withoutBar",type:"toggle",defaultValue:!1,label:(0,A.zR)({id:"D7kxD3",defaultMessage:"Without bar"})},{name:"buttonsStyle",type:"box-style-form",label:(0,A.zR)({id:"l5uLMd",defaultMessage:"Buttons"})},{name:"buttonsTextStyle",type:"text-style-form",label:(0,A.zR)({id:"gwPu/I",defaultMessage:"Buttons text"})},{name:"resultsStyle",type:"graph-bar-style-form",label:(0,A.zR)({id:"e4UTx9",defaultMessage:"Results"}),noValueLabel:(0,A.zR)({id:"65rc70",defaultMessage:"Edit style..."})}]},{name:"background",type:"background",label:(0,A.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,A.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,A.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]},Wo={container:"micromag-screen-text-container",background:"micromag-screen-text-background",content:"micromag-screen-text-content",emptyTitle:"micromag-screen-text-emptyTitle",emptyText:"micromag-screen-text-emptyText",title:"micromag-screen-text-title",withMargin:"micromag-screen-text-withMargin",isPlaceholder:"micromag-screen-text-isPlaceholder",layout:"micromag-screen-text-layout"};function qo(e){const t=(0,i.c)(150),{layout:l,text:n,title:a,withTitle:o,spacing:s,header:r,footer:c,background:d,current:u,preload:m,mediaRef:g,className:h}=e,y=void 0===l?"top":l,p=void 0===n?null:n,f=void 0===a?null:a,b=void 0!==o&&o,v=void 0===s?20:s,x=void 0===r?null:r,S=void 0===c?null:c,w=void 0===d?null:d,C=void 0===u||u,j=void 0===m||m,k=void 0===g?null:g,M=void 0===h?null:h,{width:N,height:$,resolution:F}=rt(),{isView:T,isPreview:R,isPlaceholder:z,isEdit:L}=at(),{topHeight:P,bottomHeight:B,bottomSidesWidth:E}=ht(),{open:V}=bt(),{muted:D}=Xe(),{ref:_,isCurrent:O}=Je(C,!0),H=void 0!==O&&O;let Z,W,q,Y,U,Q,X,J,K,ee,te,le,ne,ae,ie,oe,se,re,ue,me,ge,ye,fe,be,ve,xe,Se;if(t[0]!==M||t[1]!==C||t[2]!==S||t[3]!==x||t[4]!==$||t[5]!==H||t[6]!==L||t[7]!==z||t[8]!==R||t[9]!==T||t[10]!==y||t[11]!==V||t[12]!==j||t[13]!==v||t[14]!==p||t[15]!==f||t[16]!==B||t[17]!==P||t[18]!==N||t[19]!==b){const e=he(f);X=he(p),K="split"===y,ee="top"===y,J="middle"===y;const l="bottom"===y,n=K?null:y,a=e&&X&&!K;let i,o,s;q=C&&(T||L)&&(H||!T),te=C||j,t[45]!==x?(i=ce(x),t[45]=x,t[46]=i):i=t[46],Q=i,t[47]!==S?(o=de(S),t[47]=S,t[48]=o):o=t[48],U=o,t[49]!==C||t[50]!==S||t[51]!==R||t[52]!==T||t[53]!==V?(s=G(S,{isView:T,current:C,openWebView:V,isPreview:R}),t[49]=C,t[50]=S,t[51]=R,t[52]=T,t[53]=V,t[54]=s):s=t[54],Y=s,t[55]!==M||t[56]!==z?(be=Ft([Wo.container,M,{[Wo.isPlaceholder]:z}]),t[55]=M,t[56]=z,t[57]=be):be=t[57],ve=!0,W=na,ge=N,ye=$,fe=Wo.content,Z=$a,le=Wo.layout,ne=!0,ae=n,t[58]!==C||t[59]!==U||t[60]!==Q||t[61]!==z||t[62]!==R||t[63]!==v||t[64]!==B||t[65]!==P?(ie=z?null:{paddingLeft:v,paddingRight:v,paddingTop:(R?0:P)+(Q?v/2:v),paddingBottom:(C&&!R?B:0)+(U?v/2:v)},t[58]=C,t[59]=U,t[60]=Q,t[61]=z,t[62]=R,t[63]=v,t[64]=B,t[65]=P,t[66]=ie):ie=t[66],t[67]!==Q||t[68]!==x||t[69]!==z||t[70]!==v?(oe=!z&&Q?(0,I.jsx)("div",{style:{paddingBottom:v},children:(0,I.jsx)(xa,{...x})}):null,t[67]=Q,t[68]=x,t[69]=z,t[70]=v,t[71]=oe):oe=t[71],t[72]!==U||t[73]!==J||t[74]!==z?(se=!z&&U&&J?(0,I.jsx)(Ma,{},"spacer-cta-top"):null,t[72]=U,t[73]=J,t[74]=z,t[75]=se):se=t[75],t[76]!==Q||t[77]!==l||t[78]!==z?(re=!z&&Q&&l?(0,I.jsx)(Ma,{},"spacer-cta-top"):null,t[76]=Q,t[77]=l,t[78]=z,t[79]=re):re=t[79],t[80]!==U||t[81]!==Q||t[82]!==J||t[83]!==z?(ue=!z&&Q&&!U&&J?(0,I.jsx)(Ma,{},"spacer-cta-top"):null,t[80]=U,t[81]=Q,t[82]=J,t[83]=z,t[84]=ue):ue=t[84],me=b?(0,I.jsx)(zn,{placeholder:"title",emptyLabel:(0,I.jsx)(A.sA,{id:"2ZOPe+",defaultMessage:"Title"}),emptyClassName:Wo.emptyTitle,isEmpty:!e,children:e?(0,I.jsx)(wa,{className:Ft([Wo.title,{[Wo.withMargin]:a}]),...f}):null},"title"):null,t[0]=M,t[1]=C,t[2]=S,t[3]=x,t[4]=$,t[5]=H,t[6]=L,t[7]=z,t[8]=R,t[9]=T,t[10]=y,t[11]=V,t[12]=j,t[13]=v,t[14]=p,t[15]=f,t[16]=B,t[17]=P,t[18]=N,t[19]=b,t[20]=Z,t[21]=W,t[22]=q,t[23]=Y,t[24]=U,t[25]=Q,t[26]=X,t[27]=J,t[28]=K,t[29]=ee,t[30]=te,t[31]=le,t[32]=ne,t[33]=ae,t[34]=ie,t[35]=oe,t[36]=se,t[37]=re,t[38]=ue,t[39]=me,t[40]=ge,t[41]=ye,t[42]=fe,t[43]=be,t[44]=ve}else Z=t[20],W=t[21],q=t[22],Y=t[23],U=t[24],Q=t[25],X=t[26],J=t[27],K=t[28],ee=t[29],te=t[30],le=t[31],ne=t[32],ae=t[33],ie=t[34],oe=t[35],se=t[36],re=t[37],ue=t[38],me=t[39],ge=t[40],ye=t[41],fe=t[42],be=t[43],ve=t[44];t[85]!==K||t[86]!==b?(xe=K&&b?(0,I.jsx)(Ma,{},"spacer"):null,t[85]=K,t[86]=b,t[87]=xe):xe=t[87],t[88]===Symbol.for("react.memo_cache_sentinel")?(Se=(0,I.jsx)(A.sA,{id:"z4CiV1",defaultMessage:"Text"}),t[88]=Se):Se=t[88];const we=!X;let Ce,je,ke,Me,Ne,$e,Fe,Te,Re;return t[89]!==X||t[90]!==p?(Ce=X?(0,I.jsx)(Wn,{className:Wo.text,...p}):null,t[89]=X,t[90]=p,t[91]=Ce):Ce=t[91],t[92]!==we||t[93]!==Ce?(je=(0,I.jsx)(zn,{placeholder:"text",emptyLabel:Se,emptyClassName:Wo.emptyText,isEmpty:we,children:Ce},"description"),t[92]=we,t[93]=Ce,t[94]=je):je=t[94],t[95]!==U||t[96]!==J||t[97]!==z||t[98]!==ee?(ke=!z&&U&&(ee||J)?(0,I.jsx)(Ma,{},"spacer-cta-bottom"):null,t[95]=U,t[96]=J,t[97]=z,t[98]=ee,t[99]=ke):ke=t[99],t[100]!==U||t[101]!==Q||t[102]!==J||t[103]!==z?(Me=!z&&Q&&!U&&J?(0,I.jsx)(Ma,{},"spacer-cta-bottom"):null,t[100]=U,t[101]=Q,t[102]=J,t[103]=z,t[104]=Me):Me=t[104],t[105]!==Y||t[106]!==U||t[107]!==z||t[108]!==v||t[109]!==E?(Ne=!z&&U?(0,I.jsx)("div",{className:Wo.footer,style:{paddingTop:v,paddingLeft:Math.max(0,E-v),paddingRight:Math.max(0,E-v)},children:(0,I.jsx)(fa,{...Y})}):null,t[105]=Y,t[106]=U,t[107]=z,t[108]=v,t[109]=E,t[110]=Ne):Ne=t[110],t[111]!==Z||t[112]!==le||t[113]!==ne||t[114]!==ae||t[115]!==ie||t[116]!==oe||t[117]!==se||t[118]!==re||t[119]!==ue||t[120]!==me||t[121]!==xe||t[122]!==je||t[123]!==ke||t[124]!==Me||t[125]!==Ne?($e=(0,I.jsxs)(Z,{className:le,fullscreen:ne,verticalAlign:ae,style:ie,children:[oe,se,re,ue,me,xe,je,ke,Me,Ne]}),t[111]=Z,t[112]=le,t[113]=ne,t[114]=ae,t[115]=ie,t[116]=oe,t[117]=se,t[118]=re,t[119]=ue,t[120]=me,t[121]=xe,t[122]=je,t[123]=ke,t[124]=Me,t[125]=Ne,t[126]=$e):$e=t[126],t[127]!==W||t[128]!==ge||t[129]!==ye||t[130]!==fe||t[131]!==$e?(Fe=(0,I.jsx)(W,{width:ge,height:ye,className:fe,children:$e}),t[127]=W,t[128]=ge,t[129]=ye,t[130]=fe,t[131]=$e,t[132]=Fe):Fe=t[132],t[133]!==w||t[134]!==q||t[135]!==k||t[136]!==$||t[137]!==z||t[138]!==R||t[139]!==_||t[140]!==te||t[141]!==D||t[142]!==F||t[143]!==N?(Te=z?null:(0,I.jsx)(la,{background:w,width:N,height:$,resolution:F,playing:q,muted:D,shouldLoad:te,mediaRef:pe(_,k),withoutVideo:R,className:Wo.background}),t[133]=w,t[134]=q,t[135]=k,t[136]=$,t[137]=z,t[138]=R,t[139]=_,t[140]=te,t[141]=D,t[142]=F,t[143]=N,t[144]=Te):Te=t[144],t[145]!==be||t[146]!==ve||t[147]!==Fe||t[148]!==Te?(Re=(0,I.jsxs)("div",{className:be,"data-screen-ready":ve,children:[Fe,Te]}),t[145]=be,t[146]=ve,t[147]=Fe,t[148]=Te,t[149]=Re):Re=t[149],Re}var Go=[{id:"text",type:"screen",group:{label:(0,A.zR)({id:"fIawTr",defaultMessage:"Text"}),order:2},title:(0,A.zR)({id:"S9YpbV",defaultMessage:"Text"}),component:qo,layouts:["top","middle","bottom"],fields:[{name:"layout",type:"screen-layout",defaultValue:"top",label:(0,A.zR)({id:"4iBXj2",defaultMessage:"Layout"})},{name:"text",type:"text-element",theme:{textStyle:"text"},label:(0,A.zR)({id:"4E2gbX",defaultMessage:"Text"})},{name:"background",type:"background",label:(0,A.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,A.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,A.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]},{id:"text-title",type:"screen",group:{label:(0,A.zR)({id:"fIawTr",defaultMessage:"Text"}),order:2},title:(0,A.zR)({id:"oCBQKV",defaultMessage:"Text with title"}),component:function(e){const t=(0,i.c)(4);let l,n;return t[0]!==e?(({...l}=e),t[0]=e,t[1]=l):l=t[1],t[2]!==l?(n=(0,I.jsx)(qo,{...l,withTitle:!0}),t[2]=l,t[3]=n):n=t[3],n},layouts:["top","middle","bottom","split"],fields:[{name:"layout",type:"screen-layout",defaultValue:"top",label:(0,A.zR)({id:"4iBXj2",defaultMessage:"Layout"})},{name:"title",type:"heading-element",inline:!0,theme:{textStyle:"heading2"},label:(0,A.zR)({id:"N25iDO",defaultMessage:"Title"})},{name:"text",type:"text-element",theme:{textStyle:"text"},label:(0,A.zR)({id:"4E2gbX",defaultMessage:"Text"})},{name:"background",type:"background",label:(0,A.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,A.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,A.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]}],Yo={container:"micromag-screen-timeline-container",background:"micromag-screen-timeline-background",content:"micromag-screen-timeline-content",empty:"micromag-screen-timeline-empty",emptyTitle:"micromag-screen-timeline-emptyTitle",item:"micromag-screen-timeline-item",element:"micromag-screen-timeline-element",hidden:"micromag-screen-timeline-hidden",body:"micromag-screen-timeline-body",timeline:"micromag-screen-timeline-timeline",line:"micromag-screen-timeline-line",bullet:"micromag-screen-timeline-bullet",title:"micromag-screen-timeline-title",description:"micromag-screen-timeline-description",imageContainer:"micromag-screen-timeline-imageContainer",image:"micromag-screen-timeline-image",video:"micromag-screen-timeline-video",callToAction:"micromag-screen-timeline-callToAction",disabled:"micromag-screen-timeline-disabled",isPlaceholder:"micromag-screen-timeline-isPlaceholder",scroll:"micromag-screen-timeline-scroll",circleBulletShape:"micromag-screen-timeline-circleBulletShape",withoutLines:"micromag-screen-timeline-withoutLines"};const Uo=[null];function Qo({layout:e="normal",title:t=null,items:l=Uo,itemTitleStyle:a=null,itemDescriptionStyle:i=null,withoutLine:o=!1,bulletColor:s=null,lineColor:r=null,bulletShape:c="circle",bulletFilled:d=!0,illustrated:u=!1,spacing:m=null,itemBottomSpacing:g=null,header:h=null,footer:y=null,background:p=null,alternatives:f=null,current:b=!0,active:v=!0,preload:x=!0,type:S=null,mediaRef:w=null,className:C=null}){const j=rl(S),{width:k,height:M,imageResolution:N,resolution:$}=rt(),{topHeight:F,bottomHeight:T,bottomSidesWidth:R}=ht(),{open:z}=bt(),{isView:L,isPreview:P,isPlaceholder:B,isEdit:E,isStatic:V,isCapture:D}=at(),{muted:_,playing:O,setControls:H,setControlsSuggestPlay:Z,setControlsTheme:W,setPlaying:q,controlsVisible:Y,showControls:U,hideControls:Q}=Xe(),{ref:X,isCurrent:K=!1}=Je(b),{audio:ee=null}=f||{},{autoPlay:te=!1,loop:le=!1,media:ne=null,withSeekBar:ae=!1,withControls:ie=!1,color:oe=null,progressColor:se=null}=ee||{},re=(0,n.useMemo)(()=>null!==ee?{...ee,autoPlay:!P&&!V&&!D&&te&&b}:null,[ee,P,V,D,te,b]),[ue,me]=(0,n.useState)(!1),ge=b&&(L||E)&&(K||!L),ye=b&&(L||E)&&O&&(K||!L);(0,n.useEffect)(()=>b?(W({seekBarOnly:ae&&!ie,color:oe,progressColor:se}),H(!(!ie&&!ae)),()=>{(ie||ae)&&H(!1)}):()=>{},[b,ie,H,ae,oe,se]),(0,n.useEffect)(()=>{b&&te&&q(!0)},[b,te]);const fe=pt(),be=(0,n.useCallback)(()=>{fe?U():Q()},[fe,U,Q]);Pt(be,fe,1e3);const ve=cl("video"),[xe,Se]=(0,n.useState)(null),[we,Ce]=(0,n.useState)(null),[je,ke]=(0,n.useState)(null===ne),Me=(0,n.useCallback)(()=>{ke(!0)},[ke]),Ne=(0,n.useCallback)((e=null)=>{if(null!==e&&void 0!==e.currentTarget){const{currentTime:t=0}=e.currentTarget||{};Se(t)}else Se(0)},[we,Se]),$e=(0,n.useCallback)((e,t)=>{ve(ne,`progress_${Math.round(100*e,10)}%`,t)},[ve,ne]),Fe=(0,n.useCallback)(e=>{Ce(e)},[Ce]),Te=(0,n.useCallback)(({initial:e})=>{ue||me(!0),ve(ne,e?"play":"resume")},[ve,ne]),Re=(0,n.useCallback)(({midway:e})=>{ve(ne,e?"pause":"ended")},[ve,ne]),ze=(0,n.useCallback)(e=>{e>0&&ve(ne,"seek",{currentTime:e})},[ve,ne]),Le=(0,n.useCallback)(()=>{b&&!le&&q(!1)},[le,b]),Ie=(0,n.useMemo)(()=>B?[...new Array(5)].map(()=>({})):l||[null],[B,l]),Ae=he(t),Pe=(0,n.useMemo)(()=>null!==m?Math.max(0,m||0):20,[m]),Be=(0,n.useMemo)(()=>B?4:null!==g?Math.max(0,g||0):20,[B,g]),Ee=null!==Ie?Ie.length:0,Ve=null!==Ie&&Ee?Ie.reduce((e,t)=>{const{image:l=null}=t||{};return e+(null!==l?1:0)},0):0,[De,_e]=(0,n.useState)(0),Oe=De>=Ve&&je,He=!E&&(V||D||B||P||E)||!b,Ze=b||x,We=(0,n.useCallback)(()=>{_e(e=>e+1)},[_e]),{ref:qe,width:Ge=null}=_t(),{ref:Ye,width:Ue=null}=_t(),Qe=(Ue??0)-(Ge??0),Ke=(Ie||[]).map((t,l)=>{const{title:n=null,description:c=null,image:m=null}=t||{},g=he(n),h=he(c),y=null!==m,p=("normal"===e?"title-description-image":e).split("-"),f=p.indexOf("title"),b=p.indexOf("image");u||p.splice(b,1);const x=p.length,{textStyle:S}=n||{},{textStyle:w}=c||{};return(0,I.jsx)("div",{className:Yo.item,children:p.map((e,t)=>{let u=null,p=!1;switch(e){case"title":p=g,u=(0,I.jsx)("div",{className:Yo.title,children:(0,I.jsx)(zn,{placeholder:"title",emptyLabel:(0,I.jsx)(A.sA,{id:"bmO4Ss",defaultMessage:"Entry Title"}),emptyClassName:Yo.empty,isEmpty:!g,children:g?(0,I.jsx)(wa,{...n,textStyle:{...a||null,...S}}):null})});break;case"image":p=y,u=(0,I.jsx)("div",{className:Yo.imageContainer,children:(0,I.jsx)(zn,{placeholder:"image",emptyLabel:(0,I.jsx)(A.sA,{id:"ebsPd4",defaultMessage:"Image"}),emptyClassName:Yo.empty,isEmpty:!y,children:y?(0,I.jsx)(ra,{className:Yo.image,videoClassName:Yo.video,loadingMode:"lazy",media:m,width:Qe,resolution:$,playing:ge,active:v,shouldLoad:Ze,withoutVideo:P,onLoaded:We}):null})});break;case"description":p=h,u=(0,I.jsx)("div",{className:Yo.description,children:(0,I.jsx)(zn,{placeholder:"text",emptyLabel:(0,I.jsx)(A.sA,{id:"507VAi",defaultMessage:"Description"}),emptyClassName:Yo.empty,isEmpty:!h,children:h?(0,I.jsx)(Wn,{...c,textStyle:{...i||null,...w}}):null})});break;default:u=null,p=!1}const b=0===l,C=l===Ee-1,j=t===x-1,k=b&&t<=f||C&&t>f,M=b&&t<f||C&&t>=f;return(0,I.jsxs)("div",{className:Ft([Yo.element,Yo[`element-${e}`],{[Yo.hidden]:(L||V)&&!p}]),ref:0===l?Ye:null,children:[o?null:(0,I.jsxs)("div",{className:Yo.timeline,ref:0===l?qe:null,children:[(0,I.jsx)("div",{className:Ft([Yo.line,{[Yo.hidden]:k}]),style:{...k?null:J(r,"backgroundColor")}}),"title"===e?(0,I.jsx)("div",{className:Yo.bullet,style:{...J(s,"borderColor"),...d?J(s,"backgroundColor"):null}}):null,(0,I.jsx)("div",{className:Ft([Yo.line,{[Yo.hidden]:M}]),style:{...M?null:J(r,"backgroundColor")}})]}),(0,I.jsx)("div",{className:Yo.body,style:{marginBottom:j&&!C?Be:0},children:u})]},`element-${e}`)})},`item-${l}`)}),et=ce(h),tt=de(y),lt=G(y,{isView:L,current:b,openWebView:z,isPreview:P}),[nt,it]=(0,n.useState)(!1),{ref:ot,height:st=0}=_t(),ct=(0,n.useCallback)(({initial:e})=>{e&&j("scroll","Screen"),it(!0)},[j]),dt=(0,n.useCallback)(()=>{it(!1)},[it]),ut=(0,n.useCallback)((e=null)=>{if(null!==e){const t=Math.round(100*e);j("scroll",t,{scrollPercent:t})}},[j]);return(0,I.jsxs)("div",{className:Ft([Yo.container,C,{[Yo.isPlaceholder]:B,[Yo[`${c}BulletShape`]]:null!==c,[Yo.withoutLines]:Ee<2}]),"data-screen-ready":Oe,children:[(0,I.jsxs)(na,{width:k,height:M,className:Yo.content,children:[(0,I.jsx)(Ta,{className:Yo.scroll,verticalAlign:"middle",disabled:He,onScrolledTrigger:ut,onScrolledBottom:ct,onScrolledNotBottom:dt,withShadow:!0,children:(0,I.jsxs)($a,{style:B?null:{paddingLeft:Pe,paddingRight:Pe,paddingTop:(P?0:F)+(et?Pe/2:Pe),paddingBottom:(b&&!P?T:0)+(st||Pe)},children:[!B&&et?(0,I.jsx)("div",{style:{paddingBottom:Pe},children:(0,I.jsx)(xa,{...h})}):null,(0,I.jsx)(zn,{placeholder:"Title",emptyLabel:(0,I.jsx)(A.sA,{id:"BSTWf8",defaultMessage:"Title"}),emptyClassName:Ft([Yo.empty,Yo.emptyTitle]),isEmpty:!Ae,children:Ae?(0,I.jsx)(wa,{className:Yo.title,...t}):null}),Ke]})}),!B&&tt?(0,I.jsx)("div",{ref:ot,className:Ft([Yo.callToAction,{[Yo.disabled]:!nt}]),style:{transform:b&&!P?`translate(0, -${T}px)`:null,paddingLeft:Math.max(Pe/2,R),paddingRight:Math.max(Pe/2,R),paddingTop:Pe/2,paddingBottom:Pe/2},children:(0,I.jsx)(fa,{...lt})}):null]}),null!==ne?(0,I.jsx)(Ba,{...re,paused:!ye,mediaRef:pe(X,w),muted:_,className:Yo.audio,shouldLoad:Ze,onReady:Me,onPlay:Te,onPause:Re,onTimeUpdate:Ne,onProgressStep:$e,onDurationChange:Fe,onSeeked:ze,onEnded:Le}):null,B?null:(0,I.jsx)(la,{background:p,width:k,height:M,resolution:N,playing:ge,muted:_,shouldLoad:Ze,mediaRef:null===ne?pe(X,w):null,withoutVideo:P,className:Yo.background})]})}var Xo=[{id:"timeline",type:"screen",group:{label:(0,A.zR)({id:"cGItoy",defaultMessage:"List"}),order:8},title:(0,A.zR)({id:"GzoKNb",defaultMessage:"Timeline"}),component:Qo,layouts:["normal"],fields:[{name:"title",type:"heading-element",theme:{textStyle:"heading1"},label:(0,A.zR)({id:"N25iDO",defaultMessage:"Title"})},{name:"items",type:"entries",theme:{title:{textStyle:"heading2"},description:{textStyle:"text"}},label:(0,A.zR)({id:"3ifj0j",defaultMessage:"Entries"})},{name:"spacing",type:"number",defaultValue:20,isHorizontal:!0,label:(0,A.zR)({id:"Zpl5bJ",defaultMessage:"Spacing"})},{type:"fields",label:(0,A.zR)({id:"xac4z/",defaultMessage:"Entry styles"}),isList:!0,fields:[{name:"itemTitleStyle",type:"text-style-form",label:(0,A.zR)({id:"+AEVbJ",defaultMessage:"Title"})},{name:"itemDescriptionStyle",type:"text-style-form",label:(0,A.zR)({id:"ZCe0r4",defaultMessage:"Description"})},{name:"itemBottomSpacing",type:"number",defaultValue:20,isHorizontal:!0,label:(0,A.zR)({id:"Lp0bG4",defaultMessage:"Bottom spacing"})}]},{name:"bulletShape",type:"radios",defaultValue:"circle",options:[{value:"circle",label:(0,A.zR)({id:"+uInZz",defaultMessage:"Circle"})},{value:"square",label:(0,A.zR)({id:"fusnxf",defaultMessage:"Square"})}],label:(0,A.zR)({id:"twTaAZ",defaultMessage:"Bullet shape"})},{name:"withoutLine",type:"toggle",defaultValue:!1,label:(0,A.zR)({id:"N4lZhy",defaultMessage:"Without line"})},{name:"bulletFilled",type:"toggle",defaultValue:!1,label:(0,A.zR)({id:"YWcp4v",defaultMessage:"Bullet filled"})},{name:"bulletColor",type:"color",defaultValue:{alpha:1,color:"#FFFFFF"},label:(0,A.zR)({id:"uNpHnA",defaultMessage:"Bullet color"})},{name:"lineColor",type:"color",defaultValue:{alpha:1,color:"#FFFFFF"},label:(0,A.zR)({id:"RHMS2f",defaultMessage:"Line color"})},{name:"alternatives",type:"alternatives",label:(0,A.zR)({id:"68NE9W",defaultMessage:"Alternatives"})},{name:"background",type:"background",label:(0,A.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,A.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,A.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]},{id:"timeline-illustrated",type:"screen",group:{label:(0,A.zR)({id:"cGItoy",defaultMessage:"List"}),order:8},title:(0,A.zR)({id:"33UbSd",defaultMessage:"Timeline with images"}),component:function(e){const t=(0,i.c)(4);let l,n;return t[0]!==e?(({...l}=e),t[0]=e,t[1]=l):l=t[1],t[2]!==l?(n=(0,I.jsx)(Qo,{...l,illustrated:!0}),t[2]=l,t[3]=n):n=t[3],n},layouts:["title-image-description","title-description-image","image-title-description"],fields:[{name:"title",type:"heading-element",theme:{textStyle:"heading1"},label:(0,A.zR)({id:"N25iDO",defaultMessage:"Title"})},{name:"layout",type:"screen-layout",defaultValue:"title-image-description",label:(0,A.zR)({id:"4iBXj2",defaultMessage:"Layout"})},{name:"items",type:"entries-with-visual",theme:{title:{textStyle:"heading2"},description:{textStyle:"text"}},label:(0,A.zR)({id:"3ifj0j",defaultMessage:"Entries"})},{name:"spacing",type:"number",defaultValue:20,isHorizontal:!0,label:(0,A.zR)({id:"Zpl5bJ",defaultMessage:"Spacing"})},{type:"fields",label:(0,A.zR)({id:"xac4z/",defaultMessage:"Entry styles"}),isList:!0,fields:[{name:"itemTitleStyle",type:"text-style-form",label:(0,A.zR)({id:"+AEVbJ",defaultMessage:"Title"})},{name:"itemDescriptionStyle",type:"text-style-form",label:(0,A.zR)({id:"ZCe0r4",defaultMessage:"Description"})},{name:"itemBottomSpacing",type:"number",defaultValue:20,isHorizontal:!0,label:(0,A.zR)({id:"Lp0bG4",defaultMessage:"Bottom spacing"})}]},{name:"withoutLine",type:"toggle",defaultValue:!1,label:(0,A.zR)({id:"N4lZhy",defaultMessage:"Without line"})},{name:"bulletShape",type:"radios",defaultValue:"circle",options:[{value:"circle",label:(0,A.zR)({id:"+uInZz",defaultMessage:"Circle"})},{value:"square",label:(0,A.zR)({id:"fusnxf",defaultMessage:"Square"})}],label:(0,A.zR)({id:"twTaAZ",defaultMessage:"Bullet shape"})},{name:"bulletFilled",type:"toggle",defaultValue:!1,label:(0,A.zR)({id:"YWcp4v",defaultMessage:"Bullet filled"})},{name:"bulletColor",type:"color",defaultValue:{alpha:1,color:"#FFFFFF"},label:(0,A.zR)({id:"uNpHnA",defaultMessage:"Bullet color"})},{name:"lineColor",type:"color",defaultValue:{alpha:1,color:"#FFFFFF"},label:(0,A.zR)({id:"RHMS2f",defaultMessage:"Line color"})},{name:"alternatives",type:"alternatives",label:(0,A.zR)({id:"68NE9W",defaultMessage:"Alternatives"})},{name:"background",type:"background",label:(0,A.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,A.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,A.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]}],Jo="micromag-screen-title-withMargin",Ko="micromag-screen-title-box",es="micromag-screen-title-isPlaceholder";function ts({layout:e="top",title:t=null,subtitle:l=null,description:n=null,boxStyle:a=null,withSubtitle:i=!1,withDescription:o=!1,withBox:s=!1,spacing:r=20,descriptionEmptyLabel:c=(0,I.jsx)(A.sA,{id:"507VAi",defaultMessage:"Description"}),header:d=null,footer:u=null,background:m=null,current:g=!0,active:h=!0,mediaRef:y=null,className:p=null}){const{width:f,height:b,resolution:v}=rt(),{isView:x,isPreview:S,isPlaceholder:w,isEdit:C}=at(),{topHeight:j,bottomHeight:k,bottomSidesWidth:M}=ht(),{open:N}=bt(),{muted:$}=Xe(),{ref:F,isCurrent:T=!1}=Je(g,!0),R=he(t),z=he(l),L=he(n),P=e.split("-"),B="split"===P[0],E="top"===e,V="middle"===e,D="bottom"===e,_=B?P[1]||null:P[0],O=R&&(z||L)&&(!B||"top"===_),H=z&&L&&(!B||"bottom"===_),Z=g&&(x||C)&&(T||!x),W=g||h,q=ce(d),Y=de(u),U=G(u,{isView:x,current:g,openWebView:N,isPreview:S}),Q=(0,I.jsx)(zn,{placeholder:"title",emptyLabel:(0,I.jsx)(A.sA,{id:"2ZOPe+",defaultMessage:"Title"}),emptyClassName:"micromag-screen-title-emptyTitle",isEmpty:!R,children:R?(0,I.jsx)(wa,{className:Ft(["micromag-screen-title-title",{[Jo]:O}]),...t,size:1}):null},"title"),X=i?(0,I.jsx)(zn,{placeholder:"subtitle",emptyLabel:(0,I.jsx)(A.sA,{id:"d60tSn",defaultMessage:"Subtitle"}),emptyClassName:"micromag-screen-title-emptySubtitle",isEmpty:!z,children:z?(0,I.jsx)(wa,{className:Ft(["micromag-screen-title-subtitle",{[Jo]:H}]),...l,size:2}):null},"subtitle"):null,J=o?(0,I.jsx)(zn,{placeholder:"shortText",emptyLabel:c,emptyClassName:"micromag-screen-title-emptyDescription",isEmpty:!L,children:L?(0,I.jsx)(Wn,{...n}):null},"description"):null;return(0,I.jsxs)("div",{className:Ft(["micromag-screen-title-container",p,{[es]:w}]),"data-screen-ready":!0,children:[(0,I.jsx)(na,{width:f,height:b,className:"micromag-screen-title-content",children:(0,I.jsxs)($a,{className:"micromag-screen-title-layout",fullscreen:!0,verticalAlign:_,style:w?null:{paddingLeft:r,paddingRight:r,paddingTop:(S?0:j)+(q?r/2:r),paddingBottom:(g&&!S?k:0)+(Y?r/2:r)},children:[!w&&q?(0,I.jsx)("div",{style:{paddingBottom:r},children:(0,I.jsx)(xa,{...d})}):null,!w&&Y&&V?(0,I.jsx)(Ma,{},"spacer-cta-top"):null,!w&&q&&D?(0,I.jsx)(Ma,{},"spacer-cta-top"):null,!w&&q&&!Y&&V?(0,I.jsx)(Ma,{},"spacer-cta-top"):null,s&&!B?(0,I.jsx)("div",{className:Ko,style:C||w||R||z||L?te(a):null,children:[Q,X,J]}):null,s&&B?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)("div",{className:Ko,style:C||w||R||o&&"top"===_&&z?te(a):null,children:[Q,o&&"top"===_?X:null]},"top"),(0,I.jsx)(Ma,{},"spacer1"),(0,I.jsxs)("div",{className:Ko,style:C||w||L||(!o||"bottom"===_)&&z?te(a):null,children:[o&&"bottom"!==_?null:X,J]},"bottom")]}):null,s?null:(0,I.jsxs)(I.Fragment,{children:[Q,B&&(!o||"bottom"===_)&&(0,I.jsx)(Ma,{},"spacer1"),X,B&&o&&"top"===_&&(0,I.jsx)(Ma,{},"spacer2"),J]}),!w&&Y&&(E||V)?(0,I.jsx)(Ma,{},"spacer-cta-bottom"):null,!w&&q&&!Y&&V?(0,I.jsx)(Ma,{},"spacer-cta-bottom"):null,!w&&Y?(0,I.jsx)("div",{style:{paddingTop:r,paddingLeft:Math.max(0,M-r),paddingRight:Math.max(0,M-r)},children:(0,I.jsx)(fa,{...U})},"call-to-action"):null]})}),w?null:(0,I.jsx)(la,{background:m,width:f,height:b,resolution:v,playing:Z,muted:$,shouldLoad:W,mediaRef:pe(F,y),withoutVideo:S,className:"micromag-screen-title-background"})]})}var ls=[{id:"title",type:"screen",group:{label:(0,A.zR)({id:"uKJRh2",defaultMessage:"Title"}),order:1},title:(0,A.zR)({id:"dVcog7",defaultMessage:"Title"}),component:ts,layouts:["top","middle","bottom"],fields:[{name:"layout",type:"screen-layout",defaultValue:"top",label:(0,A.zR)({id:"4iBXj2",defaultMessage:"Layout"})},{name:"title",type:"heading-element",theme:{textStyle:"heading1"},label:(0,A.zR)({id:"N25iDO",defaultMessage:"Title"})},{name:"background",type:"background",label:(0,A.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,A.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,A.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]},{id:"title-subtitle",type:"screen",group:{label:(0,A.zR)({id:"uKJRh2",defaultMessage:"Title"}),order:1},title:(0,A.zR)({id:"P1dwGU",defaultMessage:"Title with subtitle"}),component:function(e){const t=(0,i.c)(4);let l,n;return t[0]!==e?(({...l}=e),t[0]=e,t[1]=l):l=t[1],t[2]!==l?(n=(0,I.jsx)(ts,{...l,withSubtitle:!0}),t[2]=l,t[3]=n):n=t[3],n},layouts:["top","middle","bottom","split"],fields:[{name:"layout",type:"screen-layout",defaultValue:"top",label:(0,A.zR)({id:"4iBXj2",defaultMessage:"Layout"})},{name:"title",type:"heading-element",theme:{textStyle:"heading1"},label:(0,A.zR)({id:"N25iDO",defaultMessage:"Title"})},{name:"subtitle",type:"heading-element",theme:{textStyle:"heading2"},label:(0,A.zR)({id:"EcZYpr",defaultMessage:"Subtitle"})},{name:"background",type:"background",label:(0,A.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,A.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,A.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]},{id:"title-subtitle-credits",type:"screen",group:{label:(0,A.zR)({id:"uKJRh2",defaultMessage:"Title"}),order:1},title:(0,A.zR)({id:"vZrFq6",defaultMessage:"Title with subtitle and credits"}),component:function(e){const t=(0,i.c)(7);let l,n;t[0]!==e?(({credits:n,...l}=e),t[0]=e,t[1]=l,t[2]=n):(l=t[1],n=t[2]);const a=void 0===n?null:n;let o,s;return t[3]===Symbol.for("react.memo_cache_sentinel")?(o=(0,I.jsx)(A.sA,{id:"/hupzO",defaultMessage:"Credits"}),t[3]=o):o=t[3],t[4]!==a||t[5]!==l?(s=(0,I.jsx)(ts,{...l,description:a,withSubtitle:!0,withDescription:!0,descriptionEmptyLabel:o}),t[4]=a,t[5]=l,t[6]=s):s=t[6],s},layouts:["top","middle","bottom","split-top","split-bottom"],fields:[{name:"layout",type:"screen-layout",defaultValue:"top",label:(0,A.zR)({id:"4iBXj2",defaultMessage:"Layout"})},{name:"title",type:"heading-element",theme:{textStyle:"heading1"},label:(0,A.zR)({id:"N25iDO",defaultMessage:"Title"})},{name:"subtitle",type:"heading-element",theme:{textStyle:"heading2"},label:(0,A.zR)({id:"EcZYpr",defaultMessage:"Subtitle"})},{name:"credits",type:"text-element",theme:{textStyle:"text"},label:(0,A.zR)({id:"upzOTm",defaultMessage:"Credits"})},{name:"background",type:"background",label:(0,A.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,A.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,A.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]},{id:"title-with-box",type:"screen",group:{label:(0,A.zR)({id:"uKJRh2",defaultMessage:"Title"}),order:1},title:(0,A.zR)({id:"9a5s+m",defaultMessage:"Title with box"}),component:function(e){const t=(0,i.c)(2);let l;return t[0]!==e?(l=(0,I.jsx)(ts,{...e,withSubtitle:!0,withDescription:!0,withBox:!0}),t[0]=e,t[1]=l):l=t[1],l},layouts:["top","middle","bottom","split-top","split-bottom"],fields:[{name:"layout",type:"screen-layout",defaultValue:"top",label:(0,A.zR)({id:"4iBXj2",defaultMessage:"Layout"})},{name:"title",type:"heading-element",theme:{textStyle:"heading1"},label:(0,A.zR)({id:"N25iDO",defaultMessage:"Title"})},{name:"subtitle",type:"heading-element",theme:{textStyle:"heading2"},label:(0,A.zR)({id:"EcZYpr",defaultMessage:"Subtitle"})},{name:"description",type:"text-element",theme:{textStyle:"text"},label:(0,A.zR)({id:"ZCe0r4",defaultMessage:"Description"})},{type:"fields",isList:!0,label:(0,A.zR)({id:"LOknw0",defaultMessage:"Styles"}),fields:[{name:"boxStyle",type:"box-style-form",label:(0,A.zR)({id:"f5Yipd",defaultMessage:"Box"})}]},{name:"background",type:"background",label:(0,A.zR)({id:"cDj1mZ",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,A.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,A.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]}],ns={container:"micromag-element-urbania-author-avatar-container",shapeCircle:"micromag-element-urbania-author-avatar-shapeCircle",shape:"micromag-element-urbania-author-avatar-shape"};function as(e){const t=(0,i.c)(18),{image:l,width:n,height:a,resolution:o,shape:s,isTag:r,className:c,shouldLoad:d}=e,u=void 0===l?null:l,m=void 0===n?100:n,g=void 0===a?100:a,h=void 0===o?1:o,p=void 0===s?"circle":s,f=void 0!==r&&r,b=void 0===c?null:c,v=void 0===d||d,x=_e("supportsWebp",!1),S=_e("imageResolution",h);let w;t[0]!==g||t[1]!==u||t[2]!==S||t[3]!==x||t[4]!==m?(w=X(u,m,g,{resolution:S,supportsWebp:x}),t[0]=g,t[1]=u,t[2]=S,t[3]=x,t[4]=m,t[5]=w):w=t[5];const C=w;let j;t[6]!==p?(j=null!==p?(0,y.fL)(p):null,t[6]=p,t[7]=j):j=t[7];const k=ns[`shape${j}`],M=null!==j;let N;t[8]!==b||t[9]!==f||t[10]!==k||t[11]!==M?(N=Ft([ns.container,{[k]:M,[ns.isTag]:f},b]),t[8]=b,t[9]=f,t[10]=k,t[11]=M,t[12]=N):N=t[12];const $=v?`url("${C}")`:null;let F,T;return t[13]!==$?(F=(0,I.jsx)("span",{className:ns.shape,style:{backgroundImage:$}}),t[13]=$,t[14]=F):F=t[14],t[15]!==N||t[16]!==F?(T=(0,I.jsx)("span",{className:N,children:F}),t[15]=N,t[16]=F,t[17]=T):T=t[17],T}var is={container:"micromag-element-urbania-author-container",image:"micromag-element-urbania-author-image",link:"micromag-element-urbania-author-link",right:"micromag-element-urbania-author-right",name:"micromag-element-urbania-author-name",prefix:"micromag-element-urbania-author-prefix",collaborator:"micromag-element-urbania-author-collaborator",collaboratorText:"micromag-element-urbania-author-collaboratorText",isSmall:"micromag-element-urbania-author-isSmall",withoutImage:"micromag-element-urbania-author-withoutImage",withoutBackground:"micromag-element-urbania-author-withoutBackground"};function os(e){const t=(0,i.c)(54);let l,n,a,o,s,r,c,d,u,m,g,h;t[0]!==e?(({author:n,withImage:s,withoutLink:r,withoutPrefix:c,withoutBackground:d,isSmall:u,linkUnderlineColor:m,className:g,backgroundClassName:h,collaboratorClassName:a,shouldLoad:o,...l}=e),t[0]=e,t[1]=l,t[2]=n,t[3]=a,t[4]=o,t[5]=s,t[6]=r,t[7]=c,t[8]=d,t[9]=u,t[10]=m,t[11]=g,t[12]=h):(l=t[1],n=t[2],a=t[3],o=t[4],s=t[5],r=t[6],c=t[7],d=t[8],u=t[9],m=t[10],g=t[11],h=t[12]);const y=void 0===n?null:n,p=void 0===s||s,f=void 0!==r&&r,b=void 0!==c&&c,v=void 0!==d&&d,x=void 0!==u&&u,S=void 0===m?null:m,w=void 0===g?null:g,C=void 0===h?null:h,j=void 0===a?null:a,k=void 0===o||o,M=(0,A.tz)();let N;t[13]!==y?(N=y||{},t[13]=y,t[14]=N):N=t[14];const{name:$,image:F,url:T,collaborator:R}=N,z=void 0===$?null:$,L=void 0===F?null:F,P=void 0===T?null:T,B=void 0===R?null:R,E=p&&null!==L;let V;t[15]!==M?(V=M.formatMessage({id:"jEK6B8",defaultMessage:"By"}),t[15]=M,t[16]=V):V=t[16];const D=V;let _;t[17]!==C||t[18]!==z?(_=he(z)?(0,I.jsx)(Wn,{className:Ft([is.name,C]),...z}):null,t[17]=C,t[18]=z,t[19]=_):_=t[19];const O=_;let H;t[20]!==B?(H=he(B)?(0,I.jsx)(Wn,{className:is.collaboratorText,...B,inline:!0}):null,t[20]=B,t[21]=H):H=t[21];const Z=H,W=!p||null===L;let q,G,Y,U,Q,X,J;return t[22]!==w||t[23]!==x||t[24]!==W||t[25]!==E||t[26]!==v?(q=Ft([is.container,w,{[is.isSmall]:x,[is.withoutAvatar]:E,[is.withoutImage]:W,[is.withoutBackground]:v}]),t[22]=w,t[23]=x,t[24]=W,t[25]=E,t[26]=v,t[27]=q):q=t[27],t[28]!==C||t[29]!==z||t[30]!==D||t[31]!==b?(G=b?null:(0,I.jsx)(Wn,{...z,className:Ft([is.prefix,C]),body:`<span>${D}<span>`}),t[28]=C,t[29]=z,t[30]=D,t[31]=b,t[32]=G):G=t[32],t[33]!==L||t[34]!==k||t[35]!==E?(Y=E?(0,I.jsx)(as,{className:is.image,image:L,shouldLoad:k}):null,t[33]=L,t[34]=k,t[35]=E,t[36]=Y):Y=t[36],t[37]!==O||t[38]!==S||t[39]!==P||t[40]!==f?(U=null===P||f?(0,I.jsx)("div",{children:O}):(0,I.jsx)(On,{className:is.link,url:P,external:!0,style:{backgroundImage:null!==S?`linear-gradient(0deg, ${S} 0, ${S})`:null},children:O}),t[37]=O,t[38]=S,t[39]=P,t[40]=f,t[41]=U):U=t[41],t[42]!==j||t[43]!==Z?(Q=null!==Z?(0,I.jsx)("div",{className:Ft([is.collaborator,j]),children:null!==Z?Z:null}):null,t[42]=j,t[43]=Z,t[44]=Q):Q=t[44],t[45]!==U||t[46]!==Q?(X=(0,I.jsxs)("div",{className:is.right,children:[U,Q]}),t[45]=U,t[46]=Q,t[47]=X):X=t[47],t[48]!==l||t[49]!==q||t[50]!==G||t[51]!==Y||t[52]!==X?(J=(0,I.jsxs)("div",{className:q,...l,children:[G,Y,X]}),t[48]=l,t[49]=q,t[50]=G,t[51]=Y,t[52]=X,t[53]=J):J=t[53],J}function ss(e){const t=(0,i.c)(6),{color:l,strokeWidth:n,className:a}=e,o=void 0===l?"currentColor":l,s=void 0===a?null:a,r=`${void 0===n?3:n}px`;let c,d;return t[0]!==o||t[1]!==r?(c=(0,I.jsx)("g",{transform:"matrix(1, 0, 0, 1, 0, 0)",children:(0,I.jsx)("path",{id:"b",fill:"none",stroke:o,strokeWidth:r,strokeLinejoin:"round",strokeLinecap:"round",d:"M1.5,10.88L24.26,1.5l22.77,9.38"})}),t[0]=o,t[1]=r,t[2]=c):c=t[2],t[3]!==s||t[4]!==c?(d=(0,I.jsx)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0",y:"0px",width:"48.53px",height:"12.38px",viewBox:"0 0 48.53 12.38",className:s,xmlSpace:"preserve",children:c}),t[3]=s,t[4]=c,t[5]=d):d=t[5],d}function rs(e){const t=(0,i.c)(5),{color:l,className:n}=e,a=void 0===l?"#222":l,o=void 0===n?null:n;let s,r;return t[0]!==a?(s=(0,I.jsxs)("g",{transform:"translate(0 0)",children:[(0,I.jsx)("path",{fill:a,d:"M8.34,0h1.08s.06,.02,.1,.02c.89,.07,1.77,.26,2.6,.59,1.9,.74,3.48,2.11,4.48,3.88,.5,.88,.85,1.84,1.02,2.84,.06,.34,.1,.69,.14,1.04v1.05s-.02,.1-.03,.15c-.2,2.62-1.55,5.01-3.69,6.53-1.17,.85-2.54,1.39-3.98,1.57l-.64,.09h-1.08s-.1-.02-.15-.03c-.94-.07-1.87-.3-2.74-.66C2.55,15.85,.51,13.18,.08,10.06c-.03-.21-.06-.43-.08-.64v-1.08c0-.06,.02-.11,.03-.17C.21,5.84,1.32,3.67,3.1,2.15,4.4,1.02,6,.3,7.71,.08l.63-.08Zm7.94,8.71c-.09-4.09-3.48-7.32-7.57-7.23-4.09,.09-7.32,3.48-7.23,7.57,.09,4.09,3.48,7.32,7.57,7.23,.04,0,.07,0,.11,0,4.04-.16,7.2-3.53,7.12-7.56h0Z"}),(0,I.jsx)("path",{fill:a,d:"M7.42,8.89v-2.61c-.02-.2,.09-.4,.28-.48,.15-.06,.32-.04,.44,.06,.39,.28,.78,.56,1.17,.85,.82,.59,1.63,1.19,2.45,1.78,.22,.11,.3,.38,.19,.59-.04,.08-.11,.15-.19,.19-.6,.45-1.21,.89-1.82,1.33-.59,.43-1.18,.86-1.78,1.29-.16,.17-.43,.17-.6,0-.02-.02-.03-.03-.04-.05-.07-.11-.1-.24-.1-.37,0-.86,0-1.72,0-2.58h0Z"})]}),t[0]=a,t[1]=s):s=t[1],t[2]!==o||t[3]!==s?(r=(0,I.jsx)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0",y:"0px",width:"17.76px",height:"17.76px",viewBox:"0 0 17.76 17.76",className:o,xmlSpace:"preserve",children:s}),t[2]=o,t[3]=s,t[4]=r):r=t[4],r}var cs={container:"micromag-screen-urbania-article-urbania-base-article-container",isPlaceholder:"micromag-screen-urbania-article-urbania-base-article-isPlaceholder",articleContent:"micromag-screen-urbania-article-urbania-base-article-articleContent",visual:"micromag-screen-urbania-article-urbania-base-article-visual",isVideo:"micromag-screen-urbania-article-urbania-base-article-isVideo",title:"micromag-screen-urbania-article-urbania-base-article-title",description:"micromag-screen-urbania-article-urbania-base-article-description",sponsors:"micromag-screen-urbania-article-urbania-base-article-sponsors",callToAction:"micromag-screen-urbania-article-urbania-base-article-callToAction",placeholder:"micromag-screen-urbania-article-urbania-base-article-placeholder",emptyContainer:"micromag-screen-urbania-article-urbania-base-article-emptyContainer",small:"micromag-screen-urbania-article-urbania-base-article-small",empty:"micromag-screen-urbania-article-urbania-base-article-empty",background:"micromag-screen-urbania-article-urbania-base-article-background",video:"micromag-screen-urbania-article-urbania-base-article-video",content:"micromag-screen-urbania-article-urbania-base-article-content",overTitle:"micromag-screen-urbania-article-urbania-base-article-overTitle",authors:"micromag-screen-urbania-article-urbania-base-article-authors",lede:"micromag-screen-urbania-article-urbania-base-article-lede",isAboveDescription:"micromag-screen-urbania-article-urbania-base-article-isAboveDescription",sponsor:"micromag-screen-urbania-article-urbania-base-article-sponsor",quatre95:"micromag-screen-urbania-article-urbania-base-article-quatre95",author:"micromag-screen-urbania-article-urbania-base-article-author",urbania:"micromag-screen-urbania-article-urbania-base-article-urbania",dehors:"micromag-screen-urbania-article-urbania-base-article-dehors",universities:"micromag-screen-urbania-article-urbania-base-article-universities",footerContainer:"micromag-screen-urbania-article-urbania-base-article-footerContainer",footer:"micromag-screen-urbania-article-urbania-base-article-footer",arrow:"micromag-screen-urbania-article-urbania-base-article-arrow",icon:"micromag-screen-urbania-article-urbania-base-article-icon",button:"micromag-screen-urbania-article-urbania-base-article-button",mediaControls:"micromag-screen-urbania-article-urbania-base-article-mediaControls",header:"micromag-screen-urbania-article-urbania-base-article-header",bottom:"micromag-screen-urbania-article-urbania-base-article-bottom",visible:"micromag-screen-urbania-article-urbania-base-article-visible",withGradient:"micromag-screen-urbania-article-urbania-base-article-withGradient",image:"micromag-screen-urbania-article-urbania-base-article-image",isCurrent:"micromag-screen-urbania-article-urbania-base-article-isCurrent",slowZoom:"micromag-screen-urbania-article-urbania-base-article-slowZoom",img:"micromag-screen-urbania-article-urbania-base-article-img"};function ds(e){const t=(0,i.c)(173),{hasArticle:l,type:a,image:o,title:s,description:r,overTitle:c,author:d,sponsors:u,sponsorPrefix:m,sponsorColor:g,site:h,header:y,footer:p,background:f,current:b,preload:v,spacing:x,mediaRef:S,className:w}=e,C=void 0!==l&&l,j=void 0===a?null:a,k=void 0===o?null:o,M=void 0===s?null:s,N=void 0===r?null:r,$=void 0===c?null:c,F=void 0===d?null:d,T=void 0===u?null:u,R=void 0===m?null:m,z=void 0===g?null:g,L=void 0===h?null:h,P=void 0===y?null:y,B=void 0===p?null:p,E=void 0===f?null:f,V=void 0===b||b,D=void 0===v||v,_=void 0===x?20:x,O=void 0===S?null:S,H=void 0===w?null:w,{width:Z,height:W,resolution:q}=rt(),{isView:Y,isPreview:U,isPlaceholder:Q,isEdit:X,isStatic:K,isCapture:ee}=at();let te;t[0]!==E?(te=E||{},t[0]=E,t[1]=te):te=t[1];const{color:le}=te,ne=void 0===le?null:le,{opened:ae,open:ie}=bt(),{bottomSidesWidth:oe,topHeight:se}=ht(),{enableInteraction:re,disableInteraction:ue}=ft(),{muted:me,playing:ge}=Xe(),{ref:ye,entry:fe,height:be}=_t(),{contentRect:ve}=fe;let xe;t[2]!==ve?(xe=ve||{},t[2]=ve,t[3]=xe):xe=t[3];const{top:Se}=xe,we=W-be-Se+1;let Ce;t[4]!==we?(Ce={imageHeight:we},t[4]=we,t[5]=Ce):Ce=t[5];const{minContentHeight:je}=Ce,ke=void 0===je?null:je,Me="video"===j;let Ne;t[6]!==$?(Ne=he($),t[6]=$,t[7]=Ne):Ne=t[7];const $e=Ne;let Fe;t[8]!==M?(Fe=he(M),t[8]=M,t[9]=Fe):Fe=t[9];const Te=Fe,Re=he(N);let ze;t[10]!==T?(ze=(T||[]).length>0&&he(T[0]),t[10]=T,t[11]=ze):ze=t[11];const Le=ze;let Ie;t[12]!==F?(Ie=F||{},t[12]=F,t[13]=Ie):Ie=t[13];const{name:Ae}=Ie;let Pe;t[14]!==Ae?(Pe=he(Ae),t[14]=Ae,t[15]=Pe):Pe=t[15];const Be=Pe;let Ee;t[16]!==k?(Ee=k||{},t[16]=k,t[17]=Ee):Ee=t[17];const{url:Ve,type:De}=Ee,_e=void 0===De?null:De,Oe=null!==(void 0===Ve?null:Ve);let He;t[18]!==P?(He=ce(P),t[18]=P,t[19]=He):He=t[19];const Ze=He;let We;t[20]!==B||t[21]!==C?(We=de(B)||C,t[20]=B,t[21]=C,t[22]=We):We=t[22];const qe=We;let Ge,Ye,Ue;if(t[23]===Symbol.for("react.memo_cache_sentinel")?(Ge=(0,I.jsx)(ss,{}),t[23]=Ge):Ge=t[23],t[24]!==j?(Ye="video"===j?(0,I.jsx)(rs,{className:cs.icon}):null,t[24]=j,t[25]=Ye):Ye=t[25],t[26]!==V||t[27]!==ue||t[28]!==re||t[29]!==B||t[30]!==U||t[31]!==Y||t[32]!==ie||t[33]!==Ye){const e={buttonClassName:cs.button,labelClassName:cs.label,arrowClassName:cs.arrow,arrow:Ge,icon:Ye},{callToAction:l,...n}=B||{};Ue=G({...n,callToAction:{...void 0===l?null:l,...e}},{isView:Y,current:V,openWebView:ie,isPreview:U,animationDisabled:U,focusable:V&&Y,enableInteraction:re,disableInteraction:ue}),t[26]=V,t[27]=ue,t[28]=re,t[29]=B,t[30]=U,t[31]=Y,t[32]=ie,t[33]=Ye,t[34]=Ue}else Ue=t[34];const Qe=Ue;let Ke;t[35]!==E?(Ke=E||{},t[35]=E,t[36]=Ke):Ke=t[36];const{video:et}=Ke,tt=null!==(void 0===et?null:et),lt=V||D,nt=ge&&V,it="video"!==_e&&tt,{ref:ot,isCurrent:st}=Je(V,it),ct=V&&!ae&&(Y||X)&&(void 0!==st&&st||!Y);let dt,ut,mt;t[37]===Symbol.for("react.memo_cache_sentinel")?(dt=(0,I.jsx)(bn,{className:cs.placeholder}),ut=Ft([cs.emptyContainer,cs.small]),t[37]=dt,t[38]=ut):(dt=t[37],ut=t[38]),t[39]===Symbol.for("react.memo_cache_sentinel")?(mt=(0,I.jsx)("div",{className:ut,children:(0,I.jsx)(ln,{className:cs.empty,children:(0,I.jsx)(A.sA,{id:"pRzSQ7",defaultMessage:"Overtitle"})})}),t[39]=mt):mt=t[39];const gt=!$e;let yt,pt,vt,xt;t[40]!==$e||t[41]!==$?(yt=$e?(0,I.jsx)(wa,{className:Ft([cs.overTitle]),...$}):null,t[40]=$e,t[41]=$,t[42]=yt):yt=t[42],t[43]!==gt||t[44]!==yt?(pt=(0,I.jsx)(zn,{placeholder:dt,empty:mt,isEmpty:gt,children:yt},"overTitle"),t[43]=gt,t[44]=yt,t[45]=pt):pt=t[45],t[46]===Symbol.for("react.memo_cache_sentinel")?(vt=(0,I.jsx)(xn,{className:cs.placeholder}),t[46]=vt):vt=t[46],t[47]===Symbol.for("react.memo_cache_sentinel")?(xt=(0,I.jsx)("div",{className:cs.emptyContainer,children:(0,I.jsx)(ln,{className:cs.empty,children:(0,I.jsx)(A.sA,{id:"2ZOPe+",defaultMessage:"Title"})})}),t[47]=xt):xt=t[47];const St=!Te;let wt,Ct;t[48]!==Te||t[49]!==M?(wt=Te?(0,I.jsx)(wa,{className:Ft([cs.title]),...M}):null,t[48]=Te,t[49]=M,t[50]=wt):wt=t[50],t[51]!==St||t[52]!==wt?(Ct=(0,I.jsx)(zn,{placeholder:vt,empty:xt,isEmpty:St,children:wt},"title"),t[51]=St,t[52]=wt,t[53]=Ct):Ct=t[53];const jt=zn;let kt;t[54]===Symbol.for("react.memo_cache_sentinel")?(kt=(0,I.jsx)("div",{className:cs.emptyContainer,children:(0,I.jsx)(ln,{className:cs.empty,children:(0,I.jsx)(A.sA,{id:"6jX5Tb",defaultMessage:"Authors"})})}),t[54]=kt):kt=t[54];const Mt=!Be,Nt=Be?(0,I.jsx)("div",{className:Ft([cs.authors,{[cs.isAboveDescription]:Re}]),children:(0,I.jsx)(os,{author:F,shouldLoad:lt})}):null;let $t,Tt;t[55]!==jt||t[56]!==kt||t[57]!==Mt||t[58]!==Nt?($t=(0,I.jsx)(jt,{empty:kt,isEmpty:Mt,children:Nt},"authors"),t[55]=jt,t[56]=kt,t[57]=Mt,t[58]=Nt,t[59]=$t):$t=t[59],t[60]===Symbol.for("react.memo_cache_sentinel")?(Tt=(0,I.jsx)("div",{className:cs.emptyContainer,children:(0,I.jsx)(ln,{className:cs.empty,children:(0,I.jsx)(A.sA,{id:"zl6zsZ",defaultMessage:"Lede"})})}),t[60]=Tt):Tt=t[60];const Rt=!Re&&!C;let zt,Lt,It,At;t[61]!==N||t[62]!==Re?(zt=Re?(0,I.jsx)("div",{className:Ft([cs.description]),children:(0,I.jsx)(Wn,{className:Ft([cs.lede]),...N})}):null,t[61]=N,t[62]=Re,t[63]=zt):zt=t[63],t[64]!==Rt||t[65]!==zt?(Lt=(0,I.jsx)(zn,{empty:Tt,isEmpty:Rt,children:zt},"description"),t[64]=Rt,t[65]=zt,t[66]=Lt):Lt=t[66],t[67]===Symbol.for("react.memo_cache_sentinel")?(It=Ft([cs.emptyContainer,cs.small]),t[67]=It):It=t[67],t[68]===Symbol.for("react.memo_cache_sentinel")?(At=(0,I.jsx)("div",{className:It,children:(0,I.jsx)(ln,{className:cs.empty,children:(0,I.jsx)(A.sA,{id:"zGIcdn",defaultMessage:"Sponsors"})})}),t[68]=At):At=t[68];const Pt=!Le&&!C;let Bt,Et,Vt;t[69]!==Le||t[70]!==z||t[71]!==R||t[72]!==T?(Bt=Le?(0,I.jsx)("div",{className:cs.sponsors,style:{...J(z)},children:T.map(e=>{const t=void 0===e?null:e,{body:l}=t||{},a=void 0===l?"":l;return(0,I.jsxs)(n.Fragment,{children:[null!==R?(0,I.jsx)("span",{className:cs.sponsor,children:R}):null,(0,I.jsx)("span",{children:" "}),(0,I.jsx)(wa,{className:cs.sponsor,size:"6",...t})]},a)})}):null,t[69]=Le,t[70]=z,t[71]=R,t[72]=T,t[73]=Bt):Bt=t[73],t[74]!==Pt||t[75]!==Bt?(Et=(0,I.jsx)(zn,{empty:At,isEmpty:Pt,children:Bt},"sponsors"),t[74]=Pt,t[75]=Bt,t[76]=Et):Et=t[76],t[77]!==pt||t[78]!==Ct||t[79]!==$t||t[80]!==Lt||t[81]!==Et?(Vt=[pt,Ct,$t,Lt,Et].filter(us),t[77]=pt,t[78]=Ct,t[79]=$t,t[80]=Lt,t[81]=Et,t[82]=Vt):Vt=t[82];const Dt=Vt;let Ot;t[83]!==H||t[84]!==V||t[85]!==tt||t[86]!==Q||t[87]!==Me?(Ot=Ft([cs.container,H,{[cs.isCurrent]:V,[cs.isVideo]:Me,[cs.hasVideoBackground]:tt,[cs.isPlaceholder]:Q}]),t[83]=H,t[84]=V,t[85]=tt,t[86]=Q,t[87]=Me,t[88]=Ot):Ot=t[88];const Ht=K||ee;let Zt,Wt,qt;t[89]!==O||t[90]!==it||t[91]!==ot?(Zt=it?pe(ot,O):null,t[89]=O,t[90]=it,t[91]=ot,t[92]=Zt):Zt=t[92],t[93]!==E||t[94]!==ct||t[95]!==W||t[96]!==U||t[97]!==lt||t[98]!==me||t[99]!==q||t[100]!==Zt||t[101]!==Z?(Wt=(0,I.jsx)(la,{className:cs.background,background:E,width:Z,height:W,resolution:q,playing:ct,muted:me,shouldLoad:lt,mediaRef:Zt,withoutVideo:U}),t[93]=E,t[94]=ct,t[95]=W,t[96]=U,t[97]=lt,t[98]=me,t[99]=q,t[100]=Zt,t[101]=Z,t[102]=Wt):Wt=t[102],t[103]!==Ze||t[104]!==P||t[105]!==Q||t[106]!==U||t[107]!==_||t[108]!==se?(qt=!Q&&Ze?(0,I.jsx)("div",{className:cs.header,style:{paddingTop:_/2,paddingLeft:_,paddingRight:_,transform:U?null:`translate(0, ${se}px)`},children:(0,I.jsx)(xa,{...P})},"header"):null,t[103]=Ze,t[104]=P,t[105]=Q,t[106]=U,t[107]=_,t[108]=se,t[109]=qt):qt=t[109];const Gt=cs[`${L}`],Yt=null!==L;let Ut,Qt,Xt,Jt,Kt,el;t[110]!==Gt||t[111]!==Yt?(Ut=Ft([cs.articleContent,{[Gt]:Yt}]),t[110]=Gt,t[111]=Yt,t[112]=Ut):Ut=t[112],t[113]!==ne||t[114]!==Me?(Qt=Me?null:J(ne,"backgroundColor"),t[113]=ne,t[114]=Me,t[115]=Qt):Qt=t[115],t[116]!==ke||t[117]!==_||t[118]!==Qt?(Xt={paddingTop:_,minHeight:ke,...Qt},t[116]=ke,t[117]=_,t[118]=Qt,t[119]=Xt):Xt=t[119],t[120]!==ye||t[121]!==Dt||t[122]!==Ut||t[123]!==Xt?(Jt=(0,I.jsx)("div",{className:Ut,style:Xt,ref:ye,children:Dt}),t[120]=ye,t[121]=Dt,t[122]=Ut,t[123]=Xt,t[124]=Jt):Jt=t[124],t[125]===Symbol.for("react.memo_cache_sentinel")?(Kt=(0,I.jsx)(yn,{className:cs.placeholder}),t[125]=Kt):Kt=t[125],t[126]===Symbol.for("react.memo_cache_sentinel")?(el=(0,I.jsx)("div",{className:cs.emptyContainer,children:(0,I.jsx)(ln,{className:cs.empty,children:(0,I.jsx)(A.sA,{id:"ebsPd4",defaultMessage:"Image"})})}),t[126]=el):el=t[126];const tl=!Oe&&!C;let ll,nl,al,il,ol,sl,rl;return t[127]!==Oe||t[128]!==W||t[129]!==k||t[130]!==Me||t[131]!==lt||t[132]!==q||t[133]!==Z?(ll=Oe&&!Me?(0,I.jsx)(ra,{className:cs.image,imageClassName:cs.img,media:k,width:Z,height:W,resolution:q,objectFit:{fit:"cover"},shouldLoad:lt}):null,t[127]=Oe,t[128]=W,t[129]=k,t[130]=Me,t[131]=lt,t[132]=q,t[133]=Z,t[134]=ll):ll=t[134],t[135]!==O||t[136]!==nt||t[137]!==Oe||t[138]!==tt||t[139]!==W||t[140]!==k||t[141]!==U||t[142]!==Me||t[143]!==ot||t[144]!==lt||t[145]!==me||t[146]!==q||t[147]!==Z?(nl=Oe&&Me&&!tt?(0,I.jsx)(ra,{className:cs.video,media:k,width:Z,height:W,resolution:q,objectFit:{fit:"cover"},shouldLoad:lt,playing:nt,muted:me,withoutVideo:U,mediaRef:pe(ot,O),autoPlay:!0}):null,t[135]=O,t[136]=nt,t[137]=Oe,t[138]=tt,t[139]=W,t[140]=k,t[141]=U,t[142]=Me,t[143]=ot,t[144]=lt,t[145]=me,t[146]=q,t[147]=Z,t[148]=nl):nl=t[148],t[149]!==tl||t[150]!==ll||t[151]!==nl?(al=(0,I.jsx)("div",{className:cs.visual,children:(0,I.jsxs)(zn,{placeholder:Kt,empty:el,isEmpty:tl,children:[ll,nl]},"image")}),t[149]=tl,t[150]=ll,t[151]=nl,t[152]=al):al=t[152],t[153]!==Qe||t[154]!==qe||t[155]!==Q||t[156]!==_||t[157]!==oe?(il=!Q&&qe?(0,I.jsx)("div",{style:{paddingTop:_,paddingLeft:Math.max(0,oe-_),paddingRight:Math.max(0,oe-_)},className:cs.footer,children:(0,I.jsx)(fa,{...Qe})}):null,t[153]=Qe,t[154]=qe,t[155]=Q,t[156]=_,t[157]=oe,t[158]=il):il=t[158],t[159]!==il?(ol=(0,I.jsx)("div",{className:cs.footerContainer,children:il}),t[159]=il,t[160]=ol):ol=t[160],t[161]!==W||t[162]!==qt||t[163]!==Jt||t[164]!==al||t[165]!==ol||t[166]!==Z?(sl=(0,I.jsxs)(na,{className:cs.content,width:Z,height:W,children:[qt,Jt,al,ol]}),t[161]=W,t[162]=qt,t[163]=Jt,t[164]=al,t[165]=ol,t[166]=Z,t[167]=sl):sl=t[167],t[168]!==Ot||t[169]!==Ht||t[170]!==Wt||t[171]!==sl?(rl=(0,I.jsxs)("div",{className:Ot,"data-screen-ready":Ht,children:[Wt,sl]}),t[168]=Ot,t[169]=Ht,t[170]=Wt,t[171]=sl,t[172]=rl):rl=t[172],rl}function us(e){return null!==e}function ms(e){const t=(0,i.c)(101);let l,a,o,s,r,c,d,u,m,g,h,y;t[0]!==e?(({component:a,title:r,articleType:c,overTitle:d,sponsorLabel:u,author:m,image:g,header:h,footer:y,url:o,article:s,...l}=e),t[0]=e,t[1]=l,t[2]=a,t[3]=o,t[4]=s,t[5]=r,t[6]=c,t[7]=d,t[8]=u,t[9]=m,t[10]=g,t[11]=h,t[12]=y):(l=t[1],a=t[2],o=t[3],s=t[4],r=t[5],c=t[6],d=t[7],u=t[8],m=t[9],g=t[10],h=t[11],y=t[12]);const p=void 0===a?ds:a,f=void 0===r?null:r,b=void 0===c?null:c,v=void 0===d?null:d,x=void 0===u?null:u,S=void 0===m?null:m,w=void 0===g?null:g,C=void 0===h?null:h,j=void 0===y?null:y,k=void 0===o?null:o,M=void 0===s?null:s,[N,$]=(0,n.useState)(M);let F;t[13]!==k?(F=null!==k&&ye(k)?k.replace(/^https?:\/\/([^.]+\.)?urbania\.(ca|ƒr)\//,"https://urbania.$2/"):null,t[13]=k,t[14]=F):F=t[14];const T=F;let R,z,L;t[15]!==T?(R=()=>{null!==T&&(0,Ya.hm)(`https://api.urbania.ca/documents?uri=${T}`,{mode:"cors"}).then(e=>{$(e||null)}).catch(e=>{$(null)})},t[15]=T,t[16]=R):R=t[16],t[17]!==T||t[18]!==k?(z=[k,T,$],t[17]=T,t[18]=k,t[19]=z):z=t[19],(0,n.useEffect)(R,z),t[20]!==w?(L=w||{},t[20]=w,t[21]=L):L=t[21];const{url:P}=L,B=void 0===P?null:P;let E;t[22]!==j?(E=j||{},t[22]=j,t[23]=E):E=t[23];const{callToAction:V}=E,D=void 0===V?null:V;let _;t[24]!==D?(_=D||{},t[24]=D,t[25]=_):_=t[25];const{url:O}=_,H=void 0===O?null:O;let Z,W,q,G,Y,U,Q,X,J;if(t[26]!==N||t[27]!==b){const{type:e,title:l,image:n,metadata:a}=N||{},i=void 0===e?null:e;W=void 0===l?null:l,Z=void 0===n?null:n;const o=void 0===a?{}:a;Y=null!==N;const{authors:s,sponsors:r,brands:c}=o||{},d=void 0===s?[]:s,u=void 0===r?[]:r,m=void 0===c?[]:c,[g]=d||[],h=void 0===g?null:g,[y]=m||[],{handle:p}=void 0===y?{}:y;X=void 0===p?null:p;const{sizes:f}=Z||{},v=void 0===f?{}:f,{medium:x,large:S}=v||{};Q=void 0===x?{}:x,U=void 0===S?{}:S;const{name:w,image:C}=h||{},j=void 0===w?null:w,k=void 0===C?null:C;G={...null!==j&&""!==j?{name:{body:`<p>${j}</p>`}}:null,...null!==k?{image:k}:null},q=b||i,J=(u||[]).length>0?(u||[]).map(hs).filter(gs).join(", ").trim():null,t[26]=N,t[27]=b,t[28]=Z,t[29]=W,t[30]=q,t[31]=G,t[32]=Y,t[33]=U,t[34]=Q,t[35]=X,t[36]=J}else Z=t[28],W=t[29],q=t[30],G=t[31],Y=t[32],U=t[33],Q=t[34],X=t[35],J=t[36];const K=J;let ee;t[37]!==f?(ee=he(f),t[37]=f,t[38]=ee):ee=t[38];const te=ee;let le;t[39]!==v?(le=he(v),t[39]=v,t[40]=le):le=t[40];const ne=le;let ae;t[41]!==x?(ae=he(x),t[41]=x,t[42]=ae):ae=t[42];const ie=ae,oe=null!==S&&null!==S.name&&he(S.name);let se;t[43]!==K||t[44]!==ie?(se=ie||null===K?null:(0,I.jsx)(A.sA,{id:"+TPjd4",defaultMessage:"Presented by"}),t[43]=K,t[44]=ie,t[45]=se):se=t[45];const re=se;let ce,de;t[46]!==W||t[47]!==te||t[48]!==f?(ce=te?f:{...f,body:W},t[46]=W,t[47]=te,t[48]=f,t[49]=ce):ce=t[49],t[50]!==ne||t[51]!==v?(de=ne?v:{...v,body:"En vedette"},t[50]=ne,t[51]=v,t[52]=de):de=t[52];const ue=oe?S:null;let me,ge,pe,fe,be;t[53]!==G||t[54]!==ue?(me={...G,...ue},t[53]=G,t[54]=ue,t[55]=me):me=t[55],t[56]!==K||t[57]!==ie||t[58]!==x?(ge=null===K||ie?[x]:[{...x,body:`<strong>${K}</strong>`}],t[56]=K,t[57]=ie,t[58]=x,t[59]=ge):ge=t[59],t[60]!==Z||t[61]!==w||t[62]!==B||t[63]!==U||t[64]!==Q?(pe=null!==B&&null!==w?w:{type:"image",...Z,sizes:{medium:Q,large:U}},t[60]=Z,t[61]=w,t[62]=B,t[63]=U,t[64]=Q,t[65]=pe):pe=t[65],t[66]!==q?(fe="video"===q?{body:"Regarder"}:{body:"Lire"},t[66]=q,t[67]=fe):fe=t[67],t[68]!==T||t[69]!==Y?(be=Y?{active:null!==T}:null,t[68]=T,t[69]=Y,t[70]=be):be=t[70];const ve=H||T;let xe,Se,we;t[71]!==D||t[72]!==fe||t[73]!==be||t[74]!==ve?(xe={type:"swipe-up",label:fe,inWebView:!0,...D,...be,url:ve},t[71]=D,t[72]=fe,t[73]=be,t[74]=ve,t[75]=xe):xe=t[75],t[76]!==j||t[77]!==xe?(Se={...j,callToAction:xe},t[76]=j,t[77]=xe,t[78]=Se):Se=t[78],t[79]!==W||t[80]!==q||t[81]!==T||t[82]!==C||t[83]!==X||t[84]!==re||t[85]!==ce||t[86]!==de||t[87]!==me||t[88]!==ge||t[89]!==pe||t[90]!==Se?(we={type:q,title:ce,articleTitle:W,overTitle:de,author:me,sponsors:ge,sponsorPrefix:re,site:X,image:pe,url:T,header:C,footer:Se},t[79]=W,t[80]=q,t[81]=T,t[82]=C,t[83]=X,t[84]=re,t[85]=ce,t[86]=de,t[87]=me,t[88]=ge,t[89]=pe,t[90]=Se,t[91]=we):we=t[91];const Ce=we;let je;t[92]!==Ce?(je=Ce||{},t[92]=Ce,t[93]=je):je=t[93];const{title:ke}=je,Me=void 0===ke?null:ke;let Ne;t[94]!==Me?(Ne=Me||{},t[94]=Me,t[95]=Ne):Ne=t[95];const{body:$e}=Ne,Fe=null!==(void 0===$e?null:$e);let Te;return t[96]!==p||t[97]!==l||t[98]!==Fe||t[99]!==Ce?(Te=(0,I.jsx)(p,{...l,...Ce,hasArticle:Fe}),t[96]=p,t[97]=l,t[98]=Fe,t[99]=Ce,t[100]=Te):Te=t[100],Te}function gs(e){return null!==e}function hs(e){const{organisation:t}=e,{name:l}=void 0===t?{}:t;return void 0===l?null:l}var ys={id:"urbania-article",type:"screen",namespaces:["urbania"],group:{label:(0,A.zR)({id:"oPjl8f",defaultMessage:"Urbania"}),order:10},title:(0,A.zR)({id:"nJgzwC",defaultMessage:"Urbania article"}),component:ms,fields:[{name:"url",type:"url",label:(0,A.zR)({id:"2pO2Cj",defaultMessage:"Url"})},{name:"articleType",type:"select",label:(0,A.zR)({id:"ppq6CK",defaultMessage:"Type"}),options:[{value:"article",label:(0,A.zR)({id:"pE7UhY",defaultMessage:"Article"})},{value:"video",label:(0,A.zR)({id:"J9e9Qb",defaultMessage:"Video"})}]},{name:"overTitle",type:"heading-element",defaultValue:{body:"En vedette"},label:(0,A.zR)({id:"z2I2bJ",defaultMessage:"Overtitle"})},{name:"title",type:"heading-element",label:(0,A.zR)({id:"N25iDO",defaultMessage:"Title"})},{name:"description",type:"text-element",label:(0,A.zR)({id:"cuKSQz",defaultMessage:"Lede"})},{name:"author",type:"author-element",label:(0,A.zR)({id:"73hxYw",defaultMessage:"Author"})},{name:"sponsorLabel",type:"heading-element",label:(0,A.zR)({id:"hzvEim",defaultMessage:"Sponsor Label"})},{name:"sponsorColor",type:"color",label:(0,A.zR)({id:"Qw8cb5",defaultMessage:"Sponsor color"})},{name:"image",type:"visual",label:(0,A.zR)({id:"k+coTi",defaultMessage:"Image"})},{name:"background",type:"background",label:(0,A.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,A.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,A.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]},ps={container:"micromag-screen-urbania-article-urbania-base-article-card-container",background:"micromag-screen-urbania-article-urbania-base-article-card-background",content:"micromag-screen-urbania-article-urbania-base-article-card-content",layout:"micromag-screen-urbania-article-urbania-base-article-card-layout",text:"micromag-screen-urbania-article-urbania-base-article-card-text",cardContainer:"micromag-screen-urbania-article-urbania-base-article-card-cardContainer",isPlaceholder:"micromag-screen-urbania-article-urbania-base-article-card-isPlaceholder",card:"micromag-screen-urbania-article-urbania-base-article-card-card",callToAction:"micromag-screen-urbania-article-urbania-base-article-card-callToAction",arrow:"micromag-screen-urbania-article-urbania-base-article-card-arrow",ctaText:"micromag-screen-urbania-article-urbania-base-article-card-ctaText",cardInner:"micromag-screen-urbania-article-urbania-base-article-card-cardInner",pulse:"micromag-screen-urbania-article-urbania-base-article-card-pulse",dragHandle:"micromag-screen-urbania-article-urbania-base-article-card-dragHandle",articlePreview:"micromag-screen-urbania-article-urbania-base-article-card-articlePreview",articlePreviewInner:"micromag-screen-urbania-article-urbania-base-article-card-articlePreviewInner",articleTitle:"micromag-screen-urbania-article-urbania-base-article-card-articleTitle",placeholder:"micromag-screen-urbania-article-urbania-base-article-card-placeholder",empty:"micromag-screen-urbania-article-urbania-base-article-card-empty",header:"micromag-screen-urbania-article-urbania-base-article-card-header"};function fs(e){const t=(0,i.c)(148),{hasArticle:l,url:a,title:o,author:s,text:r,image:c,header:d,background:m,callToAction:g,current:h,preload:y,spacing:p,mediaRef:f,className:b}=e,v=void 0!==l&&l,x=void 0===a?null:a,S=void 0===o?null:o,w=void 0===s?null:s,C=void 0===r?null:r,j=void 0===c?null:c,k=void 0===d?null:d,M=void 0===m?null:m,N=void 0===g?null:g,$=void 0===h||h,F=void 0===y||y,T=void 0===p?20:p,R=void 0===f?null:f,z=void 0===b?null:b,L=(0,A.tz)();let P;t[0]!==M||t[1]!==j?(P=null!==M&&(void 0!==M.color&&null!==M.color||void 0!==M.image&&null!==M.image||void 0!==M.video&&null!==M.video)?M:{image:j},t[0]=M,t[1]=j,t[2]=P):P=t[2];const B=P;let E;t[3]!==B?(E=B||{},t[3]=B,t[4]=E):E=t[4];const{video:V}=E,D=null!==(void 0===V?null:V),{width:_,height:O,resolution:H}=rt(),{isView:Z,isPreview:W,isPlaceholder:q,isEdit:G,isStatic:Y,isCapture:U}=at(),{open:Q,opened:X,close:J}=bt(),K=void 0!==X&&X,ee=void 0===J?null:J,{topHeight:te,bottomHeight:le}=ht(),{enableInteraction:ne,disableInteraction:ae}=ft(),{playing:ie,muted:oe,setControls:se,setControlsTheme:re,setControlsSuggestPlay:de,setPlaying:ue}=Xe();let me;t[5]!==w?(me=w||{},t[5]=w,t[6]=me):me=t[6];const{name:ge}=me,ye=void 0===ge?null:ge;let fe;t[7]!==x?(fe=null!==x&&u(x)&&x.length>0,t[7]=x,t[8]=fe):fe=t[8];const be=fe;let ve;t[9]!==k?(ve=ce(k),t[9]=k,t[10]=ve):ve=t[10];const xe=ve;let Se;t[11]!==C?(Se=he(C),t[11]=C,t[12]=Se):Se=t[12];const we=Se;let Ce;t[13]!==S?(Ce=he(S),t[13]=S,t[14]=Ce):Ce=t[14];const je=Ce;let ke;t[15]!==ye?(ke=he(ye),t[15]=ye,t[16]=ke):ke=t[16];const Me=ke;let Ne;t[17]!==N?(Ne=he(N),t[17]=N,t[18]=Ne):Ne=t[18];const $e=Ne;let Fe;if(t[19]!==be||t[20]!==x){const e=be?x.replace(/^https?:\/\/([^.]+\.)?urbania\.(fr|ca)\//,"https://urbania.$2/"):x,l=Ua.A.parse(null!==e&&-1!==e.indexOf("?")?e.split("?")[1]:"");Fe=null!==e?`${e.split("?")[0]}?${Ua.A.stringify({reader:!0,_ref:"micromag",...l})}`:x,t[19]=be,t[20]=x,t[21]=Fe}else Fe=t[21];const Te=Fe,Re=$||F,{ref:ze,isCurrent:Le}=Je($&&!K,!0),Ie=$&&(Z||G)&&(void 0!==Le&&Le||!Z),Ae=!q&&!W&&!Y,Pe=Ae&&D&&Ie,Be=Ae&&$;let Ee,Ve,De;t[22]!==$||t[23]!==D||t[24]!==se||t[25]!==re||t[26]!==K?(Ee=()=>$?(re({seekBarOnly:!0}),se(!(!D||K)),()=>{D&&!K&&se(!1)}):vs,Ve=[$,se,D,K,se,re],t[22]=$,t[23]=D,t[24]=se,t[25]=re,t[26]=K,t[27]=Ee,t[28]=Ve):(Ee=t[27],Ve=t[28]),(0,n.useEffect)(Ee,Ve),t[29]!==ae||t[30]!==ne||t[31]!==Te||t[32]!==Q||t[33]!==K?(De=()=>{K?ne():(Q(Te),ae())},t[29]=ae,t[30]=ne,t[31]=Te,t[32]=Q,t[33]=K,t[34]=De):De=t[34];const _e=De;let Oe,He;t[35]!==_e||t[36]!==K?(Oe={onDrag:e=>{const{movement:t}=e,[,l]=t;(!K&&l<0||K&&l>0)&&_e()},onWheel:e=>{const{movement:t}=e,[,l]=t;(!K&&l>0||K&&l<0)&&_e()}},t[35]=_e,t[36]=K,t[37]=Oe):Oe=t[37],t[38]===Symbol.for("react.memo_cache_sentinel")?(He={drag:{axis:"y",filterTaps:!0,preventDefault:!0},wheel:{axis:"y"}},t[38]=He):He=t[38];const Ze=(0,$t.useGesture)(Oe,He),We=!K;let qe;t[39]!==We?(qe={disabled:We},t[39]=We,t[40]=qe):qe=t[40];const{ref:Ge,entry:Ye}=(0,Rt.wY)(qe),{contentRect:Ue}=Ye,Qe=void 0===Ue?null:Ue;let Ke;t[41]!==Qe?(Ke=Qe||{},t[41]=Qe,t[42]=Ke):Ke=t[42];const{height:et}=Ke,tt=void 0===et?0:et;let lt=100;$&&(lt=100-Math.max(tt/O*100,20));const nt=W?lt:100;let it,ot;t[43]!==nt?(it={y:nt},t[43]=nt,t[44]=it):it=t[44],t[45]!==lt?(ot={y:lt},t[45]=lt,t[46]=ot):ot=t[46];const st=Pe?1500:0,ct=100===lt?1e3:400;let dt,ut;t[47]!==ct?(dt={easing:Tl.le.easeInOutSine,duration:ct},t[47]=ct,t[48]=dt):dt=t[48],t[49]!==it||t[50]!==ot||t[51]!==st||t[52]!==dt?(ut={from:it,to:ot,delay:st,config:dt},t[49]=it,t[50]=ot,t[51]=st,t[52]=dt,t[53]=ut):ut=t[53];const mt=(0,Tl.zh)(ut);let gt,yt,pt;t[54]!==ee||t[55]!==$||t[56]!==K?(gt=()=>{},t[54]=ee,t[55]=$,t[56]=K,t[57]=gt):gt=t[57],t[58]!==ee||t[59]!==$||t[60]!==ne||t[61]!==K?(yt=[$,K,ee,ne],t[58]=ee,t[59]=$,t[60]=ne,t[61]=K,t[62]=yt):yt=t[62],(0,n.useEffect)(gt,yt),t[63]!==$||t[64]!==D||t[65]!==Z||t[66]!==ie||t[67]!==de||t[68]!==ue?(pt=()=>{Z&&ie&&$&&D&&(ue(!1),de(!0))},t[63]=$,t[64]=D,t[65]=Z,t[66]=ie,t[67]=de,t[68]=ue,t[69]=pt):pt=t[69];const vt=pt;let xt;t[70]!==z||t[71]!==$||t[72]!==q?(xt=Ft([ps.container,z,{[ps.isCurrent]:$,[ps.isPlaceholder]:q}]),t[70]=z,t[71]=$,t[72]=q,t[73]=xt):xt=t[73];const St=Y||U,wt=Ie&&!K;let Ct,jt,kt;t[74]!==R||t[75]!==ze?(Ct=pe(ze,R),t[74]=R,t[75]=ze,t[76]=Ct):Ct=t[76],t[77]!==B||t[78]!==O||t[79]!==W||t[80]!==Re||t[81]!==oe||t[82]!==vt||t[83]!==H||t[84]!==wt||t[85]!==Ct||t[86]!==_?(jt=(0,I.jsx)(la,{className:ps.background,background:B,width:_,height:O,resolution:H,playing:wt,muted:oe,mediaRef:Ct,onPlayError:vt,shouldLoad:Re,withoutVideo:W}),t[77]=B,t[78]=O,t[79]=W,t[80]=Re,t[81]=oe,t[82]=vt,t[83]=H,t[84]=wt,t[85]=Ct,t[86]=_,t[87]=jt):jt=t[87],t[88]!==xe||t[89]!==k||t[90]!==q||t[91]!==W||t[92]!==T||t[93]!==te?(kt=!q&&xe?(0,I.jsx)("div",{className:ps.header,style:{paddingTop:T/2,paddingLeft:T,paddingRight:T,transform:W?null:`translate(0, ${te}px)`},children:(0,I.jsx)(xa,{...k})},"header"):null,t[88]=xe,t[89]=k,t[90]=q,t[91]=W,t[92]=T,t[93]=te,t[94]=kt):kt=t[94];const Mt=.65*O;let Nt,Tt,zt,Lt,It,At,Pt,Bt;t[95]===Symbol.for("react.memo_cache_sentinel")?(Nt=(0,I.jsx)(ln,{className:ps.emptyText,children:(0,I.jsx)(A.sA,{id:"z4CiV1",defaultMessage:"Text"})}),Tt=(0,I.jsx)(vn,{className:ps.placeholderText}),t[95]=Nt,t[96]=Tt):(Nt=t[95],Tt=t[96]),t[97]!==we||t[98]!==C?(zt=we?(0,I.jsx)(Wn,{className:ps.text,...C}):null,t[97]=we,t[98]=C,t[99]=zt):zt=t[99],t[100]!==zt?(Lt=(0,I.jsx)(zn,{empty:Nt,placeholder:Tt,children:zt},"text"),t[100]=zt,t[101]=Lt):Lt=t[101],t[102]!==Mt||t[103]!==Lt?(It=(0,I.jsx)($a,{className:ps.layout,height:Mt,children:Lt}),t[102]=Mt,t[103]=Lt,t[104]=It):It=t[104],t[105]!==q?(At=Ft([ps.cardContainer,{[ps.isPlaceholder]:q}]),t[105]=q,t[106]=At):At=t[106],t[107]===Symbol.for("react.memo_cache_sentinel")?(Pt={className:ps.placeholder},Bt=(0,I.jsx)(A.sA,{id:"yMpGIc",defaultMessage:"Article"}),t[107]=Pt,t[108]=Bt):(Pt=t[107],Bt=t[108]);const Et=!be||!v;let Vt,Dt,_t,Ot,Ht;return t[109]!==Ge||t[110]!==w||t[111]!==Ze||t[112]!==N||t[113]!==$||t[114]!==v||t[115]!==Me||t[116]!==$e||t[117]!==je||t[118]!==O||t[119]!==L||t[120]!==q||t[121]!==W||t[122]!==Re||t[123]!==mt||t[124]!==S||t[125]!==_e||t[126]!==le||t[127]!==K||t[128]!==_||t[129]!==Be?(Vt=!q&&v?(0,I.jsxs)(Tl.CS.div,{className:ps.card,style:{height:O,width:_,transform:W?"translateY(80%)":mt.y.to(bs)},children:[(0,I.jsx)("button",{type:"button",onClick:_e,className:ps.dragHandle,tabIndex:$?0:-1,"aria-label":L.formatMessage({id:"IoMJgw",defaultMessage:"Toggle article"}),"aria-pressed":K,...$?Ze():null}),(0,I.jsxs)("div",{className:Ft([ps.cardInner,{[ps.pulse]:Be}]),children:[$e?(0,I.jsxs)("div",{className:ps.callToAction,children:[(0,I.jsx)(ss,{strokeWidth:1,className:ps.arrow}),(0,I.jsx)(Wn,{className:ps.ctaText,...N})]}):null,(0,I.jsx)("div",{className:ps.articlePreview,ref:Ge,children:(0,I.jsxs)("div",{className:ps.articlePreviewInner,style:{paddingBottom:$&&!W?Math.max(le,20):null},children:[je?(0,I.jsx)(wa,{className:Ft([ps.articleTitle]),...S}):null,Me?(0,I.jsx)(os,{isSmall:!0,withoutBackground:!0,author:w,shouldLoad:Re,className:ps.author}):null]})})]})]}):null,t[109]=Ge,t[110]=w,t[111]=Ze,t[112]=N,t[113]=$,t[114]=v,t[115]=Me,t[116]=$e,t[117]=je,t[118]=O,t[119]=L,t[120]=q,t[121]=W,t[122]=Re,t[123]=mt,t[124]=S,t[125]=_e,t[126]=le,t[127]=K,t[128]=_,t[129]=Be,t[130]=Vt):Vt=t[130],t[131]!==Et||t[132]!==Vt?(Dt=(0,I.jsx)(zn,{placeholderProps:Pt,emptyLabel:Bt,emptyClassName:ps.empty,isEmpty:Et,children:Vt}),t[131]=Et,t[132]=Vt,t[133]=Dt):Dt=t[133],t[134]!==At||t[135]!==Dt?(_t=(0,I.jsx)(na,{className:At,children:Dt}),t[134]=At,t[135]=Dt,t[136]=_t):_t=t[136],t[137]!==O||t[138]!==kt||t[139]!==It||t[140]!==_t||t[141]!==_?(Ot=(0,I.jsxs)(na,{className:ps.content,width:_,height:O,children:[kt,It,_t]}),t[137]=O,t[138]=kt,t[139]=It,t[140]=_t,t[141]=_,t[142]=Ot):Ot=t[142],t[143]!==xt||t[144]!==St||t[145]!==jt||t[146]!==Ot?(Ht=(0,I.jsxs)("div",{className:xt,"data-screen-ready":St,children:[jt,Ot]}),t[143]=xt,t[144]=St,t[145]=jt,t[146]=Ot,t[147]=Ht):Ht=t[147],Ht}function bs(e){return`translateY(${e}%`}function vs(){}var xs={id:"urbania-article-card",type:"screen",namespaces:["urbania"],group:{label:(0,A.zR)({id:"oPjl8f",defaultMessage:"Urbania"}),order:10},title:(0,A.zR)({id:"nJgzwC",defaultMessage:"Urbania article"}),component:function(e){const t=(0,i.c)(7);let l;t[0]!==e?(l=e||{},t[0]=e,t[1]=l):l=t[1];const{cardCallToAction:n}=l;let a;t[2]!==n?(a=void 0===n?{}:n,t[2]=n,t[3]=a):a=t[3];const o=a;let s;return t[4]!==o||t[5]!==e?(s=(0,I.jsx)(ms,{component:fs,callToAction:o,...e}),t[4]=o,t[5]=e,t[6]=s):s=t[6],s},fields:[{name:"url",type:"url",label:(0,A.zR)({id:"2pO2Cj",defaultMessage:"Url"})},{name:"title",type:"heading-element",label:(0,A.zR)({id:"N25iDO",defaultMessage:"Title"})},{name:"author",type:"author-element",label:(0,A.zR)({id:"73hxYw",defaultMessage:"Author"})},{name:"text",type:"text-element",fieldsProps:{textStyle:{excludedFields:["highlight","link"]}},label:(0,A.zR)({id:"4E2gbX",defaultMessage:"Text"})},{name:"background",type:"background",label:(0,A.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"cardCallToAction",type:"text-element",fieldsProps:{textStyle:{excludedFields:["highlight","link"]}},label:(0,A.zR)({id:"eBFxNl",defaultMessage:"Call to Action"})},{name:"header",type:"header",label:(0,A.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}}]},Ss=l.p+"static/media/38b67a045c917eba.e6e69508c2874940ccf5.png",ws=l.p+"static/media/f1d91f035ccb8c4f.cf7fe3cdf6b99f3937c0.png",Cs=l.p+"static/media/c2730eca851f3186.6b706bc308ab406bdc0a.png",js=l.p+"static/media/a6d606997910361a.798f151041dae7550524.png",ks=l.p+"static/media/12148919dcf14f67.86a591223295244b0d7f.png",Ms=l.p+"static/media/5ccc4bde48c478ee.906bd043a9344f192acf.png",Ns=l.p+"static/media/d94c6aef4634d47f.0aa17efacea9438ca7af.png",$s=l.p+"static/media/bc3a4d9747d9235c.cb79868c1299ee1d9ce6.png",Fs=l.p+"static/media/4aec8c7b2b1f6739.f679137fdc2040d22d60.png",Ts=l.p+"static/media/01b9ca612cf4a6a6.77c1dfc199d2da49d465.png",Rs=l.p+"static/media/3a3a4d27b9a019b2.a66beb0b99213523e04d.png",zs=l.p+"static/media/f3452bab9d2d80d5.eae38988e000ba051294.png",Ls=l.p+"static/media/f82faebe2d495394.042a94dd81202e81b92e.png",Is=l.p+"static/media/ddafd58fab0d5925.d89063fa6da5b944d7ef.png",As=l.p+"static/media/7d6b81c3035f5968.846ef58b3f258346f088.png",Ps=l.p+"static/media/422146a5faadb139.13a3f00ad0c07d3f9741.png",Bs=l.p+"static/media/ead69accd3f76ece.a95331e7f1e86a05ff08.png",Es=l.p+"static/media/36c18c31d1e80a70.653a2699b3b21d9b1ed9.png",Vs=l.p+"static/media/ef219f6696d5ce04.a08d7046ef2af71205ba.png",Ds=l.p+"static/media/f21db7431692d889.3f599fa556b406bbed82.png",_s=l.p+"static/media/0964d576c4c1da6d.6476c469b305c7e636c9.png",Os=l.p+"static/media/1ffa37309c1fbcfa.12c9287ed3fe592ee844.png",Hs=l.p+"static/media/822018b354054d62.c8e23b27e8f926515005.png",Zs=l.p+"static/media/b3e1e35461e78e82.a86f7561afbc039e2933.png",Ws=[{id:"aries",image:ws,thumbnail:Is,label:(0,A.zR)({id:"/PJA/1",defaultMessage:"Aries"}),date:(0,A.zR)({id:"ZeosMy",defaultMessage:"Mar 21 - Apr 19"})},{id:"taurus",image:Rs,thumbnail:Hs,label:(0,A.zR)({id:"XKcyqx",defaultMessage:"Taurus"}),date:(0,A.zR)({id:"raUY02",defaultMessage:"Apr 20 - May 20"})},{id:"gemini",image:ks,thumbnail:Bs,label:(0,A.zR)({id:"4g35M0",defaultMessage:"Gemini"}),date:(0,A.zR)({id:"142Fjj",defaultMessage:"May 21 - June 20"})},{id:"cancer",image:Cs,thumbnail:As,label:(0,A.zR)({id:"0acGK7",defaultMessage:"Cancer"}),date:(0,A.zR)({id:"bMdONM",defaultMessage:"June 21 - July 22"})},{id:"leo",image:Ms,thumbnail:Es,label:(0,A.zR)({id:"EEUc6n",defaultMessage:"Leo"}),date:(0,A.zR)({id:"MBgLeH",defaultMessage:"July 23 - Aug 22"})},{id:"virgo",image:zs,thumbnail:Zs,label:(0,A.zR)({id:"6bd963",defaultMessage:"Virgo"}),date:(0,A.zR)({id:"xL0GD2",defaultMessage:"Aug 23 - Sept 22"})},{id:"libra",image:Ns,thumbnail:Vs,label:(0,A.zR)({id:"M/FGRs",defaultMessage:"Libra"}),date:(0,A.zR)({id:"F0QDfY",defaultMessage:"Sept 23 - Oct 22"})},{id:"scorpio",image:Ts,thumbnail:Os,label:(0,A.zR)({id:"YyPYHk",defaultMessage:"Scorpio"}),date:(0,A.zR)({id:"7ZzlUE",defaultMessage:"Oct 23 - Nov 22"})},{id:"sagittarius",image:Fs,thumbnail:_s,label:(0,A.zR)({id:"7mMPO4",defaultMessage:"Sagittarius"}),date:(0,A.zR)({id:"yCj5uv",defaultMessage:"Nov 23 - Dec 21"})},{id:"capricorn",image:js,thumbnail:Ps,label:(0,A.zR)({id:"NumcrW",defaultMessage:"Capricorn"}),date:(0,A.zR)({id:"rAkTvt",defaultMessage:"Dec 22 - Jan 20"})},{id:"aquarius",image:Ss,thumbnail:Ls,label:(0,A.zR)({id:"fBii8l",defaultMessage:"Aquarius"}),date:(0,A.zR)({id:"Op1ZIp",defaultMessage:"Jan 21 - Feb 18"})},{id:"pisces",image:$s,thumbnail:Ds,label:(0,A.zR)({id:"dxAumJ",defaultMessage:"Pisces"}),date:(0,A.zR)({id:"Evl2dG",defaultMessage:"Feb 19 - Mar 20"})}],qs={container:"micromag-screen-urbania-horoscope-sign-card-container",placeholder:"micromag-screen-urbania-horoscope-sign-card-placeholder",thumbnail:"micromag-screen-urbania-horoscope-sign-card-thumbnail",name:"micromag-screen-urbania-horoscope-sign-card-name",date:"micromag-screen-urbania-horoscope-sign-card-date",emptyText:"micromag-screen-urbania-horoscope-sign-card-emptyText"};function Gs(e){const t=(0,i.c)(29),{className:l,sign:n,focusable:a,onClick:o}=e,s=void 0===l?null:l,r=void 0===n?null:n,c=void 0===a||a,d=void 0===o?null:o;let u;t[0]!==r?(u=r||{},t[0]=r,t[1]=u):u=t[1];const{id:m,thumbnail:g,label:h,date:y}=u,p=void 0===m?null:m,f=void 0===g?null:g,b=void 0===h?null:h,v=void 0===y?null:y;let x,S;t[2]===Symbol.for("react.memo_cache_sentinel")?(x=(0,I.jsx)(xn,{className:qs.placeholder}),S=(0,I.jsx)(A.sA,{id:"ceaRdq",defaultMessage:"Horoscope sign"}),t[2]=x,t[3]=S):(x=t[2],S=t[3]);const w=!p;let C;t[4]!==s?(C=Ft([qs.container,s]),t[4]=s,t[5]=C):C=t[5];const j=c?"0":-1;let k,M,N,$,F,T,R,z;return t[6]!==p||t[7]!==f?(k=null!==f?(0,I.jsx)("img",{className:qs.thumbnail,src:f,alt:p,loading:"lazy"}):null,t[6]=p,t[7]=f,t[8]=k):k=t[8],t[9]!==b?(M=null!==b?(0,I.jsx)(A.sA,{...b}):null,t[9]=b,t[10]=M):M=t[10],t[11]!==M?(N=(0,I.jsx)("h2",{className:qs.name,children:M}),t[11]=M,t[12]=N):N=t[12],t[13]!==v?($=null!==v?(0,I.jsx)(A.sA,{...v}):null,t[13]=v,t[14]=$):$=t[14],t[15]!==$?(F=(0,I.jsx)("p",{className:qs.date,children:$}),t[15]=$,t[16]=F):F=t[16],t[17]!==N||t[18]!==F?(T=(0,I.jsxs)("div",{className:qs.gridText,children:[N,F]}),t[17]=N,t[18]=F,t[19]=T):T=t[19],t[20]!==d||t[21]!==C||t[22]!==j||t[23]!==k||t[24]!==T?(R=(0,I.jsxs)("button",{className:C,type:"button",tabIndex:j,onClick:d,children:[k,T]}),t[20]=d,t[21]=C,t[22]=j,t[23]=k,t[24]=T,t[25]=R):R=t[25],t[26]!==w||t[27]!==R?(z=(0,I.jsx)(zn,{placeholder:x,emptyLabel:S,emptyClassName:qs.emptyText,isEmpty:w,children:R}),t[26]=w,t[27]=R,t[28]=z):z=t[28],z}var Ys={container:"micromag-screen-urbania-horoscope-sign-modal-container",modalButton:"micromag-screen-urbania-horoscope-sign-modal-modalButton",modal:"micromag-screen-urbania-horoscope-sign-modal-modal",name:"micromag-screen-urbania-horoscope-sign-modal-name",wordContainer:"micromag-screen-urbania-horoscope-sign-modal-wordContainer",wordOfTheWeek:"micromag-screen-urbania-horoscope-sign-modal-wordOfTheWeek",word:"micromag-screen-urbania-horoscope-sign-modal-word",description:"micromag-screen-urbania-horoscope-sign-modal-description",illustration:"micromag-screen-urbania-horoscope-sign-modal-illustration"};function Us(e){const t=(0,i.c)(40),{width:l,height:n,sign:a,subtitle:o,current:s,transitionDisabled:r,focusable:c,onClick:d,className:u}=e,m=void 0===l?null:l,g=void 0===n?null:n,h=void 0===a?null:a,y=void 0===o?null:o,p=void 0===s||s,f=void 0!==r&&r,b=void 0===c||c,v=void 0===d?null:d,x=void 0===u?null:u;let S;t[0]!==h?(S=h||{},t[0]=h,t[1]=S):S=t[1];const{label:w,image:C,date:j,word:k,description:M}=S,N=void 0===w?null:w,$=void 0===C?null:C,F=void 0===k?null:k,T=void 0===M?null:M,{isEdit:R}=at();let z;t[2]!==F?(z=he(F),t[2]=F,t[3]=z):z=t[3];const L=z;let P;t[4]!==y?(P=he(y),t[4]=y,t[5]=P):P=t[5];const B=P,E=!R&&f||!p;let V;t[6]!==x||t[7]!==f?(V=Ft([Ys.container,x,{[Ys.withoutTransitions]:f}]),t[6]=x,t[7]=f,t[8]=V):V=t[8];const D=b?"0":"-1";let _,O,H,Z,W,q,G,Y,U;return t[9]!==v?(_=e=>{null!==v&&v(e)},t[9]=v,t[10]=_):_=t[10],t[11]!==N?(O=null!==N?(0,I.jsx)(zn,{children:(0,I.jsx)("h2",{className:Ys.name,children:(0,I.jsx)(A.sA,{...N})})}):null,t[11]=N,t[12]=O):O=t[12],t[13]!==B||t[14]!==L||t[15]!==y||t[16]!==F?(H=L?(0,I.jsxs)("div",{className:Ys.wordContainer,children:[B?(0,I.jsx)(wa,{className:Ys.wordOfTheWeek,...y}):(0,I.jsx)("h3",{className:Ys.wordOfTheWeek,children:(0,I.jsx)(A.sA,{id:"+vzDdb",defaultMessage:"Word of the Week"})}),(0,I.jsx)(Wn,{className:Ys.word,...F})]}):null,t[13]=B,t[14]=L,t[15]=y,t[16]=F,t[17]=H):H=t[17],t[18]!==T?(Z=T?(0,I.jsx)(Wn,{className:Ys.description,...T}):null,t[18]=T,t[19]=Z):Z=t[19],t[20]!==$||t[21]!==N?(W=$?(0,I.jsx)("img",{className:Ys.illustration,src:$,alt:N}):null,t[20]=$,t[21]=N,t[22]=W):W=t[22],t[23]!==O||t[24]!==H||t[25]!==Z||t[26]!==W?(q=(0,I.jsxs)("div",{className:Ys.modal,children:[O,H,Z,W]}),t[23]=O,t[24]=H,t[25]=Z,t[26]=W,t[27]=q):q=t[27],t[28]!==E||t[29]!==q?(G=(0,I.jsx)(Ta,{disabled:E,verticalAlign:"middle",children:q}),t[28]=E,t[29]=q,t[30]=G):G=t[30],t[31]!==D||t[32]!==_||t[33]!==G?(Y=(0,I.jsx)("button",{type:"button",className:Ys.modalButton,tabIndex:D,onClick:_,children:G}),t[31]=D,t[32]=_,t[33]=G,t[34]=Y):Y=t[34],t[35]!==g||t[36]!==V||t[37]!==Y||t[38]!==m?(U=(0,I.jsx)(na,{width:m,height:g,className:V,children:Y}),t[35]=g,t[36]=V,t[37]=Y,t[38]=m,t[39]=U):U=t[39],U}var Qs={container:"micromag-screen-urbania-horoscope-container",background:"micromag-screen-urbania-horoscope-background",content:"micromag-screen-urbania-horoscope-content",isPlaceholder:"micromag-screen-urbania-horoscope-isPlaceholder",layout:"micromag-screen-urbania-horoscope-layout",placeholderGrid:"micromag-screen-urbania-horoscope-placeholderGrid",placeholderItem:"micromag-screen-urbania-horoscope-placeholderItem",emptyText:"micromag-screen-urbania-horoscope-emptyText",headerContainer:"micromag-screen-urbania-horoscope-headerContainer",title:"micromag-screen-urbania-horoscope-title",titleImage:"micromag-screen-urbania-horoscope-titleImage",description:"micromag-screen-urbania-horoscope-description",button:"micromag-screen-urbania-horoscope-button",buttonLabel:"micromag-screen-urbania-horoscope-buttonLabel",header:"micromag-screen-urbania-horoscope-header",buttons:"micromag-screen-urbania-horoscope-buttons",close:"micromag-screen-urbania-horoscope-close",signsGridContainer:"micromag-screen-urbania-horoscope-signsGridContainer",author:"micromag-screen-urbania-horoscope-author",collaborator:"micromag-screen-urbania-horoscope-collaborator",authorBackground:"micromag-screen-urbania-horoscope-authorBackground",modal:"micromag-screen-urbania-horoscope-modal",backdrop:"micromag-screen-urbania-horoscope-backdrop"};const Xs={onTouchMove:e=>e.stopPropagation(),onTouchStart:e=>e.stopPropagation(),onTouchEnd:e=>e.stopPropagation(),onPointerMove:e=>e.stopPropagation(),onPointerUp:e=>e.stopPropagation(),onPointerDown:e=>e.stopPropagation()},Js={...Xs,onClick:e=>e.stopPropagation(),style:{position:"fixed",zIndex:"1000",top:0,right:0,bottom:0,left:0,cursor:"default"}};var Ks=[{id:"urbania-horoscope",type:"screen",namespaces:["urbania","bayard"],group:{label:(0,A.zR)({id:"oPjl8f",defaultMessage:"Urbania"}),order:10},title:(0,A.zR)({id:"F59wsl",defaultMessage:"Urbania horoscope"}),component:function({defaultSigns:e=j,signs:t=null,title:l=null,description:a=null,author:i=null,button:o=null,signSubtitle:s=null,spacing:r=20,background:c=null,popupBackground:d=null,current:u=!0,preload:m=!0,type:g="horoscope",mediaRef:h=null,className:y=null}){const p=(0,A.tz)(),f=rl(g),{enableInteraction:b,disableInteraction:v}=ft(),{muted:x}=Xe(),{ref:S,isCurrent:w=!1}=Je(u,!0),C=null!==i&&he(i.name),j=(0,n.useMemo)(()=>e.map((e,l)=>({...null!==t?t.find(({id:t})=>t===e.id)||t[l]:null,...e})),[t]),{width:k,height:M,resolution:N}=rt(),{topHeight:$,bottomHeight:F}=ht(),{isView:T,isPreview:R,isPlaceholder:z,isEdit:L}=at(),P=he(l),B=he(a),E=he(o),V=u&&(T||L)&&(w||!T),D=!z&&(u||m),[_,O]=(0,n.useState)(!1),[H,Z]=(0,n.useState)(null),[W,q]=(0,n.useState)(!1),{video:G=null}=d||{},{url:Y=null}=G||{},U=(0,n.useCallback)(()=>{O(!0),v(),f("open")},[v,f]),Q=(0,n.useCallback)(()=>{W?q(!1):(O(!1),q(!1),b(),f("close"))},[W,O,q,b,f]),X=(0,n.useCallback)((e,t)=>{e.stopPropagation();const l=j.findIndex(e=>e.id===t);Z(l),q(!0),f("select_sign",j[l])},[j,Z,f]),J=(0,n.useCallback)(()=>{q(!1),f("close_sign")},[q,f]),K=(0,n.useCallback)(({active:e,movement:[,t],velocity:[,l]})=>{const n="undefined"!=typeof window?window.innerHeight:0,a=n>0?Math.max(0,t)/(.8*n):0,i=l>.3||Math.abs(a)>.3;return e?1-a:(i&&Q(),i?0:1)},[Q]),{bind:ee,progress:te}=Et({disabled:!T,progress:_?1:0,computeProgress:K,springParams:{config:{tension:300,friction:30}},dragOptions:{pointer:{keys:!1}}}),le=(0,n.useCallback)(({active:e,movement:[,t],velocity:[,l]})=>{const n="undefined"!=typeof window?window.innerHeight:0,a=n>0?Math.max(0,t)/n:0,i=.5*a,o=l>.3||Math.abs(a)>.3;return e?1-i:(o&&J(),o?0:1)},[W,J]),{bind:ne,progress:ae}=Et({disabled:!T,progress:W?1:0,computeProgress:le,springParams:{config:{tension:300,friction:30}},dragOptions:{pointer:{keys:!1}}}),ie=it();return(0,n.useEffect)(()=>{if(O(!1),null!==ie&&"intro"!==ie||(O(!1),q(!1)),"grid"===ie&&(O(!0),Z(null),q(!1)),null!==ie&&ie.includes("signs")){const e=ie.split(".").pop();O(!0),q(!0),Z(e)}},[ie,O,q,Z]),(0,n.useEffect)(()=>{const e=e=>{if("Escape"===e.key){if(W)return void J();_&&Q()}};return document.addEventListener("keyup",e),()=>{document.removeEventListener("keyup",e)}},[W,J,_,Q]),(0,I.jsxs)("div",{className:Ft([Qs.container,y,{[Qs.isPlaceholder]:z}]),"data-screen-ready":!0,..._?Xs:null,children:[T?null:(0,I.jsx)("div",{...Js}),(0,I.jsx)(na,{width:k,height:M,className:Qs.content,children:(0,I.jsxs)($a,{className:Qs.layout,style:z?null:{paddingLeft:r,paddingRight:r,paddingTop:(R?0:$)+r,paddingBottom:(u&&!R?F:0)+r},height:.8*M,children:[z?(0,I.jsx)("div",{className:Qs.placeholderGrid,children:[...Array(12).keys()].map(()=>(0,I.jsx)("div",{className:Qs.placeholderItem}))}):null,(0,I.jsxs)(Tl.CS.div,{className:Qs.headerContainer,style:(de=te,{transform:de.to(e=>`translateY(${-100*e*(1-e)}%)`),opacity:de.to(e=>e>.25?1-e:1)}),children:[(0,I.jsx)(zn,{emptyClassName:Qs.emptyText,children:P?(0,I.jsx)(wa,{className:Qs.title,...l}):(0,I.jsx)("img",{src:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20906.64%20139.48%22%3E%20%20%20%20%3Cpath%20d%3D%22M35.88%2C4.42h35.5l34.66%2C119.78h-28.43l-5.89-23.72H35.55l-6.22%2C23.72H1.4L35.88%2C4.42Zm31.8%2C75.54l-13.63-52.15h-.34l-14.13%2C52.15h28.09Z%22%20fill%3D%22%23000f66%22%20stroke%3D%22aqua%22%20stroke-miterlimit%3D%2210%22%20stroke-width%3D%222.1%22%2F%3E%20%20%20%20%3Cpath%20d%3D%22M123.37%2C122.51c-6.84-3.36-12.17-8.13-15.98-14.3-3.81-6.17-5.78-13.34-5.89-21.53l26.24-4.21c0%2C7.07%2C1.96%2C12.73%2C5.89%2C16.99%2C3.92%2C4.26%2C8.92%2C6.39%2C14.97%2C6.39%2C4.82%2C0%2C8.72-1.29%2C11.69-3.87%2C2.97-2.58%2C4.46-5.89%2C4.46-9.92%2C0-3.37-1.15-6.2-3.45-8.5-2.3-2.3-6.03-4.34-11.19-6.14l-14.64-4.71c-10.66-3.25-18.37-7.68-23.13-13.29-4.77-5.61-7.15-13.01-7.15-22.21%2C0-10.88%2C3.53-19.63%2C10.6-26.24%2C7.07-6.62%2C16.99-9.93%2C29.78-9.93%2C11.89%2C0%2C21.48%2C3.23%2C28.77%2C9.67%2C7.29%2C6.45%2C11.05%2C15.17%2C11.27%2C26.16l-25.57%2C4.88c.11-5.83-1.24-10.51-4.04-14.05-2.8-3.53-6.45-5.3-10.94-5.3-3.93%2C0-7.12%2C1.21-9.59%2C3.62-2.47%2C2.41-3.7%2C5.47-3.7%2C9.17s1.15%2C6.54%2C3.45%2C8.83c2.3%2C2.3%2C6.08%2C4.23%2C11.36%2C5.8l13.96%2C4.71c10.88%2C3.25%2C18.76%2C7.66%2C23.64%2C13.21s7.32%2C12.93%2C7.32%2C22.12c0%2C7.29-1.74%2C13.79-5.22%2C19.51-3.48%2C5.72-8.52%2C10.18-15.14%2C13.38-6.62%2C3.2-14.58%2C4.79-23.89%2C4.79s-17.05-1.68-23.89-5.05Z%22%20fill%3D%22%23000f66%22%20stroke%3D%22aqua%22%20stroke-miterlimit%3D%2210%22%20stroke-width%3D%222.1%22%2F%3E%20%20%20%20%3Cpath%20d%3D%22M213.03%2C28.64h-28.26V4.42h84.96V28.64h-28.26V124.2h-28.43V28.64Z%22%20fill%3D%22%23000f66%22%20stroke%3D%22aqua%22%20stroke-miterlimit%3D%2210%22%20stroke-width%3D%222.1%22%2F%3E%20%20%20%20%3Cpath%20d%3D%22M335.5%2C122.35c-3.59-3.25-5.95-7.63-7.07-13.12l-5.05-21.37c-.79-2.92-2.19-5.3-4.21-7.15s-4.26-2.78-6.73-2.78h-10.09v46.26h-28.26V4.42h46.1c8.86%2C0%2C16.6%2C1.54%2C23.22%2C4.63%2C6.62%2C3.09%2C11.72%2C7.46%2C15.31%2C13.12%2C3.59%2C5.66%2C5.38%2C12.31%2C5.38%2C19.94%2C0%2C7.18-2.08%2C13.6-6.22%2C19.26-4.15%2C5.67-9.76%2C9.51-16.82%2C11.52v.17c2.8%2C1.24%2C4.96%2C3%2C6.48%2C5.3%2C1.51%2C2.3%2C2.66%2C5.13%2C3.45%2C8.5l3.53%2C15.48c.67%2C3.7%2C2.19%2C5.55%2C4.54%2C5.55%2C2.13%2C0%2C4.15-1.29%2C6.06-3.87l6.73%2C13.63c-2.8%2C2.92-6.2%2C5.24-10.18%2C6.98-3.98%2C1.74-8.05%2C2.61-12.2%2C2.61-5.72%2C0-10.38-1.63-13.96-4.88Zm-16.82-64.26c5.05%2C0%2C9.14-1.46%2C12.28-4.37%2C3.14-2.92%2C4.71-6.78%2C4.71-11.61%2C0-5.16-1.54-9.17-4.63-12.03-3.09-2.86-7.21-4.29-12.37-4.29h-16.32V58.08h16.32Z%22%20fill%3D%22%23000f66%22%20stroke%3D%22aqua%22%20stroke-miterlimit%3D%2210%22%20stroke-width%3D%222.1%22%2F%3E%20%20%20%20%3Cpath%20d%3D%22M396.23%2C119.74c-8.52-5.21-15.14-12.62-19.85-22.21-4.71-9.59-7.07-20.66-7.07-33.23s2.36-23.64%2C7.07-33.23c4.71-9.59%2C11.33-16.99%2C19.85-22.21%2C8.52-5.21%2C18.45-7.82%2C29.78-7.82s21.28%2C2.61%2C29.86%2C7.82c8.58%2C5.22%2C15.22%2C12.59%2C19.94%2C22.12%2C4.71%2C9.53%2C7.07%2C20.58%2C7.07%2C33.14s-2.36%2C23.8-7.07%2C33.39c-4.71%2C9.59-11.36%2C16.99-19.94%2C22.21s-18.53%2C7.82-29.86%2C7.82-21.26-2.61-29.78-7.82Zm50.47-27c5.16-7.07%2C7.74-16.54%2C7.74-28.43s-2.58-21.37-7.74-28.43c-5.16-7.07-12.06-10.6-20.69-10.6s-15.51%2C3.53-20.61%2C10.6c-5.1%2C7.07-7.65%2C16.54-7.65%2C28.43s2.55%2C21.37%2C7.65%2C28.43c5.1%2C7.07%2C11.97%2C10.6%2C20.61%2C10.6s15.53-3.53%2C20.69-10.6Z%22%20fill%3D%22%23000f66%22%20stroke%3D%22aqua%22%20stroke-miterlimit%3D%2210%22%20stroke-width%3D%222.1%22%2F%3E%20%20%20%20%3Cpath%20d%3D%22M489.26%2C4.42h28.26V99.97h37.68v24.23h-65.95V4.42Z%22%20fill%3D%22%23000f66%22%20stroke%3D%22aqua%22%20stroke-miterlimit%3D%2210%22%20stroke-width%3D%222.1%22%2F%3E%20%20%20%20%3Cpath%20d%3D%22M580.28%2C119.74c-8.52-5.21-15.14-12.62-19.85-22.21-4.71-9.59-7.07-20.66-7.07-33.23s2.36-23.64%2C7.07-33.23c4.71-9.59%2C11.33-16.99%2C19.85-22.21%2C8.52-5.21%2C18.45-7.82%2C29.78-7.82s21.28%2C2.61%2C29.86%2C7.82c8.58%2C5.22%2C15.22%2C12.59%2C19.94%2C22.12%2C4.71%2C9.53%2C7.07%2C20.58%2C7.07%2C33.14s-2.36%2C23.8-7.07%2C33.39c-4.71%2C9.59-11.36%2C16.99-19.94%2C22.21s-18.53%2C7.82-29.86%2C7.82-21.26-2.61-29.78-7.82Zm50.47-27c5.16-7.07%2C7.74-16.54%2C7.74-28.43s-2.58-21.37-7.74-28.43c-5.16-7.07-12.06-10.6-20.69-10.6s-15.51%2C3.53-20.61%2C10.6c-5.1%2C7.07-7.65%2C16.54-7.65%2C28.43s2.55%2C21.37%2C7.65%2C28.43c5.1%2C7.07%2C11.97%2C10.6%2C20.61%2C10.6s15.53-3.53%2C20.69-10.6Z%22%20fill%3D%22%23000f66%22%20stroke%3D%22aqua%22%20stroke-miterlimit%3D%2210%22%20stroke-width%3D%222.1%22%2F%3E%20%20%20%20%3Cpath%20d%3D%22M693.75%2C119.65c-7.68-5.05-13.6-12.31-17.75-21.79-4.15-9.48-6.22-20.66-6.22-33.56s2.21-24.25%2C6.65-33.73c4.43-9.48%2C10.77-16.77%2C19.01-21.87%2C8.24-5.1%2C17.97-7.65%2C29.19-7.65s21.53%2C3.28%2C29.95%2C9.84c8.41%2C6.56%2C14.19%2C15.56%2C17.33%2C27l-26.58%2C5.72c-1.8-5.72-4.54-10.2-8.24-13.46-3.7-3.25-7.96-4.88-12.79-4.88-8.08%2C0-14.44%2C3.42-19.09%2C10.26-4.66%2C6.84-6.98%2C16.21-6.98%2C28.09s2.63%2C21.84%2C7.91%2C28.85c5.27%2C7.01%2C12.5%2C10.51%2C21.7%2C10.51%2C8.19%2C0%2C14.66-2.49%2C19.43-7.49%2C4.77-4.99%2C7.26-11.92%2C7.49-20.78h-37.18v-18.51h64.26V124.2h-20.86l-1.68-18.67h-.17c-3.93%2C6.73-9.31%2C12.03-16.15%2C15.9-6.84%2C3.87-14.19%2C5.8-22.04%2C5.8-10.43%2C0-19.49-2.52-27.17-7.57Z%22%20fill%3D%22%23000f66%22%20stroke%3D%22aqua%22%20stroke-miterlimit%3D%2210%22%20stroke-width%3D%222.1%22%2F%3E%20%20%20%20%3Cpath%20d%3D%22M789.56%2C4.42h28.26V124.2h-28.26V4.42Z%22%20fill%3D%22%23000f66%22%20stroke%3D%22aqua%22%20stroke-miterlimit%3D%2210%22%20stroke-width%3D%222.1%22%2F%3E%20%20%20%20%3Cpath%20d%3D%22M827.74%2C4.42h68.81V27.13h-41.55v25.57h34.82v20.19h-34.82v28.6h43.24v22.71h-70.49V4.42Z%22%20fill%3D%22%23000f66%22%20stroke%3D%22aqua%22%20stroke-miterlimit%3D%2210%22%20stroke-width%3D%222.1%22%2F%3E%20%20%20%20%3Cpath%20d%3D%22M43.24%2C15.29h35.5l34.66%2C119.78h-28.43l-5.89-23.72H42.91l-6.22%2C23.72H8.76L43.24%2C15.29Zm31.8%2C75.54l-13.63-52.15h-.34l-14.13%2C52.15h28.09Z%22%20fill%3D%22aqua%22%20stroke%3D%22%23000f66%22%20stroke-miterlimit%3D%2210%22%20stroke-width%3D%222.1%22%2F%3E%20%20%20%20%3Cpath%20d%3D%22M130.73%2C133.38c-6.84-3.36-12.17-8.13-15.98-14.3-3.81-6.17-5.78-13.34-5.89-21.53l26.24-4.21c0%2C7.07%2C1.96%2C12.73%2C5.89%2C16.99%2C3.92%2C4.26%2C8.92%2C6.39%2C14.97%2C6.39%2C4.82%2C0%2C8.72-1.29%2C11.69-3.87%2C2.97-2.58%2C4.46-5.89%2C4.46-9.92%2C0-3.37-1.15-6.2-3.45-8.5-2.3-2.3-6.03-4.34-11.19-6.14l-14.64-4.71c-10.66-3.25-18.37-7.68-23.13-13.29-4.77-5.61-7.15-13.01-7.15-22.21%2C0-10.88%2C3.53-19.63%2C10.6-26.24%2C7.07-6.62%2C16.99-9.93%2C29.78-9.93%2C11.89%2C0%2C21.48%2C3.23%2C28.77%2C9.67%2C7.29%2C6.45%2C11.05%2C15.17%2C11.27%2C26.16l-25.57%2C4.88c.11-5.83-1.24-10.51-4.04-14.05-2.8-3.53-6.45-5.3-10.94-5.3-3.93%2C0-7.12%2C1.21-9.59%2C3.62-2.47%2C2.41-3.7%2C5.47-3.7%2C9.17s1.15%2C6.54%2C3.45%2C8.83c2.3%2C2.3%2C6.08%2C4.23%2C11.36%2C5.8l13.96%2C4.71c10.88%2C3.25%2C18.76%2C7.66%2C23.64%2C13.21s7.32%2C12.93%2C7.32%2C22.12c0%2C7.29-1.74%2C13.79-5.22%2C19.51-3.48%2C5.72-8.52%2C10.18-15.14%2C13.38-6.62%2C3.2-14.58%2C4.79-23.89%2C4.79s-17.05-1.68-23.89-5.05Z%22%20fill%3D%22aqua%22%20stroke%3D%22%23000f66%22%20stroke-miterlimit%3D%2210%22%20stroke-width%3D%222.1%22%2F%3E%20%20%20%20%3Cpath%20d%3D%22M220.39%2C39.51h-28.26V15.29h84.96v24.23h-28.26v95.56h-28.43V39.51Z%22%20fill%3D%22aqua%22%20stroke%3D%22%23000f66%22%20stroke-miterlimit%3D%2210%22%20stroke-width%3D%222.1%22%2F%3E%20%20%20%20%3Cpath%20d%3D%22M342.86%2C133.22c-3.59-3.25-5.95-7.63-7.07-13.12l-5.05-21.37c-.79-2.92-2.19-5.3-4.21-7.15s-4.26-2.78-6.73-2.78h-10.09v46.26h-28.26V15.29h46.1c8.86%2C0%2C16.6%2C1.54%2C23.22%2C4.63%2C6.62%2C3.09%2C11.72%2C7.46%2C15.31%2C13.12%2C3.59%2C5.66%2C5.38%2C12.31%2C5.38%2C19.94%2C0%2C7.18-2.08%2C13.6-6.22%2C19.26-4.15%2C5.67-9.76%2C9.51-16.82%2C11.52v.17c2.8%2C1.24%2C4.96%2C3%2C6.48%2C5.3%2C1.51%2C2.3%2C2.66%2C5.13%2C3.45%2C8.5l3.53%2C15.48c.67%2C3.7%2C2.19%2C5.55%2C4.54%2C5.55%2C2.13%2C0%2C4.15-1.29%2C6.06-3.87l6.73%2C13.63c-2.8%2C2.92-6.2%2C5.24-10.18%2C6.98-3.98%2C1.74-8.05%2C2.61-12.2%2C2.61-5.72%2C0-10.38-1.63-13.96-4.88Zm-16.82-64.26c5.05%2C0%2C9.14-1.46%2C12.28-4.37%2C3.14-2.92%2C4.71-6.78%2C4.71-11.61%2C0-5.16-1.54-9.17-4.63-12.03-3.09-2.86-7.21-4.29-12.37-4.29h-16.32v32.3h16.32Z%22%20fill%3D%22aqua%22%20stroke%3D%22%23000f66%22%20stroke-miterlimit%3D%2210%22%20stroke-width%3D%222.1%22%2F%3E%20%20%20%20%3Cpath%20d%3D%22M403.59%2C130.61c-8.52-5.21-15.14-12.62-19.85-22.21-4.71-9.59-7.07-20.66-7.07-33.23s2.36-23.64%2C7.07-33.23c4.71-9.59%2C11.33-16.99%2C19.85-22.21%2C8.52-5.21%2C18.45-7.82%2C29.78-7.82s21.28%2C2.61%2C29.86%2C7.82c8.58%2C5.22%2C15.22%2C12.59%2C19.94%2C22.12%2C4.71%2C9.53%2C7.07%2C20.58%2C7.07%2C33.14s-2.36%2C23.8-7.07%2C33.39c-4.71%2C9.59-11.36%2C16.99-19.94%2C22.21s-18.53%2C7.82-29.86%2C7.82-21.26-2.61-29.78-7.82Zm50.47-27c5.16-7.07%2C7.74-16.54%2C7.74-28.43s-2.58-21.37-7.74-28.43c-5.16-7.07-12.06-10.6-20.69-10.6s-15.51%2C3.53-20.61%2C10.6c-5.1%2C7.07-7.65%2C16.54-7.65%2C28.43s2.55%2C21.37%2C7.65%2C28.43c5.1%2C7.07%2C11.97%2C10.6%2C20.61%2C10.6s15.53-3.53%2C20.69-10.6Z%22%20fill%3D%22aqua%22%20stroke%3D%22%23000f66%22%20stroke-miterlimit%3D%2210%22%20stroke-width%3D%222.1%22%2F%3E%20%20%20%20%3Cpath%20d%3D%22M496.62%2C15.29h28.26V110.84h37.68v24.23h-65.95V15.29Z%22%20fill%3D%22aqua%22%20stroke%3D%22%23000f66%22%20stroke-miterlimit%3D%2210%22%20stroke-width%3D%222.1%22%2F%3E%20%20%20%20%3Cpath%20d%3D%22M587.64%2C130.61c-8.52-5.21-15.14-12.62-19.85-22.21-4.71-9.59-7.07-20.66-7.07-33.23s2.36-23.64%2C7.07-33.23c4.71-9.59%2C11.33-16.99%2C19.85-22.21%2C8.52-5.21%2C18.45-7.82%2C29.78-7.82s21.28%2C2.61%2C29.86%2C7.82c8.58%2C5.22%2C15.22%2C12.59%2C19.94%2C22.12%2C4.71%2C9.53%2C7.07%2C20.58%2C7.07%2C33.14s-2.36%2C23.8-7.07%2C33.39c-4.71%2C9.59-11.36%2C16.99-19.94%2C22.21s-18.53%2C7.82-29.86%2C7.82-21.26-2.61-29.78-7.82Zm50.47-27c5.16-7.07%2C7.74-16.54%2C7.74-28.43s-2.58-21.37-7.74-28.43c-5.16-7.07-12.06-10.6-20.69-10.6s-15.51%2C3.53-20.61%2C10.6c-5.1%2C7.07-7.65%2C16.54-7.65%2C28.43s2.55%2C21.37%2C7.65%2C28.43c5.1%2C7.07%2C11.97%2C10.6%2C20.61%2C10.6s15.53-3.53%2C20.69-10.6Z%22%20fill%3D%22aqua%22%20stroke%3D%22%23000f66%22%20stroke-miterlimit%3D%2210%22%20stroke-width%3D%222.1%22%2F%3E%20%20%20%20%3Cpath%20d%3D%22M701.11%2C130.53c-7.68-5.05-13.6-12.31-17.75-21.79-4.15-9.48-6.22-20.66-6.22-33.56s2.21-24.25%2C6.65-33.73c4.43-9.48%2C10.77-16.77%2C19.01-21.87%2C8.24-5.1%2C17.97-7.65%2C29.19-7.65s21.53%2C3.28%2C29.95%2C9.84c8.41%2C6.56%2C14.19%2C15.56%2C17.33%2C27l-26.58%2C5.72c-1.8-5.72-4.54-10.2-8.24-13.46-3.7-3.25-7.96-4.88-12.79-4.88-8.08%2C0-14.44%2C3.42-19.09%2C10.26-4.66%2C6.84-6.98%2C16.21-6.98%2C28.09s2.63%2C21.84%2C7.91%2C28.85c5.27%2C7.01%2C12.5%2C10.51%2C21.7%2C10.51%2C8.19%2C0%2C14.66-2.49%2C19.43-7.49%2C4.77-4.99%2C7.26-11.92%2C7.49-20.78h-37.18v-18.51h64.26v67.97h-20.86l-1.68-18.67h-.17c-3.93%2C6.73-9.31%2C12.03-16.15%2C15.9-6.84%2C3.87-14.19%2C5.8-22.04%2C5.8-10.43%2C0-19.49-2.52-27.17-7.57Z%22%20fill%3D%22aqua%22%20stroke%3D%22%23000f66%22%20stroke-miterlimit%3D%2210%22%20stroke-width%3D%222.1%22%2F%3E%20%20%20%20%3Cpath%20d%3D%22M796.92%2C15.29h28.26v119.78h-28.26V15.29Z%22%20fill%3D%22aqua%22%20stroke%3D%22%23000f66%22%20stroke-miterlimit%3D%2210%22%20stroke-width%3D%222.1%22%2F%3E%20%20%20%20%3Cpath%20d%3D%22M835.1%2C15.29h68.81v22.71h-41.55v25.57h34.82v20.19h-34.82v28.6h43.24v22.71h-70.49V15.29Z%22%20fill%3D%22aqua%22%20stroke%3D%22%23000f66%22%20stroke-miterlimit%3D%2210%22%20stroke-width%3D%222.1%22%2F%3E%3C%2Fsvg%3E",alt:"",className:Qs.titleImage})}),(0,I.jsx)(zn,{emptyLabel:(0,I.jsx)(A.sA,{id:"EQdIAR",defaultMessage:"Description"}),emptyClassName:Qs.emptyText,isEmpty:!B,children:B?(0,I.jsx)(Wn,{className:Qs.description,...a}):null},"description")]}),(0,I.jsx)(zn,{emptyLabel:(0,I.jsx)(A.sA,{id:"bv3rRe",defaultMessage:"Button"}),emptyClassName:Qs.emptyText,isEmpty:!E,children:E?(0,I.jsx)(da,{className:Qs.button,type:"button",onClick:U,withoutBootstrapStyles:!0,focusable:u&&!R&&!z,...o,children:(0,I.jsx)(Wn,{className:Qs.buttonLabel,...o,inline:!0})}):null}),T&&!z?(0,I.jsx)(Tl.CS.div,{className:Qs.header,style:{opacity:te,pointerEvents:te.to(e=>e<.25?"none":"auto")},children:(0,I.jsx)("div",{className:Qs.buttons,children:(0,I.jsx)(da,{className:Qs.close,onClick:Q,label:p.formatMessage({id:"dj/p/q",defaultMessage:"Close"}),iconPosition:"right",icon:(0,I.jsx)("svg",{className:Qs.closeIcon,xmlns:"http://www.w3.org/2000/svg",width:"10",height:"16",viewBox:"0 0 10 16",fill:"currentColor",children:(0,I.jsx)("polygon",{points:"9.95 4.11 8.89 3.05 5 6.94 1.11 3.05 0.05 4.11 3.94 8 0.05 11.89 1.11 12.95 5 9.06 8.89 12.95 9.95 11.89 6.06 8 9.95 4.11"})}),focusable:!R&&!z&&(_||W),withoutStyle:!0})})}):null,z?null:(0,I.jsxs)(Tl.CS.div,{className:Qs.signsGridContainer,style:(ce=te,{opacity:ce,pointerEvents:ce.to(e=>e<.25?"none":"auto")}),...ee(),children:[(0,I.jsx)(Fi,{columns:3,spacing:5,withoutCloseButton:!0,items:j.map(e=>{const{id:t=null}=e||{};return(0,I.jsx)(Tl.CS.div,{className:Qs.sign,style:(l=te,{opacity:l,transform:l.to(e=>`translateY(${3*(1-e)**5}rem) scale(${1-.25*(1-e)})`)}),children:(0,I.jsx)(Gs,{sign:e,focusable:!R&&!z&&_&&!W,onClick:e=>X(e,t)},t)},t);var l})}),(0,I.jsx)(zn,{emptyLabel:(0,I.jsx)(A.sA,{id:"xYqGzM",defaultMessage:"Author"}),emptyClassName:Qs.emptyText,isEmpty:!C,children:C&&!z?(0,I.jsx)(os,{author:i,className:Qs.author,collaboratorClassName:Qs.collaborator,backgroundClassName:Qs.authorBackground,shouldLoad:D,style:(re=te,{transform:re.to(e=>`translateY(${2*(1-e)}rem)`),opacity:re})}):null},"author")]}),(0,I.jsx)(Tl.CS.div,{className:Qs.modal,style:(se=ae,{transform:se.to(e=>`translateY(${100*(1-(e<.2?.1*e+e:e))}%)`),pointerEvents:se.to(e=>e<.1?"none":"auto")}),...ne(),children:(0,I.jsx)(Us,{width:k,height:M,sign:j[H],subtitle:s,focusable:!R&&!z&&W,onClick:J})}),z?null:(0,I.jsx)(Tl.CS.div,{className:Qs.backdrop,style:(oe=te,{opacity:oe}),children:null!==Y?(0,I.jsx)("video",{className:Qs.videoBackdrop,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,children:(0,I.jsx)("source",{src:Y,type:"video/mp4"})}):null})]})}),z?null:(0,I.jsx)(la,{background:c,width:k,height:M,resolution:N,playing:V,muted:x,shouldLoad:D,mediaRef:pe(S,h),className:Qs.background})]});var oe,se,re,ce,de},states:[{id:"intro",label:(0,A.zR)({id:"82g1F5",defaultMessage:"Intro"}),fields:[{name:"title",type:"heading-element",label:(0,A.zR)({id:"N25iDO",defaultMessage:"Title"})},{name:"description",type:"text-element",label:(0,A.zR)({id:"Y7bs1v",defaultMessage:"Description"})},{name:"button",type:"button-element",label:(0,A.zR)({id:"i6bmbD",defaultMessage:"Button"})},{name:"background",type:"background",label:(0,A.zR)({id:"+MPZRu",defaultMessage:"Background"})}]},{id:"grid",label:(0,A.zR)({id:"xj0o1v",defaultMessage:"Grid"}),fields:[{name:"popupBackground",type:"background",label:(0,A.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"author",type:"author-element",label:(0,A.zR)({id:"73hxYw",defaultMessage:"Author"})}]},{id:"signs",label:(0,A.zR)({id:"ap68Fp",defaultMessage:"Signs"}),defaultValue:Ws,repeatable:!0,withoutCreate:!0,fieldName:"signs",fields:[{name:"word",type:"heading-element",label:(0,A.zR)({id:"fLdjGi",defaultMessage:"Word of the week"})},{name:"description",type:"text-element",label:(0,A.zR)({id:"ZCe0r4",defaultMessage:"Description"})}]}],fields:[{name:"signSubtitle",type:"heading-element",defaultValue:{body:"Le mot de la semaine"},label:(0,A.zR)({id:"Qe03Xz",defaultMessage:"Sign Subtitle"})},{name:"background",type:"background",label:(0,A.zR)({id:"+MPZRu",defaultMessage:"Background"})}]}],er={container:"micromag-screen-urbania-recommendation-container",background:"micromag-screen-urbania-recommendation-background",backgroundTextContainer:"micromag-screen-urbania-recommendation-backgroundTextContainer",backgroundText:"micromag-screen-urbania-recommendation-backgroundText",hidden:"micromag-screen-urbania-recommendation-hidden",didAnimate:"micromag-screen-urbania-recommendation-didAnimate",animateFromBottom:"micromag-screen-urbania-recommendation-animateFromBottom",animateFromTop:"micromag-screen-urbania-recommendation-animateFromTop",content:"micromag-screen-urbania-recommendation-content",scroll:"micromag-screen-urbania-recommendation-scroll",empty:"micromag-screen-urbania-recommendation-empty",emptyText:"micromag-screen-urbania-recommendation-emptyText",emptyVisual:"micromag-screen-urbania-recommendation-emptyVisual",emptyCategory:"micromag-screen-urbania-recommendation-emptyCategory",footer:"micromag-screen-urbania-recommendation-footer",disabled:"micromag-screen-urbania-recommendation-disabled",close:"micromag-screen-urbania-recommendation-close",closeIcon:"micromag-screen-urbania-recommendation-closeIcon",textCard:"micromag-screen-urbania-recommendation-textCard",isPlaceholder:"micromag-screen-urbania-recommendation-isPlaceholder",appear:"micromag-screen-urbania-recommendation-appear",visualContainer:"micromag-screen-urbania-recommendation-visualContainer",visualBottom:"micromag-screen-urbania-recommendation-visualBottom",modalOpened:"micromag-screen-urbania-recommendation-modalOpened",sponsor:"micromag-screen-urbania-recommendation-sponsor",hasVisual:"micromag-screen-urbania-recommendation-hasVisual",sponsorPlaceholder:"micromag-screen-urbania-recommendation-sponsorPlaceholder",visualWrapper:"micromag-screen-urbania-recommendation-visualWrapper",visualButton:"micromag-screen-urbania-recommendation-visualButton",transitioning:"micromag-screen-urbania-recommendation-transitioning",iconContainer:"micromag-screen-urbania-recommendation-iconContainer",icon:"micromag-screen-urbania-recommendation-icon",text:"micromag-screen-urbania-recommendation-text",categoryContainer:"micromag-screen-urbania-recommendation-categoryContainer",category:"micromag-screen-urbania-recommendation-category",categoryPlaceholder:"micromag-screen-urbania-recommendation-categoryPlaceholder",textContent:"micromag-screen-urbania-recommendation-textContent",withoutCategory:"micromag-screen-urbania-recommendation-withoutCategory",title:"micromag-screen-urbania-recommendation-title",description:"micromag-screen-urbania-recommendation-description",location:"micromag-screen-urbania-recommendation-location",date:"micromag-screen-urbania-recommendation-date",titleContainer:"micromag-screen-urbania-recommendation-titleContainer",border:"micromag-screen-urbania-recommendation-border",descriptionPlaceholder:"micromag-screen-urbania-recommendation-descriptionPlaceholder",layout:"micromag-screen-urbania-recommendation-layout"},tr=[{id:"urbania-recommendation",type:"screen",namespaces:["urbania","bayard"],group:{label:(0,A.zR)({id:"oPjl8f",defaultMessage:"Urbania"}),order:10},title:(0,A.zR)({id:"sUP5BO",defaultMessage:"Urbania recommendation"}),component:function({layout:e=null,category:t=null,visual:l=null,title:a=null,date:i=null,location:o=null,description:s=null,sponsor:r=null,spacing:c=20,header:d=null,footer:u=null,background:m=null,cardBoxStyle:g=null,lineColor:h=null,withoutZoom:y=!1,current:p=!0,active:f=!0,preload:b=!0,mediaRef:v=null,className:x=null}){const S=(0,A.tz)(),w=rl(),{width:C,height:j,resolution:k}=rt(),{topHeight:M,bottomHeight:N,bottomSidesWidth:$}=ht(),{open:F}=bt(),{playing:T,setPlaying:R,muted:z,setMuted:L}=Xe(),{ref:P,isCurrent:B=!1}=Je(p,!0),{enableInteraction:E,disableInteraction:V}=ft(),{isView:D,isPreview:_,isPlaceholder:O,isEdit:Z,isStatic:W}=at(),q=p&&!O&&!W&&!_&&!Z,[Y,U]=(0,n.useState)(q),[Q,X]=(0,n.useState)(!1),{image:J=null}=l||{},{type:K=null,metadata:ee=null}=J||{},{width:le=0,height:ne=0}=ee||{},ie=null!==J,oe="video"===K,se=ie&&oe&&le>ne,re=he(t),ue=he(a),me=he(i),ge=he(o),ye=he(s),fe=he(r),be=re||ue||me||ge||ye||fe,ve=p&&(D||Z)&&(B||!D),xe=p&&(D||Z)&&T&&(B||!D),Se=p||b,we=!D&&!Z||!p,Ce=ce(d),je=de(u),ke=G(u,{isView:D,current:p,openWebView:F,isPreview:_}),[Me,Ne]=(0,n.useState)(!1),{ref:$e,entry:{contentRect:Fe=null}}=(0,Rt.wY)(),{width:Te=0,height:Re=0}=Fe||{},[ze,Le]=(0,n.useState)(!1),[Ie,Ae]=(0,n.useState)(!1),Pe=!ze&&!Ie,{text:Be=null}=m||{},{body:Ee=null,textStyle:Ve}=Be||{},De=(0,n.useMemo)(()=>(function(e){const t=null!==e?e.split(" "):[];if(t.length<2)return Array(4).fill(e);const l=Math.ceil(t.length/2),n=t.slice(0,l).join(" "),a=t.slice(l).join(" ");return[n,a,n,a]}(Ee)||[]).map(e=>(0,I.jsx)("span",{children:e})),[Ee]);(0,n.useEffect)(()=>{let e=null;return Y&&(e=setTimeout(()=>{U(!1),X(!0)},1600)),()=>{clearTimeout(e)}},[Y,q,X,U]),(0,n.useEffect)(()=>{U(!(!D||W||!p))},[D,p,U]);const _e=(0,n.useCallback)(({initial:e})=>{e&&w("scroll","Screen"),Ne(!0)},[w]),Oe=(0,n.useCallback)(()=>{Ne(!1)},[Ne]),He=(0,n.useCallback)((e=null)=>{if(null!==e){const t=Math.round(100*e);w("scroll",t,{scrollPercent:t})}},[w]);(0,n.useEffect)(()=>{let e=null;return ze&&(e=setTimeout(()=>{Le(!1),Ae(!0)},400)),p||Ae(!1),()=>{clearTimeout(e)}},[ze,Le,p]);const Ze=(0,n.useCallback)(()=>{Ie||Le(!0),z&&oe&&L(!1)},[Ae]),We=(0,n.useCallback)(()=>{ze&&Le(!1),Ae(!1)},[Ae]);(0,n.useEffect)(()=>{Ie?V():E()},[p,Ie]),(0,n.useEffect)(()=>{const e=e=>{"Escape"===e.key&&Ie&&We()};return document.addEventListener("keyup",e),()=>{document.removeEventListener("keyup",e)}},[Ie,We]),(0,n.useEffect)(()=>{p&&!Y&&R(!0)},[p,Y]);const{titleTextStyle:qe,titleColor:Ge,titleFontWeight:Ye,titleFontStyle:Ue,categoryTextStyle:Qe,categoryFontWeight:Ke,categoryFontStyle:et,descriptionTextStyle:tt,descriptionFontWeight:lt,dateTextStyle:nt,dateFontStyle:it,locationTextStyle:ot,locationFontStyle:st,sponsorTextStyle:ct,sponsorFontStyle:dt,backgroundFontStyle:ut}=(0,n.useMemo)(()=>{const{textStyle:e=null}=a||{},{color:l=null,fontFamily:n=null,fontStyle:c=null}=e||{},d=H(l),u=null===n?700:null,m=null===n?"uppercase":null,g=null===n?{...c,transform:"uppercase"}:c,{textStyle:h=null}=t||{},{fontFamily:y=null,fontStyle:p=null}=h||{},f=null===y?900:null,b=null===y?{...p,transform:"uppercase"}:p,{textStyle:v=null}=s||{},{fontFamily:x=null}=v||{},S=null===x?300:null,{textStyle:w=null}=i||{},{fontFamily:C=null,fontStyle:j=null}=w||{},k=null===C?{...j,transform:"uppercase"}:j,{textStyle:M=null}=o||{},{fontFamily:N=null,fontStyle:$=null}=M||{},F=null===N?{...$,transform:"uppercase"}:$,{textStyle:T=null}=r||{},{fontFamily:R=null,fontStyle:z=null}=T||{},L=null===R?{...z,transform:"uppercase"}:z,{fontFamily:I=null,fontStyle:A=null}=Ve||{};return{defaultTextTransform:m,titleColor:d,titleTextStyle:e,titleFontWeight:u,titleFontStyle:g,categoryTextStyle:h,categoryFontWeight:f,categoryFontStyle:b,descriptionTextStyle:v,descriptionFontWeight:S,dateTextStyle:w,dateFontStyle:k,locationTextStyle:M,locationFontStyle:F,sponsorTextStyle:T,sponsorFontStyle:L,backgroundFontStyle:null===I?{...A,transform:"uppercase"}:A}},[a,t,s,i,o,r,Ve]),mt=O?null:te(g),{borderRadius:gt=null}=mt||{},yt=0===gt,pt=(0,n.useMemo)(()=>null!==h?H(h):Ge,[h,Ge]);return(0,I.jsxs)("div",{className:Ft([er.container,x,{[er.isPlaceholder]:O}]),"data-screen-ready":!0,children:[(0,I.jsx)(na,{width:C,height:j,className:er.content,children:(0,I.jsx)(Ta,{width:C,height:j,disabled:we,onScrolledTrigger:He,onScrolledBottom:_e,onScrolledNotBottom:Oe,verticalAlign:"middle",withShadow:!Ie,withArrow:!Ie,className:er.scroll,children:(0,I.jsxs)($a,{className:er.layout,width:C,style:O?null:{paddingLeft:c,paddingRight:c,paddingTop:(_?0:M)+c/2,paddingBottom:(p&&!_?N:0)+c/2,minHeight:j},children:[!O&&Ce?(0,I.jsx)("div",{style:{paddingBottom:c},className:Ft([er.headerContainer]),children:(0,I.jsx)(xa,{...d})},"header"):null,O?null:(0,I.jsx)(Ma,{},"spacer-cta-top"),Ie?(0,I.jsx)(da,{className:er.close,onClick:We,children:(0,I.jsx)(Xl,{className:er.closeIcon})}):null,be||O||Z?(0,I.jsxs)(na,{className:Ft([er.textCard,{[er.isPlaceholder]:O,[er.visualBottom]:"bottom"===e,[er.appear]:Y,[er.modalOpened]:ze||Ie,[er.hidden]:!p&&D&&!_}]),style:{...mt,...yt?{borderRadius:0}:null},children:[(0,I.jsxs)("div",{className:Ft([er.visualContainer,{[er.modalOpened]:ze||Ie}]),style:null!==gt?"bottom"===e?{borderBottomLeftRadius:gt,borderBottomRightRadius:gt}:{borderTopLeftRadius:gt,borderTopRightRadius:gt}:null,children:[(0,I.jsx)(zn,{placeholder:(0,I.jsx)(yn,{className:er.visualPlaceholder}),emptyLabel:(0,I.jsx)(A.sA,{id:"JzSBzL",defaultMessage:"Visual"}),emptyClassName:Ft([er.empty,er.emptyVisual]),isEmpty:!ie,children:ie?(0,I.jsx)("div",{className:Ft([er.visualWrapper,{[er.modalOpened]:ze||Ie}]),style:ze||Ie?{width:C,height:j}:{width:Te,height:"auto"},children:(0,I.jsxs)(da,{className:Ft([er.visualButton,{[er.transitioning]:ze,[er.disabled]:y}]),onClick:Ze,disabled:_||Y||Ie||y,focusable:p&&!_&&!Ie,"aria-label":S.formatMessage({id:"XHO5Ua",defaultMessage:"Expand visual"}),"aria-pressed":Ie,style:{transform:ze?`scale(${C/Te})`:null},children:[oe?(0,I.jsx)(ra,{media:J,mediaRef:pe(P,v),width:ze||Ie?C:.9*(C-40)+1,height:ze||Ie?j:250,resolution:k,objectFit:{fit:(ze||Ie)&&se?"contain":"cover"},shouldLoad:Se,muted:z||!Ie,withoutVideo:_,playing:xe}):(0,I.jsx)(ra,{media:J,width:Ie?C:Te,resolution:k,active:f,shouldLoad:Se}),Pe?(0,I.jsx)("div",{className:Ft([er.iconContainer,{[er.visualBottom]:"bottom"===e,[er.hidden]:y}]),children:oe?(0,I.jsx)(Zl,{color:"#000",className:er.icon}):(0,I.jsx)(Hl,{color:"#000",className:er.icon})}):null]})}):null},"visual"),(0,I.jsx)(zn,{placeholder:(0,I.jsx)(vn,{className:er.sponsorPlaceholder}),children:fe?(0,I.jsx)(Wn,{className:Ft([er.sponsor,{[er.hasVisual]:ie}]),...r,textStyle:{...ct,fontStyle:dt}}):null},"sponsor")]}),(0,I.jsxs)("div",{ref:$e,className:er.text,children:[(0,I.jsx)(zn,{placeholder:(0,I.jsx)(xn,{className:er.categoryPlaceholder}),emptyLabel:(0,I.jsx)(A.sA,{id:"I5+AHN",defaultMessage:"Category"}),emptyClassName:er.emptyCategory,isEmpty:!re,children:re?(0,I.jsx)("div",{className:er.categoryContainer,style:{width:Re},children:(0,I.jsx)(wa,{className:er.category,...t,textStyle:{...Qe,fontWeight:Ke,fontStyle:et}})}):null},"category"),(0,I.jsxs)("div",{className:Ft([er.textContent,{[er.isPlaceholder]:O,[er.withoutCategory]:!re}]),children:[(0,I.jsx)(zn,{placeholder:"title",emptyLabel:(0,I.jsx)(A.sA,{id:"2c1WFV",defaultMessage:"Title"}),emptyClassName:er.emptyText,isEmpty:!ue,children:ue?(0,I.jsxs)("div",{className:er.titleContainer,children:[(0,I.jsx)(wa,{className:er.title,...a,textStyle:{...qe,fontWeight:Ye,fontStyle:Ue}}),(0,I.jsx)("hr",{className:er.border,style:{borderColor:pt}})]}):null},"title"),(0,I.jsx)(zn,{placeholder:(0,I.jsx)(vn,{className:er.datePlaceholder}),children:me?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Wn,{className:er.date,...i,textStyle:{...nt,fontStyle:it}}),(0,I.jsx)("hr",{className:er.border,style:{borderColor:pt}})]}):null},"date"),(0,I.jsx)(zn,{placeholder:(0,I.jsx)(vn,{className:er.locationPlaceholder}),children:ge?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Wn,{className:er.location,...o,textStyle:{...ot,fontStyle:st}}),(0,I.jsx)("hr",{className:er.border,style:{borderColor:pt}})]}):null},"location"),(0,I.jsx)(zn,{placeholder:(0,I.jsx)(vn,{className:er.descriptionPlaceholder}),emptyLabel:(0,I.jsx)(A.sA,{id:"EQdIAR",defaultMessage:"Description"}),emptyClassName:er.emptyText,isEmpty:!ye,children:ye?(0,I.jsx)(Wn,{className:er.description,...s,textStyle:{...tt,fontWeight:lt}}):null},"description")]})]})]}):null,O?null:(0,I.jsx)(Ma,{},"spacer-cta-bottom"),!O&&je?(0,I.jsx)("div",{className:Ft([er.footer,{[er.disabled]:!Me&&!Ie}]),style:{paddingTop:c,paddingLeft:Math.max(0,$-c),paddingRight:Math.max(0,$-c)},children:(0,I.jsx)(fa,{...ke})},"footer"):null]})})}),O?null:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(la,{background:m,width:C,height:j,resolution:k,playing:ve&&!Ie,muted:z||Ie,shouldLoad:Se,mediaRef:pe(P,v),withoutVideo:_,className:er.background}),null!==Be&&De.length>0?(0,I.jsx)(na,{width:C,height:j,className:er.backgroundTextContainer,children:(De||[]).map((e,t)=>(0,I.jsx)("div",{className:Ft([er.backgroundText],{[er.hidden]:!p&&D&&!_,[er.didAnimate]:Q,[er.animateFromBottom]:Y&&t%2!=0,[er.animateFromTop]:Y&&t%2==0}),style:{animationDelay:100*t+"ms",...ae({...Ve,fontStyle:ut})},children:e},`reco-background-text-${t+1}`))}):null]})]})},layouts:["top","bottom"],fields:[{name:"layout",type:"screen-layout",label:(0,A.zR)({id:"4iBXj2",defaultMessage:"Layout"})},{name:"sponsor",type:"text-element",label:(0,A.zR)({id:"WY14Zu",defaultMessage:"Sponsor"})},{name:"visual",type:"fields",isList:!0,label:(0,A.zR)({id:"HwqzVR",defaultMessage:"Visual"}),fields:[{name:"image",type:"visual",label:(0,A.zR)({id:"xT/onn",defaultMessage:"Image"})}]},{name:"category",type:"heading-element",label:(0,A.zR)({id:"4grcMU",defaultMessage:"Category"})},{name:"title",type:"heading-element",label:(0,A.zR)({id:"N25iDO",defaultMessage:"Title"})},{name:"date",type:"text-element",label:(0,A.zR)({id:"yEG9zh",defaultMessage:"Date"})},{name:"location",type:"text-element",label:(0,A.zR)({id:"zLxBdl",defaultMessage:"Location"})},{name:"description",type:"text-element",label:(0,A.zR)({id:"Y7bs1v",defaultMessage:"Description"})},{name:"background",type:"background-recommendation",label:(0,A.zR)({id:"+MPZRu",defaultMessage:"Background"})},{id:"recommendation",type:"fields",isList:!0,label:(0,A.zR)({id:"hPXJzA",defaultMessage:"Box params"}),fields:[{name:"cardBoxStyle",type:"box-style-form",label:(0,A.zR)({id:"1yNxAl",defaultMessage:"Card box style"})},{name:"lineColor",type:"color",label:(0,A.zR)({id:"Jti6I6",defaultMessage:"Lines color"})},{name:"withoutZoom",type:"toggle",defaultValue:!1,label:(0,A.zR)({id:"ehuj8A",defaultMessage:"Without image zoom"})}]},{name:"header",type:"header",label:(0,A.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,A.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]}],lr={container:"micromag-screen-urbania-trivia-container",background:"micromag-screen-urbania-trivia-background",content:"micromag-screen-urbania-trivia-content",emptyContainer:"micromag-screen-urbania-trivia-emptyContainer",empty:"micromag-screen-urbania-trivia-empty",itemsContainer:"micromag-screen-urbania-trivia-itemsContainer",videoContainer:"micromag-screen-urbania-trivia-videoContainer",video:"micromag-screen-urbania-trivia-video",isCustomBackground:"micromag-screen-urbania-trivia-isCustomBackground",isAnimated:"micromag-screen-urbania-trivia-isAnimated",heading:"micromag-screen-urbania-trivia-heading",placeholder:"micromag-screen-urbania-trivia-placeholder",videoPlaceholder:"micromag-screen-urbania-trivia-videoPlaceholder",bottomContent:"micromag-screen-urbania-trivia-bottomContent",fullscreen:"micromag-screen-urbania-trivia-fullscreen",image:"micromag-screen-urbania-trivia-image"};const nr={image:{type:"image",url:"data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201083.95%201920%22%3E%20%20%20%20%3Cg%20id%3D%22a%22%2F%3E%20%20%20%20%3Cg%20id%3D%22b%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22c%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M1083.95%2C0h-103.4l-438.55%2C959.95L1083.95%2C109.31V0Zm0%2C295L542.02%2C959.96l541.93-498.87v-166.08Zm0%2C274.99l-541.92%2C389.98%2C541.92-279.64v-110.34Zm0%2C190.53l-541.92%2C199.46%2C541.92-110.89v-88.57Zm0%2C158.17l-541.92%2C41.31%2C541.92%2C41.31v-82.61Zm0%2C152.21l-541.92-110.89%2C541.92%2C199.46v-88.58Zm0%2C168.77l-541.92-279.64%2C541.92%2C389.98v-110.34Zm0%2C219.25l-541.93-498.87%2C541.93%2C664.95v-166.08Zm0%2C351.77L542%2C960.05l438.55%2C959.95h103.4v-109.31ZM854.8%2C0h-138.91l-173.9%2C959.94L854.8%2C0Zm0%2C1920l-312.81-959.94%2C173.9%2C959.94h138.91ZM606.75%2C0h-129.56l64.78%2C959.94L606.75%2C0Zm0%2C1920l-64.78-959.94-64.78%2C959.94h129.56Zm-64.79-960.06L368.06%2C0H229.15l312.81%2C959.94Zm0%2C.12L229.15%2C1920h138.91l173.9-959.94Zm-.01-.11L103.4%2C0H0V109.31L541.94%2C959.95Zm0%2C.11L0%2C1810.69v109.31H103.4l438.55-959.95Zm-.01-.1L0%2C295.01v166.08l541.93%2C498.87Zm0%2C.09L0%2C1458.91v166.08L541.93%2C960.04Zm-.01-.07L0%2C570v110.34l541.92%2C279.63Zm0%2C.02L0%2C760.52v88.57l541.92%2C110.89Zm0%2C.02L0%2C918.69v82.61l541.92-41.31Zm0%2C.02L0%2C1070.9v88.57l541.92-199.46Zm0%2C.02L0%2C1239.66v110.34l541.92-389.97Z%22%20fill%3D%22%2312bbd7%22%2F%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E",width:1083,height:1919},color:"#00cbff"},ar={image:{type:"image",url:"data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201083.95%201920%22%3E%20%20%20%20%3Cg%20id%3D%22a%22%2F%3E%20%20%20%20%3Cg%20id%3D%22b%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22c%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M1083.95%2C0h-103.4l-438.55%2C959.95L1083.95%2C109.31V0Zm0%2C295L542.02%2C959.96l541.93-498.87v-166.08Zm0%2C274.99l-541.92%2C389.98%2C541.92-279.64v-110.34Zm0%2C190.53l-541.92%2C199.46%2C541.92-110.89v-88.57Zm0%2C158.17l-541.92%2C41.31%2C541.92%2C41.31v-82.61Zm0%2C152.21l-541.92-110.89%2C541.92%2C199.46v-88.58Zm0%2C168.77l-541.92-279.64%2C541.92%2C389.98v-110.34Zm0%2C219.25l-541.93-498.87%2C541.93%2C664.95v-166.08Zm0%2C351.77L542%2C960.05l438.55%2C959.95h103.4v-109.31ZM854.8%2C0h-138.91l-173.9%2C959.94L854.8%2C0Zm0%2C1920l-312.81-959.94%2C173.9%2C959.94h138.91ZM606.75%2C0h-129.56l64.78%2C959.94L606.75%2C0Zm0%2C1920l-64.78-959.94-64.78%2C959.94h129.56Zm-64.79-960.06L368.06%2C0H229.15l312.81%2C959.94Zm0%2C.12L229.15%2C1920h138.91l173.9-959.94Zm-.01-.11L103.4%2C0H0V109.31L541.94%2C959.95Zm0%2C.11L0%2C1810.69v109.31H103.4l438.55-959.95Zm-.01-.1L0%2C295.01v166.08l541.93%2C498.87Zm0%2C.09L0%2C1458.91v166.08L541.93%2C960.04Zm-.01-.07L0%2C570v110.34l541.92%2C279.63Zm0%2C.02L0%2C760.52v88.57l541.92%2C110.89Zm0%2C.02L0%2C918.69v82.61l541.92-41.31Zm0%2C.02L0%2C1070.9v88.57l541.92-199.46Zm0%2C.02L0%2C1239.66v110.34l541.92-389.97Z%22%20fill%3D%22hsla%280%2C0%25%2C100%25%2C.6%29%22%2F%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E",width:1083,height:1919},color:null};var ir={id:"urbania-trivia",type:"screen",namespaces:["urbania"],group:{label:(0,A.zR)({id:"oPjl8f",defaultMessage:"Urbania"}),order:10},title:(0,A.zR)({id:"zDdDqI",defaultMessage:"Urbania trivia"}),component:function({layout:e="full",title:t=null,video:l=null,gotoNextScreenOnEnd:a=!1,background:i=null,current:o=!0,preload:s=!0,spacing:r=20,padding:c=20,mediaRef:d=null,className:u=null}){const g=cl("video"),{width:h,height:y,resolution:p}=rt(),{isView:f,isPreview:b,isPlaceholder:v,isEdit:x,isStatic:S,isCapture:w}=at(),{bottomHeight:C}=ht(),{gotoNextScreen:j}=yt(),k=he(t),M=o&&(f||x),N=o||s,$=a&&f&&o,{autoPlay:F=!0,media:T=null,closedCaptions:R=null,withSeekBar:z=!1,withControls:L=!1,color:P=null,progressColor:B=null}=l||{},{playing:E,muted:V,setControls:D,setControlsTheme:_,setPlaying:O,showControls:H,hideControls:Z,currentQualityLevel:W,setCurrentQualityLevel:q}=Xe(),{ref:G,isCurrent:Y=!1}=Je(o);(0,n.useEffect)(()=>o?(L||z?(D(!0),_({seekBarOnly:z&&!L})):D(!1),()=>{(L||z)&&D(!1)}):()=>{},[o,L,D,z,P,B]),(0,n.useEffect)(()=>{null!==d&&d(G.current)},[G.current]);const[U,Q]=(0,n.useState)(null),[X,J]=(0,n.useState)(null);(0,n.useEffect)(()=>{o&&F&&!E&&O(!0)},[o,F]);const K=(0,n.useCallback)(e=>{Q(e)},[J,X]),ee=(0,n.useCallback)((e,t)=>{g(T,`progress_${Math.round(100*e,10)}%`,t)},[g,T]),te=(0,n.useCallback)(e=>{J(e)},[J]),le=(0,n.useCallback)(({initial:e})=>{g(T,e?"play":"resume")},[g,T]),ne=(0,n.useCallback)(({midway:e})=>{g(T,e?"pause":"ended")},[g,T]),ae=(0,n.useCallback)(e=>{e>0&&g(T,"seek")},[g,T]),ie=(0,n.useCallback)(()=>{o&&$&&j(),o&&O(!1)},[o,$,j,O]),oe=pt();(0,n.useEffect)(()=>{o&&(oe?H():Z())},[oe,H,Z]);const se="full"===e,{image:re=null,video:ce=null}=i||{},de=null===i||null===re&&null===ce,ue=!S&&!b&&de,me=null!==l,[ge,ye]=(0,n.useState)(me),pe=(0,n.useMemo)(()=>me?{...l,autoPlay:!b&&!S&&!w&&F&&o}:null,[me,l,b,S,w,F,o]),{metadata:fe=null,url:be=null,thumbnail_url:ve=null}=T||{},xe=null!==be,{width:Se=0,height:we=0}=fe||{},{ref:Ce,height:je=0}=_t(),ke=y-je-(c?2*c:40),{width:Me,height:Ne}=(0,Fl.kL)(Se,we,h,ke,{cover:se}),$e=-(Me-h)/2,Fe=Ne>Me,Te=(0,n.useMemo)(()=>{if(m(i)&&i.length>0)return i;const{image:e=null,video:t=null,color:l=null}=i||{};return null!==e||null!==t?{...nr,...i}:{...nr,...null!==l?{color:l}:null}},[i]),Re=se?{width:"100%",height:"100%"}:{width:"100%"};(0,n.useEffect)(()=>{ye(!xe)},[be,xe,ye]);const ze=(0,n.useCallback)(()=>{ye(!0)},[ye]);return(0,I.jsxs)("div",{className:Ft([lr.container,u,{[lr.fullscreen]:se}]),"data-screen-ready":S||w||ge,children:[(0,I.jsx)(na,{width:h,height:y,className:lr.content,children:(0,I.jsx)("div",{className:lr.inner,style:Fe?{justifyContent:"flex-start",marginTop:2*r}:null,children:(0,I.jsxs)(na,{className:lr.itemsContainer,style:{marginTop:-r/2},children:[(0,I.jsx)(zn,{className:lr.headingScreenElement,placeholder:(0,I.jsx)(xn,{className:lr.placeholder,...Re}),empty:(0,I.jsx)("div",{className:lr.emptyContainer,children:(0,I.jsx)(ln,{className:lr.empty,children:(0,I.jsx)(A.sA,{id:"oAtOlP",defaultMessage:"Heading"})})}),isEmpty:!k,children:k?(0,I.jsx)("div",{ref:Ce,children:(0,I.jsx)(wa,{className:lr.heading,...t})}):null},"heading"),(0,I.jsx)(zn,{className:lr.videoScreenElement,placeholder:(0,I.jsx)(Sn,{className:lr.videoPlaceholder,...Re}),empty:(0,I.jsx)("div",{className:lr.emptyContainer,children:(0,I.jsx)(ln,{className:lr.empty,children:(0,I.jsx)(A.sA,{id:"3ext9Q",defaultMessage:"Video"})})}),isEmpty:!xe,children:xe?(0,I.jsxs)("div",{className:lr.videoContainer,style:{width:Math.min(h,Me),height:Ne,left:$e>0?$e:null,maxHeight:ke},children:[b||w?(0,I.jsx)(ia,{className:lr.image,media:{url:ve,metadata:{width:Se,height:we}},width:Math.min(h,Me),height:Ne,resolution:p}):(0,I.jsx)(Xn,{...pe,mediaRef:G,paused:!o||!E||!Y&&f,muted:V,width:Me,height:Ne,className:lr.video,onReady:ze,onPlay:le,onPause:ne,onTimeUpdate:K,onProgressStep:ee,onDurationChange:te,onSeeked:ae,onEnded:ie,focusable:o&&f,shouldLoad:N,qualityStartLevel:W,onQualityLevelChange:q}),o&&!v?(0,I.jsx)("div",{className:lr.bottomContent,style:{transform:`translate(0, -${C}px)`},children:null===R||b||w||S?null:(0,I.jsx)(Va,{className:lr.closedCaptions,media:R,currentTime:U})},"bottom-content"):null]}):null},"video")]})})}),v?(0,I.jsx)(la,{background:ar,className:lr.background,width:h,height:y,resolution:p,withoutVideo:b}):(0,I.jsx)(la,{background:Te,className:Ft([lr.background,u,{[lr.isCustomBackground]:de,[lr.isAnimated]:ue}]),width:h,height:y,resolution:p,playing:M,shouldLoad:N,withoutVideo:b})]})},fields:[{name:"title",type:"heading-element",label:(0,A.zR)({id:"N25iDO",defaultMessage:"Title"})},{name:"video",type:"video-element",defaultValue:{autoPlay:!0},label:(0,A.zR)({id:"tvl2Zc",defaultMessage:"Video"})},{name:"gotoNextScreenOnEnd",type:"toggle",defaultValue:!1,label:(0,A.zR)({id:"n8zmLY",defaultMessage:"Go to next screen on end"})},{name:"background",type:"background",label:(0,A.zR)({id:"+MPZRu",defaultMessage:"Background"})}]},or={container:"micromag-screen-video-container",content:"micromag-screen-video-content",emptyContainer:"micromag-screen-video-emptyContainer",empty:"micromag-screen-video-empty",inner:"micromag-screen-video-inner",header:"micromag-screen-video-header",bottom:"micromag-screen-video-bottom",placeholder:"micromag-screen-video-placeholder",videoContainer:"micromag-screen-video-videoContainer",fullscreen:"micromag-screen-video-fullscreen",image:"micromag-screen-video-image",video:"micromag-screen-video-video"};function sr(){}var rr={id:"video",type:"screen",group:{label:(0,A.zR)({id:"+9akmg",defaultMessage:"Audio and Video"}),order:5},title:(0,A.zR)({id:"UBXIYP",defaultMessage:"Video"}),component:function(e){const t=(0,i.c)(112),{layout:l,video:a,gotoNextScreenOnEnd:o,header:s,footer:r,background:c,current:d,active:u,preload:m,spacing:g,mediaRef:h,className:y}=e,p=void 0===l?"middle":l,f=void 0===a?null:a,b=void 0!==o&&o,v=void 0===s?null:s,x=void 0===r?null:r,S=void 0===c?null:c,w=void 0===d||d,C=void 0===m||m,j=void 0===g?20:g,k=void 0===h?null:h,M=void 0===y?null:y,N=cl("video"),{width:$,height:F,resolution:T}=rt(),{isView:R,isPreview:z,isPlaceholder:L,isEdit:P,isStatic:B,isCapture:E}=at(),{gotoNextScreen:V}=yt(),{topHeight:D,bottomHeight:_,bottomSidesWidth:O}=ht(),{open:H}=bt(),Z=w||C,W=b&&R&&w,{autoPlay:q,loop:Y,media:U,thumbnail:X,captions:J,closedCaptions:K,withSeekBar:ee,withControls:te,color:le,progressColor:ne}=f||{},ae=void 0===q||q,ie=void 0!==Y&&Y,oe=void 0===U?null:U,se=void 0===X?null:X,re=void 0===J?null:J,ue=void 0===K?null:K,me=void 0!==ee&&ee,ge=void 0!==te&&te,he=void 0===le?null:le,ye=void 0===ne?null:ne,{playing:fe,muted:be,setControls:ve,setControlsSuggestPlay:xe,setControlsTheme:Se,setPlaying:we,controlsVisible:Ce,showControls:je,hideControls:ke,currentQualityLevel:Me,setCurrentQualityLevel:Ne}=Xe(),{ref:$e,isCurrent:Fe}=Je(w),Te=void 0!==Fe&&Fe,[Re,ze]=(0,n.useState)(!1),Le=w&&(R||P)&&(Te||!R),Ie=w&&(R||P)&&fe&&(Te||!R),Ae=z||E;(0,n.useEffect)(()=>w?(Se({seekBarOnly:me&&!ge,color:he,progressColor:ye}),ve(!(!ge&&!me)),()=>{(ge||me)&&ve(!1)}):sr,[w,ge,ve,me,he,ye]),(0,n.useEffect)(()=>{w&&ae&&we(!0)},[w,ae]);const Pe=pt();let Be;t[0]!==Pe||t[1]!==ke||t[2]!==je?(Be=()=>{Pe?je():ke()},t[0]=Pe,t[1]=ke,t[2]=je,t[3]=Be):Be=t[3],Pt(Be,Pe,1e3);const[Ee,Ve]=(0,n.useState)(null),[,De]=(0,n.useState)(null);let _e;t[4]===Symbol.for("react.memo_cache_sentinel")?(_e=e=>{const t=void 0===e?null:e;if(null!==t&&void 0!==t.currentTarget){const{currentTime:e}=t.currentTarget||{};Ve(void 0===e?0:e)}else Ve(0)},t[4]=_e):_e=t[4];const Oe=_e,He=(e,t)=>{N(oe,`progress_${Math.round(100*e,10)}%`,t)};let Ze;t[5]===Symbol.for("react.memo_cache_sentinel")?(Ze=e=>{De(e)},t[5]=Ze):Ze=t[5];const We=Ze,qe=e=>{const{initial:t}=e;Re||ze(!0),N(oe,t?"play":"resume")},Ge=e=>{const{midway:t}=e;N(oe,t?"pause":"ended")},Ye=e=>{e>0&&N(oe,"seek",{currentTime:e})},Ue=()=>{w&&!ie&&we(!1),w&&W&&V()},Qe="full"===p;let Ke;t[6]!==v?(Ke=ce(v),t[6]=v,t[7]=Ke):Ke=t[7];const et=Ke;let tt;t[8]!==x?(tt=de(x),t[8]=x,t[9]=tt):tt=t[9];const lt=tt;let nt;t[10]!==w||t[11]!==x||t[12]!==z||t[13]!==R||t[14]!==H?(nt=G(x,{isView:R,current:w,openWebView:H,isPreview:z}),t[10]=w,t[11]=x,t[12]=z,t[13]=R,t[14]=H,t[15]=nt):nt=t[15];const it=nt,ot=null!==f,[st,ct]=(0,n.useState)(ot),dt=ot?{...f,autoPlay:!z&&!B&&!E&&ae&&w}:null,{metadata:ut,url:mt}=oe||{},gt=void 0===ut?null:ut,ft=void 0===mt?null:mt,vt=Q(oe,se),xt=null!==ft,{width:St,height:wt}=gt||{},Ct=void 0===St?0:St,jt=void 0===wt?0:wt,{width:kt,height:Mt}=(0,Fl.kL)(Ct,jt,$,F,{cover:Qe}),Nt=-(kt-$)/2,$t=-(Mt-F)/2;let Tt;t[16]!==Qe?(Tt=Qe?{width:"100%",height:"100%"}:{width:"100%"},t[16]=Qe,t[17]=Tt):Tt=t[17];const Rt=Tt;let zt;!xt&&st&&ct(!1),t[18]!==ct?(zt=()=>{ct(!0)},t[18]=ct,t[19]=zt):zt=t[19];const Lt=zt;let It;t[20]!==ae||t[21]!==w||t[22]!==xt||t[23]!==R||t[24]!==fe||t[25]!==xe||t[26]!==we?(It=()=>{R&&fe&&w&&xt&&ae&&(we(!1),xe(!0))},t[20]=ae,t[21]=w,t[22]=xt,t[23]=R,t[24]=fe,t[25]=xe,t[26]=we,t[27]=It):It=t[27];const At=It;let Bt;t[28]!==M||t[29]!==Qe?(Bt=Ft([or.container,M,{[or.fullscreen]:Qe}]),t[28]=M,t[29]=Qe,t[30]=Bt):Bt=t[30];const Et=B||E||st;let Vt,Dt,_t;t[31]!==Ce||t[32]!==w||t[33]!==et||t[34]!==v||t[35]!==L||t[36]!==z||t[37]!==j||t[38]!==D?(Vt=!L&&et?(0,I.jsx)("div",{className:or.header,style:{paddingTop:j/2,paddingLeft:j,paddingRight:j,transform:z?null:`translate(0, ${D}px)`},children:(0,I.jsx)(xa,{fade:w&&!Ce,...v})},"header"):null,t[31]=Ce,t[32]=w,t[33]=et,t[34]=v,t[35]=L,t[36]=z,t[37]=j,t[38]=D,t[39]=Vt):Vt=t[39],t[40]!==Rt?(Dt=(0,I.jsx)(Sn,{className:or.placeholder,...Rt}),t[40]=Rt,t[41]=Dt):Dt=t[41],t[42]===Symbol.for("react.memo_cache_sentinel")?(_t=(0,I.jsx)("div",{className:or.emptyContainer,children:(0,I.jsx)(ln,{className:or.empty,children:(0,I.jsx)(A.sA,{id:"3ext9Q",defaultMessage:"Video"})})}),t[42]=_t):_t=t[42];const Ot=!xt;let Ht,Zt,Wt,qt,Gt,Yt,Ut;return t[43]!==w||t[44]!==Me||t[45]!==k||t[46]!==vt||t[47]!==dt||t[48]!==xt||t[49]!==R||t[50]!==$e||t[51]!==Z||t[52]!==be||t[53]!==We||t[54]!==Ue||t[55]!==Ge||t[56]!==qe||t[57]!==At||t[58]!==He||t[59]!==Ye||t[60]!==Oe||t[61]!==Lt||t[62]!==Mt||t[63]!==Nt||t[64]!==$t||t[65]!==kt||t[66]!==T||t[67]!==Ne||t[68]!==Ae||t[69]!==Ie?(Ht=xt?(0,I.jsx)("div",{className:or.videoContainer,style:{width:kt,height:Mt,left:Nt,top:$t},children:Ae?(0,I.jsx)(ia,{className:or.image,media:vt,width:kt,height:Mt,objectFit:{fit:"cover"},resolution:T,shouldLoad:Z}):(0,I.jsx)(Xn,{...dt,width:kt,height:Mt,paused:!Ie,muted:be,mediaRef:pe($e,k),className:or.video,onReady:Lt,onPlay:qe,onPause:Ge,onTimeUpdate:Oe,onProgressStep:He,onDurationChange:We,onSeeked:Ye,onEnded:Ue,onPlayError:At,disablePictureInPicture:!0,focusable:w&&R,shouldLoad:Z,qualityStartLevel:Me,onQualityLevelChange:Ne})}):null,t[43]=w,t[44]=Me,t[45]=k,t[46]=vt,t[47]=dt,t[48]=xt,t[49]=R,t[50]=$e,t[51]=Z,t[52]=be,t[53]=We,t[54]=Ue,t[55]=Ge,t[56]=qe,t[57]=At,t[58]=He,t[59]=Ye,t[60]=Oe,t[61]=Lt,t[62]=Mt,t[63]=Nt,t[64]=$t,t[65]=kt,t[66]=T,t[67]=Ne,t[68]=Ae,t[69]=Ie,t[70]=Ht):Ht=t[70],t[71]!==Dt||t[72]!==Ot||t[73]!==Ht?(Zt=(0,I.jsx)(zn,{placeholder:Dt,empty:_t,isEmpty:Ot,children:Ht},"video"),t[71]=Dt,t[72]=Ot,t[73]=Ht,t[74]=Zt):Zt=t[74],t[75]!==re||t[76]!==ue||t[77]!==w||t[78]!==Ee||t[79]!==it||t[80]!==lt||t[81]!==E||t[82]!==L||t[83]!==z||t[84]!==B||t[85]!==j||t[86]!==_||t[87]!==O?(Wt=L?null:(0,I.jsxs)("div",{className:or.bottom,style:{transform:w&&!z?`translate3d(0, -${_}px, 0)`:null,paddingLeft:Math.max(j/2,O),paddingRight:Math.max(j/2,O),paddingBottom:j/2,paddingTop:0},children:[null===ue&&null===re||z||E||B?null:(0,I.jsx)(Va,{className:or.closedCaptions,media:ue,...re,currentTime:Ee}),lt?(0,I.jsx)(fa,{...it}):null]},"bottom-content"),t[75]=re,t[76]=ue,t[77]=w,t[78]=Ee,t[79]=it,t[80]=lt,t[81]=E,t[82]=L,t[83]=z,t[84]=B,t[85]=j,t[86]=_,t[87]=O,t[88]=Wt):Wt=t[88],t[89]!==Vt||t[90]!==Zt||t[91]!==Wt?(qt=(0,I.jsxs)("div",{className:or.inner,children:[Vt,Zt,Wt]}),t[89]=Vt,t[90]=Zt,t[91]=Wt,t[92]=qt):qt=t[92],t[93]!==F||t[94]!==qt||t[95]!==$?(Gt=(0,I.jsx)(na,{width:$,height:F,className:or.content,children:qt}),t[93]=F,t[94]=qt,t[95]=$,t[96]=Gt):Gt=t[96],t[97]!==S||t[98]!==Le||t[99]!==F||t[100]!==L||t[101]!==z||t[102]!==Z||t[103]!==be||t[104]!==T||t[105]!==$?(Yt=L?null:(0,I.jsx)(la,{background:S,width:$,height:F,resolution:T,playing:Le,muted:be,shouldLoad:Z,withoutVideo:z}),t[97]=S,t[98]=Le,t[99]=F,t[100]=L,t[101]=z,t[102]=Z,t[103]=be,t[104]=T,t[105]=$,t[106]=Yt):Yt=t[106],t[107]!==Bt||t[108]!==Et||t[109]!==Gt||t[110]!==Yt?(Ut=(0,I.jsxs)("div",{className:Bt,"data-screen-ready":Et,children:[Gt,Yt]}),t[107]=Bt,t[108]=Et,t[109]=Gt,t[110]=Yt,t[111]=Ut):Ut=t[111],Ut},layouts:["middle","full"],fields:[{name:"layout",type:"screen-layout",defaultValue:"middle",label:(0,A.zR)({id:"4iBXj2",defaultMessage:"Layout"})},{name:"video",type:"video-element",theme:{color:"primary"},defaultValue:{autoPlay:!0},label:(0,A.zR)({id:"tvl2Zc",defaultMessage:"Video"})},{name:"gotoNextScreenOnEnd",type:"toggle",defaultValue:!1,label:(0,A.zR)({id:"n8zmLY",defaultMessage:"Go to next screen on end"})},{name:"background",type:"background",label:(0,A.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,A.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,A.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]};let cr=null;var dr={container:"micromag-screen-video-360-container",background:"micromag-screen-video-360-background",content:"micromag-screen-video-360-content",empty:"micromag-screen-video-360-empty",inner:"micromag-screen-video-360-inner",canvas:"micromag-screen-video-360-canvas",canvasButton:"micromag-screen-video-360-canvasButton",video:"micromag-screen-video-360-video",videoContainer:"micromag-screen-video-360-videoContainer",placeholder:"micromag-screen-video-360-placeholder",header:"micromag-screen-video-360-header",bottom:"micromag-screen-video-360-bottom",showVideo:"micromag-screen-video-360-showVideo"},ur={id:"video-360",type:"screen",group:{label:(0,A.zR)({id:"+9akmg",defaultMessage:"Audio and Video"}),order:5},title:(0,A.zR)({id:"GRVidW",defaultMessage:"360 Video"}),component:function({layout:e="full",video:t=null,header:a=null,footer:o=null,background:s=null,current:r=!0,preload:c=!0,type:d=null,spacing:u=20,mediaRef:m=null,className:g=null}){const h=(()=>{const[{package:e},t]=(0,n.useState)({package:cr});return(0,n.useEffect)(()=>{let n=!1;return null!==e||l.e(62).then(l.bind(l,5062)).then(({Scene:e,PerspectiveCamera:l,SphereBufferGeometry:a,VideoTexture:i,MeshBasicMaterial:o,Mesh:s,WebGLRenderer:r,MathUtils:c})=>{cr={Scene:e,PerspectiveCamera:l,SphereBufferGeometry:a,VideoTexture:i,MeshBasicMaterial:o,Mesh:s,WebGLRenderer:r,MathUtils:c},n||t({package:cr})}),()=>{n=!0}},[e,t]),e})(),y=rl(d),p=cl("video_360"),{enableInteraction:f,disableInteraction:b}=ft(),{gotoPreviousScreen:v,gotoNextScreen:x}=yt(),{topHeight:S,bottomHeight:w,bottomSidesWidth:C}=ht(),{width:j,height:k,landscape:M,resolution:N}=rt(),{isView:$,isPreview:F,isPlaceholder:T,isEdit:R,isStatic:z,isCapture:L}=at(),{open:P}=bt(),B=nl(),E=r||c,{media:V=null,closedCaptions:D=null,captions:_=null,withSeekBar:O=!1,withControls:H=!1,autoPlay:Z=!0,color:W=null,progressColor:q=null}=t||{},Y=(0,n.useRef)(),{playing:U,muted:Q,setControls:X,setControlsTheme:J,setControlsSuggestPlay:K,setMedia:ee,setPlaying:te,showControls:le,hideControls:ne,currentQualityLevel:ae,setCurrentQualityLevel:ie}=Xe(),{ref:oe,isCurrent:se=!1}=Je(r),re=r&&($||R)&&(se||!$),ue=r&&($||R)&&U&&(se||!$);(0,n.useEffect)(()=>r?(H||O?(X(!0),J({seekBarOnly:O&&!H,color:W,progressColor:q})):X(!1),()=>{(H||O)&&X(!1)}):()=>{},[r,H,X,O,W,q]),(0,n.useEffect)(()=>r?(ee(oe.current),()=>{ee(null)}):()=>{},[r]),(0,n.useEffect)(()=>{r&&Z&&!U&&te(!0)},[r,Z]);const me=pt(),ge=(0,n.useCallback)(()=>{me?le():ne()},[me,le,ne]);Pt(ge,me,1e3);const[he,ye]=(0,n.useState)(null),[fe,be]=(0,n.useState)(null),ve=(0,n.useCallback)(e=>{ye(e)},[be,fe]),xe=(0,n.useCallback)((e,t)=>{p(V,`progress_${Math.round(100*e,10)}%`,t)},[p,V]),Se=(0,n.useCallback)(e=>{be(e)},[be]),we=(0,n.useCallback)(({initial:e})=>{p(V,e?"play":"resume")},[p,V]),Ce=(0,n.useCallback)(({midway:e})=>{p(V,e?"pause":"ended")},[p,V]),je=(0,n.useCallback)(e=>{e>0&&p(V,"seek")},[p,V]),ke=(0,n.useCallback)(()=>{r&&te(!1)},[r,te]),Me=null!==t,[Ne,$e]=(0,n.useState)(!Me),Fe=ce(a),Te=de(o),Re=G(o,{isView:$,current:r,openWebView:P,isPreview:F,enableInteraction:f,disableInteraction:b}),ze=Me?{...t,autoPlay:!F&&!z&&!L&&Z&&r}:null,{metadata:Le=null,url:Ie=null,thumbnail_url:Ae=null}=V||{},Pe=null!==Ie,{width:Be=0,height:Ee=0}=Le||{},Ve=null!==Ae,[De,_e]=(0,n.useState)(!Ve),Oe=Pe&&($||R)&&!L&&!z,{width:He,height:Ze}=(0,Fl.kL)(Be,Ee,j,k,{cover:!0}),We=-(He-j)/2,qe=-(Ze-k)/2;(0,n.useEffect)(()=>{$e(!Pe)},[Ie,Pe,$e]),(0,n.useEffect)(()=>{_e(!Ve)},[Ae,Ve,_e]);const Ge=(0,n.useCallback)(()=>{$e(!0)},[$e]),Ye=(0,n.useCallback)(()=>{_e(!0)},[De]),Ue=(0,n.useRef)(null),Qe=(0,n.useRef)(null),Ke=(0,n.useRef)(null),et=(0,n.useRef)(null),tt=(0,n.useRef)(0),lt=(0,n.useRef)(0),nt=(0,n.useRef)(0),it=(0,n.useRef)(0),ot=(0,n.useRef)(50),st=(0,n.useRef)(!1),ct=(0,n.useRef)(0),dt=(0,n.useRef)(0),ut=(0,n.useRef)(0),mt=(0,n.useRef)(0),gt=(0,n.useCallback)(()=>{if(null===h)return;const{MathUtils:e}=h;lt.current=Math.max(-85,Math.min(85,lt.current)),nt.current=e.degToRad(90-lt.current),it.current=e.degToRad(tt.current),Qe.current.position.x=ot.current*Math.sin(nt.current)*Math.cos(it.current),Qe.current.position.y=ot.current*Math.cos(nt.current),Qe.current.position.z=ot.current*Math.sin(nt.current)*Math.sin(it.current),Qe.current.lookAt(0,0,0),et.current.render(Ke.current,Qe.current)},[]);(0,n.useEffect)(()=>{if(null!==h&&Pe&&Oe){const{Scene:e=null,PerspectiveCamera:t=null,SphereBufferGeometry:l=null,VideoTexture:n=null,MeshBasicMaterial:a=null,Mesh:i=null,WebGLRenderer:o=null}=h||{};if(null===e||null===t||null===l||null===n||null===a||null===i||null===o)return()=>{Qe.current=null,Ke.current=null,et.current=null};const{offsetWidth:s,offsetHeight:r}=Ue.current;Qe.current=new t(75,s/r,1,1100),Ke.current=new e;const c=new l(500,60,40);c.scale(-1,1,1);const{current:d=null}=oe||{},u=new i(c,new a({map:new n(d)}));Ke.current.add(u),et.current=new o({canvas:Ue.current}),et.current.setPixelRatio(B),et.current.setSize(s,r),gt()}return()=>{Oe&&(Qe.current=null,Ke.current=null,et.current=null)}},[Pe,Oe,gt]),((e,t)=>{const l=(0,i.c)(9);let a;l[0]!==t?(a=void 0===t?{}:t,l[0]=t,l[1]=a):a=l[1];const{disabled:o}=a,s=void 0!==o&&o,r=(0,n.useRef)(null),c=(0,n.useRef)(null);let d,u,m;l[2]!==e?(d=t=>{c.current||(c.current=t);const l=t-c.current;e(l),r.current=requestAnimationFrame(d)},l[2]=e,l[3]=d):d=l[3],l[4]!==d||l[5]!==s?(u=()=>(s||(r.current=requestAnimationFrame(d)),()=>{null!==r.current&&cancelAnimationFrame(r.current)}),l[4]=d,l[5]=s,l[6]=u):u=l[6],l[7]!==s?(m=[s],l[7]=s,l[8]=m):m=l[8],(0,n.useEffect)(u,m)})(gt,{disabled:!Oe}),(0,n.useEffect)(()=>{null!==Qe.current&&null!==et.current&&(Qe.current.aspect=j/k,Qe.current.updateProjectionMatrix(),et.current.setSize(j,k))},[j,k]);const vt=(0,n.useRef)(null),xt=(0,n.useCallback)(e=>{st.current=!0,ct.current=e.clientX,dt.current=e.clientY,ut.current=tt.current,mt.current=lt.current},[]),St=(0,n.useRef)(0),wt=(0,n.useRef)(null),Ct=(0,n.useRef)(!1),jt=(0,n.useCallback)(e=>{if(st.current){const{clientX:l=null,clientY:n=null}=e||{},a=ct.current-l,i=dt.current-n;tt.current=.2*a+ut.current,lt.current=.2*i+mt.current;const{x:o=l,y:s=n}=wt.current||{},r=Math.abs(o-l)||0,c=Math.abs(s-n)||0;St.current+=r+c,!Ct.current&&St.current>Math.min(j,k)&&(y("drag_sphere",t.name),Ct.current=!0),wt.current={x:l,y:n},(Math.abs(a)>3||Math.abs(i)>3)&&null!==vt.current&&(clearTimeout(vt.current),vt.current=null)}},[j,k,y,t]),kt=(0,n.useCallback)(e=>{const t=Y.current;if(st.current&&null!==t){const l=Math.abs(ct.current-e.clientX),n=Math.abs(dt.current-e.clientY),a=3,i=.5;if(!M&&null!==vt.current&&l<a&&n<a){const{left:l=0,width:n}=t.getBoundingClientRect();e.clientX-l<n*(1-i)?null!==v&&v():null!==x&&x()}null!==vt.current&&(clearTimeout(vt.current),vt.current=null)}st.current=!1},[v,x,M]),Mt=(0,n.useCallback)(()=>{$&&U&&r&&Pe&&Z&&(te(!1),K(!0))},[$,r,U,Pe,Z,te,K]);return(0,I.jsxs)("div",{className:Ft([dr.container,g,{[dr.showVideo]:F||z||L}]),"data-screen-ready":(z||L)&&De||Ne,children:[(0,I.jsxs)(na,{width:j,height:k,className:dr.content,children:[Oe?(0,I.jsx)("div",{ref:Y,className:dr.videoContainer,style:{width:He,height:Ze,left:We,top:qe},children:(0,I.jsx)(Xn,{...ze,mediaRef:pe(oe,m),className:dr.video,paused:!ue,muted:Q,withoutCors:!0,onReady:Ge,onPlay:we,onPause:Ce,onTimeUpdate:ve,onProgressStep:xe,onDurationChange:Se,onSeeked:je,onEnded:ke,onPosterLoaded:Ye,onPlayError:Mt,setPlaying:te,focusable:r&&$,shouldLoad:E,qualityStartLevel:ae,onQualityLevelChange:ie})}):null,(0,I.jsxs)("div",{className:dr.inner,children:[(0,I.jsxs)(zn,{placeholder:(0,I.jsx)(wn,{className:dr.placeholder,width:"100%",height:"100%"}),emptyClassName:dr.empty,emptyLabel:(0,I.jsx)(A.sA,{id:"oLtEu6",defaultMessage:"Video 360"}),isEmpty:!Oe,children:[!T&&Fe?(0,I.jsx)("div",{className:dr.header,style:{paddingTop:u/2,paddingLeft:u,paddingRight:u,transform:F?null:`translate(0, ${S}px)`},children:(0,I.jsx)(xa,{...a})},"header"):null,Oe?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("canvas",{ref:Ue,className:dr.canvas}),(0,I.jsx)("button",{className:dr.canvasButton,type:"button","aria-label":"canvas-interaction",onPointerDown:xt,onPointerMove:jt,onPointerUp:kt,tabIndex:r&&$?null:"-1"})]}):(0,I.jsx)("div",{className:dr.videoContainer,style:{width:He,height:Ze,left:We,top:qe},children:(0,I.jsx)(ia,{className:dr.video,media:{url:Ae,metadata:{width:Be,height:Ee}},width:He,height:Ze,resolution:N})})]},"video"),T?null:(0,I.jsxs)("div",{className:dr.bottom,style:{transform:r&&!F?`translate(0, -${w}px)`:null,paddingLeft:Math.max(u/2,C),paddingRight:Math.max(u/2,C),paddingBottom:u/2,paddingTop:0},children:[null===D&&null===_||F||L||z?null:(0,I.jsx)(Va,{className:dr.closedCaptions,media:D,..._,currentTime:he}),Te?(0,I.jsx)(fa,{...Re,className:dr.callToAction}):null]},"bottom-content")]})]}),T?null:(0,I.jsx)(la,{background:s,width:j,height:k,resolution:N,playing:re,muted:Q,shouldLoad:E,withoutVideo:F,className:dr.background})]})},layouts:["full"],fields:[{name:"video",type:"video-element",theme:{color:"primary"},defaultValue:{autoPlay:!0},label:(0,A.zR)({id:"tvl2Zc",defaultMessage:"Video"})},{name:"background",type:"background",label:(0,A.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,A.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,A.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]},mr=Object.freeze({__proto__:null,article:za,audio:Wa,contribution:ni,conversation:ci,gallery:bi,galleryFeed:Si,gameSort:ji,image:Ni,keypad:Vi,map:eo,quiz:mo,quote:po,ranking:xo,share:$o,slideshow:Ro,survey:Zo,text:Go,timeline:Xo,title:ls,urbaniaArticle:ys,urbaniaArticleCard:xs,urbaniaHoroscope:Ks,urbaniaRecommendation:tr,urbaniaTrivia:ir,video:rr,video360:ur});const gr=new C(Object.keys(mr).reduce((e,t)=>[...e,...m(mr[t])?mr[t]:[mr[t]]],[]));function hr(e){const t=(0,i.c)(6);let l,n,a;return t[0]!==e?(({children:l,...n}=e),t[0]=e,t[1]=l,t[2]=n):(l=t[1],n=t[2]),t[3]!==l||t[4]!==n?(a=(0,I.jsx)(Ae,{...n,manager:gr,children:l}),t[3]=l,t[4]=n,t[5]=a):a=t[5],a}gr.setFieldsPattern({fonts:{article:[/^title\.textStyle\.fontFamily$/,/^surtitle\.textStyle\.fontFamily$/,/^date\.textStyle\.fontFamily$/,/^author\.name\.textStyle\.fontFamily$/,/^author\.collaborator\.textStyle\.fontFamily$/,/^subtitle\.textStyle\.fontFamily$/,/^text\.textStyle\.fontFamily$/,/^header\.badge\.label\.textStyle\.fontFamily$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily$/,/^footer\.callToAction\.label\.textStyle\.fontFamily$/],audio:[/^audio\.captions\.textStyle\.fontFamily$/,/^header\.badge\.label\.textStyle\.fontFamily$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily$/,/^footer\.callToAction\.label\.textStyle\.fontFamily$/],contribution:[/^title\.textStyle\.fontFamily$/,/^name\.textStyle\.fontFamily$/,/^message\.textStyle\.fontFamily$/,/^submit\.textStyle\.fontFamily$/,/^nameStyle\.style\.fontFamily$/,/^messageStyle\.style\.fontFamily$/,/^settings\.skipButton\.textStyle\.fontFamily$/,/^settings\.backButton\.textStyle\.fontFamily$/,/^header\.badge\.label\.textStyle\.fontFamily$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily$/,/^footer\.callToAction\.label\.textStyle\.fontFamily$/],conversation:[/^title\.textStyle\.fontFamily$/,/^conversation\.messageStyle\.fontFamily$/,/^conversation\.speakerStyle\.fontFamily$/,/^header\.badge\.label\.textStyle\.fontFamily$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily$/,/^footer\.callToAction\.label\.textStyle\.fontFamily$/],gallery:[/^header\.badge\.label\.textStyle\.fontFamily$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily$/,/^footer\.callToAction\.label\.textStyle\.fontFamily$/],"gallery-captions":[/^images\.[0-9]+\.caption\.textStyle\.fontFamily$/,/^imageCaptionStyle\.fontFamily$/,/^header\.badge\.label\.textStyle\.fontFamily$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily$/,/^footer\.callToAction\.label\.textStyle\.fontFamily$/],"gallery-feed":[/^header\.badge\.label\.textStyle\.fontFamily$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily$/,/^footer\.callToAction\.label\.textStyle\.fontFamily$/],"gallery-feed-captions":[/^images\.[0-9]+\.caption\.textStyle\.fontFamily$/,/^imageCaptionStyle\.fontFamily$/,/^header\.badge\.label\.textStyle\.fontFamily$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily$/,/^footer\.callToAction\.label\.textStyle\.fontFamily$/],"game-sort":[/^heading\.textStyle\.fontFamily$/,/^items\.[0-9]+\.label\.textStyle\.fontFamily$/,/^items\.[0-9]+\.results\.textStyle\.fontFamily$/,/^itemsTextStyle\.fontFamily$/,/^resultsTextStyle\.fontFamily$/,/^submitTextStyle\.fontFamily$/,/^results\.textStyle\.fontFamily$/,/^header\.badge\.label\.textStyle\.fontFamily$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily$/,/^footer\.callToAction\.label\.textStyle\.fontFamily$/],image:[/^header\.badge\.label\.textStyle\.fontFamily$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily$/,/^footer\.callToAction\.label\.textStyle\.fontFamily$/],"image-title":[/^title\.textStyle\.fontFamily$/,/^header\.badge\.label\.textStyle\.fontFamily$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily$/,/^footer\.callToAction\.label\.textStyle\.fontFamily$/],"image-text":[/^text\.textStyle\.fontFamily$/,/^header\.badge\.label\.textStyle\.fontFamily$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily$/,/^footer\.callToAction\.label\.textStyle\.fontFamily$/],"image-title-text":[/^title\.textStyle\.fontFamily$/,/^text\.textStyle\.fontFamily$/,/^header\.badge\.label\.textStyle\.fontFamily$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily$/,/^footer\.callToAction\.label\.textStyle\.fontFamily$/],"image-legend":[/^legend\.textStyle\.fontFamily$/,/^header\.badge\.label\.textStyle\.fontFamily$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily$/,/^footer\.callToAction\.label\.textStyle\.fontFamily$/],keypad:[/^items\.[0-9]+\.label\.textStyle\.fontFamily$/,/^buttonStyles\.textStyle\.fontFamily$/,/^popupStyles\.headingTextStyle\.fontFamily$/,/^popupStyles\.contentTextStyle\.fontFamily$/,/^popupStyles\.button\.buttonTextStyle\.fontFamily$/,/^items\.[0-9]+\.heading\.textStyle\.fontFamily$/,/^items\.[0-9]+\.content\.textStyle\.fontFamily$/,/^items\.[0-9]+\.button\.label\.textStyle\.fontFamily$/,/^title\.textStyle\.fontFamily$/,/^subtitle\.textStyle\.fontFamily$/,/^header\.badge\.label\.textStyle\.fontFamily$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily$/,/^footer\.callToAction\.label\.textStyle\.fontFamily$/],map:[/^title\.textStyle\.fontFamily$/,/^description\.textStyle\.fontFamily$/,/^button\.textStyle\.fontFamily$/,/^markers\.[0-9]+\.title\.textStyle\.fontFamily$/,/^markers\.[0-9]+\.description\.textStyle\.fontFamily$/],"map-images":[/^title\.textStyle\.fontFamily$/,/^description\.textStyle\.fontFamily$/,/^button\.textStyle\.fontFamily$/,/^markers\.[0-9]+\.title\.textStyle\.fontFamily$/,/^markers\.[0-9]+\.description\.textStyle\.fontFamily$/],quiz:[/^question\.textStyle\.fontFamily$/,/^answers\.[0-9]+\.label\.textStyle\.fontFamily$/,/^answers\.[0-9]+\.result\.textStyle\.fontFamily$/,/^answers\.[0-9]+\.textStyle\.fontFamily$/,/^result\.textStyle\.fontFamily$/,/^buttonsTextStyle\.fontFamily$/,/^inactiveButtonsTextStyle\.fontFamily$/,/^feedbackTextStyle\.fontFamily$/,/^header\.badge\.label\.textStyle\.fontFamily$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily$/,/^footer\.callToAction\.label\.textStyle\.fontFamily$/],"quiz-multiple":[/^title\.textStyle\.fontFamily$/,/^description\.textStyle\.fontFamily$/,/^introButton\.textStyle\.fontFamily$/,/^questions\.[0-9]+\.text\.textStyle\.fontFamily$/,/^questions\.[0-9]+\.answers\.[0-9]+\.label\.textStyle\.fontFamily$/,/^results\.[0-9]+\.title\.textStyle\.fontFamily$/,/^results\.[0-9]+\.description\.textStyle\.fontFamily$/,/^buttonsTextStyle\.fontFamily$/,/^inactiveButtonsTextStyle\.fontFamily$/,/^questionsHeadingStyle\.fontFamily$/,/^resultsHeadingStyle\.fontFamily$/,/^resultsTextStyle\.fontFamily$/,/^numbersTextStyle\.fontFamily$/,/^nextButton\.textStyle\.fontFamily$/,/^header\.badge\.label\.textStyle\.fontFamily$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily$/,/^footer\.callToAction\.label\.textStyle\.fontFamily$/],quote:[/^quote\.textStyle\.fontFamily$/,/^author\.textStyle\.fontFamily$/,/^header\.badge\.label\.textStyle\.fontFamily$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily$/,/^footer\.callToAction\.label\.textStyle\.fontFamily$/],ranking:[/^title\.textStyle\.fontFamily$/,/^items\.[0-9]+\.title\.textStyle\.fontFamily$/,/^items\.[0-9]+\.description\.textStyle\.fontFamily$/,/^itemTitleStyle\.fontFamily$/,/^itemDescriptionStyle\.fontFamily$/,/^numbersStyle\.fontFamily$/,/^header\.badge\.label\.textStyle\.fontFamily$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily$/,/^footer\.callToAction\.label\.textStyle\.fontFamily$/],share:[/^heading\.textStyle\.fontFamily$/,/^buttonsTextStyle\.fontFamily$/,/^header\.badge\.label\.textStyle\.fontFamily$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily$/,/^footer\.callToAction\.label\.textStyle\.fontFamily$/],slideshow:[/^slides\.[0-9]+\.caption\.textStyle\.fontFamily$/,/^header\.badge\.label\.textStyle\.fontFamily$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily$/,/^footer\.callToAction\.label\.textStyle\.fontFamily$/],survey:[/^question\.textStyle\.fontFamily$/,/^answers\.[0-9]+\.label\.textStyle\.fontFamily$/,/^answers\.[0-9]+\.result\.textStyle\.fontFamily$/,/^answers\.[0-9]+\.resultStyle\.percentageTextStyle\.fontFamily$/,/^result\.textStyle\.fontFamily$/,/^customAnswer\.placeholder\.textStyle\.fontFamily$/,/^customAnswer\.submit\.textStyle\.fontFamily$/,/^customAnswer\.textStyle\.fontFamily$/,/^buttonsTextStyle\.fontFamily$/,/^resultsStyle\.percentageTextStyle\.fontFamily$/,/^header\.badge\.label\.textStyle\.fontFamily$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily$/,/^footer\.callToAction\.label\.textStyle\.fontFamily$/],text:[/^text\.textStyle\.fontFamily$/,/^header\.badge\.label\.textStyle\.fontFamily$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily$/,/^footer\.callToAction\.label\.textStyle\.fontFamily$/],"text-title":[/^title\.textStyle\.fontFamily$/,/^text\.textStyle\.fontFamily$/,/^header\.badge\.label\.textStyle\.fontFamily$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily$/,/^footer\.callToAction\.label\.textStyle\.fontFamily$/],timeline:[/^title\.textStyle\.fontFamily$/,/^items\.[0-9]+\.title\.textStyle\.fontFamily$/,/^items\.[0-9]+\.description\.textStyle\.fontFamily$/,/^itemTitleStyle\.fontFamily$/,/^itemDescriptionStyle\.fontFamily$/,/^alternatives\.audio\.captions\.textStyle\.fontFamily$/,/^header\.badge\.label\.textStyle\.fontFamily$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily$/,/^footer\.callToAction\.label\.textStyle\.fontFamily$/],"timeline-illustrated":[/^title\.textStyle\.fontFamily$/,/^items\.[0-9]+\.title\.textStyle\.fontFamily$/,/^items\.[0-9]+\.description\.textStyle\.fontFamily$/,/^itemTitleStyle\.fontFamily$/,/^itemDescriptionStyle\.fontFamily$/,/^alternatives\.audio\.captions\.textStyle\.fontFamily$/,/^header\.badge\.label\.textStyle\.fontFamily$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily$/,/^footer\.callToAction\.label\.textStyle\.fontFamily$/],title:[/^title\.textStyle\.fontFamily$/,/^header\.badge\.label\.textStyle\.fontFamily$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily$/,/^footer\.callToAction\.label\.textStyle\.fontFamily$/],"title-subtitle":[/^title\.textStyle\.fontFamily$/,/^subtitle\.textStyle\.fontFamily$/,/^header\.badge\.label\.textStyle\.fontFamily$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily$/,/^footer\.callToAction\.label\.textStyle\.fontFamily$/],"title-subtitle-credits":[/^title\.textStyle\.fontFamily$/,/^subtitle\.textStyle\.fontFamily$/,/^credits\.textStyle\.fontFamily$/,/^header\.badge\.label\.textStyle\.fontFamily$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily$/,/^footer\.callToAction\.label\.textStyle\.fontFamily$/],"title-with-box":[/^title\.textStyle\.fontFamily$/,/^subtitle\.textStyle\.fontFamily$/,/^description\.textStyle\.fontFamily$/,/^header\.badge\.label\.textStyle\.fontFamily$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily$/,/^footer\.callToAction\.label\.textStyle\.fontFamily$/],"urbania-article":[/^overTitle\.textStyle\.fontFamily$/,/^title\.textStyle\.fontFamily$/,/^description\.textStyle\.fontFamily$/,/^author\.name\.textStyle\.fontFamily$/,/^author\.collaborator\.textStyle\.fontFamily$/,/^sponsorLabel\.textStyle\.fontFamily$/,/^header\.badge\.label\.textStyle\.fontFamily$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily$/,/^footer\.callToAction\.label\.textStyle\.fontFamily$/],"urbania-article-card":[/^title\.textStyle\.fontFamily$/,/^author\.name\.textStyle\.fontFamily$/,/^author\.collaborator\.textStyle\.fontFamily$/,/^text\.textStyle\.fontFamily$/,/^cardCallToAction\.textStyle\.fontFamily$/,/^header\.badge\.label\.textStyle\.fontFamily$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily$/],"urbania-horoscope":[/^title\.textStyle\.fontFamily$/,/^description\.textStyle\.fontFamily$/,/^button\.textStyle\.fontFamily$/,/^author\.name\.textStyle\.fontFamily$/,/^author\.collaborator\.textStyle\.fontFamily$/,/^signs\.[0-9]+\.word\.textStyle\.fontFamily$/,/^signs\.[0-9]+\.description\.textStyle\.fontFamily$/,/^signSubtitle\.textStyle\.fontFamily$/],"urbania-recommendation":[/^sponsor\.textStyle\.fontFamily$/,/^category\.textStyle\.fontFamily$/,/^title\.textStyle\.fontFamily$/,/^date\.textStyle\.fontFamily$/,/^location\.textStyle\.fontFamily$/,/^description\.textStyle\.fontFamily$/,/^background\.text\.textStyle\.fontFamily$/,/^header\.badge\.label\.textStyle\.fontFamily$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily$/,/^footer\.callToAction\.label\.textStyle\.fontFamily$/],"urbania-trivia":[/^title\.textStyle\.fontFamily$/,/^video\.captions\.textStyle\.fontFamily$/],video:[/^video\.captions\.textStyle\.fontFamily$/,/^header\.badge\.label\.textStyle\.fontFamily$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily$/,/^footer\.callToAction\.label\.textStyle\.fontFamily$/],"video-360":[/^video\.captions\.textStyle\.fontFamily$/,/^header\.badge\.label\.textStyle\.fontFamily$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily$/,/^footer\.callToAction\.label\.textStyle\.fontFamily$/]},medias:{article:[/^image$/,/^title\.textStyle\.fontFamily\.media$/,/^title\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^surtitle\.textStyle\.fontFamily\.media$/,/^surtitle\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^date\.textStyle\.fontFamily\.media$/,/^date\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^author\.name\.textStyle\.fontFamily\.media$/,/^author\.name\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^author\.image$/,/^author\.collaborator\.textStyle\.fontFamily\.media$/,/^author\.collaborator\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^subtitle\.textStyle\.fontFamily\.media$/,/^subtitle\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^text$/,/^text\.textStyle\.fontFamily\.media$/,/^text\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^background\.image$/,/^background\.video$/,/^header\.badge\.label\.textStyle\.fontFamily\.media$/,/^header\.badge\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/],audio:[/^audio\.media$/,/^audio\.captions\.textStyle\.fontFamily\.media$/,/^audio\.captions\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^background\.image$/,/^background\.video$/,/^header\.badge\.label\.textStyle\.fontFamily\.media$/,/^header\.badge\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/],contribution:[/^title\.textStyle\.fontFamily\.media$/,/^title\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^name\.textStyle\.fontFamily\.media$/,/^name\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^message\.textStyle\.fontFamily\.media$/,/^message\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^submit\.textStyle\.fontFamily\.media$/,/^submit\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^nameStyle\.style\.fontFamily\.media$/,/^nameStyle\.style\.fontFamily\.variants\.[0-9]+\.media$/,/^messageStyle\.style\.fontFamily\.media$/,/^messageStyle\.style\.fontFamily\.variants\.[0-9]+\.media$/,/^settings\.skipButton\.textStyle\.fontFamily\.media$/,/^settings\.skipButton\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^settings\.backButton\.textStyle\.fontFamily\.media$/,/^settings\.backButton\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^background\.image$/,/^background\.video$/,/^header\.badge\.label\.textStyle\.fontFamily\.media$/,/^header\.badge\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/],conversation:[/^title\.textStyle\.fontFamily\.media$/,/^title\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^conversation\.speakers\.[0-9]+\.avatar$/,/^conversation\.messages\.[0-9]+\.image$/,/^conversation\.messages\.[0-9]+\.audio$/,/^conversation\.messageStyle\.fontFamily\.media$/,/^conversation\.messageStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^conversation\.speakerStyle\.fontFamily\.media$/,/^conversation\.speakerStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^background\.image$/,/^background\.video$/,/^header\.badge\.label\.textStyle\.fontFamily\.media$/,/^header\.badge\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/],gallery:[/^images\.[0-9]+$/,/^background\.image$/,/^background\.video$/,/^header\.badge\.label\.textStyle\.fontFamily\.media$/,/^header\.badge\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/],"gallery-captions":[/^images\.[0-9]+\.media$/,/^images\.[0-9]+\.caption\.textStyle\.fontFamily\.media$/,/^images\.[0-9]+\.caption\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^imageCaptionStyle\.fontFamily\.media$/,/^imageCaptionStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^background\.image$/,/^background\.video$/,/^header\.badge\.label\.textStyle\.fontFamily\.media$/,/^header\.badge\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/],"gallery-feed":[/^images\.[0-9]+$/,/^background\.image$/,/^background\.video$/,/^header\.badge\.label\.textStyle\.fontFamily\.media$/,/^header\.badge\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/],"gallery-feed-captions":[/^images\.[0-9]+\.media$/,/^images\.[0-9]+\.caption\.textStyle\.fontFamily\.media$/,/^images\.[0-9]+\.caption\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^imageCaptionStyle\.fontFamily\.media$/,/^imageCaptionStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^background\.image$/,/^background\.video$/,/^header\.badge\.label\.textStyle\.fontFamily\.media$/,/^header\.badge\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/],"game-sort":[/^heading\.textStyle\.fontFamily\.media$/,/^heading\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^items\.[0-9]+\.label\.textStyle\.fontFamily\.media$/,/^items\.[0-9]+\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^items\.[0-9]+\.visual$/,/^items\.[0-9]+\.results\.textStyle\.fontFamily\.media$/,/^items\.[0-9]+\.results\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^itemsTextStyle\.fontFamily\.media$/,/^itemsTextStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^resultsTextStyle\.fontFamily\.media$/,/^resultsTextStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^submitTextStyle\.fontFamily\.media$/,/^submitTextStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^results\.textStyle\.fontFamily\.media$/,/^results\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^background\.image$/,/^background\.video$/,/^header\.badge\.label\.textStyle\.fontFamily\.media$/,/^header\.badge\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/],image:[/^image$/,/^background\.image$/,/^background\.video$/,/^header\.badge\.label\.textStyle\.fontFamily\.media$/,/^header\.badge\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/],"image-title":[/^image$/,/^title\.textStyle\.fontFamily\.media$/,/^title\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^background\.image$/,/^background\.video$/,/^header\.badge\.label\.textStyle\.fontFamily\.media$/,/^header\.badge\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/],"image-text":[/^image$/,/^text\.textStyle\.fontFamily\.media$/,/^text\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^background\.image$/,/^background\.video$/,/^header\.badge\.label\.textStyle\.fontFamily\.media$/,/^header\.badge\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/],"image-title-text":[/^image$/,/^title\.textStyle\.fontFamily\.media$/,/^title\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^text\.textStyle\.fontFamily\.media$/,/^text\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^background\.image$/,/^background\.video$/,/^header\.badge\.label\.textStyle\.fontFamily\.media$/,/^header\.badge\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/],"image-legend":[/^image$/,/^legend\.textStyle\.fontFamily\.media$/,/^legend\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^background\.image$/,/^background\.video$/,/^header\.badge\.label\.textStyle\.fontFamily\.media$/,/^header\.badge\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/],keypad:[/^items\.[0-9]+\.label\.textStyle\.fontFamily\.media$/,/^items\.[0-9]+\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^items\.[0-9]+\.visual$/,/^buttonStyles\.textStyle\.fontFamily\.media$/,/^buttonStyles\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^popupStyles\.headingTextStyle\.fontFamily\.media$/,/^popupStyles\.headingTextStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^popupStyles\.contentTextStyle\.fontFamily\.media$/,/^popupStyles\.contentTextStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^popupStyles\.button\.buttonTextStyle\.fontFamily\.media$/,/^popupStyles\.button\.buttonTextStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^items\.[0-9]+\.heading\.textStyle\.fontFamily\.media$/,/^items\.[0-9]+\.heading\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^items\.[0-9]+\.content\.textStyle\.fontFamily\.media$/,/^items\.[0-9]+\.content\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^items\.[0-9]+\.largeVisual$/,/^items\.[0-9]+\.button\.label\.textStyle\.fontFamily\.media$/,/^items\.[0-9]+\.button\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^title\.textStyle\.fontFamily\.media$/,/^title\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^subtitle\.textStyle\.fontFamily\.media$/,/^subtitle\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^background\.image$/,/^background\.video$/,/^header\.badge\.label\.textStyle\.fontFamily\.media$/,/^header\.badge\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/],map:[/^title\.textStyle\.fontFamily\.media$/,/^title\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^description\.textStyle\.fontFamily\.media$/,/^description\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^button\.textStyle\.fontFamily\.media$/,/^button\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^markers\.[0-9]+\.title\.textStyle\.fontFamily\.media$/,/^markers\.[0-9]+\.title\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^markers\.[0-9]+\.description\.textStyle\.fontFamily\.media$/,/^markers\.[0-9]+\.description\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^background\.image$/,/^background\.video$/],"map-images":[/^title\.textStyle\.fontFamily\.media$/,/^title\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^description\.textStyle\.fontFamily\.media$/,/^description\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^button\.textStyle\.fontFamily\.media$/,/^button\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^markers\.[0-9]+\.title\.textStyle\.fontFamily\.media$/,/^markers\.[0-9]+\.title\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^markers\.[0-9]+\.description\.textStyle\.fontFamily\.media$/,/^markers\.[0-9]+\.description\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^background\.image$/,/^background\.video$/],quiz:[/^question\.textStyle\.fontFamily\.media$/,/^question\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^answers\.[0-9]+\.label\.textStyle\.fontFamily\.media$/,/^answers\.[0-9]+\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^answers\.[0-9]+\.visual$/,/^answers\.[0-9]+\.result\.textStyle\.fontFamily\.media$/,/^answers\.[0-9]+\.result\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^answers\.[0-9]+\.answerImage$/,/^answers\.[0-9]+\.textStyle\.fontFamily\.media$/,/^answers\.[0-9]+\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^result\.textStyle\.fontFamily\.media$/,/^result\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^resultImage$/,/^buttonsTextStyle\.fontFamily\.media$/,/^buttonsTextStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^inactiveButtonsTextStyle\.fontFamily\.media$/,/^inactiveButtonsTextStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^feedbackTextStyle\.fontFamily\.media$/,/^feedbackTextStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^background\.image$/,/^background\.video$/,/^header\.badge\.label\.textStyle\.fontFamily\.media$/,/^header\.badge\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/],"quiz-multiple":[/^title\.textStyle\.fontFamily\.media$/,/^title\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^description\.textStyle\.fontFamily\.media$/,/^description\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^introButton\.textStyle\.fontFamily\.media$/,/^introButton\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^introBackground\.image$/,/^introBackground\.video$/,/^questions\.[0-9]+\.text\.textStyle\.fontFamily\.media$/,/^questions\.[0-9]+\.text\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^questions\.[0-9]+\.answers\.[0-9]+\.label\.textStyle\.fontFamily\.media$/,/^questions\.[0-9]+\.answers\.[0-9]+\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^questions\.[0-9]+\.answers\.[0-9]+\.visual$/,/^questions\.[0-9]+\.background\.image$/,/^questions\.[0-9]+\.background\.video$/,/^results\.[0-9]+\.title\.textStyle\.fontFamily\.media$/,/^results\.[0-9]+\.title\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^results\.[0-9]+\.description\.textStyle\.fontFamily\.media$/,/^results\.[0-9]+\.description\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^results\.[0-9]+\.background\.image$/,/^results\.[0-9]+\.background\.video$/,/^buttonsTextStyle\.fontFamily\.media$/,/^buttonsTextStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^inactiveButtonsTextStyle\.fontFamily\.media$/,/^inactiveButtonsTextStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^questionsHeadingStyle\.fontFamily\.media$/,/^questionsHeadingStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^resultsHeadingStyle\.fontFamily\.media$/,/^resultsHeadingStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^resultsTextStyle\.fontFamily\.media$/,/^resultsTextStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^numbersTextStyle\.fontFamily\.media$/,/^numbersTextStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^nextButton\.textStyle\.fontFamily\.media$/,/^nextButton\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^background\.image$/,/^background\.video$/,/^header\.badge\.label\.textStyle\.fontFamily\.media$/,/^header\.badge\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/],quote:[/^quote\.textStyle\.fontFamily\.media$/,/^quote\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^author\.textStyle\.fontFamily\.media$/,/^author\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^background\.image$/,/^background\.video$/,/^header\.badge\.label\.textStyle\.fontFamily\.media$/,/^header\.badge\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/],ranking:[/^title\.textStyle\.fontFamily\.media$/,/^title\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^items\.[0-9]+\.title\.textStyle\.fontFamily\.media$/,/^items\.[0-9]+\.title\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^items\.[0-9]+\.description\.textStyle\.fontFamily\.media$/,/^items\.[0-9]+\.description\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^itemTitleStyle\.fontFamily\.media$/,/^itemTitleStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^itemDescriptionStyle\.fontFamily\.media$/,/^itemDescriptionStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^numbersStyle\.fontFamily\.media$/,/^numbersStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^background\.image$/,/^background\.video$/,/^header\.badge\.label\.textStyle\.fontFamily\.media$/,/^header\.badge\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/],share:[/^heading\.textStyle\.fontFamily\.media$/,/^heading\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^buttonsTextStyle\.fontFamily\.media$/,/^buttonsTextStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^background\.image$/,/^background\.video$/,/^header\.badge\.label\.textStyle\.fontFamily\.media$/,/^header\.badge\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/],slideshow:[/^slides\.[0-9]+\.media$/,/^slides\.[0-9]+\.caption\.textStyle\.fontFamily\.media$/,/^slides\.[0-9]+\.caption\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^background\.image$/,/^background\.video$/,/^header\.badge\.label\.textStyle\.fontFamily\.media$/,/^header\.badge\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/],survey:[/^question\.textStyle\.fontFamily\.media$/,/^question\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^answers\.[0-9]+\.label\.textStyle\.fontFamily\.media$/,/^answers\.[0-9]+\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^answers\.[0-9]+\.result\.textStyle\.fontFamily\.media$/,/^answers\.[0-9]+\.result\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^answers\.[0-9]+\.resultStyle\.percentageTextStyle\.fontFamily\.media$/,/^answers\.[0-9]+\.resultStyle\.percentageTextStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^result\.textStyle\.fontFamily\.media$/,/^result\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^customAnswer\.placeholder\.textStyle\.fontFamily\.media$/,/^customAnswer\.placeholder\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^customAnswer\.submit\.textStyle\.fontFamily\.media$/,/^customAnswer\.submit\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^customAnswer\.textStyle\.fontFamily\.media$/,/^customAnswer\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^buttonsTextStyle\.fontFamily\.media$/,/^buttonsTextStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^resultsStyle\.percentageTextStyle\.fontFamily\.media$/,/^resultsStyle\.percentageTextStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^background\.image$/,/^background\.video$/,/^header\.badge\.label\.textStyle\.fontFamily\.media$/,/^header\.badge\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/],text:[/^text\.textStyle\.fontFamily\.media$/,/^text\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^background\.image$/,/^background\.video$/,/^header\.badge\.label\.textStyle\.fontFamily\.media$/,/^header\.badge\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/],"text-title":[/^title\.textStyle\.fontFamily\.media$/,/^title\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^text\.textStyle\.fontFamily\.media$/,/^text\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^background\.image$/,/^background\.video$/,/^header\.badge\.label\.textStyle\.fontFamily\.media$/,/^header\.badge\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/],timeline:[/^title\.textStyle\.fontFamily\.media$/,/^title\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^items\.[0-9]+\.title\.textStyle\.fontFamily\.media$/,/^items\.[0-9]+\.title\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^items\.[0-9]+\.description\.textStyle\.fontFamily\.media$/,/^items\.[0-9]+\.description\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^itemTitleStyle\.fontFamily\.media$/,/^itemTitleStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^itemDescriptionStyle\.fontFamily\.media$/,/^itemDescriptionStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^alternatives\.audio\.media$/,/^alternatives\.audio\.captions\.textStyle\.fontFamily\.media$/,/^alternatives\.audio\.captions\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^background\.image$/,/^background\.video$/,/^header\.badge\.label\.textStyle\.fontFamily\.media$/,/^header\.badge\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/],"timeline-illustrated":[/^title\.textStyle\.fontFamily\.media$/,/^title\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^items\.[0-9]+\.title\.textStyle\.fontFamily\.media$/,/^items\.[0-9]+\.title\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^items\.[0-9]+\.description\.textStyle\.fontFamily\.media$/,/^items\.[0-9]+\.description\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^items\.[0-9]+\.image$/,/^itemTitleStyle\.fontFamily\.media$/,/^itemTitleStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^itemDescriptionStyle\.fontFamily\.media$/,/^itemDescriptionStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^alternatives\.audio\.media$/,/^alternatives\.audio\.captions\.textStyle\.fontFamily\.media$/,/^alternatives\.audio\.captions\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^background\.image$/,/^background\.video$/,/^header\.badge\.label\.textStyle\.fontFamily\.media$/,/^header\.badge\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/],title:[/^title\.textStyle\.fontFamily\.media$/,/^title\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^background\.image$/,/^background\.video$/,/^header\.badge\.label\.textStyle\.fontFamily\.media$/,/^header\.badge\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/],"title-subtitle":[/^title\.textStyle\.fontFamily\.media$/,/^title\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^subtitle\.textStyle\.fontFamily\.media$/,/^subtitle\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^background\.image$/,/^background\.video$/,/^header\.badge\.label\.textStyle\.fontFamily\.media$/,/^header\.badge\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/],"title-subtitle-credits":[/^title\.textStyle\.fontFamily\.media$/,/^title\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^subtitle\.textStyle\.fontFamily\.media$/,/^subtitle\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^credits\.textStyle\.fontFamily\.media$/,/^credits\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^background\.image$/,/^background\.video$/,/^header\.badge\.label\.textStyle\.fontFamily\.media$/,/^header\.badge\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/],"title-with-box":[/^title\.textStyle\.fontFamily\.media$/,/^title\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^subtitle\.textStyle\.fontFamily\.media$/,/^subtitle\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^description\.textStyle\.fontFamily\.media$/,/^description\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^background\.image$/,/^background\.video$/,/^header\.badge\.label\.textStyle\.fontFamily\.media$/,/^header\.badge\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/],"urbania-article":[/^overTitle\.textStyle\.fontFamily\.media$/,/^overTitle\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^title\.textStyle\.fontFamily\.media$/,/^title\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^description\.textStyle\.fontFamily\.media$/,/^description\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^author\.name\.textStyle\.fontFamily\.media$/,/^author\.name\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^author\.image$/,/^author\.collaborator\.textStyle\.fontFamily\.media$/,/^author\.collaborator\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^sponsorLabel\.textStyle\.fontFamily\.media$/,/^sponsorLabel\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^image$/,/^background\.image$/,/^background\.video$/,/^header\.badge\.label\.textStyle\.fontFamily\.media$/,/^header\.badge\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/],"urbania-article-card":[/^title\.textStyle\.fontFamily\.media$/,/^title\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^author\.name\.textStyle\.fontFamily\.media$/,/^author\.name\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^author\.image$/,/^author\.collaborator\.textStyle\.fontFamily\.media$/,/^author\.collaborator\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^text\.textStyle\.fontFamily\.media$/,/^text\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^background\.image$/,/^background\.video$/,/^cardCallToAction\.textStyle\.fontFamily\.media$/,/^cardCallToAction\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^header\.badge\.label\.textStyle\.fontFamily\.media$/,/^header\.badge\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/],"urbania-horoscope":[/^title\.textStyle\.fontFamily\.media$/,/^title\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^description\.textStyle\.fontFamily\.media$/,/^description\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^button\.textStyle\.fontFamily\.media$/,/^button\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^background\.image$/,/^background\.video$/,/^popupBackground\.image$/,/^popupBackground\.video$/,/^author\.name\.textStyle\.fontFamily\.media$/,/^author\.name\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^author\.image$/,/^author\.collaborator\.textStyle\.fontFamily\.media$/,/^author\.collaborator\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^signs\.[0-9]+\.word\.textStyle\.fontFamily\.media$/,/^signs\.[0-9]+\.word\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^signs\.[0-9]+\.description\.textStyle\.fontFamily\.media$/,/^signs\.[0-9]+\.description\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^signSubtitle\.textStyle\.fontFamily\.media$/,/^signSubtitle\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^background\.image$/,/^background\.video$/],"urbania-recommendation":[/^sponsor\.textStyle\.fontFamily\.media$/,/^sponsor\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^visual\.image$/,/^category\.textStyle\.fontFamily\.media$/,/^category\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^title\.textStyle\.fontFamily\.media$/,/^title\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^date\.textStyle\.fontFamily\.media$/,/^date\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^location\.textStyle\.fontFamily\.media$/,/^location\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^description\.textStyle\.fontFamily\.media$/,/^description\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^background\.image$/,/^background\.video$/,/^background\.text\.textStyle\.fontFamily\.media$/,/^background\.text\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^header\.badge\.label\.textStyle\.fontFamily\.media$/,/^header\.badge\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/],"urbania-trivia":[/^title\.textStyle\.fontFamily\.media$/,/^title\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^video\.media$/,/^video\.thumbnail$/,/^video\.captions\.textStyle\.fontFamily\.media$/,/^video\.captions\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^background\.image$/,/^background\.video$/],video:[/^video\.media$/,/^video\.thumbnail$/,/^video\.captions\.textStyle\.fontFamily\.media$/,/^video\.captions\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^background\.image$/,/^background\.video$/,/^header\.badge\.label\.textStyle\.fontFamily\.media$/,/^header\.badge\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/],"video-360":[/^video\.media$/,/^video\.thumbnail$/,/^video\.captions\.textStyle\.fontFamily\.media$/,/^video\.captions\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^background\.image$/,/^background\.video$/,/^header\.badge\.label\.textStyle\.fontFamily\.media$/,/^header\.badge\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.media$/,/^header\.shareIncentive\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.media$/,/^footer\.callToAction\.label\.textStyle\.fontFamily\.variants\.[0-9]+\.media$/]}});var yr={box:"micromag-element-share-incentive-box",tip:"micromag-element-share-incentive-tip"};function pr(e){const t=(0,i.c)(22),{className:l,label:n,boxStyle:a}=e,o=void 0===l?null:l,s=void 0===n?null:n,r=void 0===a?null:a;let c;t[0]!==r?(c=r||{},t[0]=r,t[1]=c):c=t[1];const{backgroundColor:d}=c,u=void 0===d?null:d;let m;t[2]!==u?(m=H(u),t[2]=u,t[3]=m):m=t[3];const g=m;let h,y,p,f,b,v,x,S;return t[4]!==o?(h=Ft([yr.container,o]),t[4]=o,t[5]=h):h=t[5],t[6]!==r?(y=te(r),t[6]=r,t[7]=y):y=t[7],t[8]!==y?(p={...y},t[8]=y,t[9]=p):p=t[9],t[10]===Symbol.for("react.memo_cache_sentinel")?(f=(0,I.jsx)("polygon",{points:"0,0 0,10 10,10"}),t[10]=f):f=t[10],t[11]!==g?(b=(0,I.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 10",className:yr.tip,fill:g,children:f}),t[11]=g,t[12]=b):b=t[12],t[13]!==s?(v=(0,I.jsx)(Wn,{className:yr.text,...s}),t[13]=s,t[14]=v):v=t[14],t[15]!==b||t[16]!==v||t[17]!==p?(x=(0,I.jsxs)("div",{className:yr.box,style:p,children:[b,v]}),t[15]=b,t[16]=v,t[17]=p,t[18]=x):x=t[18],t[19]!==x||t[20]!==h?(S=(0,I.jsx)("div",{className:h,children:x}),t[19]=x,t[20]=h,t[21]=S):S=t[21],S}var fr={container:"micromag-element-webview-container",iframe:"micromag-element-webview-iframe",top:"micromag-element-webview-top",close:"micromag-element-webview-close"};function br(e){const t=(0,i.c)(24),{url:l,width:n,height:a,closeable:o,focusable:s,onClose:r,className:c}=e,d=void 0===l?null:l,u=void 0===n?null:n,m=void 0===a?null:a,g=void 0!==o&&o,h=void 0!==s&&s,y=void 0===r?null:r,p=void 0===c?null:c,f=(0,A.tz)(),b=!h;let v,x,S;t[0]!==p||t[1]!==g||t[2]!==b?(v=Ft([fr.container,p,{[fr.hidden]:b,[fr.closeable]:g}]),t[0]=p,t[1]=g,t[2]=b,t[3]=v):v=t[3],t[4]!==m||t[5]!==u?(x={width:u,height:m},t[4]=m,t[5]=u,t[6]=x):x=t[6],t[7]!==g||t[8]!==h||t[9]!==f||t[10]!==y?(S=g?(0,I.jsx)("div",{className:fr.top,children:(0,I.jsx)(da,{className:fr.close,"aria-label":f.formatMessage({id:"cXt3NU",defaultMessage:"Close Popup"}),focusable:h,onClick:y,children:(0,I.jsx)(Xl,{className:fr.closeIcon})})}):null,t[7]=g,t[8]=h,t[9]=f,t[10]=y,t[11]=S):S=t[11];const w=h?null:"true",C=h?"0":"-1";let j;t[12]!==f?(j=f.formatMessage({id:"17zT4Q",defaultMessage:"Popup"}),t[12]=f,t[13]=j):j=t[13];const k=d||"about:blank";let M,N;return t[14]!==w||t[15]!==C||t[16]!==j||t[17]!==k?(M=(0,I.jsx)("iframe",{className:fr.iframe,"aria-hidden":w,tabIndex:C,title:j,src:k,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0}),t[14]=w,t[15]=C,t[16]=j,t[17]=k,t[18]=M):M=t[18],t[19]!==x||t[20]!==S||t[21]!==M||t[22]!==v?(N=(0,I.jsxs)("div",{className:v,style:x,children:[S,M]}),t[19]=x,t[20]=S,t[21]=M,t[22]=v,t[23]=N):N=t[23],N}var vr=l(3608);function xr(e,t){const l=(0,i.c)(8);let a;l[0]!==e?(a=void 0===e?{}:e,l[0]=e,l[1]=a):a=l[1];const o=a;let s;l[2]!==t?(s=void 0===t?{}:t,l[2]=t,l[3]=s):s=l[3];const{disabled:r}=s,c=void 0!==r&&r;let d,u;l[4]!==c||l[5]!==o?(d=()=>{const e=e=>{if(["input","textarea"].reduce((t,l)=>t||e.target.matches(l),!1))return;const{key:t}=e,l=t.toLowerCase();void 0!==o[l]&&o[l]()};return c||window.addEventListener("keydown",e),()=>{c||window.removeEventListener("keydown",e)}},u=[c,o],l[4]=c,l[5]=o,l[6]=d,l[7]=u):(d=l[6],u=l[7]),(0,n.useEffect)(d,u)}function Sr(e,t={},l=1){const{maxParentDistance:n=7,tags:a=["BUTTON","A","INPUT","TEXTAREA"]}=t||{},{tagName:i=null,parentNode:o=null,dataset:s={},classList:r=null}=e||{};return null!==i&&"BODY"!==i&&(!!(-1!==a.filter(e=>null!==e).map(e=>e.toLowerCase()).indexOf(i.toLowerCase())||null!==r&&r.contains("clickable"))||l<n&&Sr(o,t,l+1))}function wr(e,t){const{id:l}=t;return{[l]:!0,...e}}function Cr(e,t={},l=1){const{maxParentDistance:n=5}=t||{},{tagName:a=null,parentNode:i=null,dataset:o={}}=e||{};return"BODY"!==a&&(void 0!==o.draggable||l<n&&Cr(i,t,l+1))}const jr={onTouchMove:e=>e.stopPropagation(),onTouchStart:e=>e.stopPropagation(),onTouchEnd:e=>e.stopPropagation(),onPointerMove:e=>e.stopPropagation(),onPointerUp:e=>e.stopPropagation(),onPointerDown:e=>e.stopPropagation()};var kr={container:"micromag-viewer-buttons-button-container",icon:"micromag-viewer-buttons-button-icon",label:"micromag-viewer-buttons-button-label",asLink:"micromag-viewer-buttons-button-asLink",withIcon:"micromag-viewer-buttons-button-withIcon",right:"micromag-viewer-buttons-button-right","icon-right":"micromag-viewer-buttons-button-icon-right",withIconColumns:"micromag-viewer-buttons-button-withIconColumns",linkDisabled:"micromag-viewer-buttons-button-linkDisabled"};function Mr(e){const t=(0,i.c)(107);let l,n,a,o,s,r,d,u,m,g,h,y,p,f,b,v,x,S,w,C,j,k,M,N,$;t[0]!==e?(({type:n,theme:p,size:w,href:C,external:j,direct:k,target:M,label:N,children:$,focusable:a,active:o,icon:s,iconPosition:r,disabled:d,loading:u,disableOnLoading:m,withoutTheme:g,asLink:h,ariaLabel:y,onClick:f,className:b,iconClassName:v,labelClassName:x,refButton:S,...l}=e),t[0]=e,t[1]=l,t[2]=n,t[3]=a,t[4]=o,t[5]=s,t[6]=r,t[7]=d,t[8]=u,t[9]=m,t[10]=g,t[11]=h,t[12]=y,t[13]=p,t[14]=f,t[15]=b,t[16]=v,t[17]=x,t[18]=S,t[19]=w,t[20]=C,t[21]=j,t[22]=k,t[23]=M,t[24]=N,t[25]=$):(l=t[1],n=t[2],a=t[3],o=t[4],s=t[5],r=t[6],d=t[7],u=t[8],m=t[9],g=t[10],h=t[11],y=t[12],p=t[13],f=t[14],b=t[15],v=t[16],x=t[17],S=t[18],w=t[19],C=t[20],j=t[21],k=t[22],M=t[23],N=t[24],$=t[25]);const F=void 0===n?"button":n,T=void 0===p?null:p,R=void 0===C?null:C,z=void 0!==j&&j,L=void 0!==k&&k,A=void 0===M?"_blank":M,P=void 0===N?null:N,B=void 0===$?null:$,E=void 0===a||a,V=void 0===s?null:s,D=void 0===r?"inline":r,_=void 0!==d&&d,O=void 0!==u&&u,H=void 0===m||m,Z=void 0!==h&&h,W=void 0===y?null:y,q=void 0===f?null:f,G=void 0===b?null:b,Y=void 0===v?null:v,U=void 0===x?null:x,Q=void 0===S?null:S,X=P||B;let K;t[26]!==X?(K=null!==X?(0,I.jsx)(zl,{children:X}):null,t[26]=X,t[27]=K):K=t[27];const ee=K,te=null!==P&&null!==B,le=null!==V,ne=le&&("inline"===D||null===ee),ae=le&&!ne;let ie,oe,se,re;if(t[28]!==Z||t[29]!==B||t[30]!==G||t[31]!==L||t[32]!==_||t[33]!==z||t[34]!==E||t[35]!==te||t[36]!==le||t[37]!==ae||t[38]!==ne||t[39]!==R||t[40]!==V||t[41]!==Y||t[42]!==D||t[43]!==U||t[44]!==O||t[45]!==q||t[46]!==l||t[47]!==Q||t[48]!==A||t[49]!==ee||t[50]!==T){re=Symbol.for("react.early_return_sentinel");e:{let e;ie=Ft([kr.container,kr[`icon-${D}`],G,{[kr.withIcon]:le,[kr.withIconColumns]:ae,[kr.withText]:null!==ee,[kr.isLink]:null!==R,[kr.asLink]:Z,[kr.isDisabled]:_,[kr.isLoading]:O}]),t[55]!==T?(e=T||{},t[55]=T,t[56]=e):e=t[56];const{colors:n}=e,a=void 0===n?null:n;let i;t[57]!==a?(i=a||{},t[57]=a,t[58]=i):i=t[58];const{primary:o}=i,s=void 0===o?null:o;let r;t[59]!==s?(r=J(s,"color"),t[59]=s,t[60]=r):r=t[60];const d=r;let u,m,g;t[61]!==d?(u={...d},t[61]=d,t[62]=u):u=t[62],oe=u,t[63]!==ne||t[64]!==V||t[65]!==Y||t[66]!==U||t[67]!==ee?(m=ne?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("span",{className:Ft([kr.icon,Y]),children:V}),null!==ee?(0,I.jsx)("span",{className:Ft([kr.label,U]),children:ee}):null]}):null,t[63]=ne,t[64]=V,t[65]=Y,t[66]=U,t[67]=ee,t[68]=m):m=t[68],t[69]!==B||t[70]!==te||t[71]!==ae||t[72]!==V||t[73]!==Y||t[74]!==D||t[75]!==U||t[76]!==ee?(g=ae?(0,I.jsxs)(I.Fragment,{children:["left"===D?(0,I.jsx)("span",{className:Ft([kr.icon,kr.left,{[Y]:null!==Y&&"left"===D}]),children:V}):null,(0,I.jsx)("span",{className:Ft([kr.center,kr.label,U]),children:ee}),"right"===D?(0,I.jsx)("span",{className:Ft([kr.icon,kr.right,{[Y]:null!==Y&&"right"===D}]),children:V}):null,te?B:null]}):null,t[69]=B,t[70]=te,t[71]=ae,t[72]=V,t[73]=Y,t[74]=D,t[75]=U,t[76]=ee,t[77]=g):g=t[77];const h=le?null:ee,y=te?B:null;let p;if(t[78]!==m||t[79]!==g||t[80]!==h||t[81]!==y?(p=(0,I.jsxs)(I.Fragment,{children:[m,g,h,y]}),t[78]=m,t[79]=g,t[80]=h,t[81]=y,t[82]=p):p=t[82],se=p,null!==R){const e=Ft([ie,{disabled:_,[kr.linkDisabled]:_}]);let n;t[83]!==oe||t[84]!==se||t[85]!==L||t[86]!==_||t[87]!==z||t[88]!==E||t[89]!==R||t[90]!==e||t[91]!==q||t[92]!==l||t[93]!==Q||t[94]!==A?(n=z||L?(0,I.jsx)("a",{...l,href:_?null:R,className:e,style:oe,onClick:q,target:z?A:null,ref:Q,tabIndex:E?"":"-1",children:se}):(0,I.jsx)(c.N_,{...l,href:R,className:e,style:oe,onClick:q,ref:Q,tabIndex:E?"":"-1",children:se}),t[83]=oe,t[84]=se,t[85]=L,t[86]=_,t[87]=z,t[88]=E,t[89]=R,t[90]=e,t[91]=q,t[92]=l,t[93]=Q,t[94]=A,t[95]=n):n=t[95],re=n;break e}}t[28]=Z,t[29]=B,t[30]=G,t[31]=L,t[32]=_,t[33]=z,t[34]=E,t[35]=te,t[36]=le,t[37]=ae,t[38]=ne,t[39]=R,t[40]=V,t[41]=Y,t[42]=D,t[43]=U,t[44]=O,t[45]=q,t[46]=l,t[47]=Q,t[48]=A,t[49]=ee,t[50]=T,t[51]=ie,t[52]=oe,t[53]=se,t[54]=re}else ie=t[51],oe=t[52],se=t[53],re=t[54];if(re!==Symbol.for("react.early_return_sentinel"))return re;const ce=_||H&&O,de=E?"0":"-1";let ue;return t[96]!==W||t[97]!==ie||t[98]!==oe||t[99]!==se||t[100]!==q||t[101]!==l||t[102]!==Q||t[103]!==ce||t[104]!==de||t[105]!==F?(ue=(0,I.jsx)("button",{...l,type:F,className:ie,style:oe,onClick:q,disabled:ce,ref:Q,"aria-label":W,tabIndex:de,children:se}),t[96]=W,t[97]=ie,t[98]=oe,t[99]=se,t[100]=q,t[101]=l,t[102]=Q,t[103]=ce,t[104]=de,t[105]=F,t[106]=ue):ue=t[106],ue}function Nr(e){const t=(0,i.c)(12);let l,n,a;t[0]!==e?(({iconClassName:n,className:a,...l}=e),t[0]=e,t[1]=l,t[2]=n,t[3]=a):(l=t[1],n=t[2],a=t[3]);const o=void 0===n?null:n,s=void 0===a?null:a;let r,c,d;return t[4]!==s?(r=Ft(["micromag-viewer-buttons-icon-button-container",s]),t[4]=s,t[5]=r):r=t[5],t[6]!==o?(c=Ft(["micromag-viewer-buttons-icon-button-icon",o]),t[6]=o,t[7]=c):c=t[7],t[8]!==l||t[9]!==r||t[10]!==c?(d=(0,I.jsx)(Mr,{className:r,labelClassName:"micromag-viewer-buttons-icon-button-label",iconClassName:c,...l}),t[8]=l,t[9]=r,t[10]=c,t[11]=d):d=t[11],d}function $r(e){const t=(0,i.c)(20);let l,n,a;t[0]!==e?(({single:n,className:a,...l}=e),t[0]=e,t[1]=l,t[2]=n,t[3]=a):(l=t[1],n=t[2],a=t[3]);const o=void 0!==n&&n,s=void 0===a?null:a,r=(0,A.tz)();let c,d,u,m,g,h,y,p;return t[4]!==s?(c=Ft([s]),t[4]=s,t[5]=c):c=t[5],t[6]!==r?(d=r.formatMessage({id:"dIvwcD",defaultMessage:"Close"}),t[6]=r,t[7]=d):d=t[7],t[8]!==o?(u=o?null:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("mask",{id:"path-1-inside-1_560_19911",fill:"currentColor",children:(0,I.jsx)("path",{d:"M0 7C0 4.79086 1.79086 3 4 3H12C14.2091 3 16 4.79086 16 7V19C16 21.2091 14.2091 23 12 23H4C1.79086 23 0 21.2091 0 19V7Z"})}),(0,I.jsx)("path",{d:"M0 3H16H0ZM16 19C16 21.7614 13.7614 24 11 24H4C1.23858 24 -1 21.7614 -1 19H1C1 20.6569 2.34315 22 4 22H12C14.2091 22 16 20.6569 16 19ZM4 24C1.23858 24 -1 21.7614 -1 19V8C-1 5.23858 1.23858 3 4 3C2.34315 3 1 4.79086 1 7V19C1 20.6569 2.34315 22 4 22V24ZM16 3V23V3Z",fill:"currentColor",mask:"url(#path-1-inside-1_560_19911)"})]}),t[8]=o,t[9]=u):u=t[9],t[10]===Symbol.for("react.memo_cache_sentinel")?(m=(0,I.jsx)("rect",{x:"3.5",y:"0.5",width:"15",height:"19",rx:"2.5",stroke:"currentColor"}),g=(0,I.jsx)("path",{d:"M7.35333 6.35333L14.6467 13.6467",stroke:"currentColor",strokeLinejoin:"round"}),h=(0,I.jsx)("path",{d:"M7.35333 13.6467L14.6467 6.35333",stroke:"currentColor"}),t[10]=m,t[11]=g,t[12]=h):(m=t[10],g=t[11],h=t[12]),t[13]!==u?(y=(0,I.jsxs)("svg",{width:"19",height:"23",viewBox:"0 0 19 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u,m,g,h]}),t[13]=u,t[14]=y):y=t[14],t[15]!==l||t[16]!==c||t[17]!==d||t[18]!==y?(p=(0,I.jsx)(Nr,{className:c,label:d,icon:y,...l}),t[15]=l,t[16]=c,t[17]=d,t[18]=y,t[19]=p):p=t[19],p}function Fr(e){const t=(0,i.c)(13);let l,n,a;t[0]!==e?(({className:n,iconClassName:a,...l}=e),t[0]=e,t[1]=l,t[2]=n,t[3]=a):(l=t[1],n=t[2],a=t[3]);const o=void 0===n?null:n,s=(0,A.tz)();let r,c,d,u;return t[4]!==o?(r=Ft([o]),t[4]=o,t[5]=r):r=t[5],t[6]!==s?(c=s.formatMessage({id:"F/gl4b",defaultMessage:"Menu"}),t[6]=s,t[7]=c):c=t[7],t[8]===Symbol.for("react.memo_cache_sentinel")?(d=(0,I.jsxs)("svg",{width:"19",height:"23",viewBox:"0 0 19 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,I.jsx)("mask",{id:"path-1-inside-1_572_15622",fill:"currentColor",children:(0,I.jsx)("path",{d:"M0 7C0 4.79086 1.79086 3 4 3H12C14.2091 3 16 4.79086 16 7V19C16 21.2091 14.2091 23 12 23H4C1.79086 23 0 21.2091 0 19V7Z"})}),(0,I.jsx)("path",{d:"M0 3H16H0ZM16 19C16 21.7614 13.7614 24 11 24H4C1.23858 24 -1 21.7614 -1 19H1C1 20.6569 2.34315 22 4 22H12C14.2091 22 16 20.6569 16 19ZM4 24C1.23858 24 -1 21.7614 -1 19V8C-1 5.23858 1.23858 3 4 3C2.34315 3 1 4.79086 1 7V19C1 20.6569 2.34315 22 4 22V24ZM16 3V23V3Z",fill:"currentColor",mask:"url(#path-1-inside-1_572_15622)"}),(0,I.jsx)("rect",{x:"3.5",y:"0.5",width:"15",height:"19",rx:"2.5",stroke:"currentColor"})]}),t[8]=d):d=t[8],t[9]!==l||t[10]!==r||t[11]!==c?(u=(0,I.jsx)(Nr,{className:r,label:c,iconPosition:"right",icon:d,...l}),t[9]=l,t[10]=r,t[11]=c,t[12]=u):u=t[12],u}function Tr(e){const t=(0,i.c)(12);let l,n;t[0]!==e?(({className:n,...l}=e),t[0]=e,t[1]=l,t[2]=n):(l=t[1],n=t[2]);const a=void 0===n?null:n,o=(0,A.tz)();let s,r,c,d;return t[3]!==a?(s=Ft([a]),t[3]=a,t[4]=s):s=t[4],t[5]!==o?(r=o.formatMessage({id:"7tw6U2",defaultMessage:"Share"}),t[5]=o,t[6]=r):r=t[6],t[7]===Symbol.for("react.memo_cache_sentinel")?(c=(0,I.jsxs)("svg",{width:"16",height:"22",viewBox:"0 0 16 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,I.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.55806 0.183058C7.80213 -0.0610194 8.19786 -0.0610194 8.44194 0.183058L12.4194 4.16053C12.6635 4.40461 12.6635 4.80034 12.4194 5.04442C12.1753 5.2885 11.7796 5.2885 11.5355 5.04442L8.625 2.13388V11.25H7.375V2.13388L4.46446 5.04442C4.22039 5.2885 3.82466 5.2885 3.58058 5.04442C3.3365 4.80034 3.3365 4.40461 3.58058 4.16053L7.55806 0.183058Z",fill:"currentColor"}),(0,I.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 18.25V10.25C16 8.59315 14.6569 7.25 13 7.25C14.1046 7.25 15 8.59315 15 10.25V18.25C15 19.3546 14.1046 20.25 13 20.25H3C1.89543 20.25 1 19.3546 1 18.25V10.25C1 8.59315 1.89543 7.25 3 7.25C1.34315 7.25 0 8.59315 0 10.25V18.25C0 19.9069 1.34315 21.25 3 21.25H13C14.6569 21.25 16 19.9069 16 18.25Z",fill:"currentColor"})]}),t[7]=c):c=t[7],t[8]!==l||t[9]!==s||t[10]!==r?(d=(0,I.jsx)(Nr,{className:s,label:r,iconPosition:"left",icon:c,...l}),t[8]=l,t[9]=s,t[10]=r,t[11]=d):d=t[11],d}function Rr(e){const t=(0,i.c)(23),{className:l,progressSpring:n,button:a,toggledButton:o,toggledButtonClassName:s}=e,r=void 0===l?null:l,c=void 0===n?null:n,d=void 0===a?null:a,u=void 0===o?null:o,m=void 0===s?null:s;if(null===d)return null;let g,h,y,p,f,b,v,x,S;return t[0]!==r?(g=Ft(["micromag-viewer-buttons-toggle-button-container",r]),t[0]=r,t[1]=g):g=t[1],t[2]!==c?(h=c.to(Lr),t[2]=c,t[3]=h):h=t[3],t[4]!==h?(y={transform:h},t[4]=h,t[5]=y):y=t[5],t[6]!==d||t[7]!==y?(p=(0,I.jsx)(Tl.CS.div,{className:"micromag-viewer-buttons-toggle-button-normal",style:y,children:d}),t[6]=d,t[7]=y,t[8]=p):p=t[8],t[9]!==m?(f=Ft(["micromag-viewer-buttons-toggle-button-toggled",m]),t[9]=m,t[10]=f):f=t[10],t[11]!==c?(b=c.to(zr),t[11]=c,t[12]=b):b=t[12],t[13]!==b?(v={transform:b},t[13]=b,t[14]=v):v=t[14],t[15]!==f||t[16]!==v||t[17]!==u?(x=(0,I.jsx)(Tl.CS.div,{className:f,style:v,children:u}),t[15]=f,t[16]=v,t[17]=u,t[18]=x):x=t[18],t[19]!==x||t[20]!==g||t[21]!==p?(S=(0,I.jsxs)("div",{className:g,children:[p,x]}),t[19]=x,t[20]=g,t[21]=p,t[22]=S):S=t[22],S}function zr(e){return`translateY(${-100*(e-1)}%)`}function Lr(e){return`translateY(${-100*e}%)`}function Ir(e){const t=(0,i.c)(32),{progressSpring:l,theme:n,children:a,className:o}=e,s=void 0===n?null:n,r=void 0===a?null:a,c=void 0===o?null:o;let d;t[0]!==s?(d=s||{},t[0]=s,t[1]=d):d=t[1];const{background:u}=d,m=void 0===u?null:u;let g;t[2]!==m?(g=m||{},t[2]=m,t[3]=g):g=t[3];const{color:h}=g,y=void 0===h?null:h;let p;t[4]!==y?(p=J(y,"backgroundColor"),t[4]=y,t[5]=p):p=t[5];const f=p;let b,v,x,S,w,C,j,k,M,N;return t[6]!==c?(b=Ft(["micromag-viewer-menus-menu-container-container",c]),t[6]=c,t[7]=b):b=t[7],t[8]===Symbol.for("react.memo_cache_sentinel")?(v={pointerEvents:"none"},t[8]=v):v=t[8],t[9]!==l?(x=l.to(Er),t[9]=l,t[10]=x):x=t[10],t[11]!==l?(S=l.to(Br),t[11]=l,t[12]=S):S=t[12],t[13]!==l?(w=l.to(Pr),t[13]=l,t[14]=w):w=t[14],t[15]!==f||t[16]!==l||t[17]!==x||t[18]!==S||t[19]!==w?(C={opacity:l,transform:x,pointerEvents:S,zIndex:w,...f},t[15]=f,t[16]=l,t[17]=x,t[18]=S,t[19]=w,t[20]=C):C=t[20],t[21]!==r||t[22]!==C?(j=(0,I.jsx)(Tl.CS.div,{className:"micromag-viewer-menus-menu-container-heightContainer",style:C,children:r}),t[21]=r,t[22]=C,t[23]=j):j=t[23],t[24]!==l?(k=l.to(Ar),t[24]=l,t[25]=k):k=t[25],t[26]!==k?(M=(0,I.jsx)(Tl.CS.div,{className:"micromag-viewer-menus-menu-container-backdrop",style:{opacity:k}}),t[26]=k,t[27]=M):M=t[27],t[28]!==j||t[29]!==M||t[30]!==b?(N=(0,I.jsxs)("div",{className:b,style:v,children:[j,M]}),t[28]=j,t[29]=M,t[30]=b,t[31]=N):N=t[31],N}function Ar(e){return 1-(1-e)**5}function Pr(e){return Math.round(2+e)}function Br(e){return e<.25?"none":"auto"}function Er(e){return`translateY(${-2*(1-e)}rem)`}var Vr={container:"micromag-viewer-menus-menu-dot-container",dot:"micromag-viewer-menus-menu-dot-dot",progress:"micromag-viewer-menus-menu-dot-progress",vertical:"micromag-viewer-menus-menu-dot-vertical"};function Dr(e){const t=(0,i.c)(29),{current:l,active:a,colors:o,count:s,subIndex:r,vertical:c,onClick:d,className:u}=e,m=void 0!==l&&l,g=void 0!==a&&a,h=void 0===o?null:o,y=void 0===s?1:s,p=void 0===r?0:r,f=void 0!==c&&c,b=void 0===d?null:d,v=void 0===u?null:u;let x;t[0]!==h?(x=h||{},t[0]=h,t[1]=x):x=t[1];const{primary:S,secondary:w}=x,C=void 0===S?"rgba(255, 255, 255, 1)":S,j=void 0===w?"rgba(255, 255, 255, 0.25)":w,k=(0,Nt.U2)();let M;t[2]!==k?(M=()=>({ref:k,scaleX:0,config:{tension:200,friction:30}}),t[2]=k,t[3]=M):M=t[3];const[N,$]=(0,Nt.zh)(M);let F,T,R,z,L,A,P,B;return t[4]!==g||t[5]!==y||t[6]!==m||t[7]!==$||t[8]!==p?(F=()=>{const e=y>1&&m?(p+1)/y:g?1:0;$.start({scaleX:e,immediate:!m})},T=[g,m,p,y,$],t[4]=g,t[5]=y,t[6]=m,t[7]=$,t[8]=p,t[9]=F,t[10]=T):(F=t[9],T=t[10]),(0,n.useEffect)(F,T),t[11]!==v||t[12]!==m||t[13]!==f?(R=Ft([Vr.container,v,{[Vr.active]:m,[Vr.vertical]:f}]),t[11]=v,t[12]=m,t[13]=f,t[14]=R):R=t[14],t[15]!==b?(z=e=>{e.stopPropagation(),null!==b&&b()},t[15]=b,t[16]=z):z=t[16],t[17]!==j?(L={backgroundColor:j},t[17]=j,t[18]=L):L=t[18],t[19]!==N||t[20]!==C?(A=(0,I.jsx)(Tl.CS.div,{className:Vr.progress,style:{...N,backgroundColor:C}}),t[19]=N,t[20]=C,t[21]=A):A=t[21],t[22]!==L||t[23]!==A?(P=(0,I.jsx)("div",{className:Vr.dot,style:L,children:A}),t[22]=L,t[23]=A,t[24]=P):P=t[24],t[25]!==R||t[26]!==z||t[27]!==P?(B=(0,I.jsx)("button",{type:"button",className:R,onClick:z,tabIndex:-1,"aria-hidden":"true",children:P}),t[25]=R,t[26]=z,t[27]=P,t[28]=B):B=t[28],B}var _r="micromag-viewer-menus-menu-dots-withButtons",Or="micromag-viewer-menus-menu-dots-vertical";const Hr=[];function Zr(e){const t=(0,i.c)(56);let l,n,a,o,s,r,c,d,u,m,g,h;t[0]!==e?(({direction:n,items:s,onClickDot:r,onClickScreensMenu:c,colors:d,closeable:u,buttons:m,withItemClick:g,withoutScreensMenu:h,onClose:a,className:o,...l}=e),t[0]=e,t[1]=l,t[2]=n,t[3]=a,t[4]=o,t[5]=s,t[6]=r,t[7]=c,t[8]=d,t[9]=u,t[10]=m,t[11]=g,t[12]=h):(l=t[1],n=t[2],a=t[3],o=t[4],s=t[5],r=t[6],c=t[7],d=t[8],u=t[9],m=t[10],g=t[11],h=t[12]);const y=void 0===n?"horizontal":n,p=void 0===s?Hr:s,f=void 0===r?null:r,b=void 0===c?null:c,v=void 0===d?null:d,x=void 0!==u&&u,S=void 0===m?null:m,w=void 0!==g&&g,C=void 0!==h&&h,j=void 0===a?null:a,k=void 0===o?null:o;let M;t[13]!==v?(M=v||{},t[13]=v,t[14]=M):M=t[14];const{primary:N}=M,$=void 0===N?"rgba(255, 255, 255, 1)":N,F=(0,A.tz)(),T=p.findIndex(Wr);let R;t[15]!==l?(R=l||{},t[15]=l,t[16]=R):R=t[16];const{style:z}=R,L=x||null!==S,P="vertical"===y;let B,E,V,D,_,O;if(t[17]!==k||t[18]!==L||t[19]!==P?(B=Ft(["micromag-viewer-menus-menu-dots-container",{[_r]:L,[Or]:P},k]),t[17]=k,t[18]=L,t[19]=P,t[20]=B):B=t[20],t[21]!==T||t[22]!==F||t[23]!==p.length?(E=F.formatMessage({id:"bLYuuN",defaultMessage:"You are on screen {current} of {total}."},{current:T+1,total:p.length}),t[21]=T,t[22]=F,t[23]=p.length,t[24]=E):E=t[24],t[25]!==v||t[26]!==T||t[27]!==y||t[28]!==p||t[29]!==f||t[30]!==b||t[31]!==w||t[32]!==C){let e;t[34]!==v||t[35]!==T||t[36]!==y||t[37]!==f||t[38]!==b||t[39]!==w||t[40]!==C?(e=(e,t)=>{const{current:l,count:n,subIndex:a}=e||{},i=void 0!==l&&l,o=void 0===n?1:n,s=void 0===a?0:a;return(0,I.jsx)(Dr,{current:i,active:t<=T,colors:v,count:o,subIndex:s,className:"micromag-viewer-menus-menu-dots-dot",onClick:()=>{(w||C)&&null!==f?f(e):w||null===b||b()},vertical:"vertical"===y},t)},t[34]=v,t[35]=T,t[36]=y,t[37]=f,t[38]=b,t[39]=w,t[40]=C,t[41]=e):e=t[41],V=p.map(e),t[25]=v,t[26]=T,t[27]=y,t[28]=p,t[29]=f,t[30]=b,t[31]=w,t[32]=C,t[33]=V}else V=t[33];return t[42]!==x||t[43]!==F||t[44]!==j||t[45]!==$?(D=x?(0,I.jsx)("button",{type:"button",className:"micromag-viewer-menus-menu-dots-closeButton",onClick:j,title:F.formatMessage({id:"dj/p/q",defaultMessage:"Close"}),"aria-label":F.formatMessage({id:"dj/p/q",defaultMessage:"Close"}),style:{color:$},children:(0,I.jsx)(Ol,{})}):null,t[42]=x,t[43]=F,t[44]=j,t[45]=$,t[46]=D):D=t[46],t[47]!==S?(_=null!==S?(0,I.jsx)("div",{className:"micromag-viewer-menus-menu-dots-buttons",children:S}):null,t[47]=S,t[48]=_):_=t[48],t[49]!==z||t[50]!==B||t[51]!==E||t[52]!==V||t[53]!==D||t[54]!==_?(O=(0,I.jsxs)("nav",{className:B,"aria-label":E,style:z,children:[V,D,_]}),t[49]=z,t[50]=B,t[51]=E,t[52]=V,t[53]=D,t[54]=_,t[55]=O):O=t[55],O}function Wr(e){const{current:t}=e;return void 0!==t&&t}function qr(e){const t=(0,i.c)(25),{color:l,className:n}=e,a=void 0===l?"currentColor":l,o=void 0===n?null:n;let s,r,c,d,u,m,g,h,y,p,f,b;return t[0]!==a?(u=(0,I.jsx)("path",{fill:a,d:"m34.3.69v55.55h-10.42v-23.82l-4.31,23.82h-4.86l-4.31-23.82v23.82H0V.69h10.42l6.74,32.08L23.89.69h10.42Z"}),m=(0,I.jsx)("path",{fill:a,d:"m46.8.69v55.55h-10.42V.69h10.42Z"}),g=(0,I.jsx)("path",{fill:a,d:"m64.57,16.53c0-4.72-.35-6.11-2.64-6.11s-2.64,1.39-2.64,6.11v23.89c0,4.72.35,6.11,2.64,6.11s2.64-1.39,2.64-6.11v-6.74h10.42v7.43c0,11.18-4.65,15.83-13.05,15.83s-13.05-4.65-13.05-15.83V15.83c0-11.18,4.65-15.83,13.05-15.83s13.05,4.65,13.05,15.83v7.43h-10.42v-6.74Z"}),h=(0,I.jsx)("path",{fill:a,d:"m104.08,56.24h-10.42c-.69-.83-.76-2.85-.76-4.93v-10.69c0-4.03-1.39-4.72-5.42-4.72v20.35h-10.42V.69h10.42c11.87,0,15.83,3.96,15.83,15.14v4.93c0,6.11-1.87,10.07-5.14,12.43,3.54,1.46,5.14,4.31,5.14,9.51v8.61c0,2.08.07,4.1.76,4.93Zm-16.6-45.13v14.37c4.03,0,5.42-.69,5.42-4.72v-4.93c0-4.03-1.39-4.72-5.42-4.72Z"}),y=(0,I.jsx)("path",{fill:a,d:"m173.63.69v55.55h-10.42v-23.82l-4.31,23.82h-4.86l-4.31-23.82v23.82h-10.42V.69h10.42l6.74,32.08L163.22.69h10.42Z"}),p=(0,I.jsx)("path",{fill:a,d:"m191.68,46.8h-5.49l-.76,9.44h-10.42L181.82.69h14.23l6.81,55.55h-10.42l-.76-9.44Zm-.83-10.42l-1.87-24.65-1.94,24.65h3.82Z"}),f=(0,I.jsx)("path",{fill:a,d:"m219.25,23.26v-6.74c0-4.72-.42-6.11-2.64-6.11s-2.64,1.39-2.64,6.11v23.89c0,4.72.35,6.11,2.64,6.11s2.64-1.39,2.64-6.11v-2.57h-2.64v-10.42h13.05v28.82h-4.17l-1.67-3.96c-2.15,2.71-5.07,4.65-8.82,4.65-7.5,0-11.46-4.65-11.46-15.83V15.83c0-11.18,4.65-15.83,13.05-15.83s13.05,4.65,13.05,15.83v7.43h-10.42Z"}),s=(0,I.jsx)("rect",{fill:a,x:"105.65",y:".69",width:"31.25",height:"55.55",rx:"3",ry:"3"}),r=(0,I.jsx)("path",{fill:a,d:"m304.96,7.72c-2.02,0-2.55,1.05-2.55,4.29v13.04c0,3.24.52,4.29,2.55,4.29s2.55-1.05,2.55-4.29v-13.04c0-3.24-.52-4.29-2.55-4.29Z"}),c=(0,I.jsx)("path",{fill:a,d:"m283.9,8.07h-.7v20.93h.7c3.42,0,4.46-.52,4.46-3.94v-13.04c0-3.42-1.05-3.94-4.46-3.94Z"}),d=(0,I.jsx)("path",{fill:a,d:"m313.68.68h-75.86c-1.15,0-2.08.93-2.08,2.08v31.54c0,1.15.93,2.08,2.08,2.08h75.86c1.15,0,2.08-.93,2.08-2.08V2.76c0-1.15-.93-2.08-2.08-2.08Zm-67,32.15c-4.53,0-6.31-2.34-6.31-9.87h3.49c0,5.34.77,6.38,2.83,6.38,1.64,0,2.27-.84,2.27-3.77s-.98-4.19-3.56-6.21c-2.48-1.92-4.85-3.84-4.85-8.41,0-4.12,1.74-6.73,5.79-6.73s5.93,2.62,5.93,8.48h-3.49c0-4.19-.94-4.99-2.44-4.99s-2.3.8-2.3,3.24,1.22,3.77,3.28,5.34c2.96,2.27,5.13,4.22,5.13,9.28,0,4.6-1.67,7.25-5.75,7.25Zm17.82-24.76h-3.94v24.41h-3.49V8.07h-3.94v-3.49h11.37v3.49Zm13.46,16.99c0,5.62-1.99,7.78-6.03,7.78s-6.03-2.16-6.03-7.78V4.58h3.49v20.47c0,3.24.52,4.29,2.55,4.29s2.55-1.05,2.55-4.29V4.58h3.49v20.47Zm13.88,0c0,6.03-2.34,7.43-7.95,7.43h-4.19V4.58h4.19c5.62,0,7.95,1.33,7.95,7.43v13.04Zm5.33,7.43h-3.49V4.58h3.49v27.9Zm13.81-7.43c0,5.62-1.99,7.78-6.03,7.78s-6.03-2.16-6.03-7.78v-13.04c0-5.62,1.99-7.78,6.03-7.78s6.03,2.16,6.03,7.78v13.04Z"}),t[0]=a,t[1]=s,t[2]=r,t[3]=c,t[4]=d,t[5]=u,t[6]=m,t[7]=g,t[8]=h,t[9]=y,t[10]=p,t[11]=f):(s=t[1],r=t[2],c=t[3],d=t[4],u=t[5],m=t[6],g=t[7],h=t[8],y=t[9],p=t[10],f=t[11]),t[12]!==o||t[13]!==s||t[14]!==r||t[15]!==c||t[16]!==d||t[17]!==u||t[18]!==m||t[19]!==g||t[20]!==h||t[21]!==y||t[22]!==p||t[23]!==f?(b=(0,I.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 315.77 56.94",className:o,children:[u,m,g,h,y,p,f,s,r,c,d]}),t[12]=o,t[13]=s,t[14]=r,t[15]=c,t[16]=d,t[17]=u,t[18]=m,t[19]=g,t[20]=h,t[21]=y,t[22]=p,t[23]=f,t[24]=b):b=t[24],b}function Gr(e){const t=(0,i.c)(5),{className:l}=e,n=void 0===l?null:l;let a,o,s;return t[0]!==n?(a=Ft(["micromag-viewer-partials-micromag-branding-container",n]),t[0]=n,t[1]=a):a=t[1],t[2]===Symbol.for("react.memo_cache_sentinel")?(o=(0,I.jsxs)("a",{href:"https://micromag.media",target:"_blank",rel:"noopener noreferrer",className:"micromag-viewer-partials-micromag-branding-link",children:[(0,I.jsxs)("span",{className:"micromag-viewer-partials-micromag-branding-text",children:[(0,I.jsx)(A.sA,{id:"LiMAIC",defaultMessage:"This Micromag was"}),(0,I.jsx)("br",{}),(0,I.jsx)(A.sA,{id:"TDAOl2",defaultMessage:"created with"})]}),(0,I.jsx)(qr,{className:"micromag-viewer-partials-micromag-branding-icon"})]}),t[2]=o):o=t[2],t[3]!==a?(s=(0,I.jsx)("div",{className:a,children:o}),t[3]=a,t[4]=s):s=t[4],s}function Yr(e){const t=(0,i.c)(6),{className:l}=e,n=void 0===l?null:l;let a,o,s,r;return t[0]!==n?(a=Ft([n]),t[0]=n,t[1]=a):a=t[1],t[2]===Symbol.for("react.memo_cache_sentinel")?(o=(0,I.jsx)("rect",{width:"10",height:"16"}),s=(0,I.jsx)("polygon",{points:"10.5 1.5 10.5 16.5 1.5 16.5 1.5 17.5 11.5 17.5 11.5 1.5 10.5 1.5"}),t[2]=o,t[3]=s):(o=t[2],s=t[3]),t[4]!==a?(r=(0,I.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"11.5px",height:"17.5px",viewBox:"0 0 11.5 17.5",className:a,children:[o,s]}),t[4]=a,t[5]=r):r=t[5],r}var Ur="micromag-viewer-menus-menu-screen-isCurrent";function Qr(e){const t=(0,i.c)(33),{className:l,item:n,index:a,onClick:o,screenSize:s,alwaysRender:r,focusable:c}=e,d=void 0===l?null:l,u=void 0===n?null:n,m=void 0===a?0:a,g=void 0===o?null:o,h=void 0===s?null:s,y=void 0!==r&&r,p=void 0===c||c,f=(0,A.tz)(),{current:b,screen:v,count:x}=u||{},S=void 0!==b&&b,w=void 0===x?1:x;let C;t[0]!==h?(C=h||{},t[0]=h,t[1]=C):C=t[1];const{width:j,height:k}=C;let M;t[2]===Symbol.for("react.memo_cache_sentinel")?(M={rootMargin:"200px",persist:!1},t[2]=M):M=t[2];const{ref:N,visible:$}=Ot(M),F=void 0!==$&&$;let T;t[3]!==m||t[4]!==f?(T=f.formatMessage({id:"LkVfwW",defaultMessage:"Screen {index}"},{index:m+1}),t[3]=m,t[4]=f,t[5]=T):T=t[5];const R=`${T}${S?` ${f.formatMessage({id:"vmrJ8U",defaultMessage:"(current screen)"})}`:""}`,z=Ft(["micromag-viewer-menus-menu-screen-container",d,{[Ur]:S}]),L=k/j*100+"%";let P,B;t[6]!==L?(P={paddingBottom:L},t[6]=L,t[7]=P):P=t[7],t[8]!==u||t[9]!==g?(B=e=>{const t=void 0===e?null:e;null!==t&&t.stopPropagation(),null!==g&&g(u)},t[8]=u,t[9]=g,t[10]=B):B=t[10];const E=p?"0":"-1";let V,D,_,O,H;return t[11]!==R||t[12]!==B||t[13]!==E?(V=(0,I.jsx)("button",{type:"button",className:"micromag-viewer-menus-menu-screen-button",onClick:B,"aria-label":R,tabIndex:E}),t[11]=R,t[12]=B,t[13]=E,t[14]=V):V=t[14],t[15]!==w?(D=w>1?(0,I.jsxs)("div",{className:"micromag-viewer-menus-menu-screen-subScreenBadge",children:[(0,I.jsx)("span",{className:"micromag-viewer-menus-menu-screen-subScreenCount",children:w}),(0,I.jsx)(Yr,{className:"micromag-viewer-menus-menu-screen-subScreenIcon"})]}):null,t[15]=w,t[16]=D):D=t[16],t[17]!==y||t[18]!==p||t[19]!==v||t[20]!==k||t[21]!==j||t[22]!==F?(_=j>0&&k>0&&(F||y)?(0,I.jsx)(kn,{className:"micromag-viewer-menus-menu-screen-screen",screenWidth:j,screenHeight:k,screen:v,focusable:p,active:p,withSize:!0}):null,t[17]=y,t[18]=p,t[19]=v,t[20]=k,t[21]=j,t[22]=F,t[23]=_):_=t[23],t[24]!==D||t[25]!==_?(O=(0,I.jsxs)("div",{className:"micromag-viewer-menus-menu-screen-inner",children:[D,_]}),t[24]=D,t[25]=_,t[26]=O):O=t[26],t[27]!==N||t[28]!==z||t[29]!==P||t[30]!==V||t[31]!==O?(H=(0,I.jsxs)("div",{className:z,style:P,ref:N,children:[V,O]}),t[27]=N,t[28]=z,t[29]=P,t[30]=V,t[31]=O,t[32]=H):H=t[32],H}var Xr={container:"micromag-viewer-menus-menu-preview-container",content:"micromag-viewer-menus-menu-preview-content",scroll:"micromag-viewer-menus-menu-preview-scroll",scrollee:"micromag-viewer-menus-menu-preview-scrollee",titleContainer:"micromag-viewer-menus-menu-preview-titleContainer",headerContainer:"micromag-viewer-menus-menu-preview-headerContainer",title:"micromag-viewer-menus-menu-preview-title",nav:"micromag-viewer-menus-menu-preview-nav",items:"micromag-viewer-menus-menu-preview-items",item:"micromag-viewer-menus-menu-preview-item",inner:"micromag-viewer-menus-menu-preview-inner",frame:"micromag-viewer-menus-menu-preview-frame",screen:"micromag-viewer-menus-menu-preview-screen",micromagBrandingSeparator:"micromag-viewer-menus-menu-preview-micromagBrandingSeparator",micromagBrandingContainer:"micromag-viewer-menus-menu-preview-micromagBrandingContainer"};const Jr=[];function Kr(e){const t=(0,i.c)(49),{viewerTheme:l,header:n,footer:a,screenSize:o,title:s,menuWidth:r,items:c,focusable:d,onClickScreen:u,maxThumbsWidth:m,paddingTop:g,scrollDisabled:h,withMicromagBranding:y,className:p}=e,f=void 0===l?null:l,b=void 0===n?null:n,v=void 0===a?null:a,x=void 0===o?null:o,S=void 0===s?null:s,w=void 0===r?null:r,C=void 0===c?Jr:c,j=void 0===d||d,k=void 0===u?null:u,M=void 0===m?140:m,N=void 0===g?null:g,$=void 0!==h&&h,F=void 0!==y&&y,T=void 0===p?null:p,{ref:R,width:z}=_t(),L=void 0===z?0:z,A=Math.max(Math.floor(L/M),3);let P,B;if(t[0]!==f){const{background:e,textStyles:l}=f||{},n=void 0===e?null:e,a=void 0===l?null:l,{image:i}=n||{},o=void 0===i?null:i,{url:s}=o||{},r=void 0===s?null:s;P=null!==r?{backgroundImage:`url(${r})`}:null;const{title:c}=a||{},d=void 0===c?null:c,{textAlign:u,...m}=d||{};B=null!==d?ae(m):null,t[0]=f,t[1]=P,t[2]=B}else P=t[1],B=t[2];const E=B,V=null!==S,D=N+10;let _,O;t[3]!==T?(_=Ft([Xr.container,T]),t[3]=T,t[4]=_):_=t[4],t[5]!==P||t[6]!==w?(O={...P,width:w},t[5]=P,t[6]=w,t[7]=O):O=t[7];const H=j?null:"true";let Z,W,q,G,Y,U,Q,X,J;if(t[8]!==E||t[9]!==V||t[10]!==b||t[11]!==D||t[12]!==S?(Z=V&&null===b?(0,I.jsx)("div",{className:Xr.titleContainer,style:{paddingTop:D},children:(0,I.jsx)("h1",{className:Xr.title,style:{...E},children:S})}):(0,I.jsx)("div",{className:Xr.headerContainer,style:{paddingTop:D},children:b}),t[8]=E,t[9]=V,t[10]=b,t[11]=D,t[12]=S,t[13]=Z):Z=t[13],t[14]!==V||t[15]!==N?(W=V?null:{paddingTop:N},t[14]=V,t[15]=N,t[16]=W):W=t[16],t[17]!==j||t[18]!==C||t[19]!==k||t[20]!==x||t[21]!==A){let e;t[23]!==j||t[24]!==k||t[25]!==x||t[26]!==A?(e=(e,t)=>{const{screenId:l}=e||{},n={width:100/A+"%"},{width:a,height:i}=x||{};return(0,I.jsx)("li",{className:Xr.item,style:n,children:(0,I.jsx)("div",{className:Xr.inner,children:(0,I.jsx)("div",{className:Ft([Xr.frame,{[Xr.isLoading]:!1}]),style:{paddingBottom:i/a*100+"%"},children:(0,I.jsx)(Qr,{className:Xr.screen,item:e,index:t,screenSize:x,onClick:k,focusable:j})})})},`item-${l}`)},t[23]=j,t[24]=k,t[25]=x,t[26]=A,t[27]=e):e=t[27],q=C.map(e),t[17]=j,t[18]=C,t[19]=k,t[20]=x,t[21]=A,t[22]=q}else q=t[22];return t[28]!==q?(G=(0,I.jsx)("ul",{className:Xr.items,children:q}),t[28]=q,t[29]=G):G=t[29],t[30]!==W||t[31]!==G?(Y=(0,I.jsx)("nav",{className:Xr.nav,style:W,children:G}),t[30]=W,t[31]=G,t[32]=Y):Y=t[32],t[33]!==F?(U=F?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{className:Xr.micromagBrandingSeparator}),(0,I.jsx)(Gr,{className:Xr.micromagBrandingContainer})]}):null,t[33]=F,t[34]=U):U=t[34],t[35]!==v||t[36]!==$||t[37]!==Z||t[38]!==Y||t[39]!==U?(Q=(0,I.jsxs)(Ta,{className:Xr.scroll,scrolleeClassName:Xr.scrollee,disabled:$,children:[Z,Y,v,U]}),t[35]=v,t[36]=$,t[37]=Z,t[38]=Y,t[39]=U,t[40]=Q):Q=t[40],t[41]!==R||t[42]!==Q?(X=(0,I.jsx)("div",{className:Xr.content,ref:R,children:Q}),t[41]=R,t[42]=Q,t[43]=X):X=t[43],t[44]!==_||t[45]!==O||t[46]!==H||t[47]!==X?(J=(0,I.jsx)("div",{className:_,style:O,"aria-hidden":H,children:X}),t[44]=_,t[45]=O,t[46]=H,t[47]=X,t[48]=J):J=t[48],J}function ec(e){const t=(0,i.c)(18),{screen:l,title:n,url:a,description:o,className:s}=e,r=void 0===l?null:l,c=void 0===n?null:n,d=void 0===a?null:a,u=void 0===o?null:o,m=void 0===s?null:s;let g,h,y,p,f,b,v;return t[0]!==m?(g=Ft(["micromag-viewer-partials-micromag-preview-container",m]),t[0]=m,t[1]=g):g=t[1],t[2]!==r?(h=(0,I.jsx)("div",{className:"micromag-viewer-partials-micromag-preview-cover",children:(0,I.jsx)(kn,{screen:r,width:100,height:150,withSize:!0})}),t[2]=r,t[3]=h):h=t[3],t[4]!==c?(y=(0,I.jsx)("h3",{className:"micromag-viewer-partials-micromag-preview-title",children:c}),t[4]=c,t[5]=y):y=t[5],t[6]!==d?(p=d?(0,I.jsx)("div",{className:"micromag-viewer-partials-micromag-preview-url",children:d}):null,t[6]=d,t[7]=p):p=t[7],t[8]!==u?(f=(0,I.jsx)("p",{children:u}),t[8]=u,t[9]=f):f=t[9],t[10]!==f||t[11]!==y||t[12]!==p?(b=(0,I.jsxs)("div",{className:"micromag-viewer-partials-micromag-preview-info",children:[y,p,f]}),t[10]=f,t[11]=y,t[12]=p,t[13]=b):b=t[13],t[14]!==b||t[15]!==g||t[16]!==h?(v=(0,I.jsxs)("div",{className:g,children:[h,b]}),t[14]=b,t[15]=g,t[16]=h,t[17]=v):v=t[17],v}var tc={container:"micromag-viewer-menus-menu-share-container",content:"micromag-viewer-menus-menu-share-content",scroll:"micromag-viewer-menus-menu-share-scroll",inner:"micromag-viewer-menus-menu-share-inner",header:"micromag-viewer-menus-menu-share-header",mode:"micromag-viewer-menus-menu-share-mode",options:"micromag-viewer-menus-menu-share-options"};const lc=[];function nc(e){const t=(0,i.c)(50),{viewerTheme:l,menuWidth:a,title:o,description:s,items:r,shareOptions:c,focusable:d,paddingTop:u,currentScreenIndex:m,shareUrl:g,onShare:h,className:y}=e,p=void 0===l?null:l,f=void 0===a?null:a,b=void 0===o?null:o,v=void 0===s?null:s,x=void 0===r?lc:r,S=void 0===c?null:c,w=void 0===d||d,C=void 0===u?null:u,j=void 0===m?0:m,k=void 0===g?null:g,M=void 0===h?null:h,N=void 0===y?null:y;let $;t[0]!==p?($=p||{},t[0]=p,t[1]=$):$=t[1];const{background:F}=$,T=void 0===F?null:F;let R;t[2]!==T?(R=T||{},t[2]=T,t[3]=R):R=t[3];const{image:z}=R,L=void 0===z?null:z;let P;t[4]!==L?(P=L||{},t[4]=L,t[5]=P):P=t[5];const{url:B}=P,E=void 0===B?null:B;let V;t[6]!==E?(V=null!==E?{backgroundImage:`url(${E})`}:null,t[6]=E,t[7]=V):V=t[7];const D=V;let _;t[8]!==x[0]?(_=x[0]||{},t[8]=x[0],t[9]=_):_=t[9];const{screen:O}=_,H=void 0===O?null:O;let Z;t[10]!==x?(Z=x.find(ic),t[10]=x,t[11]=Z):Z=t[11];const W=Z;let q;t[12]!==W?(q=W||{},t[12]=W,t[13]=q):q=t[13];const{screen:G}=q,Y=void 0===G?null:G,[U,Q]=(0,n.useState)(!1);let X;t[14]===Symbol.for("react.memo_cache_sentinel")?(X=()=>{Q(ac)},t[14]=X):X=t[14];const J=X,K=U&&0!==j?`${k}/${j+1}`:k;let ee,te;t[15]!==N?(ee=Ft([tc.container,N]),t[15]=N,t[16]=ee):ee=t[16],t[17]!==D||t[18]!==f?(te={...D,width:f},t[17]=D,t[18]=f,t[19]=te):te=t[19];const le=w?null:"true";let ne;t[20]!==C?(ne={paddingTop:C},t[20]=C,t[21]=ne):ne=t[21];const ae=U?Y:H;let ie,oe,se,re,ce,de;return t[22]!==v||t[23]!==K||t[24]!==ae||t[25]!==b?(ie=(0,I.jsx)(ec,{className:tc.preview,screen:ae,title:b,url:K,description:v}),t[22]=v,t[23]=K,t[24]=ae,t[25]=b,t[26]=ie):ie=t[26],t[27]!==j||t[28]!==U?(oe=0!==j?(0,I.jsx)("div",{className:tc.mode,children:(0,I.jsxs)("label",{children:[(0,I.jsx)("input",{type:"checkbox",name:"currentScreen",value:"currentScreen",onChange:J,checked:U}),(0,I.jsx)(A.sA,{id:"xuPbeq",defaultMessage:"Start from the current screen"})]})}):null,t[27]=j,t[28]=U,t[29]=oe):oe=t[29],t[30]!==ie||t[31]!==oe?(se=(0,I.jsxs)("div",{className:tc.header,children:[ie,oe]}),t[30]=ie,t[31]=oe,t[32]=se):se=t[32],t[33]!==K||t[34]!==w||t[35]!==M||t[36]!==U||t[37]!==S||t[38]!==b||t[39]!==p?(re=(0,I.jsx)(Mo,{className:tc.options,itemClassName:tc.optionItem,buttonClassName:tc.optionButton,title:b,options:S,url:K,focusable:w,onShare:M,theme:p,shareCurrentScreen:U}),t[33]=K,t[34]=w,t[35]=M,t[36]=U,t[37]=S,t[38]=b,t[39]=p,t[40]=re):re=t[40],t[41]!==ne||t[42]!==se||t[43]!==re?(ce=(0,I.jsx)("div",{className:tc.content,children:(0,I.jsx)(Ta,{className:tc.scroll,children:(0,I.jsxs)("div",{className:tc.inner,style:ne,children:[se,re]})})}),t[41]=ne,t[42]=se,t[43]=re,t[44]=ce):ce=t[44],t[45]!==ee||t[46]!==te||t[47]!==le||t[48]!==ce?(de=(0,I.jsx)("div",{className:ee,style:te,"aria-hidden":le,children:ce}),t[45]=ee,t[46]=te,t[47]=le,t[48]=ce,t[49]=de):de=t[49],de}function ac(e){return!e}function ic(e){const{current:t}=e||{};return void 0!==t&&t}var oc={container:"micromag-viewer-container",landscape:"micromag-viewer-landscape",screensFrame:"micromag-viewer-screensFrame",hideMenu:"micromag-viewer-hideMenu",menuNavContainer:"micromag-viewer-menuNavContainer",menuTopContainer:"micromag-viewer-menuTopContainer",dots:"micromag-viewer-dots",disableMenu:"micromag-viewer-disableMenu",content:"micromag-viewer-content",withoutGestures:"micromag-viewer-withoutGestures",ariaAnnouncement:"micromag-viewer-ariaAnnouncement",accessibilityLinks:"micromag-viewer-accessibilityLinks",accessibilityButton:"micromag-viewer-accessibilityButton",disabled:"micromag-viewer-disabled",tooltip:"micromag-viewer-tooltip",fadeMenu:"micromag-viewer-fadeMenu",withShadow:"micromag-viewer-withShadow",isOpened:"micromag-viewer-isOpened",menuItem:"micromag-viewer-menuItem",menuButton:"micromag-viewer-menuButton",slidingButton:"micromag-viewer-slidingButton",screensMenuButtonToggled:"micromag-viewer-screensMenuButtonToggled",menuContainer:"micromag-viewer-menuContainer",menuShare:"micromag-viewer-menuShare",menuPreview:"micromag-viewer-menuPreview",navButton:"micromag-viewer-navButton",previous:"micromag-viewer-previous",next:"micromag-viewer-next",screenContainer:"micromag-viewer-screenContainer",screen:"micromag-viewer-screen",preload:"micromag-viewer-preload",visible:"micromag-viewer-visible",current:"micromag-viewer-current",playbackControls:"micromag-viewer-playbackControls",navigationHint:"micromag-viewer-navigationHint",webView:"micromag-viewer-webView",shareIncentiveContainer:"micromag-viewer-shareIncentiveContainer",shareIncentive:"micromag-viewer-shareIncentive",shareIncentiveVisible:"micromag-viewer-shareIncentiveVisible"};const sc=["share","main"];function rc(e){const t=(0,i.c)(177),{story:l,menuItems:a,currentScreenIndex:o,toggleFullscreen:s,fullscreenActive:r,fullscreenEnabled:c,menuDotsButtons:d,closeable:u,withShadow:m,shareBasePath:g,shareOptions:h,trackingEnabled:y,theme:p,screenSize:f,menuWidth:b,previewHeader:v,previewFooter:x,afterShareMenuButton:S,beforeScreensMenuButton:w,withMicromagBranding:C,withDotItemClick:j,withoutScreensMenu:k,withoutShareMenu:M,onClickScreen:N,onChange:$,onClickCloseViewer:F,refDots:T}=e,R=void 0===a?sc:a,z=void 0===o?0:o,L=void 0===s?null:s,A=void 0!==r&&r,P=void 0!==c&&c,B=void 0===d?null:d,E=void 0!==u&&u,V=void 0!==m&&m,D=void 0===g?null:g,_=void 0===h?null:h,O=void 0!==y&&y,H=void 0===p?null:p,Z=void 0===f?null:f,W=void 0===b?null:b,q=void 0===v?null:v,G=void 0===x?null:x,Y=void 0===S?null:S,U=void 0===w?null:w,Q=void 0!==C&&C,X=void 0!==j&&j,J=void 0!==k&&k,K=void 0!==M&&M,ee=void 0===N?null:N,te=void 0===$?null:$,le=void 0===F?null:F,ne=void 0===T?null:T,{components:ae,title:ie,metadata:oe}=l,se=void 0===ae?[]:ae,re=void 0===ie?null:ie,ce=void 0===oe?null:oe;let de;t[0]!==ce?(de=ce||{},t[0]=ce,t[1]=de):de=t[1];const{description:ue}=de,me=void 0===ue?null:ue,ge=null!==se&&se[z]||null,{id:he,type:ye}=ge||{},pe=void 0===he?null:he,fe=void 0===ye?null:ye;let be;t[2]!==H?(be=H||{},t[2]=H,t[3]=be):be=t[3];const{menuTheme:ve}=be,xe=void 0===ve?null:ve,{height:Se}=(()=>{const e=(0,i.c)(3),{width:t,height:l}=ht();let n;return e[0]!==l||e[1]!==t?(n={width:t,height:l},e[0]=l,e[1]=t,e[2]=n):n=e[2],n})(),[we,Ce]=(0,n.useState)(!1),[je,ke]=(0,n.useState)(!1),{ref:Me,height:Ne}=_t(),$e=void 0===Ne?0:Ne,Fe=se.map(e=>{const t=se.filter(t=>t.parentId===e.id),l=t.find(e=>e.id===pe)||null,n=t.findIndex(e=>e.id===pe)+1;return{screen:e,screenId:e.id,current:pe===e.id||null!==l,visible:null===(e?.parentId||null),count:t.length+1||1,subIndex:n||0}}).filter(cc),Te=dl();let Re;t[4]!==z||t[5]!==pe||t[6]!==fe||t[7]!==Te||t[8]!==O?(Re=(e,t,l)=>{O&&Te(e,t,void 0===l?null:l,{screenId:pe,screenIndex:z,screenType:fe})},t[4]=z,t[5]=pe,t[6]=fe,t[7]=Te,t[8]=O,t[9]=Re):Re=t[9];const ze=Re,Le="undefined"!=typeof window?`${window.location.protocol}//${window.location.host}`:"";let Ie;t[10]!==D?(Ie=null!==D&&-1!==D.indexOf("http"),t[10]=D,t[11]=Ie):Ie=t[11];const Ae=Ie,Pe=null!==D?`${Le}${D}`:Le;let Be;t[12]!==Ae||t[13]!==Pe||t[14]!==D?(Be=null!==D&&Ae?D.replace(/\/$/,""):Pe,t[12]=Ae,t[13]=Pe,t[14]=D,t[15]=Be):Be=t[15];const Ee=Be;let Ve;t[16]!==Ce||t[17]!==ke||t[18]!==ze?(Ve=()=>{Ce(!0),ke(!1),ze("viewer_menu","open_screens_menu")},t[16]=Ce,t[17]=ke,t[18]=ze,t[19]=Ve):Ve=t[19];const De=Ve;let _e;t[20]!==Ce||t[21]!==ke||t[22]!==ze?(_e=()=>{Ce(!1),ke(!1),ze("viewer_menu","close_screens_menu")},t[20]=Ce,t[21]=ke,t[22]=ze,t[23]=_e):_e=t[23];const Oe=_e;let He;t[24]!==Ce||t[25]!==ke||t[26]!==ze?(He=()=>{ke(!0),Ce(!1),ze("viewer_menu","open_share_menu")},t[24]=Ce,t[25]=ke,t[26]=ze,t[27]=He):He=t[27];const Ze=He;let We;t[28]!==Ce||t[29]!==ke||t[30]!==ze?(We=()=>{ke(!1),Ce(!1),ze("viewer_menu","close_share_menu")},t[28]=Ce,t[29]=ke,t[30]=ze,t[31]=We):We=t[31];const qe=We;let Ge;t[32]!==ee||t[33]!==Fe||t[34]!==pe||t[35]!==Ce||t[36]!==ze?(Ge=e=>{Ce(!1),null!==ee&&ee(e);const t=Fe.findIndex(e=>{const{id:t}=e;return t===pe});ze("viewer_menu","click_screen_change",`Screen ${t+1}`)},t[32]=ee,t[33]=Fe,t[34]=pe,t[35]=Ce,t[36]=ze,t[37]=Ge):Ge=t[37];const Ye=Ge;let Ue,Qe,Xe;t[38]!==we||t[39]!==te||t[40]!==je?(Ue=()=>{null!==te&&te({menuOpen:we,shareOpen:je})},Qe=[te,we,je],t[38]=we,t[39]=te,t[40]=je,t[41]=Ue,t[42]=Qe):(Ue=t[41],Qe=t[42]),(0,n.useEffect)(Ue,Qe),t[43]!==ze?(Xe=e=>{ze("viewer_menu","shared_story",e)},t[43]=ze,t[44]=Xe):Xe=t[44];const Je=Xe;let Ke;t[45]!==Ze||t[46]!==Se?(Ke=e=>{const{active:t,direction:l,movement:n,velocity:a}=e,[,i]=l,[,o]=n,[,s]=a,r=Math.max(0,o)/(.8*Se),c=(s>.3||Math.abs(r)>.3)&&-1!==i;return t?r:(c&&Ze(),c?1:0)},t[45]=Ze,t[46]=Se,t[47]=Ke):Ke=t[47];const et=Ke;let tt;t[48]!==qe||t[49]!==Se?(tt=e=>{const{active:t,direction:l,movement:n,velocity:a}=e,[,i]=l,[,o]=n,[,s]=a,r=Math.max(0,o)/(.8*Se),c=(s>.3||Math.abs(r)>.3)&&-1!==i;return t?1-r:(c&&qe(),c?0:1)},t[48]=qe,t[49]=Se,t[50]=tt):tt=t[50];const lt=tt;let nt;t[51]===Symbol.for("react.memo_cache_sentinel")?(nt={config:{tension:300,friction:30}},t[51]=nt):nt=t[51];const at=nt,it=je?1:0,ot=je?lt:et;let st,rt;t[52]===Symbol.for("react.memo_cache_sentinel")?(st={axis:"y",pointer:{keys:!1}},t[52]=st):st=t[52],t[53]!==it||t[54]!==ot?(rt={progress:it,computeProgress:ot,springParams:at,dragOptions:st},t[53]=it,t[54]=ot,t[55]=rt):rt=t[55];const{bind:ct,dragging:dt,progress:ut}=Et(rt);let mt;t[56]!==De?(mt=e=>{const{active:t,direction:l,movement:n,velocity:a}=e,[,i]=l,[,o]=n,[,s]=a,r="undefined"!=typeof window?window.innerHeight:0,c=r>0?Math.max(0,o)/(.8*r):0,d=(s>.3||Math.abs(c)>.3)&&-1!==i;return t?c:(d&&De(),d?1:0)},t[56]=De,t[57]=mt):mt=t[57];const gt=mt;let yt;t[58]!==Oe?(yt=e=>{const{active:t,direction:l,movement:n,velocity:a}=e,[,i]=l,[,o]=n,[,s]=a,r="undefined"!=typeof window?window.innerHeight:0,c=r>0?Math.max(0,o)/(.8*r):0,d=(s>.3||Math.abs(c)>.3)&&-1!==i;return t?1-c:(d&&Oe(),d?0:1)},t[58]=Oe,t[59]=yt):yt=t[59];const pt=we?1:0,ft=we?yt:gt;let bt,vt;t[60]===Symbol.for("react.memo_cache_sentinel")?(bt={axis:"y",pointer:{keys:!1}},t[60]=bt):bt=t[60],t[61]!==pt||t[62]!==ft?(vt={progress:pt,computeProgress:ft,springParams:at,dragOptions:bt},t[61]=pt,t[62]=ft,t[63]=vt):vt=t[63];const{bind:xt,dragging:St,progress:wt}=Et(vt);let Ct,jt,kt;t[64]!==we||t[65]!==Oe||t[66]!==De?(Ct=()=>we?Oe():De(),t[64]=we,t[65]=Oe,t[66]=De,t[67]=Ct):Ct=t[67],t[68]!==Oe?(jt=()=>Oe(),t[68]=Oe,t[69]=jt):jt=t[69],t[70]!==Ct||t[71]!==jt?(kt={m:Ct,escape:jt},t[70]=Ct,t[71]=jt,t[72]=kt):kt=t[72],xr(kt);const Mt=we||je;let Nt,$t,Tt,Rt,zt,Lt,It,At,Pt,Bt,Vt;if(t[73]!==Mt||t[74]!==V?(Nt=Ft([oc.menuNavContainer,{[oc.withShadow]:V,[oc.isOpened]:Mt}]),t[73]=Mt,t[74]=V,t[75]=Nt):Nt=t[75],t[76]!==W?($t={width:W},t[76]=W,t[77]=$t):$t=t[77],t[78]!==Y||t[79]!==U||t[80]!==xt||t[81]!==ct||t[82]!==R||t[83]!==we||t[84]!==wt||t[85]!==xe||t[86]!==Oe||t[87]!==qe||t[88]!==De||t[89]!==Ze||t[90]!==je||t[91]!==ut||t[92]!==J||t[93]!==K){let e;t[95]!==Y||t[96]!==U||t[97]!==xt||t[98]!==ct||t[99]!==we||t[100]!==wt||t[101]!==xe||t[102]!==Oe||t[103]!==qe||t[104]!==De||t[105]!==Ze||t[106]!==je||t[107]!==ut||t[108]!==J||t[109]!==K?(e=e=>"share"===e?K&&null===Y?null:(0,I.jsxs)("div",{className:oc.menuItem,...ct(),children:[K?null:(0,I.jsx)(Rr,{className:oc.slidingButton,button:(0,I.jsx)(Tr,{className:oc.menuButton,onClick:Ze,theme:xe,iconPosition:"left",focusable:!je}),toggledButton:(0,I.jsx)(vr.Ay,{group:"share",disabled:!je,returnFocus:!0,children:(0,I.jsx)($r,{className:oc.menuButton,onClick:qe,theme:xe,iconPosition:"left",focusable:je,single:!0})}),progressSpring:ut}),Y]},"share"):"main"===e?J&&null===U?null:(0,I.jsxs)("div",{className:oc.menuItem,...xt(),children:[U,J?null:(0,I.jsx)(Rr,{className:oc.slidingButton,button:(0,I.jsx)(Fr,{className:oc.menuButton,iconClassName:oc.menuButtonIcon,onClick:De,theme:xe,focusable:!we}),toggledButton:(0,I.jsx)(vr.Ay,{group:"screens",disabled:!we,returnFocus:!0,children:(0,I.jsx)($r,{className:oc.menuButton,onClick:Oe,theme:xe,iconPosition:"right",focusable:we})}),progressSpring:wt,toggledButtonClassName:oc.screensMenuButtonToggled})]},"main"):e||null,t[95]=Y,t[96]=U,t[97]=xt,t[98]=ct,t[99]=we,t[100]=wt,t[101]=xe,t[102]=Oe,t[103]=qe,t[104]=De,t[105]=Ze,t[106]=je,t[107]=ut,t[108]=J,t[109]=K,t[110]=e):e=t[110],Tt=R.map(e),t[78]=Y,t[79]=U,t[80]=xt,t[81]=ct,t[82]=R,t[83]=we,t[84]=wt,t[85]=xe,t[86]=Oe,t[87]=qe,t[88]=De,t[89]=Ze,t[90]=je,t[91]=ut,t[92]=J,t[93]=K,t[94]=Tt}else Tt=t[94];return t[111]!==Me||t[112]!==Tt?(Rt=(0,I.jsx)("nav",{className:oc.menuTopContainer,ref:Me,children:Tt}),t[111]=Me,t[112]=Tt,t[113]=Rt):Rt=t[113],t[114]!==E||t[115]!==Fe||t[116]!==B||t[117]!==xe||t[118]!==le||t[119]!==Ye||t[120]!==De||t[121]!==X||t[122]!==J||t[123]!==K?(zt=(0,I.jsx)(Zr,{...xe,direction:"horizontal",items:Fe,onClickDot:Ye,onClickScreensMenu:De,buttons:B,closeable:E,withItemClick:X,withoutScreensMenu:J,withoutShareMenu:K,onClose:le,className:oc.dots}),t[114]=E,t[115]=Fe,t[116]=B,t[117]=xe,t[118]=le,t[119]=Ye,t[120]=De,t[121]=X,t[122]=J,t[123]=K,t[124]=zt):zt=t[124],t[125]!==ne||t[126]!==Nt||t[127]!==$t||t[128]!==Rt||t[129]!==zt?(Lt=(0,I.jsxs)("div",{className:Nt,ref:ne,style:$t,children:[Rt,zt]}),t[125]=ne,t[126]=Nt,t[127]=$t,t[128]=Rt,t[129]=zt,t[130]=Lt):Lt=t[130],t[131]!==z||t[132]!==me||t[133]!==dt||t[134]!==Fe||t[135]!==W||t[136]!==$e||t[137]!==qe||t[138]!==Je||t[139]!==je||t[140]!==_||t[141]!==Ee||t[142]!==re||t[143]!==H?(It=dt||je?(0,I.jsx)(vr.Ay,{group:"share",disabled:!je,returnFocus:!0,children:(0,I.jsx)(nc,{viewerTheme:H,className:oc.menuShare,title:re,description:me,menuWidth:W,paddingTop:$e,focusable:je,items:Fe,shareOptions:_,currentScreenIndex:z,shareUrl:Ee,onShare:Je,onClose:qe})}):null,t[131]=z,t[132]=me,t[133]=dt,t[134]=Fe,t[135]=W,t[136]=$e,t[137]=qe,t[138]=Je,t[139]=je,t[140]=_,t[141]=Ee,t[142]=re,t[143]=H,t[144]=It):It=t[144],t[145]!==ut||t[146]!==It||t[147]!==H?(At=(0,I.jsx)(Ir,{className:oc.menuContainer,progressSpring:ut,theme:H,children:It}),t[145]=ut,t[146]=It,t[147]=H,t[148]=At):At=t[148],t[149]!==z||t[150]!==St||t[151]!==A||t[152]!==P||t[153]!==Fe||t[154]!==we||t[155]!==W||t[156]!==$e||t[157]!==Ye||t[158]!==Oe||t[159]!==Je||t[160]!==G||t[161]!==q||t[162]!==Z||t[163]!==Ee||t[164]!==re||t[165]!==L||t[166]!==H||t[167]!==Q?(Pt=we||St?(0,I.jsx)(vr.Ay,{group:"screens",disabled:!we,returnFocus:!0,children:(0,I.jsx)(Kr,{viewerTheme:H,header:q,footer:G,title:re,className:oc.menuPreview,screenSize:Z,menuWidth:W,paddingTop:$e,items:Fe,currentScreenIndex:z,shareUrl:Ee,onShare:Je,onClickScreen:Ye,onClose:Oe,scrollDisabled:St,toggleFullscreen:L,fullscreenActive:A,fullscreenEnabled:P,withMicromagBranding:Q})}):null,t[149]=z,t[150]=St,t[151]=A,t[152]=P,t[153]=Fe,t[154]=we,t[155]=W,t[156]=$e,t[157]=Ye,t[158]=Oe,t[159]=Je,t[160]=G,t[161]=q,t[162]=Z,t[163]=Ee,t[164]=re,t[165]=L,t[166]=H,t[167]=Q,t[168]=Pt):Pt=t[168],t[169]!==wt||t[170]!==Pt||t[171]!==H?(Bt=(0,I.jsx)(Ir,{className:oc.menuContainer,progressSpring:wt,theme:H,children:Pt}),t[169]=wt,t[170]=Pt,t[171]=H,t[172]=Bt):Bt=t[172],t[173]!==Lt||t[174]!==At||t[175]!==Bt?(Vt=(0,I.jsxs)(I.Fragment,{children:[Lt,At,Bt]}),t[173]=Lt,t[174]=At,t[175]=Bt,t[176]=Vt):Vt=t[176],Vt}function cc(e){const{visible:t}=e;return void 0===t||t}function dc(e){const t=(0,i.c)(31),{screen:l,renderContext:a,index:o,screenState:s,active:r,preload:c,current:d,mediaRef:u,width:m,height:g,scale:h,className:y}=e,p=void 0===l?null:l,f=void 0===a?null:a,b=void 0===o?null:o,v=void 0===s?null:s,x=void 0===r||r,S=void 0===c||c,w=void 0!==d&&d,C=void 0===u?null:u,j=void 0===m?null:m,k=void 0===g?null:g,M=void 0===h?null:h,N=void 0===y?null:y,[$,F]=(0,n.useState)(x||w);let T,R,z;if(t[0]!==x||t[1]!==$?(T=()=>{let e=null;return x!==$&&(e=setTimeout(()=>{F(x)},200)),()=>{null!==e&&clearTimeout(e)}},t[0]=x,t[1]=$,t[2]=T):T=t[2],t[3]!==x||t[4]!==b||t[5]!==$?(R=[x,$,F,b],t[3]=x,t[4]=b,t[5]=$,t[6]=R):R=t[6],(0,n.useEffect)(T,R),!$&&!w)return null;t[7]!==N?(z=Ft(["micromag-viewer-screen-container",N]),t[7]=N,t[8]=z):z=t[8];const L=null!==M?`scale(${M})`:null,A=null!==M?"0 0":null,P=$?1:null;let B,E,V,D;return t[9]!==k||t[10]!==L||t[11]!==A||t[12]!==P||t[13]!==j?(B={width:j,height:k,transform:L,transformOrigin:A,opacity:P},t[9]=k,t[10]=L,t[11]=A,t[12]=P,t[13]=j,t[14]=B):B=t[14],t[15]!==x||t[16]!==w||t[17]!==b||t[18]!==C||t[19]!==$||t[20]!==S||t[21]!==f||t[22]!==p||t[23]!==v?(E=$||w?(0,I.jsx)(jn,{screen:p,renderContext:f,screenState:v,index:b,active:x,preload:S,current:w,mediaRef:C}):null,t[15]=x,t[16]=w,t[17]=b,t[18]=C,t[19]=$,t[20]=S,t[21]=f,t[22]=p,t[23]=v,t[24]=E):E=t[24],t[25]!==B||t[26]!==E?(V=(0,I.jsx)("div",{className:"micromag-viewer-screen-inner",style:B,children:E}),t[25]=B,t[26]=E,t[27]=V):V=t[27],t[28]!==z||t[29]!==V?(D=(0,I.jsx)("div",{className:z,children:V}),t[28]=z,t[29]=V,t[30]=D):D=t[30],D}var uc={container:"micromag-viewer-buttons-navigation-button-container",arrow:"micromag-viewer-buttons-navigation-button-arrow",next:"micromag-viewer-buttons-navigation-button-next",previous:"micromag-viewer-buttons-navigation-button-previous"};function mc(e){const t=(0,i.c)(16);let l,n,a,o;t[0]!==e?(({direction:n,onClick:a,className:o,...l}=e),t[0]=e,t[1]=l,t[2]=n,t[3]=a,t[4]=o):(l=t[1],n=t[2],a=t[3],o=t[4]);const s=void 0===n?"next":n,r=void 0===a?null:a,c=void 0===o?null:o,d=uc[s];let u,m;t[5]!==c||t[6]!==d?(u=Ft([uc.container,d,c]),t[5]=c,t[6]=d,t[7]=u):u=t[7],t[8]!==r?(m=e=>{e.stopPropagation(),r()},t[8]=r,t[9]=m):m=t[9];const g="next"===s?"right":"left";let h,y;return t[10]===Symbol.for("react.memo_cache_sentinel")?(h=(0,I.jsx)("svg",{className:uc.arrow,xmlns:"http://www.w3.org/2000/svg",width:"10",height:"16",viewBox:"0 0 10 16",fill:"currentColor",children:(0,I.jsx)("polygon",{points:"9.62 4.62 5 0 0.38 4.62 1.44 5.68 4.25 2.87 4.25 14.39 5.75 14.39 5.75 2.87 8.56 5.68 9.62 4.62"})}),t[10]=h):h=t[10],t[11]!==l||t[12]!==u||t[13]!==m||t[14]!==g?(y=(0,I.jsx)(Nr,{className:u,onClick:m,iconPosition:g,icon:h,...l}),t[11]=l,t[12]=u,t[13]=m,t[14]=g,t[15]=y):y=t[15],y}var gc="micromag-viewer-partials-arrow-hint-withoutShadow";function hc(e){const t=(0,i.c)(6),{withoutShadow:l,className:n}=e,a=void 0!==l&&l,o=void 0===n?null:n;let s,r,c;return t[0]!==o||t[1]!==a?(s=Ft(["micromag-viewer-partials-arrow-hint-container",o,{[gc]:a}]),t[0]=o,t[1]=a,t[2]=s):s=t[2],t[3]===Symbol.for("react.memo_cache_sentinel")?(r=(0,I.jsx)("div",{className:"micromag-viewer-partials-arrow-hint-inner",children:(0,I.jsx)(_l,{className:"micromag-viewer-partials-arrow-hint-arrow"})}),t[3]=r):r=t[3],t[4]!==s?(c=(0,I.jsx)("div",{className:s,children:r}),t[4]=s,t[5]=c):c=t[5],c}function yc(e){const t=(0,i.c)(5),{color:l,className:n}=e,a=void 0===l?"currentColor":l,o=void 0===n?null:n;let s,r;return t[0]!==a?(s=(0,I.jsx)("path",{d:"M488.84,255.91a44.68,44.68,0,0,0-19.15,4.3A44.77,44.77,0,0,0,406,226.49a44.75,44.75,0,0,0-62.67-32.66V105.4a44.81,44.81,0,1,0-89.61,0V265.17l-1.15-2.7a44.78,44.78,0,1,0-82.84,34.06l64.87,157.76.34.73a156.29,156.29,0,0,0,141.42,88.44c86.7,0,157.24-70.53,157.24-157.26V300.7a44.82,44.82,0,0,0-44.78-44.79ZM507.46,386.2c0,72.3-58.78,131.1-131.07,131.1a130.29,130.29,0,0,1-117.73-73.36L193.93,286.61a18.64,18.64,0,1,1,34.53-14.07L279.91,394V105.4a18.64,18.64,0,1,1,37.28,0v196a13.08,13.08,0,0,0,26.16,0V234.56a18.64,18.64,0,0,1,37.27,0v89.95a13.07,13.07,0,1,0,26.13,0V266.86a18.64,18.64,0,1,1,37.28,0v80.71h0s0,.08,0,.11a13.08,13.08,0,0,0,26.15,0v-47a18.63,18.63,0,1,1,37.26,0v85.5Z",transform:"translate(-166.38 -60.59)",fill:a,fillRule:"evenodd"}),t[0]=a,t[1]=s):s=t[1],t[2]!==o||t[3]!==s?(r=(0,I.jsx)("svg",{className:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 367.24 482.87",children:s}),t[2]=o,t[3]=s,t[4]=r):r=t[4],r}var pc="micromag-viewer-partials-hand-tap-withoutShadow";function fc(e){const t=(0,i.c)(6),{withoutShadow:l,className:n}=e,a=void 0!==l&&l,o=void 0===n?null:n;let s,r,c;return t[0]!==o||t[1]!==a?(s=Ft(["micromag-viewer-partials-hand-tap-container",o,{[pc]:a}]),t[0]=o,t[1]=a,t[2]=s):s=t[2],t[3]===Symbol.for("react.memo_cache_sentinel")?(r=(0,I.jsxs)("div",{className:"micromag-viewer-partials-hand-tap-inner",children:[(0,I.jsx)("div",{className:"micromag-viewer-partials-hand-tap-circle"}),(0,I.jsx)(yc,{className:"micromag-viewer-partials-hand-tap-hand"})]}),t[3]=r):r=t[3],t[4]!==s?(c=(0,I.jsx)("div",{className:s,children:r}),t[4]=s,t[5]=c):c=t[5],c}var bc={inner:"micromag-viewer-partials-seek-bar-inner",progressBarContainer:"micromag-viewer-partials-seek-bar-progressBarContainer",progressBar:"micromag-viewer-partials-seek-bar-progressBar",progress:"micromag-viewer-partials-seek-bar-progress",track:"micromag-viewer-partials-seek-bar-track",playHead:"micromag-viewer-partials-seek-bar-playHead",withSeekHead:"micromag-viewer-partials-seek-bar-withSeekHead",scrubbedTime:"micromag-viewer-partials-seek-bar-scrubbedTime",showTimestamp:"micromag-viewer-partials-seek-bar-showTimestamp"};function vc(e=null){if(null===e||e<=0)return"00:00";const t=`${e}`.split("."),[l=0]=t||[],n=Math.round(u(l)?parseInt(l):l),a=n%60,i=n-a,o=i>0?i/60:0;return`${String(Math.round(o)).padStart(2,"0")}:${String(Math.round(a)).padStart(2,"0")}`}function xc(e){const t=(0,i.c)(70),{media:l,playing:a,backgroundColor:o,progressColor:s,onClick:r,onSeek:c,onSeekStart:d,onSeekEnd:u,collapsed:m,focusable:g,className:h,withSeekHead:y}=e,p=void 0===l?null:l,f=void 0!==a&&a,b=void 0===o?null:o,v=void 0===s?null:s,x=void 0===r?null:r,S=void 0===c?null:c,w=void 0===d?null:d,C=void 0===u?null:u,j=void 0!==m&&m,k=void 0===g||g,M=void 0===h?null:h,N=void 0===y||y,$=(0,A.tz)(),F=!f;let T;t[0]!==F?(T={disabled:F},t[0]=F,t[1]=T):T=t[1];const R=function(e,t){const l=(0,i.c)(28),a=void 0===e?null:e,o=void 0===t?null:t;let s,r,c;l[0]!==o?(s=o||{},l[0]=o,l[1]=s):s=l[1],l[2]!==s?(({disabled:c,...r}=s),l[2]=s,l[3]=r,l[4]=c):(r=l[3],c=l[4]);const d=void 0!==c&&c;let u;l[5]!==d||l[6]!==a?(u=()=>!d&&Se(a),l[5]=d,l[6]=a,l[7]=u):u=l[7];const[m,g]=(0,n.useState)(u),h=d||!m;let y;l[8]!==r||l[9]!==h?(y={disabled:h,...r},l[8]=r,l[9]=h,l[10]=y):y=l[10];const p=Yt(a,y),[f,b]=(0,n.useState)(a),[v,x]=(0,n.useState)(0),[S,w]=(0,n.useState)(Jt);if(a!==f){const e=null!==a&&(a?.currentTime||0)>0&&(a?.duration||0)>0?a.currentTime/a.duration:0;w(Date.now()/1e3),x(e),g(Se(a)),b(a)}let C,j,k,M;return l[11]!==a?(C=()=>{if(null===a)return Xt;const e=function(e){g(Se(e.currentTarget));const t=e.currentTarget.currentTime/e.currentTarget.duration;(0,n.startTransition)(()=>{w(Date.now()/1e3),x(t)})};return a.addEventListener("play",e),a.addEventListener("playing",e),a.addEventListener("seeked",e),a.addEventListener("pause",e),a.addEventListener("ended",e),a.addEventListener("waiting",e),a.addEventListener("stalled",e),a.addEventListener("seeking",e),a.addEventListener("suspend",e),()=>{a.removeEventListener("play",e),a.removeEventListener("playing",e),a.removeEventListener("seeked",e),a.removeEventListener("pause",e),a.removeEventListener("ended",e),a.removeEventListener("waiting",e),a.removeEventListener("stalled",e),a.removeEventListener("seeking",e),a.removeEventListener("suspend",e)}},l[11]=a,l[12]=C):C=l[12],l[13]!==a||l[14]!==m?(j=[a,g,m],l[13]=a,l[14]=m,l[15]=j):j=l[15],(0,n.useEffect)(C,j),l[16]!==d||l[17]!==p||l[18]!==a||l[19]!==m||l[20]!==v||l[21]!==S?(k=()=>{if(null===a||!m||d)return Qt;let e,t=!1,l=v,i=S;return function o(){if(t)return;const s=Date.now()/1e3,r=(s-i)/p,c=l<.1?a.currentTime/a.duration:l+r;(0,n.startTransition)(()=>{w(Date.now()/1e3),x(c)}),i=s,l=c,e=zt(o)}(),()=>{t=!0,zt.cancel(e)}},l[16]=d,l[17]=p,l[18]=a,l[19]=m,l[20]=v,l[21]=S,l[22]=k):k=l[22],l[23]!==d||l[24]!==p||l[25]!==a||l[26]!==m?(M=[a,m,d,p,x],l[23]=d,l[24]=p,l[25]=a,l[26]=m,l[27]=M):M=l[27],(0,n.useEffect)(k,M),v}(p,T),[z,L]=(0,n.useState)(!1),P=!f&&!z;let B;t[2]!==P?(B={disabled:P},t[2]=P,t[3]=B):B=t[3];const E=qt(p,B),V=!f&&!z;let D;t[4]!==V?(D={disabled:V},t[4]=V,t[5]=D):D=t[5];const _=Yt(p,D),O=(0,n.useRef)(R);let H;t[6]!==j||t[7]!==x||t[8]!==S?(H=e=>{const{xy:t,elapsedTime:l,active:n,tap:a,currentTarget:i}=e,[o]=t;if(!n&&l>300)return;if(j)return void x();const{width:s,x:r}=i.getBoundingClientRect(),c=void 0===s?0:s,d=void 0===r?null:r;let u;u=Math.max(0,Math.min(1,(o-d)/c)),null!==S&&S(u,a)},t[6]=j,t[7]=x,t[8]=S,t[9]=H):H=t[9];const Z=H;let W;t[10]!==w||t[11]!==R?(W=()=>{O.current=R,L(!0),null!==w&&w()},t[10]=w,t[11]=R,t[12]=W):W=t[12];const q=W;let G;t[13]!==C?(G=()=>{null!==C&&(L(!1),C())},t[13]=C,t[14]=G):G=t[14];const Y=G;let U,Q;t[15]!==Z||t[16]!==Y||t[17]!==q?(U={onDrag:Z,onDragStart:q,onDragEnd:Y},t[15]=Z,t[16]=Y,t[17]=q,t[18]=U):U=t[18],t[19]===Symbol.for("react.memo_cache_sentinel")?(Q={drag:{axis:"x",filterTaps:!0}},t[19]=Q):Q=t[19];const X=(0,$t.useGesture)(U,Q);let J,K;t[20]!==M||t[21]!==z||t[22]!==N?(J=Ft([bc.container,M,{[bc.withSeekHead]:N,[bc.showTimestamp]:z}]),t[20]=M,t[21]=z,t[22]=N,t[23]=J):J=t[23],t[24]!==b?(K=(0,I.jsx)("div",{className:bc.progressBar,style:{backgroundColor:b}}),t[24]=b,t[25]=K):K=t[25];const ee=100*R+"%";let te,le;t[26]!==v||t[27]!==ee?(te={left:ee,backgroundColor:v},t[26]=v,t[27]=ee,t[28]=te):te=t[28],t[29]!==v?(le={borderColor:v},t[29]=v,t[30]=le):le=t[30];const ne=_<5;let ae,ie,oe;t[31]!==E||t[32]!==ne?(ae=vc(E),t[31]=E,t[32]=ne,t[33]=ae):ae=t[33],t[34]!==le||t[35]!==ae?(ie=(0,I.jsx)("div",{className:bc.scrubbedTime,style:le,children:ae}),t[34]=le,t[35]=ae,t[36]=ie):ie=t[36],t[37]!==te||t[38]!==ie?(oe=(0,I.jsx)("div",{className:bc.playHead,style:te,children:ie}),t[37]=te,t[38]=ie,t[39]=oe):oe=t[39];const se=`scaleX(${R})`;let re,ce,de,ue,me,ge;t[40]!==v||t[41]!==se?(re=(0,I.jsx)("div",{className:bc.progress,style:{transform:se,backgroundColor:v}}),t[40]=v,t[41]=se,t[42]=re):re=t[42],t[43]!==K||t[44]!==oe||t[45]!==re?(ce=(0,I.jsxs)("div",{className:bc.progressBarContainer,children:[K,oe,re]}),t[43]=K,t[44]=oe,t[45]=re,t[46]=ce):ce=t[46],t[47]!==X?(de=X(),t[47]=X,t[48]=de):de=t[48],t[49]!==E||t[50]!==_||t[51]!==$?(ue=$.formatMessage({id:"C1VUEY",defaultMessage:"{current} of {duration}"},{current:vc(E),duration:vc(_)}),t[49]=E,t[50]=_,t[51]=$,t[52]=ue):ue=t[52],t[53]!==$?(me=$.formatMessage({id:"G1Gyjn",defaultMessage:"Seek"}),t[53]=$,t[54]=me):me=t[54],t[55]!==$?(ge=$.formatMessage({id:"2prwZ7",defaultMessage:"Progress slider"}),t[55]=$,t[56]=ge):ge=t[56];const he=k?"0":"-1";let ye,pe,fe;return t[57]!==R||t[58]!==de||t[59]!==ue||t[60]!==me||t[61]!==ge||t[62]!==he?(ye=(0,I.jsx)("button",{...de,type:"button",role:"slider","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":R,"aria-valuetext":ue,"data-draggable":!0,className:bc.track,title:me,"aria-label":ge,tabIndex:he}),t[57]=R,t[58]=de,t[59]=ue,t[60]=me,t[61]=ge,t[62]=he,t[63]=ye):ye=t[63],t[64]!==ce||t[65]!==ye?(pe=(0,I.jsxs)("div",{className:bc.inner,children:[ce,ye]}),t[64]=ce,t[65]=ye,t[66]=pe):pe=t[66],t[67]!==J||t[68]!==pe?(fe=(0,I.jsx)("div",{className:J,...jr,children:pe}),t[67]=J,t[68]=pe,t[69]=fe):fe=t[69],fe}var Sc="micromag-viewer-partials-playback-controls-icon",wc="micromag-viewer-partials-playback-controls-offset",Cc="micromag-viewer-partials-playback-controls-withPlayPause",jc="micromag-viewer-partials-playback-controls-withSuggestPlay",kc="micromag-viewer-partials-playback-controls-isCollapsed",Mc="micromag-viewer-partials-playback-controls-loading",Nc="micromag-viewer-partials-playback-controls-hidden",$c="micromag-viewer-partials-playback-controls-isMuted",Fc="micromag-viewer-partials-playback-controls-withMute",Tc="micromag-viewer-partials-playback-controls-withSeekBar",Rc="micromag-viewer-partials-playback-controls-withSeekBarOnly",zc="micromag-viewer-partials-playback-controls-withoutShadow";const Lc={color:"#FFFFFF",alpha:1},Ic={color:"#666",alpha:1};function Ac(e){const t=(0,i.c)(109),{defaultColor:l,defaultProgressColor:a,withLoading:o,withoutShadow:s,className:r,collapsedClassName:c}=e,d=void 0===l?Lc:l,u=void 0===a?Ic:a,m=void 0===o||o,g=void 0!==s&&s,h=void 0===r?null:r,y=void 0===c?null:c,p=(0,A.tz)(),{media:f,mediaSrc:b,hasAudio:v,playing:x,muted:S,setPlaying:w,setMuted:C,controls:j,controlsSuggestPlay:k,controlsVisible:M,controlsTheme:N,showControls:$,seekByProgress:F}=Xe(),T=void 0===f?null:f,R=void 0===v?null:v,z=void 0!==x&&x,L=void 0===S||S,[P,B]=(0,n.useState)(!1);let E;t[0]!==b?(E={id:b},t[0]=b,t[1]=E):E=t[1];const V=Kt(T,E),D=null===T||V,_=P&&!D;let O;t[2]!==L||t[3]!==z?(O={playing:z,muted:L},t[2]=L,t[3]=z,t[4]=O):O=t[4];const{buffering:Z,playing:W,muted:q}=function(e,t){const l=(0,i.c)(35),a=void 0===e?null:e;let o;l[0]!==t?(o=void 0===t?{}:t,l[0]=t,l[1]=o):o=l[1];const{playing:s,muted:r}=o,c=void 0!==s&&s,d=void 0!==r&&r,[u,m]=(0,n.useState)(a);let g;l[2]!==a?(g=()=>Ce(a),l[2]=a,l[3]=g):g=l[3];const[h,y]=(0,n.useState)(g);let p;l[4]!==a||l[5]!==c?(p=()=>Se(a)||c,l[4]=a,l[5]=c,l[6]=p):p=l[6];const[f,b]=(0,n.useState)(p),[v,x]=(0,n.useState)(!1);let S;l[7]!==a||l[8]!==d?(S=()=>xe(a)||d,l[7]=a,l[8]=d,l[9]=S):S=l[9];const[w,C]=(0,n.useState)(S);let j;l[10]!==h?(j=je(h),l[10]=h,l[11]=j):j=l[11];const k=j;let M,N,$,F,T,R;return l[12]!==u||l[13]!==a||l[14]!==k||l[15]!==d||l[16]!==c?(M=ke(null!==k?`micromag:media:${k}`:"micromag:media"),a!==u&&(b(Se(a)||c),x(!1),C(xe(a)||d),m(a),y(Ce(a)),M("Unset media: %o",{wantedPlaying:c,wantedMuted:d})),l[12]=u,l[13]=a,l[14]=k,l[15]=d,l[16]=c,l[17]=M):M=l[17],l[18]!==v||l[19]!==M||l[20]!==w||l[21]!==f?($=()=>{M("State change %o",{playing:f,buffering:v,muted:w})},N=[f,v,w,M],l[18]=v,l[19]=M,l[20]=w,l[21]=f,l[22]=N,l[23]=$):(N=l[22],$=l[23]),(0,n.useEffect)($,N),l[24]!==M||l[25]!==a?(F=()=>{if(null===a)return Zt;const e=function(e){e.currentTarget.networkState===e.currentTarget.NETWORK_LOADING?M("onBufferingEvent: NETWORK_LOADING"):e.currentTarget.readyState<e.currentTarget.HAVE_FUTURE_DATA&&M("onBufferingEvent: HAVE_FUTURE_DATA"),x(we(e.currentTarget))};let t=!1;const l=function(){t=!1,M("onPlay"),b(!0),x(!1)},n=function(){t=!1,M("onPlaying"),b(!0),x(!1)},i=function(e){t||(M("onTimeUpdate"),t=!0),b(!0),x(!1)},o=function(){t=!1,M("onPause"),b(!1),x(!1)},s=function(){t=!1,M("onEnded"),b(!1),x(!1)},r=function(e){t=!1,M("onSuspend"),b(Se(e.currentTarget)),x(we(e.currentTarget))},c=function(e){M("onVolumeChange"),C(xe(e.currentTarget))},d=function(e){M("onLoadChange %s",e.type),y(Ce(e.currentTarget)),x(we(e.currentTarget))};return a.addEventListener("canplay",d),a.addEventListener("loadstart",d),a.addEventListener("loadeddata",d),a.addEventListener("loadedmetadata",d),a.addEventListener("waiting",e),a.addEventListener("stalled",e),a.addEventListener("timeupdate",i),a.addEventListener("play",l),a.addEventListener("playing",n),a.addEventListener("pause",o),a.addEventListener("suspend",r),a.addEventListener("ended",s),a.addEventListener("volumechange",c),()=>{a.removeEventListener("canplay",d),a.removeEventListener("loadstart",d),a.removeEventListener("loadeddata",d),a.removeEventListener("loadedmetadata",d),a.removeEventListener("waiting",e),a.removeEventListener("stalled",e),a.removeEventListener("timeupdate",i),a.removeEventListener("play",l),a.removeEventListener("playing",n),a.removeEventListener("pause",o),a.removeEventListener("suspend",r),a.removeEventListener("ended",s),a.removeEventListener("volumechange",c)}},l[24]=M,l[25]=a,l[26]=F):F=l[26],l[27]!==M||l[28]!==a||l[29]!==h?(T=[a,M,h],l[27]=M,l[28]=a,l[29]=h,l[30]=T):T=l[30],(0,n.useEffect)(F,T),l[31]!==v||l[32]!==w||l[33]!==f?(R={playing:f,muted:w,buffering:v},l[31]=v,l[32]=w,l[33]=f,l[34]=R):R=l[34],R}(T,O);let G,Y;t[5]!==Z||t[6]!==D||t[7]!==m?(G=()=>{let e=null;return B(!1),D&&!Z||!m||(e=setTimeout(()=>{B(!0)},1e3)),()=>{B(!1),null!==e&&clearTimeout(e)}},Y=[D,Z,m,B],t[5]=Z,t[6]=D,t[7]=m,t[8]=G,t[9]=Y):(G=t[8],Y=t[9]),(0,n.useEffect)(G,Y);const{color:U,progressColor:Q,seekBarOnly:X}=N||{},J=H(U||d),K=H(Q||u),ee=X,[te,le]=(0,n.useState)(!1);let ne;t[10]!==j||t[11]!==M||t[12]!==T||t[13]!==W||t[14]!==w||t[15]!==$||t[16]!==z?(ne=()=>{z&&!W&&null!==T?T.play():w(!0),!M&&j&&$()},t[10]=j,t[11]=M,t[12]=T,t[13]=W,t[14]=w,t[15]=$,t[16]=z,t[17]=ne):ne=t[17];const ae=ne;let ie;t[18]!==j||t[19]!==M||t[20]!==w||t[21]!==$?(ie=()=>{w(!1),!M&&j&&$()},t[18]=j,t[19]=M,t[20]=w,t[21]=$,t[22]=ie):ie=t[22];const oe=ie;let se;t[23]!==j||t[24]!==M||t[25]!==C||t[26]!==$?(se=()=>{C(!0),!M&&j&&$()},t[23]=j,t[24]=M,t[25]=C,t[26]=$,t[27]=se):se=t[27];const re=se;let ce;t[28]!==j||t[29]!==M||t[30]!==C||t[31]!==$?(ce=()=>{C(!1),!M&&j&&$()},t[28]=j,t[29]=M,t[30]=C,t[31]=$,t[32]=ce):ce=t[32];const de=ce;let ue;t[33]!==W||t[34]!==w?(ue=()=>{le(W),W&&w(!1)},t[33]=W,t[34]=w,t[35]=ue):ue=t[35];const me=ue;let ge;t[36]!==j||t[37]!==M||t[38]!==F||t[39]!==$?(ge=(e,t)=>{F(e),!M&&j&&$()},t[36]=j,t[37]=M,t[38]=F,t[39]=$,t[40]=ge):ge=t[40];const he=ge;let ye;t[41]!==w||t[42]!==te?(ye=()=>{te&&w(!0)},t[41]=w,t[42]=te,t[43]=ye):ye=t[43];const pe=ye;let fe;t[44]!==j||t[45]!==M||t[46]!==$?(fe=()=>{!M&&j&&$()},t[44]=j,t[45]=M,t[46]=$,t[47]=fe):fe=t[47];const be=fe,ve=null!==T,Me=ve&&(null===R||!0===R),Ne=j&&!M&&W||!j&&Me,$e=k&&!_&&!W;let Fe;t[48]!==W?(Fe=W?(0,I.jsx)(Wl,{className:Sc,color:"currentColor"}):(0,I.jsx)(ql,{className:Sc,color:"currentColor"}),t[48]=W,t[49]=Fe):Fe=t[49];const Te=Fe,Re=Ft(["micromag-viewer-partials-playback-controls-container",h,Ne?y:null,{[Cc]:j&&!ee,[jc]:$e,[Fc]:ve||j,[Tc]:j,[Rc]:ee,[kc]:Ne,[zc]:g,[$c]:q}]);let ze;t[50]!==J||t[51]!==M||t[52]!==p||t[53]!==oe||t[54]!==ae||t[55]!==W||t[56]!==$e?(ze=$e?(0,I.jsx)(El,{className:Ft(["micromag-viewer-partials-playback-controls-suggest"]),style:{color:J},onClick:W?oe:ae,focusable:M,icon:(0,I.jsx)(ql,{className:Ft([Sc,wc]),color:"currentColor"}),"aria-pressed":!W,"aria-label":p.formatMessage({id:"mTqcmA",defaultMessage:"Pause"}),withoutBootstrapStyles:!0}):null,t[50]=J,t[51]=M,t[52]=p,t[53]=oe,t[54]=ae,t[55]=W,t[56]=$e,t[57]=ze):ze=t[57];const Le=$e&&!j;let Ie,Ae;t[58]!==_||t[59]!==Le?(Ie=Ft(["micromag-viewer-partials-playback-controls-playPauseButton",{[Nc]:Le,[Mc]:_}]),t[58]=_,t[59]=Le,t[60]=Ie):Ie=t[60],t[61]!==J?(Ae={color:J},t[61]=J,t[62]=Ae):Ae=t[62];const Pe=W?oe:ae,Be=j&&M&&(!ee||!W);let Ee;t[63]!==_||t[64]!==Te?(Ee=_?(0,I.jsx)(Dl,{className:Ft(["micromag-viewer-partials-playback-controls-spinner",wc])}):Te,t[63]=_,t[64]=Te,t[65]=Ee):Ee=t[65];const Ve=!W;let De,_e;t[66]!==_||t[67]!==p?(De=_?p.formatMessage({id:"YyYrXp",defaultMessage:"Loading"}):p.formatMessage({id:"mTqcmA",defaultMessage:"Pause"}),t[66]=_,t[67]=p,t[68]=De):De=t[68],t[69]!==_||t[70]!==Ie||t[71]!==Ae||t[72]!==Pe||t[73]!==Be||t[74]!==Ee||t[75]!==Ve||t[76]!==De?(_e=(0,I.jsx)(El,{className:Ie,style:Ae,onClick:Pe,focusable:Be,disabled:_,icon:Ee,"aria-pressed":Ve,"aria-label":De,withoutBootstrapStyles:!0}),t[69]=_,t[70]=Ie,t[71]=Ae,t[72]=Pe,t[73]=Be,t[74]=Ee,t[75]=Ve,t[76]=De,t[77]=_e):_e=t[77];const Oe=j&&M&&!ee,He=!Ne&&!ee;let Ze,We;t[78]!==J||t[79]!==Ne||t[80]!==T||t[81]!==he||t[82]!==be||t[83]!==pe||t[84]!==me||t[85]!==W||t[86]!==K||t[87]!==Oe||t[88]!==He?(Ze=(0,I.jsx)(xc,{className:"micromag-viewer-partials-playback-controls-seekBar",media:T,playing:W,onClick:be,onSeek:he,onSeekStart:me,onSeekEnd:pe,focusable:Oe,collapsed:Ne,withSeekHead:He,backgroundColor:J,progressColor:K}),t[78]=J,t[79]=Ne,t[80]=T,t[81]=he,t[82]=be,t[83]=pe,t[84]=me,t[85]=W,t[86]=K,t[87]=Oe,t[88]=He,t[89]=Ze):Ze=t[89],t[90]!==J?(We={color:J},t[90]=J,t[91]=We):We=t[91];const qe=q?de:re,Ge=M||Me;let Ye;t[92]!==q?(Ye=q?(0,I.jsx)(Gl,{className:Sc,color:"currentColor"}):(0,I.jsx)(Zl,{className:Sc,color:"currentColor"}),t[92]=q,t[93]=Ye):Ye=t[93];const Ue=!q;let Qe,Je,Ke;return t[94]!==p?(Qe=p.formatMessage({id:"RK/QEY",defaultMessage:"Unmute"}),t[94]=p,t[95]=Qe):Qe=t[95],t[96]!==We||t[97]!==qe||t[98]!==Ge||t[99]!==Ye||t[100]!==Ue||t[101]!==Qe?(Je=(0,I.jsx)(El,{className:"micromag-viewer-partials-playback-controls-muteButton",style:We,onClick:qe,focusable:Ge,icon:Ye,"aria-pressed":Ue,"aria-label":Qe,withoutBootstrapStyles:!0}),t[96]=We,t[97]=qe,t[98]=Ge,t[99]=Ye,t[100]=Ue,t[101]=Qe,t[102]=Je):Je=t[102],t[103]!==Re||t[104]!==ze||t[105]!==_e||t[106]!==Ze||t[107]!==Je?(Ke=(0,I.jsxs)("div",{className:Re,children:[ze,_e,Ze,Je]}),t[103]=Re,t[104]=ze,t[105]=_e,t[106]=Ze,t[107]=Je,t[108]=Ke):Ke=t[108],Ke}var Pc="micromag-viewer-partials-web-view-opened";function Bc(e){const t=(0,i.c)(58),{onChange:l,trackingEnabled:a,className:o,style:s}=e,r=void 0===l?null:l,c=void 0!==a&&a,d=void 0===o?null:o,u=void 0===s?null:s,m=bt();let g,h,y,p,f;if(t[0]!==m){const{opened:e,close:l,open:n,update:a,url:i,source:o,...s}=m;h=e,g=l,y=i,p=o,f=s,t[0]=m,t[1]=g,t[2]=h,t[3]=y,t[4]=p,t[5]=f}else g=t[1],h=t[2],y=t[3],p=t[4],f=t[5];const b=void 0===y?null:y,v=void 0===p?null:p,{disableInteraction:x,enableInteraction:S}=ft(),{playing:w,setPlaying:C,hideControls:j,showControls:k}=Xe(),M=dl(),N=(0,n.useRef)(w),[$,F]=(0,n.useState)(b),{title:T}=Be(),R=(0,n.useRef)(null);let z;$!==b&&null!==b&&F(b),t[6]!==r||t[7]!==h||t[8]!==b?(z=()=>{null===b&&F(null),null!==r&&r(h)},t[6]=r,t[7]=h,t[8]=b,t[9]=z):z=t[9];const L=z;let A,P,B,E,V;t[10]!==x||t[11]!==S||t[12]!==j||t[13]!==h||t[14]!==w||t[15]!==C||t[16]!==k?(A=()=>{h?(x(),j(),N.current=w,w&&C(!1)):(S(),k(),N.current&&!w&&(N.current=!1,C(!0)))},t[10]=x,t[11]=S,t[12]=j,t[13]=h,t[14]=w,t[15]=C,t[16]=k,t[17]=A):A=t[17],t[18]!==x||t[19]!==S||t[20]!==j||t[21]!==h||t[22]!==w||t[23]!==C||t[24]!==k||t[25]!==M?(P=[h,M,x,S,j,k,w,C],t[18]=x,t[19]=S,t[20]=j,t[21]=h,t[22]=w,t[23]=C,t[24]=k,t[25]=M,t[26]=P):P=t[26],(0,n.useEffect)(A,P),t[27]!==$||t[28]!==h||t[29]!==v||t[30]!==M||t[31]!==c?(B=()=>{c&&null!==$&&M("viewer_webview",h?"open":"close",$,{source:v})},t[27]=$,t[28]=h,t[29]=v,t[30]=M,t[31]=c,t[32]=B):B=t[32],t[33]!==$||t[34]!==h||t[35]!==c?(E=[c,$,h],t[33]=$,t[34]=h,t[35]=c,t[36]=E):E=t[36],(0,n.useEffect)(B,E),t[37]!==g?(V={escape:()=>{g()}},t[37]=g,t[38]=V):V=t[38],xr(V);const D=b||$;let _;if(t[39]!==v||t[40]!==T||t[41]!==b||t[42]!==D){const e=Ua.A.parse(null!==D&&-1!==D.indexOf("?")?D.split("?")[1]:"");_=null!==D?`${D.split("?")[0]}?${Ua.A.stringify({utm_source:"Micromag",utm_medium:v||"webview",utm_campaign:T,...e})}`:b,t[39]=v,t[40]=T,t[41]=b,t[42]=D,t[43]=_}else _=t[43];const O=_;let H,Z,W;return t[44]!==d||t[45]!==h?(H=Ft(["micromag-viewer-partials-web-view-container",d,{[Pc]:h}]),t[44]=d,t[45]=h,t[46]=H):H=t[46],t[47]!==g||t[48]!==O||t[49]!==h||t[50]!==v||t[51]!==f?(Z=(0,I.jsx)(br,{url:O,source:v,...f,closeable:h,focusable:h,className:"micromag-viewer-partials-web-view-webView",onClose:g}),t[47]=g,t[48]=O,t[49]=h,t[50]=v,t[51]=f,t[52]=Z):Z=t[52],t[53]!==L||t[54]!==u||t[55]!==H||t[56]!==Z?(W=(0,I.jsx)("div",{className:H,style:u,onTransitionEnd:L,ref:R,children:Z}),t[53]=L,t[54]=u,t[55]=H,t[56]=Z,t[57]=W):W=t[57],W}const Ec={tension:300,friction:35},Vc=ke("micromag:viewer"),Dc=["share","main"],_c=[{name:"mobile"},{name:"small",mediaQuery:"only screen and (min-width: 500px)"},{name:"medium",mediaQuery:"only screen and (min-width: 790px)"},{name:"large",mediaQuery:"only screen and (min-width: 1000px)"},{name:"very-large",mediaQuery:"only screen and (min-width: 1600px)"}];function Oc(e){const t=(0,i.c)(128),{story:a,basePath:o,theme:s,width:r,height:c,screen:d,screenState:u,deviceScreens:m,renderContext:h,tapNextScreenWidthPercent:y,tapMaximumDuration:p,longPressPauseDelay:f,storyIsParsed:b,neighborScreensActive:v,neighborScreenOffset:x,neighborScreenScale:S,neighborPreloadDelay:w,neighborPreloadBackward:C,neighborPreloadScreens:j,topSafezoneHeight:k,bottomSafezoneHeight:M,menuIsScreenWidth:N,menuHeader:$,menuFooter:F,menuItems:T,shareBasePath:R,shareOptions:L,afterShareMenuButton:P,beforeScreensMenuButton:B,backToFirstScreenTimeout:E,menuDotsButtons:V,closeable:D,readyWithoutSize:_,withMetadata:O,withMicromagBranding:Z,withoutGestures:W,withoutMenu:q,withoutScreensMenu:G,withoutShareMenu:Y,withoutMenuShadow:U,withoutNavigationArrow:Q,withoutTransitions:X,withNeighborScreens:J,withFullscreenWebView:K,withNavigationHint:ee,withoutPlaybackControls:te,withoutAutoUnmute:le,onClose:ne,onInteraction:ae,onEnd:ie,onScreenChange:oe,onViewModeChange:se,onMenuChange:re,currentScreenMedia:ce,screensMedias:de,screenSizeOptions:ue,className:me}=e,ge=void 0===a?null:a,he=void 0===o?null:o,ye=void 0===s?null:s,fe=void 0===r?null:r,be=void 0===c?null:c,ve=void 0===d?null:d,xe=void 0===u?null:u,we=void 0===m?_c:m,ke=void 0===h?"view":h,Me=void 0===y?.8:y,Ne=void 0===p?1500:p,$e=void 0===f?500:f,Fe=void 0!==b&&b,Te=void 0===v?1:v,Re=void 0===x?105:x,Le=void 0===S?.8:S,Ae=void 0===w?2e3:w,Pe=void 0===C||C,Be=void 0===j?null:j,Ve=void 0===k?null:k,De=void 0===M?null:M,_e=void 0!==N&&N,Oe=void 0===$?null:$,He=void 0===F?null:F,Ze=void 0===T?Dc:T,We=void 0===R?null:R,qe=void 0===L?null:L,Ge=void 0===P?null:P,Ye=void 0===B?null:B,Ue=void 0===E?null:E,Qe=void 0===V?null:V,Je=void 0!==D&&D,Ke=void 0!==_&&_,et=void 0!==O&&O,tt=void 0!==Z&&Z,lt=void 0!==W&&W,nt=void 0!==q&&q,at=void 0!==G&&G,it=void 0!==Y&&Y,ot=void 0!==U&&U,st=void 0!==Q&&Q,rt=void 0!==X&&X,ut=void 0!==J&&J,mt=void 0!==K&&K,gt=void 0===ee?"hand":ee,ht=void 0!==te&&te,yt=void 0!==le&&le,pt=void 0===ne?null:ne,ft=void 0===ae?null:ae,bt=void 0===ie?null:ie,xt=void 0===oe?null:oe,St=void 0===se?null:se,wt=void 0===re?null:re,Ct=void 0===ce?null:ce,jt=void 0===de?null:de,kt=void 0===ue?null:ue,Mt=void 0===me?null:me,Nt=(0,A.tz)(),$t=((e,{disabled:t=!1,withTheme:l=!0,withMedias:a=!0,withFonts:i=!0,withMigrations:o=!0}={})=>{const s=Ie(),r=(0,n.use)(ze),[c]=(0,n.useState)(()=>new z({screensManager:s,fieldsManager:r,fieldsPattern:s.getFieldsPattern()}));return(0,n.useMemo)(()=>t?e:c.parse(e,{withMedias:a,withTheme:l,withFonts:i,withMigrations:o}),[c,t,a,l,i,e])})(ge,{disabled:Fe})||{},{components:Rt,title:zt,metadata:It,fonts:Pt}=$t,Bt=void 0===Rt?[]:Rt,Ot=void 0===zt?null:zt,Zt=void 0===It?null:It,Wt=void 0===Pt?null:Pt,qt=Bt.length,[Gt]=(0,n.useState)(Xc);let Yt;t[0]!==ve?(Yt=e=>`${e.id}`==`${ve}`,t[0]=ve,t[1]=Yt):Yt=t[1];const Ut=Math.max(0,Bt.findIndex(Yt)),Qt=Bt[Ut]||null,{parameters:Xt}=Qt||{},{metadata:Jt}=Xt||{},{title:Kt,description:el}=Jt||{},tl=void 0===Kt?null:Kt,ll=void 0===el?null:el,ol=null!==tl?tl:Ot,rl=null!==ll?{...Zt,description:ll}:Zt;let cl;t[2]===Symbol.for("react.memo_cache_sentinel")?(cl=[],t[2]=cl):cl=t[2];const dl=(0,n.useRef)(cl);let ul,ml,gl;t[3]!==Ut?(ul=()=>dl.current[Ut]||null,ml=[Ut],t[3]=Ut,t[4]=ul,t[5]=ml):(ul=t[4],ml=t[5]),(0,n.useImperativeHandle)(Ct,ul,ml),t[6]===Symbol.for("react.memo_cache_sentinel")?(gl=()=>dl.current,t[6]=gl):gl=t[6],(0,n.useImperativeHandle)(jt,gl,[ge,Bt,Ut]);const{textStyles:hl,colors:yl}=ye||{},{primary:pl,focus:fl}=yl||{},bl=H((void 0===fl?null:fl)||(void 0===pl?null:pl)),{title:vl}=hl||{},xl=void 0===vl?null:vl,{fontFamily:Sl}=xl||{},wl=[...Wt||[],void 0===Sl?null:Sl].filter(Qc);(e=>{const[t,a]=(0,n.useState)(!1);(0,n.useEffect)(()=>{const t=e.reduce((e,t)=>{const{type:l,name:n,variants:a=[]}=g(t)?t:{type:"system",name:t};return"google"!==l&&"custom"!==l||(e=>-1!==Ht.loading.indexOf(e))(n)||(e=>-1!==Ht.active.indexOf(e))(n)?e:{...e,[l]:{families:[...null!==e&&(e[l]||{}).families||[],"google"===l?[n,(a||[]).filter(e=>null!==e).join(",")].filter(e=>null!==e&&e.length>0).join(":"):[n,(null!==a?[{fvd:"n4"},...a]:[]).map(({fvd:e=null,weight:t=null,style:l=null})=>e||[l,t].filter(e=>null!==e).map(e=>`${e}`.substr(0,1)).join("")).filter(e=>null!==e&&e.length>0).join(",")].filter(e=>null!==e&&e.length>0).join(":")]}}},null);null!==t&&"undefined"!=typeof window?l.e(490).then(l.t.bind(l,6490,19)).then(({default:e})=>e.load({...t,timeout:3e3,active:()=>a(!0),fontloading:e=>{return t=e,Ht.active=Ht.active.filter(e=>e!==t),void(Ht.loading=[...Ht.loading,t]);var t},fontactive:e=>{return t=e,Ht.loading=Ht.loading.filter(e=>e!==t),void(Ht.active=[...Ht.active,t]);var t},fontinactive:e=>{return t=e,void(Ht.loading=Ht.loading.filter(e=>e!==t));var t}})):a(!0)},[e,a])})(wl);const Cl="view"===ke,jl="edit"===ke,kl="static"===ke||"capture"===ke,{playing:Ml,setPlaying:Nl,controls:$l,controlsVisible:Fl,media:Rl,completed:zl,isBackground:Ll,setMuted:Il}=Xe(),Al=void 0!==$l&&$l,Pl=void 0!==Fl&&Fl,Bl=void 0===Rl?null:Rl,El=void 0!==zl&&zl,Vl=void 0!==Ll&&Ll,Dl=void 0===Il?null:Il,_l=Al&&Pl,{ref:Ol,height:Hl}=_t(),Zl=void 0===Hl?0:Hl,Wl=(()=>{const e=(0,i.c)(2),t=dt();let l;return e[0]!==t?(l=(e,l)=>{const n=void 0===e?null:e,a=void 0===l?null:l;sl(t)&&null!==n&&null!==a&&t.trackScreenView(n,a)},e[0]=t,e[1]=l):l=e[1],l})(),ql=(0,n.useRef)(null);let Gl;t[7]!==we||t[8]!==be||t[9]!==kt||t[10]!==fe?(Gl={width:fe,height:be,screens:we,...kt},t[7]=we,t[8]=be,t[9]=kt,t[10]=fe,t[11]=Gl):Gl=t[11];const{ref:Yl,fullWidth:Ul,fullHeight:Ql,screenSize:Xl,scale:Jl}=(e=>{const t=(0,i.c)(25),l=void 0===e?null:e;let n,a,o,s;t[0]!==l?(n=l||{},t[0]=l,t[1]=n):n=t[1],t[2]!==n?(({width:o,height:s,...a}=n),t[2]=n,t[3]=a,t[4]=o,t[5]=s):(a=t[3],o=t[4],s=t[5]);const r=void 0===o?null:o,c=void 0===s?null:s,{ref:d,width:u,height:m}=_t(),g=void 0===u?0:u,h=void 0===m?0:m,y=nl(),p=null!==r?r:g,f=null!==c?c:h;let b;t[6]!==a?(b=a||{},t[6]=a,t[7]=b):b=t[7];const{screenWidth:v,screenHeight:x,withoutMaxSize:S,landscapeMinHeight:w,menuAlwaysOverScreen:C,landscapeMinRatio:j,withoutScale:k}=b,M=void 0===v?320:v,N=void 0!==k&&k,$=M/(void 0===x?480:x),F=f>0&&p/f>((void 0===j?al:j)||$);let T=p,R=f,z=!F;if(F&&(void 0===S||!S)){let e;f<(void 0===w?600:w)||void 0===C||C?z=!0:R=f-100,t[8]!==R||t[9]!==$?(e=Math.round(R*$),t[8]=R,t[9]=$,t[10]=e):e=t[10],T=e}T%2==1&&(T-=1),R%2==1&&(R-=1);const L=T>0?T/M:null,I=N||null===L?T:M,A=N||null===L?R:R/L,P=N?null:L;let B;t[11]!==F||t[12]!==z||t[13]!==a||t[14]!==I||t[15]!==A||t[16]!==P?(B={width:I,height:A,landscape:F,menuOverScreen:z,scale:P,...a},t[11]=F,t[12]=z,t[13]=a,t[14]=I,t[15]=A,t[16]=P,t[17]=B):B=t[17];const E=(e=>{const t=(0,i.c)(23),{width:l,height:n,landscape:a,menuOverScreen:o,screens:s,mediaType:r,media:c,scale:d}=e,u=void 0===l?null:l,m=void 0===n?null:n,g=void 0!==a&&a,h=void 0!==o&&o,y=void 0===s?null:s,p=void 0===r?"screen":r,f=void 0===c?null:c,b=void 0===d?null:d,v=nl();let x,S;if(t[0]!==m||t[1]!==y||t[2]!==p||t[3]!==f||t[4]!==u){const e=y||[];let l;t[7]!==m||t[8]!==p||t[9]!==f||t[10]!==u?(l=null!==f?f:{type:p,width:`${u}px`,height:`${m}px`},t[7]=m,t[8]=p,t[9]=f,t[10]=u,t[11]=l):l=t[11];const n=l;let a;t[12]!==n?(a=e=>{const{mediaQuery:t}=e,l=void 0===t?null:t;return null===l||(0,Lt.Y)(l,n)},t[12]=n,t[13]=a):a=t[13];const i=[...e].reverse().filter(a);S=i.length>0?i[0].name:null,x=[...i].reverse().map(il),t[0]=m,t[1]=y,t[2]=p,t[3]=f,t[4]=u,t[5]=x,t[6]=S}else x=t[5],S=t[6];const w=null!==b?b*v:v,C=null!==b?Math.max(b,v):v;let j;return t[14]!==m||t[15]!==g||t[16]!==h||t[17]!==x||t[18]!==w||t[19]!==C||t[20]!==S||t[21]!==u?(j={screen:S,screens:x,width:u,height:m,landscape:g,menuOverScreen:h,resolution:w,imageResolution:C},t[14]=m,t[15]=g,t[16]=h,t[17]=x,t[18]=w,t[19]=C,t[20]=S,t[21]=u,t[22]=j):j=t[22],j})(B),V=N?null:L,D=N?y:L*y;let _;return t[18]!==f||t[19]!==p||t[20]!==d||t[21]!==E||t[22]!==V||t[23]!==D?(_={ref:d,fullWidth:p,fullHeight:f,screenSize:E,scale:V,resolution:D},t[18]=f,t[19]=p,t[20]=d,t[21]=E,t[22]=V,t[23]=D,t[24]=_):_=t[24],_})(Gl),{width:Kl,height:en,landscape:tn,menuOverScreen:ln}=Xl||{},nn=void 0===Kl?null:Kl,an=void 0===en?null:en,on=void 0!==tn&&tn,rn=void 0!==ln&&ln,cn=null!==Jl&&null!==nn?nn*Jl:nn,un=null!==Jl&&null!==an?an*Jl:an,mn=nn>0&&an>0||Ke,gn=Cl;(0,n.useEffect)(()=>{gn&&null!==Qt&&Wl(Qt,Ut)},[Qt,Ut,Wl,gn]),(0,n.useEffect)(()=>{mn&&null!==St&&St({landscape:on,menuOverScreen:rn})},[mn,on,rn,St]),(0,n.useEffect)(()=>{null!==ql.current&&null!==bl&&ql.current.style.setProperty("--micromag-focus-color",bl)},[bl,ql]);const[hn,yn]=(0,n.useState)(!1),pn=on&&ut?"carousel":"stack",fn=(0,n.useRef)(null),bn=e=>{if(e===Ut)return;yn(!1);const t=fn.current,l=dl.current[e]||null;!function(e,t,l){null!==e&&l&&"true"!==e.dataset.forcePlaying&&!Se(e)&&(null!==t&&(Vc("Pause media: %s",je(Ce(t))),t.dataset.forcePlaying="false",t.pause()),Vc("Force playing media: %s",je(Ce(e))),e.play().catch(()=>{}),e.dataset.forcePlaying="true")}(l,t,Ml),fn.current=l,null!==xt&&xt(Bt[e],e)},vn=e=>{const{index:t,newIndex:l,end:n,direction:a}=e;n&&null!==bt&&bt(),bn(l),Gt.emit("navigate",{index:t,newIndex:l,direction:a,end:n}),n?Gt.emit("navigate_end"):Gt.emit(`navigate_${a}`,l)},xn=()=>{bn(Math.max(0,Ut-1))},Sn=()=>{bn(Math.min(Bt.length-1,Ut+1))},[wn,Cn]=(0,n.useState)(!1),[jn,kn]=(0,n.useState)(!1);let Mn;t[12]!==wn||t[13]!==ft||t[14]!==Dl||t[15]!==jn||t[16]!==yt?(Mn=e=>{const{target:t}=void 0===e?{}:e,l=void 0===t?null:t;null!==ft&&ft(),wn||Cn(!0),yt||jn||null===Dl||null!==l&&Sr(l)||(Dl(!1),kn(!0))},t[12]=wn,t[13]=ft,t[14]=Dl,t[15]=jn,t[16]=yt,t[17]=Mn):Mn=t[17];const Nn=Mn,{interact:$n,currentScreenInteractionEnabled:Fn,enableInteraction:Tn,disableInteraction:Rn}=function(e){const t=(0,i.c)(27),{screens:l,screenIndex:a,screenWidth:o,disableCurrentScreenNavigation:s,clickOnSiblings:r,nextScreenWidthPercent:c,onInteract:d,onNavigate:u}=e,m=void 0!==s&&s,g=void 0!==r&&r,h=void 0===c?.5:c,y=void 0===d?null:d,p=void 0===u?null:u;let f;t[0]!==l?(f=()=>l.reduce(wr,{}),t[0]=l,t[1]=f):f=t[1];const[b,v]=(0,n.useState)(f);let x;t[2]!==a||t[3]!==l?(x=l[a]||{},t[2]=a,t[3]=l,t[4]=x):x=t[4];const{id:S}=x,w=!S||(b[S]??!0);let C;t[5]!==S||t[6]!==l?(C=e=>{v(t=>(t?.[S]??!0)===e?t:l.reduce((l,n)=>{const{id:a}=n;return S===a?{...l,[a]:e}:{...l,[a]:void 0===t[a]||!0===t[a]}},{}))},t[5]=S,t[6]=l,t[7]=C):C=t[7];const j=C;let k;t[8]!==j?(k=()=>j(!0),t[8]=j,t[9]=k):k=t[9];const M=k;let N;t[10]!==j?(N=()=>j(!1),t[10]=j,t[11]=N):N=t[11];const $=N;let F;t[12]!==g||t[13]!==w||t[14]!==m||t[15]!==h||t[16]!==y||t[17]!==p||t[18]!==a||t[19]!==o||t[20]!==l.length?(F=e=>{const{event:t,target:n,currentTarget:i,x:s,y:r,index:c}=e;null!==y&&y({event:t,target:n,currentTarget:i,index:c,x:s,y:r});const d=l.length,u=a===c;if(m&&u||Sr(n)||u&&!w)return;const{width:f}=i.getBoundingClientRect(),b=s<(f-o)/2+o*(1-h)?"previous":"next",v=d-1;let x=c;"previous"!==b||g?"next"!==b||g||(x=Math.min(v,a+1)):x=Math.max(0,a-1),null!==p&&p({index:c,newIndex:x,direction:b,end:c===x&&x===v})},t[12]=g,t[13]=w,t[14]=m,t[15]=h,t[16]=y,t[17]=p,t[18]=a,t[19]=o,t[20]=l.length,t[21]=F):F=t[21];const T=F;let R;return t[22]!==w||t[23]!==$||t[24]!==M||t[25]!==T?(R={interact:T,currentScreenInteractionEnabled:w,enableInteraction:M,disableInteraction:$},t[22]=w,t[23]=$,t[24]=M,t[25]=T,t[26]=R):R=t[26],R}({screens:Bt,screenIndex:Ut,screenWidth:cn,disableCurrentScreenNavigation:!Cl,nextScreenWidthPercent:Me,onInteract:Nn,onNavigate:vn}),[zn,Ln]=(0,n.useState)(null),[In,An]=(0,n.useState)(!1),[Pn,Bn]=(0,n.useState)(Ut);let En,Vn,Dn;Ut===Pn||!In&&null===zn?In&&null!==zn&&Ln(null):(An(!1),Ln(null)),t[18]!==$e||t[19]!==Bl||t[20]!==Ml||t[21]!==zn||t[22]!==Ut||t[23]!==Nl?(En=()=>{const{tagName:e}=Bl||{};if(null===zn||!Ml||"VIDEO"!==e)return Uc;const t=setTimeout(()=>{Nl(!1),An(!0),Bn(Ut)},$e);return()=>clearTimeout(t)},Vn=[Ml,zn,$e,Bl,Nl,Ut],t[18]=$e,t[19]=Bl,t[20]=Ml,t[21]=zn,t[22]=Ut,t[23]=Nl,t[24]=En,t[25]=Vn):(En=t[24],Vn=t[25]),(0,n.useEffect)(En,Vn),t[26]!==Ut?(Dn=e=>{Sr(e.target)||(Ln(Date.now()),Bn(Ut))},t[26]=Ut,t[27]=Dn):Dn=t[27];const _n=Dn;let On;t[28]!==$n||t[29]!==Ut||t[30]!==Nl||t[31]!==Ne?(On=e=>{const{currentTarget:t,event:l,target:n,xy:a,elapsedTime:i,args:o}=e,[s,r]=a,[c]=o;Ln(null);const{playing:d,longPressPaused:u}=c||{};if((void 0===d||!d)&&void 0!==u&&u)return Nl(!0),An(!1),void Ln(null);null!==Ne&&i>Ne||$n({event:l,target:n,currentTarget:t,index:Ut,x:s,y:r})},t[28]=$n,t[29]=Ut,t[30]=Nl,t[31]=Ne,t[32]=On):On=t[32];const Hn=On,Zn=0===qt||Fn,Wn=!1===Fn,{dragging:qn,transitioning:Gn,progress:Yn,bind:Un,direction:Qn}=Et({progress:Ut,disabled:!Cl||rt,dragDisabled:lt||!Fn,computeProgress:e=>{const{active:t,movement:l,velocity:n}=e,[a]=l,[i]=n,o=a/cn,s=a<0?Ut+1:Ut-1,r=i>.3||Math.abs(o)>.3,c=s<0||s>=qt,d=c?.1:1,u=Math.max(-1,Math.min(1,o*d));return t?Ut-u:r&&!c?s:Ut},onProgress:(e,t)=>{const{active:l,args:n}=t,[a]=n,{playing:i,longPressPaused:o}=a||{};l||void 0!==i&&i||void 0===o||!o||(Nl(!0),An(!1));const s=Math.abs(e-Ut);l||1!==s||e<0||e>=qt||vn({index:Ut,newIndex:e,end:e===qt-1,direction:e>Ut?1:-1})},onPointerDown:_n,onTap:Hn,springParams:{config:Ec},dragOptions:{filterTaps:!0,axis:"x",pointer:{keys:!1}}});let Xn;t[33]!==Un||t[34]!==In||t[35]!==Ml?(Xn=Un({playing:Ml,longPressPaused:In}),t[33]=Un,t[34]=In,t[35]=Ml,t[36]=Xn):Xn=t[36];const Jn=Xn;let Kn;t[37]!==Jn?(Kn={onClickCapture:e=>Sr(e.target)?null:Jn?.onClickCapture?.(e),onLostPointerCapture:e=>Sr(e.target)?null:Jn?.onLostPointerCapture?.(e),onPointerCancel:e=>Sr(e.target)?null:Jn?.onPointerCancel?.(e),onPointerDown:e=>Sr(e.target)?null:Jn?.onPointerDown?.(e),onPointerMove:e=>Sr(e.target)?null:Jn?.onPointerMove?.(e),onPointerUp:e=>Sr(e.target)?null:Jn?.onPointerUp?.(e),onScroll:e=>Sr(e.target)?null:Jn?.onScroll?.(e)},t[37]=Jn,t[38]=Kn):Kn=t[38];const ea=Kn;let ta;t[39]!==Re||t[40]!==Le||t[41]!==Te||t[42]!==qt||t[43]!==pn?(ta=(e,t)=>"stack"===pn?{zIndex:e,opacity:t.to(t=>{const l=e-t,n=Math.min(1,Math.max(0,-l));return Math.abs(l)>Te?0:Math.min(Math.max(0,1-.75*n+(l+1)),1)}),transform:t.to(t=>{const l=e-t,n=Math.min(1,Math.max(0,l)),a=Math.min(1,Math.max(0,-l));return Math.abs(l)>Te?"translateX(100%)":`translateX(${100*n}%) scale(${1-.2*a})`}),boxShadow:t.to(t=>{const l=e-t;if(Math.abs(l)>Te)return null;const n=Math.min(1,Math.max(0,l));return`0 0 ${2*(1-n)}rem ${-.5*(1-n)}rem black`})}:{opacity:t.to(t=>{const l=e-t;return Math.abs(l)>Te?0:1-.75*Math.min(1,Math.max(0,Math.abs(l)))}),transform:t.to(t=>{const l=e-t;if(Math.abs(l)>Te)return"translate(100%)";const n=Math.min(1,Math.max(0,Math.abs(l)));return`translateX(${l*Re}%) scale(${1-(1-Le)*n})`}),zIndex:qt-e},t[39]=Re,t[40]=Le,t[41]=Te,t[42]=qt,t[43]=pn,t[44]=ta):ta=t[44];const la=ta,{ref:na,toggle:aa,active:ia,enabled:oa}=(()=>{const e=(0,i.c)(9),t=(0,n.useRef)(null),[l,a]=(0,n.useState)(Vt),[o,s]=(0,n.useState)(!1);let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{const{current:e}=t,l=void 0===e?null:e;Tt.isEnabled&&(null!==l?Tt.request(l):Tt.request())},e[0]=r):r=e[0];const c=r,d=Dt;let u;e[1]!==o?(u=()=>{o?d():c()},e[1]=o,e[2]=u):u=e[2];const m=u;let g,h,y;return e[3]===Symbol.for("react.memo_cache_sentinel")?(g=()=>{a(Tt.isEnabled);const e=()=>{s(Tt.isFullscreen)};return Tt.isEnabled&&Tt.on("change",e),()=>{Tt.isEnabled&&Tt.off("change",e)}},h=[],e[3]=g,e[4]=h):(g=e[3],h=e[4]),(0,n.useEffect)(g,h),e[5]!==o||e[6]!==l||e[7]!==m?(y={ref:t,toggle:m,fullscreen:c,unFullscreen:d,active:o,enabled:l},e[5]=o,e[6]=l,e[7]=m,e[8]=y):y=e[8],y})(),{ref:sa,height:ra}=_t(),ca=void 0===ra?0:ra,da=e=>!!on||(e.preventDefault(),!1);let ua;t[45]===Symbol.for("react.memo_cache_sentinel")?(ua=(0,I.jsx)("style",{type:"text/css",href:"data-viewer-overscroll",precedence:"medium",dangerouslySetInnerHTML:{__html:"body { overscroll-behavior: contain; }"}}),t[45]=ua):ua=t[45];const ma=ua;let ga;t[46]!==aa?(ga=()=>aa(),t[46]=aa,t[47]=ga):ga=t[47];const ha="view"!==ke;let ya;t[48]!==ha?(ya={disabled:ha},t[48]=ha,t[49]=ya):ya=t[49],xr({f:ga,arrowleft:()=>{Cr(document.activeElement)||xn()},arrowright:()=>{Cr(document.activeElement)||Sn()}},ya);const pa=Gc,[fa,ba]=(0,n.useState)(null),[va,xa]=(0,n.useState)(!1),{header:Sa}=Qt||{},wa=void 0===Sa?null:Sa,{shareIncentive:Ca}=wa||{},ja=void 0===Ca?null:Ca,{active:ka,label:Ma}=ja||{},Na=void 0!==ka&&ka,$a=void 0===Ma?null:Ma,{label:Fa}=fa||{},Ta=void 0===Fa?null:Fa,{body:Ra}=$a||{},za=void 0===Ra?null:Ra,{body:La}=Ta||{};let Ia,Aa,Pa,Ba;Na&&za!==(void 0===La?null:La)&&(ba(ja),xa(!0)),t[50]!==Cl||t[51]!==va?(Ia=()=>{if(!va||!Cl)return qc;const e=setTimeout(()=>{xa(!1)},6e3);return()=>{clearTimeout(e)}},Aa=[va,Cl],t[50]=Cl,t[51]=va,t[52]=Ia,t[53]=Aa):(Ia=t[52],Aa=t[53]),(0,n.useEffect)(Ia,Aa),t[54]!==Ae||t[55]!==hn?(Pa=()=>{if(hn)return Wc;const e=setTimeout(()=>{yn(!0)},Ae);return()=>{clearTimeout(e)}},Ba=[hn,Ae],t[54]=Ae,t[55]=hn,t[56]=Pa,t[57]=Ba):(Pa=t[56],Ba=t[57]),(0,n.useEffect)(Pa,Ba);let Ea=0;null!==Ve?Ea=Ve/Jl:rn&&Fn&&(Ea=ca/Jl);let Va=0;null!==De?Va=De/Jl:Al&&(Pl||!Ml)&&Fn&&(Va=Zl/Jl);const Da="hand"===gt?fc:hc,_a=!Cl;let Oa;t[58]!==_a?(Oa={disabled:_a,timeout:2e3},t[58]=_a,t[59]=Oa):Oa=t[59];const{ref:Ha,detected:Za}=function(e){const t=(0,i.c)(8);let l;t[0]!==e?(l=void 0===e?{}:e,t[0]=e,t[1]=l):l=t[1];const{disabled:a,timeout:o}=l,s=void 0!==a&&a,r=void 0===o?2e3:o,c=(0,n.useRef)(null),[d,u]=(0,n.useState)(!1),m=(0,n.useRef)(d);let g,h,y;return t[2]!==s||t[3]!==r?(g=()=>{const{current:e}=c,t=void 0===e?null:e;if(null===t||s)return At;let l=null;const n=function(){null!==l&&(clearTimeout(l),l=null),m.current||(m.current=!0,u(!0)),l=setTimeout(()=>{m.current=!1,u(!1)},r)};return t.addEventListener("keydown",n),t.addEventListener("mousedown",n),t.addEventListener("mousemove",n),t.addEventListener("mouseup",n),t.addEventListener("pointerdown",n),t.addEventListener("pointermove",n),t.addEventListener("pointerup",n),t.addEventListener("touchmove",n),t.addEventListener("touchstart",n),()=>{null!==l&&(clearTimeout(l),l=null),t.removeEventListener("keydown",n),t.removeEventListener("mousedown",n),t.removeEventListener("mousemove",n),t.removeEventListener("mouseup",n),t.removeEventListener("pointerdown",n),t.removeEventListener("pointermove",n),t.removeEventListener("pointerup",n),t.removeEventListener("touchmove",n),t.removeEventListener("touchstart",n)}},h=[s,r],t[2]=s,t[3]=r,t[4]=g,t[5]=h):(g=t[4],h=t[5]),(0,n.useEffect)(g,h),t[6]!==d?(y={ref:c,detected:d},t[6]=d,t[7]=y):y=t[7],y}(Oa),Wa=null!==Ue&&Cl&&qt>1&&0!==Ut&&(!(null!==Bl&&!Vl)||El)&&!qn&&!Za;(0,n.useEffect)(()=>{if(!Wa)return Zc;const e=setTimeout(()=>{bn(0)},Ue);return()=>{clearTimeout(e)}},[Wa,Ue,bn]);const qa=Ee,Ga=ct,Ya=vt,Ua=Ea,Qa=Va,Xa=!Pl&&Ml&&null===Bl||!Fn?0:60/Jl,Ja=et?(0,I.jsx)(dn,{title:ol,metadata:rl,children:ma}):ma;let Ka;t[60]!==wl?(Ka=(0,I.jsx)(sn,{fonts:wl}),t[60]=wl,t[61]=Ka):Ka=t[61];const ei=Ft([oc.container,Xl.screens.map(Hc),Mt,{[oc.landscape]:on,[oc.withoutGestures]:lt,[oc.hideMenu]:!Zn,[oc.disableMenu]:Wn,[oc.fadeMenu]:Ml&&Al&&!Pl,[oc.ready]:mn||kl,[oc.hasInteracted]:wn,[oc.isDragging]:qn}]);let ti;t[62]!==Ha||t[63]!==ql||t[64]!==na||t[65]!==Yl?(ti=pe(ql,na,Ha,Yl),t[62]=Ha,t[63]=ql,t[64]=na,t[65]=Yl,t[66]=ti):ti=t[66];const li=Ut+1;let ni,ai,ii,oi;t[67]!==Bt||t[68]!==li?(ni=(0,I.jsx)("div",{className:oc.ariaAnnouncement,id:"announce","aria-live":"polite",children:(0,I.jsx)(A.sA,{id:"AIr8rM",defaultMessage:"Screen {current} of {length}",values:{current:li,length:Bt.length}})}),t[67]=Bt,t[68]=li,t[69]=ni):ni=t[69],t[70]!==Nt?(ai=Nt.formatMessage({id:"gfZs4J",defaultMessage:"Skip Links"}),t[70]=Nt,t[71]=ai):ai=t[71],t[72]!==Pl||t[73]!==_l||t[74]!==ht?(ii=_l?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Mr,{onClick:pa,"aria-disabled":ht||!Pl,"aria-describedby":"disabledReason",className:Ft([oc.accessibilityButton,{[oc.disabled]:ht||!Pl}]),children:(0,I.jsx)(A.sA,{id:"CnVj9r",defaultMessage:"Skip to controls"})}),ht||!Pl?(0,I.jsx)("div",{role:"tooltip",className:oc.tooltipBox,id:"disabledReason",children:(0,I.jsx)("span",{className:oc.tooltip,children:(0,I.jsx)(A.sA,{id:"YXhRxW",defaultMessage:"No controls available"})})}):null]}):null,t[72]=Pl,t[73]=_l,t[74]=ht,t[75]=ii):ii=t[75],t[76]!==ai||t[77]!==ii?(oi=(0,I.jsx)("nav",{"aria-label":ai,className:oc.accessibilityLinks,children:ii}),t[76]=ai,t[77]=ii,t[78]=oi):oi=t[78];const si=nt?null:(0,I.jsx)(rc,{story:$t,currentScreenIndex:Ut,withShadow:rn&&!ot,toggleFullscreen:aa,fullscreenActive:ia,fullscreenEnabled:oa,menuDotsButtons:Qe,closeable:Je,shareBasePath:We||he,shareOptions:qe,screenSize:Xl,menuWidth:_e?cn:null,theme:ye,previewHeader:Oe,previewFooter:He,trackingEnabled:gn,onClickScreen:e=>{const{screenId:t}=e;Nn();const l=Bt.findIndex(e=>{const{id:l}=e;return l===t});bn(l)},onClickCloseViewer:pt,onChange:wt,withDotItemClick:cn>400,withoutScreensMenu:at,withoutShareMenu:it,menuItems:Ze,afterShareMenuButton:Ge,beforeScreensMenuButton:Ye,withMicromagBranding:tt,refDots:sa}),ri=mn||kl?(0,I.jsxs)("div",{className:oc.content,...ea,children:[!st&&!ut&&!Wn&&Ut>0&&Bt.length>1?(0,I.jsx)(mc,{direction:"previous",className:Ft([oc.navButton,oc.previous]),onClick:xn,ariaLabel:Nt.formatMessage({id:"zYH/31",defaultMessage:"Go to previous screen"})}):null,(0,I.jsx)("div",{className:oc.screensFrame,style:{width:cn,height:un,overflow:ut?null:"hidden"},children:Bt.map((e,t)=>{const l=Ut===t,n=t<Ut,a=t>Ut,i=0!==Qn&&t===Ut+Qn,o=Te,s=Math.abs(t-Ut)<=o,r=null!==Be?Be:Te,c=Math.abs(t-Ut)<=r,d=l||s||i,u=l||hn&&(a&&c||Pe&&n&&c)||i,m=la(t,Yn),g=l||qn&&i||0!==Qn&&!qn&&t===Ut-Qn||ut&&d;return(0,I.jsx)(Tl.CS.div,{id:l?"content":null,"aria-hidden":!l,style:m,tabIndex:l?0:-1,className:Ft([oc.screenContainer,{[oc.visible]:g,[oc.preload]:u,[oc.current]:l&&!Gn}]),children:null!==e?(0,I.jsx)(dc,{className:oc.screen,screen:e,screenState:l?xe:null,index:t,current:l,active:d||l,ready:l&&!Gn,preload:u||l,mediaRef:e=>{dl.current[t]=e},renderContext:ke,width:nn,height:an,scale:Jl}):null},`screen-viewer-${e.id||""}-${t+1}`)})}),!st&&!ut&&!Wn&&Ut<Bt.length-1?(0,I.jsx)(mc,{direction:"next",className:Ft([oc.navButton,oc.next]),onClick:Sn,ariaLabel:Nt.formatMessage({id:"v9bqYj",defaultMessage:"Go to next screen"})}):null,ht?null:(0,I.jsx)("div",{className:oc.playbackControls,id:"controls",ref:Ol,...jr,children:(0,I.jsx)(Ac,{className:oc.controls,withoutShadow:ot})}),!1===gt||ut||Wn||0!==Ut||wn?null:(0,I.jsx)(Da,{className:oc.navigationHint,withoutShadow:ot})]}):null,ci=Ft([oc.shareIncentiveContainer,{[oc.shareIncentiveVisible]:Na&&va}]),di=jl?10:ca-10;let ui,mi,gi;t[79]!==di?(ui={top:di},t[79]=di,t[80]=ui):ui=t[80],t[81]!==fa?(mi=(0,I.jsx)(pr,{className:oc.shareIncentive,...fa}),t[81]=fa,t[82]=mi):mi=t[82],t[83]!==ci||t[84]!==ui||t[85]!==mi?(gi=(0,I.jsx)("div",{className:ci,style:ui,children:mi}),t[83]=ci,t[84]=ui,t[85]=mi,t[86]=gi):gi=t[86];const hi=mt?null:Math.max(cn,600);let yi,pi,fi,bi,vi,xi;return t[87]!==hi?(yi={maxWidth:hi},t[87]=hi,t[88]=yi):yi=t[88],t[89]!==yi||t[90]!==gn?(pi=(0,I.jsx)(Bc,{className:oc.webView,trackingEnabled:gn,style:yi}),t[89]=yi,t[90]=gn,t[91]=pi):pi=t[91],t[92]!==da||t[93]!==ei||t[94]!==ti||t[95]!==ni||t[96]!==oi||t[97]!==si||t[98]!==ri||t[99]!==gi||t[100]!==pi?(fi=(0,I.jsxs)("div",{className:ei,ref:ti,onContextMenu:da,children:[ni,oi,si,ri,gi,pi]}),t[92]=da,t[93]=ei,t[94]=ti,t[95]=ni,t[96]=oi,t[97]=si,t[98]=ri,t[99]=gi,t[100]=pi,t[101]=fi):fi=t[101],t[102]!==Ya||t[103]!==Za||t[104]!==Va||t[105]!==Rn||t[106]!==Tn||t[107]!==Gt||t[108]!==Sn||t[109]!==xn||t[110]!==rn||t[111]!==Zn||t[112]!==Xa||t[113]!==Ja||t[114]!==Ka||t[115]!==fi||t[116]!==Ea||t[117]!==Ql||t[118]!==Ul?(bi=(0,I.jsxs)(Ya,{events:Gt,menuVisible:Zn,menuOverScreen:rn,width:Ul,height:Ql,topHeight:Ua,bottomHeight:Qa,activityDetected:Za,bottomSidesWidth:Xa,gotoPreviousScreen:xn,gotoNextScreen:Sn,disableInteraction:Rn,enableInteraction:Tn,children:[Ja,Ka,fi]}),t[102]=Ya,t[103]=Za,t[104]=Va,t[105]=Rn,t[106]=Tn,t[107]=Gt,t[108]=Sn,t[109]=xn,t[110]=rn,t[111]=Zn,t[112]=Xa,t[113]=Ja,t[114]=Ka,t[115]=fi,t[116]=Ea,t[117]=Ql,t[118]=Ul,t[119]=bi):bi=t[119],t[120]!==Ga||t[121]!==Xl||t[122]!==bi?(vi=(0,I.jsx)(Ga,{size:Xl,children:bi}),t[120]=Ga,t[121]=Xl,t[122]=bi,t[123]=vi):vi=t[123],t[124]!==qa||t[125]!==$t||t[126]!==vi?(xi=(0,I.jsx)(qa,{story:$t,children:vi}),t[124]=qa,t[125]=$t,t[126]=vi,t[127]=xi):xi=t[127],xi}function Hc(e){return`story-screen-${e}`}function Zc(){}function Wc(){}function qc(){}function Gc(){const e=document.getElementById("controls");if(e){const t=e.querySelectorAll("button[tabindex]"),l=Array.from(t).find(Yc)||null;null!==l&&l.focus({preventScroll:!0})}}function Yc(e){return e.tabIndex>=0}function Uc(){}function Qc(e){return null!==e}function Xc(){return new h}function Jc(e){const t=(0,i.c)(31);let l,n,a,s;t[0]!==e?(({story:n,pathWithIndex:a,onScreenChange:s,...l}=e),t[0]=e,t[1]=l,t[2]=n,t[3]=a,t[4]=s):(l=t[1],n=t[2],a=t[3],s=t[4]);const r=void 0===n?null:n,d=void 0!==a&&a,u=void 0===s?null:s,m=(0,o.Ye)(),g=(0,o.yP)(),[,h]=(0,c.zy)();let y;t[5]!==r?(y=r||{},t[5]=r,t[6]=y):y=t[6];const{components:p}=y;let f;t[7]!==p?(f=void 0===p?[]:p,t[7]=p,t[8]=f):f=t[8];const b=f;let v;t[9]!==h||t[10]!==u||t[11]!==d||t[12]!==b||t[13]!==g?(v=e=>{const t=b.findIndex(t=>{const{id:l}=t;return l===e.id||t===e});h(g("screen",{screen:d?t+1:e.id})),null!==u&&u(e)},t[9]=h,t[10]=u,t[11]=d,t[12]=b,t[13]=g,t[14]=v):v=t[14];const x=v;let S,w,C,j;return t[15]!==x||t[16]!==l||t[17]!==d||t[18]!==b||t[19]!==r?(S=e=>{const{screen:t}=e,n=void 0===t?null:t,a=d&&null!==n&&b[parseInt(n,10)-1]||null,i=d?a?.id||null:n;return(0,I.jsx)(Oc,{...l,story:r,screen:i,onScreenChange:x})},t[15]=x,t[16]=l,t[17]=d,t[18]=b,t[19]=r,t[20]=S):S=t[20],t[21]!==m.screen||t[22]!==S?(w=(0,I.jsx)(c.qh,{path:m.screen,children:S}),t[21]=m.screen,t[22]=S,t[23]=w):w=t[23],t[24]!==x||t[25]!==l||t[26]!==r?(C=(0,I.jsx)(c.qh,{children:(0,I.jsx)(Oc,{...l,story:r,onScreenChange:x})}),t[24]=x,t[25]=l,t[26]=r,t[27]=C):C=t[27],t[28]!==C||t[29]!==w?(j=(0,I.jsxs)(c.dO,{children:[w,C]}),t[28]=C,t[29]=w,t[30]=j):j=t[30],j}var Kc={home:"/",screen:"/:screen"};const ed={},td=["fr","en"];function ld(e){const t=(0,i.c)(70);let l,a,s,u,m,g,h,y,p,f,b,v,x,S,w,C,j,k,M;t[0]!==e?(({story:s,paused:v,muted:x,screenComponents:S,memoryRouter:w,basePath:l,routes:C,withoutRouter:j,googleApiKey:k,visitor:M,locale:u,locales:m,translations:g,pathWithIndex:h,trackingVariables:y,trackingDisabled:p,trackingPaused:f,settings:b,...a}=e),t[0]=e,t[1]=l,t[2]=a,t[3]=s,t[4]=u,t[5]=m,t[6]=g,t[7]=h,t[8]=y,t[9]=p,t[10]=f,t[11]=b,t[12]=v,t[13]=x,t[14]=S,t[15]=w,t[16]=C,t[17]=j,t[18]=k,t[19]=M):(l=t[1],a=t[2],s=t[3],u=t[4],m=t[5],g=t[6],h=t[7],y=t[8],p=t[9],f=t[10],b=t[11],v=t[12],x=t[13],S=t[14],w=t[15],C=t[16],j=t[17],k=t[18],M=t[19]);const N=void 0===s?null:s,$=void 0!==v&&v,F=void 0===x||x,T=void 0===S?null:S,R=void 0!==w&&w,z=void 0===C?Kc:C,L=void 0!==j&&j,A=void 0===k?null:k,P=void 0===M?null:M,B=void 0===u?"en":u,E=void 0===m?td:m,V=void 0===g?null:g,D=void 0!==h&&h,_=void 0===y?null:y,O=void 0!==p&&p,H=void 0!==f&&f,Z=void 0===b?null:b;let W,q;if(t[20]!==B||t[21]!==N||t[22]!==_){const{id:e,document_id:l,slug:n,title:a,components:i,organisation:o,metadata:s,settings:c}=N||{},d=void 0===e?null:e,u=void 0===n?null:n,m=void 0===a?null:a,g=void 0===i?[]:i,{language:h}=s||{};W=void 0===h?B:h;const{slug:y,tracking:p}=o||{},{codes:f}=p||{},b=void 0===f?[]:f,{tracking:v}=c||{},{codes:x}=v||{},S=[...b||[],...(void 0===x?[]:x)||[]].filter(ad).map(nd);q=null!==N||null!==_?{documentId:l,storyId:d,storySlug:u,storyTitle:m,screensCount:(g||[]).length,organisationSlug:y,googleAnalyticsIds:r(S),..._}:null,t[20]=B,t[21]=N,t[22]=_,t[23]=W,t[24]=q}else W=t[23],q=t[24];const G=q,Y=function(e){const t=(0,i.c)(3),l=void 0===e||e,[a,o]=(0,n.useState)(l);let s,r;return t[0]!==a?(s=()=>{let e=!1;return new Promise(e=>{const t=document.createElement("img");t.onload=()=>{e(t.width>0&&t.height>0)},t.onerror=()=>{e(!1)},t.src="data:image/webp;base64,UklGRiQAAABXRUJQVlA4IBgAAAAwAQCdASoCAAEAAQAcJaQAA3AA/v3AgAA="}).then(t=>{e||t===a||o(t)}),()=>{e=!0}},t[0]=a,t[1]=s):s=t[1],t[2]===Symbol.for("react.memo_cache_sentinel")?(r=[],t[2]=r):r=t[2],(0,n.useEffect)(s,r),a}();let U;t[25]!==Z||t[26]!==Y?(U={supportsWebp:Y,...Z},t[25]=Z,t[26]=Y,t[27]=U):U=t[27];const Q=U;let X;t[28]===Symbol.for("react.memo_cache_sentinel")?(X=(0,d.N)(),t[28]=X):X=t[28];const{hook:J,searchHook:K}=X,ee=T||ed;let te,le,ne,ae,ie,oe,se,re,ce;t[29]!==l||t[30]!==a||t[31]!==D||t[32]!==N||t[33]!==L?(te=L?(0,I.jsx)(Oc,{story:N,basePath:l,...a}):(0,I.jsx)(Jc,{story:N,basePath:l,pathWithIndex:D,...a}),t[29]=l,t[30]=a,t[31]=D,t[32]=N,t[33]=L,t[34]=te):te=t[34],t[35]!==G||t[36]!==te||t[37]!==O||t[38]!==H?(le=(0,I.jsx)(ut,{variables:G,disabled:O,paused:H,children:te}),t[35]=G,t[36]=te,t[37]=O,t[38]=H,t[39]=le):le=t[39],t[40]!==F||t[41]!==$||t[42]!==le?(ne=(0,I.jsx)(tt,{paused:$,muted:F,children:le}),t[40]=F,t[41]=$,t[42]=le,t[43]=ne):ne=t[43],t[44]!==ne||t[45]!==P?(ae=(0,I.jsx)(Mt,{visitor:P,children:ne}),t[44]=ne,t[45]=P,t[46]=ae):ae=t[46],t[47]!==ee||t[48]!==ae?(ie=(0,I.jsx)(hr,{children:(0,I.jsx)(Te,{namespace:Me,components:ee,children:ae})}),t[47]=ee,t[48]=ae,t[49]=ie):ie=t[49],t[50]!==W||t[51]!==ie?(oe=(0,I.jsx)(Ye,{locale:W,children:ie}),t[50]=W,t[51]=ie,t[52]=oe):oe=t[52],t[53]!==A||t[54]!==oe?(se=(0,I.jsx)(We,{apiKey:A,children:oe}),t[53]=A,t[54]=oe,t[55]=se):se=t[55],t[56]!==W||t[57]!==E||t[58]!==se||t[59]!==V?(re=(0,I.jsx)(hl,{locale:W,locales:E,extraMessages:V,children:se}),t[56]=W,t[57]=E,t[58]=se,t[59]=V,t[60]=re):re=t[60],t[61]!==Q||t[62]!==re?(ce=(0,I.jsx)(Oe,{settings:Q,children:re}),t[61]=Q,t[62]=re,t[63]=ce):ce=t[63];const de=ce;let ue;return t[64]!==l||t[65]!==de||t[66]!==R||t[67]!==z||t[68]!==L?(ue=L?de:(0,I.jsx)(c.Ix,{hook:R?J:void 0,searchHook:R?K:void 0,base:R||null===l?void 0:l,children:(0,I.jsx)(o.yF,{routes:z,children:de})}),t[64]=l,t[65]=de,t[66]=R,t[67]=z,t[68]=L,t[69]=ue):ue=t[69],ue}function nd(e){const{id:t}=e;return t}function ad(e){const{type:t,id:l}=e||{};return"ga4"===t&&!s(l)}function id(e){return id="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},id(e)}function od(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),l.push.apply(l,n)}return l}function sd(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?od(Object(l),!0).forEach(function(t){rd(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):od(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}function rd(e,t,l){return(t=function(e){var t=function(e){if("object"!=id(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var l=t.call(e,"string");if("object"!=id(l))return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==id(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[t]=l,e}l(2185);var cd=void 0!==window.MICROMAG_STORY?window.MICROMAG_STORY:null,dd=void 0!==window.MICROMAG_VIEWER_PROPS?window.MICROMAG_VIEWER_PROPS:null,ud=void 0!==window.MICROMAG_ROOT_ELEMENT_ID?window.MICROMAG_ROOT_ELEMENT_ID:"root",md=void 0!==window.MICROMAG_ROOT_ELEMENT?window.MICROMAG_ROOT_ELEMENT:document.getElementById(ud),gd=void 0!==window.MICROMAG_RENDER_STORY_FNC?window.MICROMAG_RENDER_STORY_FNC:"renderStory",hd=new WeakMap,yd=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:md,i=hd.get(l);i||(i=(0,a.createRoot)(l),hd.set(l,i)),i.render(n.createElement(ld,sd(sd({},t),{},{story:e})))};null!==cd&&yd(cd,dd),null!==gd&&(window[gd]=yd)},2185:function(e,t,l){l.p=void 0!==window.MICROMAG_PUBLIC_PATH?window.MICROMAG_PUBLIC_PATH:"/"}},function(e){e.O(0,[616],function(){return e(e.s=9675)}),e.O()}]);