@micromag/viewer-build 0.4.88 → 0.4.90-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/build/asset-manifest.json +26 -8
  2. package/build/index.html +1 -1
  3. package/build/static/css/656.cf2dc07c.css +5 -0
  4. package/build/static/css/main.8d373834.css +2 -0
  5. package/build/static/js/160.0718cb47.chunk.js +1 -0
  6. package/build/static/js/231.2dd1f543.chunk.js +1 -0
  7. package/build/static/js/268.f9b85afc.chunk.js +1 -0
  8. package/build/static/js/270.85f114b4.chunk.js +1 -0
  9. package/build/static/js/278.1bc9b3a8.chunk.js +1 -0
  10. package/build/static/js/359.8b129b69.chunk.js +1 -0
  11. package/build/static/js/50.37bde52c.chunk.js +1 -0
  12. package/build/static/js/51.24437974.chunk.js +2 -0
  13. package/build/static/js/51.24437974.chunk.js.LICENSE.txt +10 -0
  14. package/build/static/js/543.a221a89d.chunk.js +1 -0
  15. package/build/static/js/558.01ab5aca.chunk.js +1 -0
  16. package/build/static/js/6.a54a904c.chunk.js +1 -0
  17. package/build/static/js/656.81c40916.js +2 -0
  18. package/build/static/js/{616.aa54e035.js.LICENSE.txt → 656.81c40916.js.LICENSE.txt} +4 -2
  19. package/build/static/js/699.abf614c9.chunk.js +2 -0
  20. package/build/static/js/699.abf614c9.chunk.js.LICENSE.txt +12 -0
  21. package/build/static/js/727.018496cf.chunk.js +1 -0
  22. package/build/static/js/951.cb178734.chunk.js +2 -0
  23. package/build/static/js/951.cb178734.chunk.js.LICENSE.txt +10 -0
  24. package/build/static/js/main.caa09ea9.js +2 -0
  25. package/build/static/js/runtime~main.ece9ec3d.js +1 -0
  26. package/build/static/media/bootstrap-icons.1295669cd4e305c97f2c.woff +0 -0
  27. package/build/static/media/bootstrap-icons.92ea18a81d737146ff04.woff2 +0 -0
  28. package/package.json +6 -6
  29. package/build/static/css/main.090cebea.css +0 -2
  30. package/build/static/js/616.aa54e035.js +0 -2
  31. package/build/static/js/main.3de143e7.js +0 -2
  32. package/build/static/js/runtime~main.0daca723.js +0 -1
  33. /package/build/static/js/{main.3de143e7.js.LICENSE.txt → main.caa09ea9.js.LICENSE.txt} +0 -0
@@ -0,0 +1,2 @@
1
+ /*! For license information please see main.caa09ea9.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||[],this.components=null}addDefinition(e){return this.addDefinitions(m(e)?e:[e]),this}addDefinitions(e){return this.definitions=p([...e,...this.definitions],e=>e.id),this.components=null,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 null===this.components&&(this.components=this.definitions.reduce((e,{id:t,component:l=null})=>null!==l?{...e,[t]:l}:e,{})),this.components}}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 C{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}=C.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=C.getMediaPatternsFromData(n),o=null!==a&&i.length>0?C.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,...C.fieldIsMedia(o)?[new RegExp(`^${i}$`)]:[],...C.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 C.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)?C.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=C.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=C.getMediaPath(d);u=null!==e?e:d,h=null!==e?d:null}else if(g(d)||m(d)){const e=C.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=C.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 C.keys(e).reduce((t,l)=>{if("object"!=typeof e[l]||!e[l])return{...t,[l]:e[l]};const n=C.dot(e[l]);return{...t,...C.keys(n).reduce((e,t)=>({...e,[`${l}.${t}`]:n[t]}),{})}},{})}static keys(e){return m(e)?[...e.keys()]:Object.keys(e)}}class w 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 w(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,C=null!==l&&l.boxStyle||null,w=null!==S||null!==C?{boxStyle:!1!==y?y:{...S,...C,...y||null}}:null;return null!==f||null!==l||null!==x||null!==w||null!==m?{...f,...l,...o,...w,...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 C({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 A=l(1085),I=(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=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 q(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 G=e=>(e-Math.floor(e)).toFixed(4),Y=e=>null!==e&&m(e)?e:Object.keys(e||{}).reduce((t,l)=>[...t,{handle:l,...e[l]}],[]);function U(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=Y(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 Q=(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},X=(e=null,t="backgroundColor",l=null)=>{const n=H(e,l);return null!==n?{[t]:n}:null},J=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,...X(n,"borderColor")}},K=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}`}},ee=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:C=null}=g(n)?n:{padding:n},w=n||C,j=null!==w,k=a||b,M=i||v,N=o||x,$=s||S,F=!j||null===k&&null===M&&null===N&&null===$?{...j?{padding:w}:null,...null!==k?{paddingTop:k}:null,...null!==M?{paddingRight:M}:null,...null!==N?{paddingBottom:N}:null,...null!==$?{paddingLeft:$}:null}:{paddingTop:k??w,paddingRight:M??w,paddingBottom:N??w,paddingLeft:$??w};return{...X(t,"backgroundColor"),...null!==l?{borderRadius:l}:null,...J(p),...K(f),...F}},te=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?X(l,"backgroundColor"):null,...null!==t?X(t,"color"):null,...null!==l?{boxShadow:a,mozBoxShadow:a,msBoxShadow:a,webkitBoxShadow:a}:null}:null},le=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?X(t,"color"):null,...n?{fontStyle:"italic"}:null,...a?{fontWeight:"bold"}:null,...i?{textDecoration:"underline"}:null}},ne=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:W(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,...X(r,"color"),...g?{WebkitTextStroke:`2px ${H(r,"color")}`,color:"transparent"}:null}},ae=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}},ie=["video/mp4"];let oe=null;function se(e=ie){if(null===oe){const t=document.createElement("video");oe=(e||ie).filter(e=>""!==t.canPlayType(e))}return oe}const re=(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},ce=(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},de=()=>["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document,ue=e=>{if(null==e)return!1;const{media:t=null,url:l=null}=e||{};return null!==t||null!==l},me=e=>{if(null==e)return!1;const{label:t=null}=e||{},{length:l=0}=t||{};return"number"==typeof l&&l>0},ge=e=>{if(null==e)return!1;const{body:t=null}=e||{},{length:l=0}=t||{};return"number"==typeof l&&l>0},he=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 ye(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!==e&&(e.current=t)})}}function pe(e,t=0){return null!==e?Math.max((e?.currentTime||0)-t,0):0}function fe(e,t=0){return null!==e?Math.max((e?.duration||0)-t,0):0}function be(e,t="data-ts-offset"){return null!==e&&e.hasAttribute(t)?parseFloat(e.getAttribute(t)):0}function ve(e){return null!==e&&(e.muted||0===e.volume)}function xe(e){return null!==e&&!!(e.currentTime>0&&!e.paused&&!e.ended&&e.readyState>2)}function Se(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 we(e){return null!==e&&e.split("/")[e.split("/").length-1].split("#")[0]||null}var je=l(124);const ke="screens",Me=(0,n.createContext)(null),Ne={},$e=(e=null)=>{const t=(0,n.use)(Me);return null!==e?new v(t?.getComponents(e)):t};function Fe(e){const t=(0,i.c)(8),{components:l,manager:n,namespace:a,children:o}=e,s=void 0===l?Ne:l,r=void 0===n?null:n,c=void 0===a?null:a,d=$e()||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,A.jsx)(Me,{value:m,children:o}),t[5]=o,t[6]=m,t[7]=g):g=t[7],g}const Te=(0,I.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."}});Te.functionality_title,Te.functionality_description,Te.security_storage_title,Te.security_storage_description,Te.personalization_storage_title,Te.personalization_storage_description,Te.analytics_title,Te.analytics_description,Te.ad_storage_title,Te.ad_storage_description,Te.ad_personalization_title,Te.ad_personalization_description,Te.ad_user_data_title,Te.ad_user_data_description;const Re=(0,n.createContext)(null),ze=(0,n.createContext)(null),Le=()=>(0,n.use)(ze);function Ae(e){const t=(0,i.c)(14),{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=Le();let h;t[0]!==u||t[1]!==m||t[2]!==d||t[3]!==g||t[4]!==c?(h=()=>{let e=null!==m?m:new w(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=p;let b,v;return t[8]!==r||t[9]!==f?(b=(0,A.jsx)(Fe,{namespace:ke,components:f,children:r}),t[8]=r,t[9]=f,t[10]=b):b=t[10],t[11]!==y||t[12]!==b?(v=(0,A.jsx)(ze,{value:y,children:b}),t[11]=y,t[12]=b,t[13]=v):v=t[13],v}const Ie=(0,n.createContext)(null),Pe=()=>(0,n.useContext)(Ie);function Be(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,A.jsx)(Ie.Provider,{value:a,children:n}),t[0]=n,t[1]=a,t[2]=o):o=t[2],o}const Ee=n.createContext({}),Ve=()=>(0,n.useContext)(Ee),De=(e,t=null)=>{const l=Ve(),{[e]:n=t}=l||{};return n};function _e(e){const t=(0,i.c)(6),{children:l,settings:n}=e,a=void 0===n?null:n,o=Ve();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,A.jsx)(Ee.Provider,{value:r,children:l}),t[3]=l,t[4]=r,t[5]=c):c=t[5],c}const Oe=(0,n.createContext)({apiKey:null}),He=()=>(0,n.use)(Oe);function Ze(e){const t=(0,i.c)(5),{children:l,apiKey:n}=e,a=void 0===n?null:n,{apiKey:o}=He(),s=De("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,A.jsx)(Oe,{value:d,children:l}),t[2]=l,t[3]=d,t[4]=u):u=t[4],u}const We=n.createContext(null),qe=()=>(0,n.useContext)(We);function Ge(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}=He(),d=qe(),[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,A.jsx)(We.Provider,{value:u,children:l}),t[6]=l,t[7]=u,t[8]=y):y=t[8],y}const Ye={seekBarOnly:!1,color:null,progressColor:null},Ue=(0,n.createContext)({playing:!1,completed:!1,muted:!0,controls:!1,controlsSuggestPlay:!1,controlsVisible:!1,hasAudio:!1,isBackground:!1,media:null,mediaSrc:null,controlsTheme:Ye,currentQualityLevel:null,setMuted:()=>{},setPlaying:()=>{},setControls:()=>{},setControlsVisible:()=>{},setControlsTheme:()=>{},showControls:()=>{},hideControls:()=>{},setMedia:()=>{},setCurrentQualityLevel:()=>{},setIsBackground:()=>{},seekByProgress:()=>{},seek:()=>{}}),Qe=()=>(0,n.use)(Ue),Xe=(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}=Qe(),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 Je(e,t){null!==e&&(e.currentTime=t)}const Ke=je("micromag:media:playback-provider");function et(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?Ye:d,x=void 0===u?null:u,[S,C]=(0,n.useState)(g),[w,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,I]=(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=>{Ke("Set controls: %s",e),e?(I(!0),V(!0),B(!1)):(I(!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=>{Ke("Set controls theme: %o",e),_({...Ye,...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?Ke("Set current media: %s %o",we(t),{hasAudio:l}):Ke("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),Ke("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),Ke("Show controls")},t[7]=le):le=t[7];const ne=le;let ae;t[8]===Symbol.for("react.memo_cache_sentinel")?(ae=()=>{V(!1),Ke("Hide controls")},t[8]=ae):ae=t[8];const ie=ae;let oe;t[9]!==k?(oe=e=>{const t=fe(k);null!==k&&t>0&&Je(k,e*t)},t[9]=k,t[10]=oe):oe=t[10];const se=oe;let re;t[11]!==k?(re=e=>{null!==k&&Je(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=w&&!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:C,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,A.jsx)(Ue,{value:he,children:m}),t[31]=m,t[32]=he,t[33]=ye):ye=t[33],ye}const tt=n.createContext({data:null,definition:null,renderContext:null}),lt=()=>(0,n.useContext)(tt),nt=()=>{const e=(0,i.c)(8),{renderContext:t}=lt()||{},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},at=()=>{const{screenState:e}=lt()||{};return e};function it(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}=lt()||{},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,C=void 0===S?null:S,w=Le();let j;t[2]!==w||t[3]!==C?(j=null!==w?w.getDefinition(C):null,t[2]=w,t[3]=C,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,A.jsx)(tt.Provider,{value:F,children:s}),t[10]=s,t[11]=F,t[12]=T):T=t[12],T}const ot=n.createContext({screen:null,screens:[],width:0,height:0,resolution:1,landscape:!1}),st=()=>(0,n.useContext)(ot);function rt(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,A.jsx)(ot.Provider,{value:u,children:n}),t[2]=n,t[3]=u,t[4]=m):m=t[4],m}const ct=()=>(0,n.useContext)(f.fu);function dt(e=null){const{variables:t=null,disabled:l=!1,paused:a=!1,children:i=null}=e||{},o=ct()||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,A.jsx)(f.fE,{tracking:r,children:i})}const ut={events:new h,menuVisible:!1,menuOverScreen:!1,activityDetected:!1,width:null,height:null,topHeight:0,bottomHeight:0,bottomSidesWidth:0,gotoNextScreen:()=>{},gotoPreviousScreen:()=>{},disableInteraction:()=>{},enableInteraction:()=>{}},mt=(0,n.createContext)({...ut,webView:null,setWebView:()=>{}}),gt=()=>(0,n.use)(mt),ht=()=>{const e=(0,i.c)(3),{gotoNextScreen:t,gotoPreviousScreen:l}=gt();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},yt=()=>{const{activityDetected:e}=gt();return void 0!==e&&e},pt=()=>{const e=(0,i.c)(3),{disableInteraction:t,enableInteraction:l}=gt();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},ft=()=>{const e=(0,i.c)(12),{webView:t,setWebView:l}=gt(),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 bt(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,C=void 0===m?0:m,w=void 0===g?0:g,j=void 0===h?Ct:h,k=void 0===y?St:y,M=void 0===p?xt:p,N=void 0===f?vt:f,[$,F]=(0,n.useState)(null);let T;t[0]!==x||t[1]!==C||t[2]!==w||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:C,bottomSidesWidth:w,gotoNextScreen:j,gotoPreviousScreen:k,disableInteraction:M,enableInteraction:N,webView:$,setWebView:F},t[0]=x,t[1]=C,t[2]=w,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,A.jsx)(mt,{value:R,children:l}),t[15]=l,t[16]=R,t[17]=z):z=t[17],z}function vt(){}function xt(){}function St(){}function Ct(){}const wt=(0,n.createContext)({visitor:null,setVisitor:()=>{}});function jt(){const{visitor:e}=(0,n.useContext)(wt);return e}function kt(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,A.jsx)(wt.Provider,{value:y,children:a}),t[10]=a,t[11]=y,t[12]=p):p=t[12],p}var Mt=l(7736),Nt=l(3022),$t=l(3373),Ft=l(4739),Tt=l(9097),Rt=l(719),zt=l(2992),Lt=l(3464);function At(){}l(7228);const It=(e,t,l)=>{const a=(0,i.c)(5),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)}},r=[t,o,e],a[0]=o,a[1]=e,a[2]=t,a[3]=s,a[4]=r):(s=a[3],r=a[4]),(0,n.useEffect)(s,r)},Pt=(_("undefined"!=typeof document?new S(document):null),{filterTaps:!0});function Bt(e){const t=(0,i.c)(36),{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,C=void 0===m?null:m,w=void 0===g?void 0:g,j=void 0===h?Pt: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 A=L;let I;t[1]===Symbol.for("react.memo_cache_sentinel")?(I=()=>{z(!0)},t[1]=I):I=t[1];const P=I,B=(0,Mt.U2)();let E;t[2]!==B||t[3]!==w||t[4]!==l?(E=()=>({ref:B,from:{progress:l},onStart:A,onRest:P,...w}),t[2]=B,t[3]=w,t[4]=l,t[5]=E):E=t[5];const[V,D]=(0,Mt.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]!==w||t[15]!==l?(O=e=>{const{active:t,tap:n,first:a,last:i}=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 o=b(e);k.current=t,T(o<l?-1:1),M.current=o,t!==N&&$(t),D.start({progress:o,immediate:t,onResolve:e=>{t||T(0),null!==S&&S(e)},onStart:a?A:void 0,onRest:i?P:void 0,...w}),null!==v&&v(o,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]=w,t[15]=l,t[16]=O):O=t[16];const H=O,Z=null!==x?x:void 0,W=null!==C?C: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,Nt.useGesture)(q,G),[U,Q]=(0,n.useState)(l);let X,J;t[23]!==D||t[24]!==p||t[25]!==S||t[26]!==w||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:A,onRest:P,...w}))},J=[D,l,p,S,w,A,P],t[23]=D,t[24]=p,t[25]=S,t[26]=w,t[27]=l,t[28]=X,t[29]=J):(X=t[28],J=t[29]),(0,n.useEffect)(X,J);const K=_.isAnimating||N||!R,ee=l!==U?l<U?-1:1:F;let te;return t[30]!==Y||t[31]!==N||t[32]!==_||t[33]!==ee||t[34]!==K?(te={transitioning:K,bind:Y,dragging:N,progress:_,direction:ee},t[30]=Y,t[31]=N,t[32]=_,t[33]=ee,t[34]=K,t[35]=te):te=t[35],te}function Et(){return Ft.isEnabled}function Vt(){Ft.isEnabled&&Ft.exit()}function Dt(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,Tt.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,C=(void 0===S?null:S)||f,w=(void 0===x?null:x)||b;let j;return t[11]!==o||t[12]!==s||t[13]!==C||t[14]!==w?(j={...s,entry:o,width:C,height:w},t[11]=o,t[12]=s,t[13]=C,t[14]=w,t[15]=j):j=t[15],j}const _t=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,Tt.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},Ot={loading:[],active:[]};function Ht(){}function Zt(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=()=>be(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(be(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 Wt(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=Zt(e);let y;l[2]!==e||l[3]!==h?(y=()=>pe(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,C]=(0,n.useState)(x);let w,j;return x!==S?(f(pe(e,h)),C(x)):u!==b&&(f(pe(e,h)),v(u)),l[5]!==g||l[6]!==e||l[7]!==h||l[8]!==m?(w=()=>{if(null===e)return qt;let t=pe(e,h),l=null;return l=setTimeout(function n(){const a=fe(e,h),i=function(){const l=pe(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]=w):w=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)(w,j),p}function qt(){}function Gt(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=Zt(e);let c;l[2]!==e||l[3]!==r?(c=()=>fe(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(fe(e,r)),h(m)):null===e&&0!==d?u(0):0===d&&fe(e,r)>0&&u(fe(e,r)),l[5]!==e||l[6]!==r?(y=()=>{if(null===e)return Yt;const t=function(e){u(fe(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 Yt(){}function Ut(){}function Qt(){}function Xt(){return Date.now()/1e3}function Jt(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 Kt;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 Kt(){}const el=[.1,.25,.5,.75,.9];function tl(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?el: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 ll=()=>{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},nl=2/3;function al(e){const{name:t}=e;return t}const il=(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}},ol=e=>null!=e,sl=e=>{const t=(0,i.c)(4),l=void 0===e?null:e,n=ct(),a=lt();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;ol(n)&&"view"===a.renderContext&&null!==l&&null!==o&&n.trackEvent(`screen_${l}`,o,s,{...r,...il(a,r)})},t[0]=a,t[1]=n,t[2]=l,t[3]=o):o=t[3],o},rl=e=>{const t=(0,i.c)(4),l=void 0===e?null:e,n=ct(),a=lt();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;ol(n)&&"view"===a.renderContext&&null!==l&&null!==o&&null!==s&&n.trackMedia(`screen_${l}`,o,s,{...r,...il(a,r)})},t[0]=a,t[1]=n,t[2]=l,t[3]=o):o=t[3],o},cl=()=>{const e=(0,i.c)(2),t=ct();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;ol(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 dl=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}},ul=["en","fr"],ml=(0,n.createContext)(ul);function gl(e){const t=(0,i.c)(22);let l,a,o,s,r,c;t[0]!==e?(({intlManager:a,locale:o,locales:s,children:r,extraMessages:c,...l}=e),t[0]=e,t[1]=l,t[2]=a,t[3]=o,t[4]=s,t[5]=r,t[6]=c):(l=t[1],a=t[2],o=t[3],s=t[4],r=t[5],c=t[6]);const d=void 0===a?dl:a,u=void 0===o?null:o,m=void 0===s?null:s,g=void 0===r?null:r,h=void 0===c?null:c,y=(0,n.use)(ml),{locale:p,messages:f}=(0,n.use)(I.RK)||{},b=void 0===p?null:p,v=void 0===f?null:f;let x;t[7]!==d||t[8]!==u?(x=d.getMessages(u),t[7]=d,t[8]=u,t[9]=x):x=t[9];const S=x,C=b===u?v:null;let w;t[10]!==S||t[11]!==h||t[12]!==C?(w={...S,...h,...C},t[10]=S,t[11]=h,t[12]=C,t[13]=w):w=t[13];const j=w,k=hl,M=m||y;let N,$;return t[14]!==g||t[15]!==M?(N=(0,A.jsx)(ml,{value:M,children:g}),t[14]=g,t[15]=M,t[16]=N):N=t[16],t[17]!==u||t[18]!==j||t[19]!==l||t[20]!==N?($=(0,A.jsx)(I.Dk,{...l,locale:u,messages:j,onError:k,children:N}),t[17]=u,t[18]=j,t[19]=l,t[20]=N,t[21]=$):$=t[21],$}function hl(e){"MISSING_TRANSLATION"!==e.code&&console.error(e)}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),Cl=l(3852),wl=l(7110),jl=l(5769),kl=l(2888),Ml=l(7882),Nl=l(3670),$l=l(1601),Fl=l(2678),Tl=l(7558);l(7307),l(2203),l(9799);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,A.jsx)(I.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",Al="micromag-core-buttons-button-asLink",Il="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:C=!1,asLink:w=!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,A.jsx)(zl,{children:R}):null,L=null!==s&&null!==r,I=null!==m,P=I&&("inline"===g||null===z),B=I&&!P,E=(0,A.jsxs)(A.Fragment,{children:[P?(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("span",{className:$t(["micromag-core-buttons-button-icon",N]),children:m}),null!==z?(0,A.jsx)("span",{className:$t(["micromag-core-buttons-button-label",$]),children:z}):null]}):null,B?(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("span",{className:$t(["left"===g?N:null]),children:"left"===g?m:null}),(0,A.jsx)("span",{className:$t([$]),children:z}),(0,A.jsx)("span",{className:$t(["micromag-core-buttons-button-right","right"===g?N:null]),children:"right"===g?m:null}),L?r:null]}):null,I?null:z,L?r:null]}),V=!C&&!x&&!w,D=$t([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,[Il]:I,[Pl]:B,[Al]:w},M]);if(null!==n){const e=$t([D,{disabled:h,[Bl]:h}]);return a||i?(0,A.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,A.jsx)(c.N_,{href:n,className:e,onClick:k,ref:F,tabIndex:d?void 0:-1,children:E})}return(0,A.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=$t(["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,A.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,A.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,A.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,A.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,A.jsx)("path",{d:"M1 1L21 21",stroke:a,strokeWidth:"1.5",strokeLinecap:"round"}),r=(0,A.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,A.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,A.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,A.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,A.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,A.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,A.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,A.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,A.jsx)("rect",{width:"6",height:"18",rx:"2",fill:a}),r=(0,A.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,A.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,A.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,A.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,A.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,A.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,A.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,I.YK)({previous:{id:"menus.pagination.previous",defaultMessage:"Previous"},next:{id:"menus.pagination.next",defaultMessage:"next"}});function Yl(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,A.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,A.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,A.jsx)("g",{transform:"translate(366.893 61.893)",children:(0,A.jsxs)("g",{transform:"translate(0 0)",children:[(0,A.jsx)("path",{fill:c,stroke:s,strokeWidth:"2",strokeLinecap:"round",d:"M14.2,0.3L0,13.9"}),(0,A.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,A.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,A.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}function Ul(e){const t=(0,i.c)(17),{width:l,height:n,outline:a,className:o,boxClassName:s,children:r}=e,c=void 0===l?"100%":l,d=void 0===n?null:n,u=void 0!==a&&a,m=void 0===o?null:o,g=void 0===s?null:s,h=void 0===r?null:r;let y,p,f,b,v,x;return t[0]!==m||t[1]!==u?(y=$t([{border:u,"border-2":u},m]),t[0]=m,t[1]=u,t[2]=y):y=t[2],t[3]===Symbol.for("react.memo_cache_sentinel")?(p={"--bs-border-color":"currentColor",borderColor:"currentColor"},t[3]=p):p=t[3],t[4]!==g||t[5]!==u?(f=$t([{"d-flex":u,"align-items-center":u,"justify-content-center":u,"w-100":u,"p-2":u},g]),t[4]=g,t[5]=u,t[6]=f):f=t[6],t[7]!==d||t[8]!==c?(b={width:c,height:d},t[7]=d,t[8]=c,t[9]=b):b=t[9],t[10]!==h||t[11]!==b||t[12]!==f?(v=(0,A.jsx)("div",{className:f,style:b,children:h}),t[10]=h,t[11]=b,t[12]=f,t[13]=v):v=t[13],t[14]!==v||t[15]!==y?(x=(0,A.jsx)("div",{className:y,style:p,children:v}),t[14]=v,t[15]=y,t[16]=x):x=t[16],x}var Ql="micromag-core-partials-empty-withoutBorder";function Xl(e){const t=(0,i.c)(8),{children:l,withoutBorder:n,className:a}=e,o=void 0===l?null:l,s=void 0!==n&&n,r=void 0===a?null:a;let c,d,u;return t[0]!==r||t[1]!==s?(c=$t(["micromag-core-partials-empty-container",r,{[Ql]:s}]),t[0]=r,t[1]=s,t[2]=c):c=t[2],t[3]!==o?(d=(0,A.jsx)("div",{className:"micromag-core-partials-empty-middle",children:(0,A.jsx)(zl,{children:o})}),t[3]=o,t[4]=d):d=t[4],t[5]!==c||t[6]!==d?(u=(0,A.jsx)("div",{className:c,children:d}),t[5]=c,t[6]=d,t[7]=u):u=t[7],u}const Jl=[],Kl=["eot","woff2","woff",{name:"otf",format:"opentype"},{name:"ttf",format:"truetype"},"svg"],en=(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 tn(e){const t=(0,i.c)(3),{fonts:l,formats:n}=e,a=void 0===l?Jl:l,o=void 0===n?Kl:n;let s;if(t[0]!==a||t[1]!==o){const e=(a||[]).filter(nn).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?en(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=en(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,A.jsx)("style",{type:"text/css",dangerouslySetInnerHTML:{__html:Object.keys(e).map(t=>e[t]).filter(ln).join("\n")}}):null,t[0]=a,t[1]=o,t[2]=s}else s=t[2];return s}function ln(e){return null!==e}function nn(e){return g(e)&&"custom"===e.type&&null!==(e.media||null)}function an(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:C,rssUrl:w,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===C?null:C,z=void 0===w?null:w,L=void 0===j?null:j,I=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,A.jsx)("title",{children:X}),t[8]=X,t[9]=J):J=t[9],t[10]!==$?(K=null!==$?(0,A.jsx)("meta",{name:"description",content:$}):null,t[10]=$,t[11]=K):K=t[11],t[12]!==P?(ee=null!==P?(0,A.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,A.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,A.jsx)("meta",{name:"keywords",content:F.join(",")}):null,t[16]=F,t[17]=le):le=t[17],t[18]!==N?(ne=null!==N?(0,A.jsx)("link",{rel:"canonical",href:N}):null,t[18]=N,t[19]=ne):ne=t[19],t[20]!==Q?(ae=null!==Q?(0,A.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,A.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,A.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,A.jsx)("meta",{property:"og:image",content:_}):null,t[26]=_,t[27]=se):se=t[27],t[28]!==_?(re=null!==_?(0,A.jsx)("meta",{property:"og:image:url",content:_}):null,t[28]=_,t[29]=re):re=t[29],t[30]!==q?(ce=null!==q?(0,A.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,A.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,A.jsx)("meta",{property:"og:title",content:B}):null,t[34]=B,t[35]=ue):ue=t[35],t[36]!==$?(me=null!==$?(0,A.jsx)("meta",{property:"og:description",content:$}):null,t[36]=$,t[37]=me):me=t[37],t[38]!==d?(ge=null!==d?(0,A.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,A.jsx)("meta",{name:"twitter:card",content:he}),t[40]=he,t[41]=ye):ye=t[41],t[42]!==B?(pe=null!==B?(0,A.jsx)("meta",{name:"twitter:title",content:B}):null,t[42]=B,t[43]=pe):pe=t[43],t[44]!==$?(fe=null!==$?(0,A.jsx)("meta",{name:"twitter:description",content:$}):null,t[44]=$,t[45]=fe):fe=t[45],t[46]!==_?(be=null!==_?(0,A.jsx)("meta",{name:"twitter:image",content:_}):null,t[46]=_,t[47]=be):be=t[47],t[48]!==I?(ve=I||[],t[48]=I,t[49]=ve):ve=t[49],t[50]!==ve?(xe=ve.map(on),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,A.jsxs)(A.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 on(e){return(0,A.jsx)("script",{type:"application/ld+json",id:`${e["@type"]}-${e.identifier}`,async:!0,children:JSON.stringify(e)},`microformat-${e["@type"]}-${e.identifier}`)}function sn(e){const t=(0,i.c)(20),{lines:l,lineMargin:n,width:a,height:o,fontSize:s,className:r}=e,c=void 0===l?1:l,d=void 0===n?"0.4em":n,u=void 0===a?"100%":a,m=void 0===o?null:o,g=void 0===s?16:s,h=void 0===r?null:r;let y;t[0]!==g||t[1]!==m?(y=null!==m&&B(m)?`${Math.round(m*g)}px`:m,t[0]=g,t[1]=m,t[2]=y):y=t[2];const p=y;let f;t[3]!==u?(f=B(u)?.9*u:"80%",t[3]=u,t[4]=f):f=t[4];const b=f;let v,x,S,C,w;return t[5]!==h?(v=$t(["w-100",h]),t[5]=h,t[6]=v):v=t[6],t[7]===Symbol.for("react.memo_cache_sentinel")?(x={},t[7]=x):x=t[7],t[8]!==c?(S=[...Array(c)],t[8]=c,t[9]=S):S=t[9],t[10]!==p||t[11]!==d||t[12]!==c||t[13]!==b||t[14]!==S||t[15]!==u?(C=S.map((e,t)=>(0,A.jsx)("div",{style:{width:t%2==0?u:b,height:p,marginTop:t>0?d:null,marginBottom:t<c-1?d:null,backgroundColor:"currentcolor"}},`line-${t}`)),t[10]=p,t[11]=d,t[12]=c,t[13]=b,t[14]=S,t[15]=u,t[16]=C):C=t[16],t[17]!==C||t[18]!==v?(w=(0,A.jsx)("div",{className:v,style:x,children:C}),t[17]=C,t[18]=v,t[19]=w):w=t[19],w}function rn(e){const t=(0,i.c)(12);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]!==n||t[6]!==o?(s=(0,A.jsx)(yl.gc,{icon:fl.jb,className:"d-block m-auto",style:{width:o,height:n}}),t[5]=n,t[6]=o,t[7]=s):s=t[7],t[8]!==l||t[9]!==a||t[10]!==s?(r=(0,A.jsx)(Ul,{...a,className:l,children:s}),t[8]=l,t[9]=a,t[10]=s,t[11]=r):r=t[11],r}var cn={},dn="micromag-core-placeholders-map-icon";function un(e){const t=(0,i.c)(18);let l,n,a;t[0]!==e?(({withImages:a,className:l,...n}=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!==a&&a?fl.jb:vl.Pc;let s,r,c,d,u,m;return t[4]!==l?(s=$t(["micromag-core-placeholders-map-container",l]),t[4]=l,t[5]=s):s=t[5],t[6]!==o?(r=(0,A.jsx)(yl.gc,{icon:o,className:dn}),c=(0,A.jsx)(yl.gc,{icon:o,className:dn}),d=(0,A.jsx)(yl.gc,{icon:o,className:dn}),u=(0,A.jsx)(yl.gc,{icon:o,className:dn}),t[6]=o,t[7]=r,t[8]=c,t[9]=d,t[10]=u):(r=t[7],c=t[8],d=t[9],u=t[10]),t[11]!==n||t[12]!==s||t[13]!==r||t[14]!==c||t[15]!==d||t[16]!==u?(m=(0,A.jsxs)(Ul,{width:null,height:null,...n,className:s,children:[r,c,d,u]}),t[11]=n,t[12]=s,t[13]=r,t[14]=c,t[15]=d,t[16]=u,t[17]=m):m=t[17],m}function mn(e){const t=(0,i.c)(8);let l,n,a;t[0]!==e?(({height:n,lines: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?1.25:n,s=void 0===a?1:a;let r;return t[4]!==o||t[5]!==s||t[6]!==l?(r=(0,A.jsx)(sn,{height:o,lines:s,...l}),t[4]=o,t[5]=s,t[6]=l,t[7]=r):r=t[7],r}function gn(e){const t=(0,i.c)(8);let l,n,a;t[0]!==e?(({height:n,lines: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?1:n,s=void 0===a?4:a;let r;return t[4]!==o||t[5]!==s||t[6]!==l?(r=(0,A.jsx)(sn,{height:o,lines:s,...l}),t[4]=o,t[5]=s,t[6]=l,t[7]=r):r=t[7],r}function hn(e){const t=(0,i.c)(8);let l,n,a;t[0]!==e?(({height:n,lines: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?1.5:n,s=void 0===a?2:a;let r;return t[4]!==o||t[5]!==s||t[6]!==l?(r=(0,A.jsx)(sn,{height:o,lines:s,...l}),t[4]=o,t[5]=s,t[6]=l,t[7]=r):r=t[7],r}function yn(e){const t=(0,i.c)(10);let l,n,a,o,s;return t[0]!==e?(({width:a,height:l,...n}=e),t[0]=e,t[1]=l,t[2]=n,t[3]=a):(l=t[1],n=t[2],a=t[3]),t[4]!==l||t[5]!==a?(o=(0,A.jsx)(yl.gc,{icon:Sl.n2,style:{width:a,height:l},className:"d-block m-auto"}),t[4]=l,t[5]=a,t[6]=o):o=t[6],t[7]!==n||t[8]!==o?(s=(0,A.jsx)(Ul,{...n,children:o}),t[7]=n,t[8]=o,t[9]=s):s=t[9],s}function pn(e){const t=(0,i.c)(13);let l,n,a,o,s,r,c;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]!==n||t[6]!==o?(s=(0,A.jsx)(yl.gc,{icon:Sl.n2,className:"d-block mb-1",style:{width:o,height:n}}),t[5]=n,t[6]=o,t[7]=s):s=t[7],t[8]===Symbol.for("react.memo_cache_sentinel")?(r=(0,A.jsx)("div",{style:{fontSize:"0.75em"},children:"360"}),t[8]=r):r=t[8],t[9]!==l||t[10]!==a||t[11]!==s?(c=(0,A.jsxs)(Ul,{...a,className:l,boxClassName:"d-flex flex-column align-items-center justify-content-center",children:[s,r]}),t[9]=l,t[10]=a,t[11]=s,t[12]=c):c=t[12],c}function fn(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}=Dt();let S=null,C=null,w=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,C=n,w=s,j=`scale(${s}) translate(${(l-i)/2}px, ${(n-o)/2}px)`}else{const e=l/h;S=l,C=n,w=e,j=`scale(${e})`}}const N=ll();let $;t[6]===Symbol.for("react.memo_cache_sentinel")?($=["mobile"],t[6]=$):$=t[6];const F=null!==w?w*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!==C;let L;t[11]!==p?(L=$t(["micromag-core-screens-screen-sizer-container",p]),t[11]=p,t[12]=L):L=t[12];const I=f?null:b;let P,B;return t[13]!==d||t[14]!==C||t[15]!==S||t[16]!==z||t[17]!==y||t[18]!==R||t[19]!==j||t[20]!==h?(P=z?(0,A.jsx)("div",{className:"micromag-core-screens-screen-sizer-frame",style:{width:S,height:C},children:(0,A.jsx)("div",{className:"micromag-core-screens-screen-sizer-screen",style:{width:h,height:y,transform:j},children:(0,A.jsx)(rt,{size:R,children:(0,n.cloneElement)(d,{width:h,height:y})})})}):null,t[13]=d,t[14]=C,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]!==I||t[24]!==P?(B=(0,A.jsx)("div",{className:L,ref:I,children:P}),t[22]=L,t[23]=I,t[24]=P,t[25]=B):B=t[25],B}function bn(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,C=void 0===m?null:m,w=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=$e(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,ke),R=F||T;let z,L;return t[5]!==R||t[6]!==b||t[7]!==w||t[8]!==C||t[9]!==v||t[10]!==f||t[11]!==j||t[12]!==x||t[13]!==l?(z=null!==R?(0,A.jsx)("div",{className:$t(["micromag-core-screens-screen-container",w]),children:(0,A.jsx)(R,{...l,index:f,active:b,current:v,preload:x,mediaRef:j})}):(0,A.jsx)("div",{className:w,children:C}),t[5]=R,t[6]=b,t[7]=w,t[8]=C,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,A.jsx)(it,{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 vn(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,C=x?void 0:y,w=x?void 0:p,j=!x;let k,M;t[12]!==v||t[13]!==j?(k=$t(["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]!==w||t[19]!==k||t[20]!==C?(M=(0,A.jsx)(bn,{screen:a,renderContext:"preview",screenState:h,width:C,height:w,className:k,...n}),t[15]=n,t[16]=a,t[17]=h,t[18]=w,t[19]=k,t[20]=C,t[21]=M):M=t[21];const N=M;let $;t[22]!==S||t[23]!==N?($=S?(0,A.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,A.jsx)(fn,{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}function xn(e,t){return(0,A.jsx)("div",{className:"mb-1 rounded ms-auto",style:{backgroundColor:"currentcolor",height:"1em",width:100*e+"%"}},`message-${t+1}`)}function Sn(e){return(0,A.jsx)("div",{className:"d-flex w-100 p-1 bg-secondary bg-opacity-25",children:(0,A.jsx)(yl.gc,{icon:Nl.GE,style:{width:"10px",height:"auto"}})},`item-${e}`)}var Cn=Object.freeze({__proto__:null,AdFrame:function(e){const t=(0,i.c)(10);let l,n,a,o,s;return t[0]!==e?(({width:a,height:l,...n}=e),t[0]=e,t[1]=l,t[2]=n,t[3]=a):(l=t[1],n=t[2],a=t[3]),t[4]!==l||t[5]!==a?(o=(0,A.jsx)(yl.gc,{icon:pl.HX,style:{width:a,height:l}}),t[4]=l,t[5]=a,t[6]=o):o=t[6],t[7]!==n||t[8]!==o?(s=(0,A.jsx)(Ul,{...n,children:o}),t[7]=n,t[8]=o,t[9]=s):s=t[9],s},AdImage:function(e){const t=(0,i.c)(10);let l,n,a,o,s;return t[0]!==e?(({width:a,height:l,...n}=e),t[0]=e,t[1]=l,t[2]=n,t[3]=a):(l=t[1],n=t[2],a=t[3]),t[4]!==l||t[5]!==a?(o=(0,A.jsx)(yl.gc,{icon:fl.jb,style:{width:a,height:l}}),t[4]=l,t[5]=a,t[6]=o):o=t[6],t[7]!==n||t[8]!==o?(s=(0,A.jsx)(Ul,{...n,children:o}),t[7]=n,t[8]=o,t[9]=s):s=t[9],s},Audio:function(e){const t=(0,i.c)(10);let l,n,a,o,s;return t[0]!==e?(({width:a,height:l,...n}=e),t[0]=e,t[1]=l,t[2]=n,t[3]=a):(l=t[1],n=t[2],a=t[3]),t[4]!==l||t[5]!==a?(o=(0,A.jsx)(yl.gc,{icon:bl.X,style:{width:a,height:l},className:"d-block m-auto"}),t[4]=l,t[5]=a,t[6]=o):o=t[6],t[7]!==n||t[8]!==o?(s=(0,A.jsx)(Ul,{...n,children:o}),t[7]=n,t[8]=o,t[9]=s):s=t[9],s},Button:function(e){const t=(0,i.c)(9);let l,n,a,o,s;return t[0]!==e?(({className:l,...n}=e),t[0]=e,t[1]=l,t[2]=n):(l=t[1],n=t[2]),t[3]!==l?(a=$t(["rounded",l]),t[3]=l,t[4]=a):a=t[4],t[5]===Symbol.for("react.memo_cache_sentinel")?(o=(0,A.jsx)(sn,{height:"0.5em"}),t[5]=o):o=t[5],t[6]!==n||t[7]!==a?(s=(0,A.jsx)(Ul,{outline:!0,className:a,...n,children:o}),t[6]=n,t[7]=a,t[8]=s):s=t[8],s},Conversation:function(e){const t=(0,i.c)(6),{className:l}=e;let n,a,o,s;return t[0]!==l?(n=$t(["d-flex","flex-column",l]),t[0]=l,t[1]=n):n=t[1],t[2]===Symbol.for("react.memo_cache_sentinel")?(a=[.6,.5,.7,.8].map(xn),o=(0,A.jsx)(yl.gc,{icon:jl.Be,className:"d-block ms-auto mt-2 fs-1"}),t[2]=a,t[3]=o):(a=t[2],o=t[3]),t[4]!==n?(s=(0,A.jsxs)(Ul,{className:n,children:[a,o]}),t[4]=n,t[5]=s):s=t[5],s},Image:rn,InputText:function(e){const t=(0,i.c)(8);let l,n,a,o;return t[0]!==e?(({className:l,...n}=e),t[0]=e,t[1]=l,t[2]=n):(l=t[1],n=t[2]),t[3]!==l?(a=$t(["rounded",l]),t[3]=l,t[4]=a):a=t[4],t[5]!==n||t[6]!==a?(o=(0,A.jsx)(Ul,{outline:!0,height:"1em",className:a,...n}),t[5]=n,t[6]=a,t[7]=o):o=t[7],o},Line:function(e){const t=(0,i.c)(5);let l,n;return t[0]!==e.className?(l=$t([e.className,cn.shortText]),t[0]=e.className,t[1]=l):l=t[1],t[2]!==e||t[3]!==l?(n=(0,A.jsx)(sn,{...e,className:l,height:.2,lines:1}),t[2]=e,t[3]=l,t[4]=n):n=t[4],n},Map:un,MapPath:function(e){const t=(0,i.c)(10);let l,n,a,o,s;return t[0]!==e?(({width:a,height:l,...n}=e),t[0]=e,t[1]=l,t[2]=n,t[3]=a):(l=t[1],n=t[2],a=t[3]),t[4]!==l||t[5]!==a?(o=(0,A.jsx)(yl.gc,{icon:xl.Bg,style:{width:a,height:l}}),t[4]=l,t[5]=a,t[6]=o):o=t[6],t[7]!==n||t[8]!==o?(s=(0,A.jsx)(Ul,{...n,children:o}),t[7]=n,t[8]=o,t[9]=s):s=t[9],s},QuizAnswer:function(e){const t=(0,i.c)(8),{className:l,good:n}=e,a=void 0===n||n;let o;t[0]!==l?(o=$t(["d-flex","align-items-center","mw-75",l]),t[0]=l,t[1]=o):o=t[1];const s=a?kl.e6:Ml.GR;let r,c,d;return t[2]!==s?(r=(0,A.jsx)(yl.gc,{className:"me-2 fs-2",icon:s}),t[2]=s,t[3]=r):r=t[3],t[4]===Symbol.for("react.memo_cache_sentinel")?(c=(0,A.jsx)(Ul,{outline:!0,className:"w-100",children:(0,A.jsx)(sn,{lines:1,height:"1em"})}),t[4]=c):c=t[4],t[5]!==o||t[6]!==r?(d=(0,A.jsxs)("div",{className:o,children:[r,c]}),t[5]=o,t[6]=r,t[7]=d):d=t[7],d},Quote:function(e){const t=(0,i.c)(8);let l,n,a;t[0]!==e?(({height:n,lines: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?1.5:n,s=void 0===a?6:a;let r;return t[4]!==o||t[5]!==s||t[6]!==l?(r=(0,A.jsx)(sn,{height:o,lines:s,...l}),t[4]=o,t[5]=s,t[6]=l,t[7]=r):r=t[7],r},ShareOptions:function(e){const t=(0,i.c)(5),{className:l}=e;let n,a,o;return t[0]!==l?(n=$t(["d-flex","flex-column","gap-1",l]),t[0]=l,t[1]=n):n=t[1],t[2]===Symbol.for("react.memo_cache_sentinel")?(a=[0,1,2].map(Sn),t[2]=a):a=t[2],t[3]!==n?(o=(0,A.jsx)("div",{className:n,children:a}),t[3]=n,t[4]=o):o=t[4],o},ShortText:function(e){const t=(0,i.c)(8);let l,n,a;t[0]!==e?(({height:n,lines: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?.8:n,s=void 0===a?2:a;let r;return t[4]!==o||t[5]!==s||t[6]!==l?(r=(0,A.jsx)(sn,{height:o,lines:s,...l}),t[4]=o,t[5]=s,t[6]=l,t[7]=r):r=t[7],r},Subtitle:mn,SurveyAnswer:function(e){const t=(0,i.c)(6),{className:l}=e;let n,a,o,s;return t[0]!==l?(n=$t(["d-flex","align-items-center","mw-75",l]),t[0]=l,t[1]=n):n=t[1],t[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,A.jsx)(Ul,{outline:!0,className:"w-100 me-2",children:(0,A.jsx)(sn,{lines:1,height:"1em"})}),o=(0,A.jsx)(yl.gc,{icon:$l.Bi,className:"fs-2"}),t[2]=a,t[3]=o):(a=t[2],o=t[3]),t[4]!==n?(s=(0,A.jsxs)("div",{className:n,children:[a,o]}),t[4]=n,t[5]=s):s=t[5],s},Text:gn,Timeline:function(e){const t=(0,i.c)(2);let l;return t[0]!==e?(l=(0,A.jsx)(sn,{...e}),t[0]=e,t[1]=l):l=t[1],l},Title:hn,Video:yn,Video360:pn,VideoLoop:function(e){const t=(0,i.c)(14);let l,n,a,o,s,r;return t[0]!==e?(({width:a,height:l,...n}=e),t[0]=e,t[1]=l,t[2]=n,t[3]=a):(l=t[1],n=t[2],a=t[3]),t[4]!==l||t[5]!==a?(o=(0,A.jsx)(yl.gc,{icon:Cl.ij,style:{width:a,height:l}}),t[4]=l,t[5]=a,t[6]=o):o=t[6],t[7]!==l||t[8]!==a?(s=(0,A.jsx)(yl.gc,{icon:wl.ye,style:{width:a,height:l}}),t[7]=l,t[8]=a,t[9]=s):s=t[9],t[10]!==n||t[11]!==o||t[12]!==s?(r=(0,A.jsxs)(Ul,{...n,children:[o,s]}),t[10]=n,t[11]=o,t[12]=s,t[13]=r):r=t[13],r}});function wn(e){const t=(0,i.c)(11),{children:l,placeholder:n,empty:a,emptyLabel:o,preview:s,isEmpty:r,placeholderProps:c,emptyClassName:d,placeholderClassName:m}=e,g=void 0===l?null:l,h=void 0===n?null:n,y=void 0===a?null:a,p=void 0===o?null:o,f=void 0===s?null:s,b=void 0!==r&&r,v=void 0===c?null:c,x=void 0===d?null:d,S=void 0===m?null:m,{isPlaceholder:C,isEdit:w,isPreview:j}=nt();if(C){let e;t[0]!==h?(e=u(h)?Z(h,Cn):null,t[0]=h,t[1]=e):e=t[1];const l=e;let n;return t[2]!==l||t[3]!==h||t[4]!==S||t[5]!==v?(n=null!==l?(0,A.jsx)(l,{className:S,...v}):h,t[2]=l,t[3]=h,t[4]=S,t[5]=v,t[6]=n):n=t[6],n}if(w&&b){let e;return t[7]!==y||t[8]!==x||t[9]!==p?(e=null!==y?y:(0,A.jsx)(Xl,{className:x,children:p}),t[7]=y,t[8]=x,t[9]=p,t[10]=e):e=t[10],e}return j&&null!==f?f:g}var jn="micromag-core-transitions-transition-fullscreen";function kn(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,C=void 0===r?null:r,w=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,Mt.U2)();let L;t[0]!==z?(L=()=>({ref:z}),t[0]=z,t[1]=L):L=t[1];const[I,P]=(0,Mt.zh)(L);let B,E,V,D,_;return t[2]!==N||t[3]!==w||t[4]!==C||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"===C||S&&"out"===C,t=e||S,l=j&&S&&!e,n=null!==k?k:void 0,a=w>0&&S&&"out"!==C,i=null!==M&&Tl.$W[M]?Tl.$W[M]||null:N,o={from:t?v:x,to:t?x:v,immediate:e,delay:a?w:null,reset:l,onStart:T,onRest:R,config:null!==i?i:{duration:e?0:n}};(t||j)&&P.start(o)},E=[S,C,w,k,j,M,N,v,x,P,T,R],t[2]=N,t[3]=w,t[4]=C,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]!==I?(V={...I},t[16]=I,t[17]=V):V=t[17],t[18]!==F||t[19]!==b?(D=$t(["micromag-core-transitions-transition-container",F,{[jn]:b}]),t[18]=F,t[19]=b,t[20]=D):D=t[20],t[21]!==$||t[22]!==V||t[23]!==D?(_=(0,A.jsx)(Tl.CS.div,{style:V,className:D,children:$}),t[21]=$,t[22]=V,t[23]=D,t[24]=_):_=t[24],_}var Mn={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,A.jsx)(kn,{...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,A.jsx)(kn,{...e,from:n,to:o}),t[2]=e,t[3]=s):s=t[3],s}};function Nn(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}=st(),b=u||void 0===f||f;let v,x,S,C,w;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;C=r===d,v=null!==x?Z(r,Mn,null):null,w=null===S||C?null:Z(d,Mn,null),t[0]=g,t[1]=v,t[2]=x,t[3]=S,t[4]=C,t[5]=w}else v=t[1],x=t[2],S=t[3],C=t[4],w=t[5];const j=w;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,A.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]!==C||t[27]!==M?(R=null===v||y?T:(0,A.jsx)(v,{fullscreen:d,playing:b,direction:C?null:"in",...M,children:T}),t[21]=v,t[22]=y,t[23]=b,t[24]=d,t[25]=T,t[26]=C,t[27]=M,t[28]=R):R=t[28],R}function $n(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,A.jsx)("style",{type:"text/css",dangerouslySetInnerHTML:{__html:`${[o,s].filter(Fn).join(" ")}{${V(r)}}`}}):null,t[0]=s,t[1]=o,t[2]=r,t[3]=c):c=t[3],c}function Fn(e){return null!==e}function Tn(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,A.jsx)("style",{type:"text/css",dangerouslySetInnerHTML:{__html:`${[o,s].filter(Rn).join(" ")}{${V(r)}}`}}):null,t[0]=s,t[1]=o,t[2]=r,t[3]=c):c=t[3],c}function Rn(e){return null!==e}var zn="micromag-element-link-container";function Ln(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=ae(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)(),C=null!==x?`link-component-${S}`:null;let w;t[4]!==y||t[5]!==h||t[6]!==g?(w=y?{target:"_blank",rel:"noopener noreferer"}:{target:g,rel:h},t[4]=y,t[5]=h,t[6]=g,t[7]=w):w=t[7];const{target:j,rel:k}=w;let M;return t[8]!==b||t[9]!==f||t[10]!==x||t[11]!==v||t[12]!==C||t[13]!==k||t[14]!==j||t[15]!==m?(M=m?(0,A.jsx)("a",{id:C,className:$t([zn,f]),style:x,href:m,target:j,rel:k,tabIndex:v?"0":"-1",children:b}):(0,A.jsx)("div",{id:C,className:$t([zn,f]),style:x,children:b}),t[8]=b,t[9]=f,t[10]=x,t[11]=v,t[12]=C,t[13]=k,t[14]=j,t[15]=m,t[16]=M):M=t[16],M}var An="micromag-element-text-showEmpty",In="micromag-element-text-withLineClamp";function Pn(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,C=void 0===u?null:u,w=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?le(F):null,t[10]=F,t[11]=e):e=t[11],z=e,t[12]!==T?(l=null!==T?te(T):null,t[12]=T,t[13]=l):l=t[13],R=l,null!==p){const e=L;let l;t[14]!==p?(l=ne(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=ee(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=ae(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=ne(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 I=null!==z||null!==T,P=(0,n.useId)(),B=I?`text-component-${P}`:null,E=null!==x,V=S&&null!==w;let D,_,H;t[28]!==C||t[29]!==w||t[30]!==S||t[31]!==E||t[32]!==V?(D=$t(["micromag-element-text-container",C,{[In]:E,[An]:S,[w]:V}]),t[28]=C,t[29]=w,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,A.jsx)(Tn,{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,A.jsx)($n,{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,A.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,A.jsxs)(A.Fragment,{children:[q,G,Y]}),t[51]=q,t[52]=G,t[53]=Y,t[54]=U):U=t[54],U}var Bn={container:"micromag-element-author-avatar-container",shape:"micromag-element-author-avatar-shape",shapeCircle:"micromag-element-author-avatar-shapeCircle"};function En(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=De("supportsWebp",!1),S=De("imageResolution",h);let C;t[0]!==g||t[1]!==u||t[2]!==S||t[3]!==x||t[4]!==m?(C=Q(u,m,g,{resolution:S,supportsWebp:x}),t[0]=g,t[1]=u,t[2]=S,t[3]=x,t[4]=m,t[5]=C):C=t[5];const w=C;let j;t[6]!==p?(j=null!==p?(0,y.fL)(p):null,t[6]=p,t[7]=j):j=t[7];const k=Bn[`shape${j}`],M=null!==j;let N;t[8]!==b||t[9]!==f||t[10]!==k||t[11]!==M?(N=$t([Bn.container,b,{[k]:M,[Bn.isTag]:f}]),t[8]=b,t[9]=f,t[10]=k,t[11]=M,t[12]=N):N=t[12];const $=v?`url("${w}")`:null;let F,T;return t[13]!==$?(F=(0,A.jsx)("span",{className:Bn.shape,style:{backgroundImage:$}}),t[13]=$,t[14]=F):F=t[14],t[15]!==N||t[16]!==F?(T=(0,A.jsx)("span",{className:N,children:F}),t[15]=N,t[16]=F,t[17]=T):T=t[17],T}function Vn(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:C,url:w,collaborator:j}=x,k=void 0===S?null:S,M=void 0===C?null:C,N=void 0===w?null:w,$=void 0===j?null:j,F=g&&null!==M;let T;t[12]!==f||t[13]!==k?(T=ge(k)?(0,A.jsx)(Pn,{className:$t(["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=ge($)?(0,A.jsx)(Pn,{className:"micromag-element-author-collaboratorText",...$,inline:!0}):null,t[15]=$,t[16]=z):z=t[16];const L=z;let I,P,B,E,V,D;return t[17]!==p?(I=$t(["micromag-element-author-container",p]),t[17]=p,t[18]=I):I=t[18],t[19]!==M||t[20]!==v||t[21]!==F?(P=F?(0,A.jsx)(En,{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,A.jsx)("div",{children:R}):(0,A.jsx)(Ln,{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,A.jsx)("div",{className:$t(["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,A.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]!==I||t[36]!==P||t[37]!==V?(D=(0,A.jsxs)("div",{className:I,...l,children:[P,V]}),t[34]=l,t[35]=I,t[36]=P,t[37]=V,t[38]=D):D=t[38],D}var Dn="micromag-element-video-media",_n="micromag-element-video-withSize";function On(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:C,onPause:w,onEnded:j,onSeeked:k,onTimeUpdate:M,onProgressStep:N,onDurationChange:$,onVolumeChange:F,onSuspend:T,onSuspended:R,onPlayError:z,focusable:L,withPoster:I,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,Q=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===C?null:C,ie=void 0===w?null:w,oe=void 0===j?null:j,re=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,pe=void 0===z?null:z,fe=void 0===L||L,be=void 0!==I&&I,ve=void 0!==P&&P,Se=void 0===B||B;let Ce;t[0]!==E?(Ce=E||{},t[0]=E,t[1]=Ce):Ce=t[1];const{url:we,metadata:je}=Ce,ke=void 0===we?null:we,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=U(E,V),t[4]=E,t[5]=V,t[6]=ze):ze=t[6];const Le=ze,{sources:Ae,isImage:Ie}=function(e=null,t=null){const{possibleMimes:l=null}=t||{},{files:a=null,metadata:i=null}=e||{},{mime:o=null}=i||{},s=De("supportedVideoMimes"),r=(0,n.useMemo)(()=>l||s||["video/mp4"],[l,s]),c=(0,n.useMemo)(()=>Y(a),[a]),[d,u]=(0,n.useState)(r);(0,n.useEffect)(()=>{let e=se(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=Ie&&(null===Ae||0===Ae.length),Be=(0,n.useRef)(null),[Ee,Ve]=(0,n.useState)(null),_e=q||null===de;let Oe;t[7]!==ke||t[8]!==_e?(Oe={id:ke,disabled:_e},t[7]=ke,t[8]=_e,t[9]=Oe):Oe=t[9];const He=Wt(Ee,Oe);let Ze;t[10]!==ke?(Ze={id:ke},t[10]=ke,t[11]=Ze):Ze=t[11];const We=Gt(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=Jt(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 Zn;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,Ct,wt,jt,kt,Mt,Nt,Ft;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]!==pe||t[49]!==q?(xt=()=>{const{current:e}=Be,t=void 0===e?null:e;if(null===t||null===ke)return;const l=xe(t);var n;q&&l?t.pause():q||l||"true"===t.dataset.forcePlaying||t.play().catch(e=>{null!==pe&&pe(e)}),"true"===(n=t).dataset.forcePlaying&&(n.dataset.forcePlaying="false")},t[47]=ke,t[48]=pe,t[49]=q,t[50]=xt):xt=t[50],t[51]!==E||t[52]!==ke||t[53]!==pe||t[54]!==q?(St=[q,E,ke,pe],t[51]=E,t[52]=ke,t[53]=pe,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?(Ct={currentTime:He,duration:We,disabled:q,onStep:de},t[56]=He,t[57]=We,t[58]=de,t[59]=q,t[60]=Ct):Ct=t[60],tl(Ct),t[61]!==ee||t[62]!==et?(wt=$t(["micromag-element-video-container",{[_n]:et},ee]),t[61]=ee,t[62]=et,t[63]=wt):wt=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,A.jsx)("img",{src:ke,alt:Te,tabIndex:-1,className:$t([Dn,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]!==Se||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]!==re||t[93]!==mt||t[94]!==ce||t[95]!==at||t[96]!==q||t[97]!==Q||t[98]!==J||t[99]!==Ae||t[100]!==be||t[101]!==K?(Mt=Pe?null:(0,A.jsx)("video",{ref:ye(Be,O,H),src:null===Ae&&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:Q,crossOrigin:K?"anonymous":null,disablePictureInPicture:Se,tabIndex:fe?0:-1,className:$t([Dn,te]),onPlay:rt,onPlaying:dt,onPause:ie,onEnded:oe,onSeeked:re,onVolumeChange:at,onTimeUpdate:ce,onSuspend:mt,"data-has-audio":Re,"data-is-suspended":it,"aria-hidden":!0,children:(J&&null!==Ae?Ae:[]).map(Hn)},ke),t[74]=W,t[75]=Se,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]=re,t[93]=mt,t[94]=ce,t[95]=at,t[96]=q,t[97]=Q,t[98]=J,t[99]=Ae,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,A.jsx)(Dl,{className:"micromag-element-video-spinner"}),t[103]=Pe,t[104]=Ue,t[105]=qe,t[106]=Nt):Nt=t[106],t[107]!==wt||t[108]!==jt||t[109]!==kt||t[110]!==Mt||t[111]!==Nt?(Ft=(0,A.jsxs)("div",{className:wt,style:jt,children:[kt,Mt,Nt]}),t[107]=wt,t[108]=jt,t[109]=kt,t[110]=Mt,t[111]=Nt,t[112]=Ft):Ft=t[112],Ft}function Hn(e){const{url:t,mime:l}=e;return(0,A.jsx)("source",{src:null!==t?`${t}#t=0.001`:null,type:l},`source-${t}-${l}`)}function Zn(){}var Wn={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 qn(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:C,forceMuted:w,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,I=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!==C&&C,q=void 0!==w&&w,G=void 0===j?null:j,Y=void 0===k?null:k,{type:U,metadata:J,thumbnail_url:K}=P||{},ee=void 0===U?null:U,te=void 0===J?null:J,{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]!==I?(me=X(I),t[0]=I,t[1]=me):me=t[1];const ge={width:M,height:N,...me},he=De("supportsWebp",!1),ye=De("imageResolution",$);if(null!==P&&(se||oe&&(!H||W))){const e=Q(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=$t([Wn.container,E]),t[5]=E,t[6]=fe):fe=t[6],t[7]!==_?(be=(0,A.jsx)("div",{className:Wn.content,children:_}),t[7]=_,t[8]=be):be=t[8],(0,A.jsxs)("div",{className:fe,style:ge,children:[oe&&H&&!W?(0,A.jsx)("div",{className:Wn.videoContainer,style:pe,children:(0,A.jsx)(On,{className:Wn.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 Gn(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,C=void 0===n?null:n,w=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,I=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!==C&&S>0&&C>0;let D,_,O,H,Z,W,q,G;if(t[0]!==j||t[1]!==T||t[2]!==$||t[3]!==V||t[4]!==C||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]!==w||t[14]!==L||t[15]!==S||t[16]!==I){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]!==C||t[24]!==S?(n=V?{width:S,height:C}:null,t[22]=V,t[23]=C,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=$t([Wn.container,$]),t[28]=$,t[29]=O):O=t[29],H=i,D=Wn.layers,t[30]!==T||t[31]!==C||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]!==w||t[42]!==L||t[43]!==S||t[44]!==I?(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,A.jsx)("div",{className:$t([Wn.layer,F,{[Wn.bottom]:"bottom"===s,[Wn.right]:"right"===o}]),style:{zIndex:l-t},children:(0,A.jsx)(qn,{width:S,height:C,resolution:w,className:$t([Wn.background,T]),playing:k,muted:M,horizontalAlign:o,verticalAlign:s,loadingMode:R,shouldLoad:L,mediaRef:z,withoutVideo:I,onPlayError:P,qualityStartLevel:B,onQualityLevelChange:E,...i})},`background-${t}`)},t[30]=T,t[31]=C,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]=w,t[42]=L,t[43]=S,t[44]=I,t[45]=o):o=t[45],_=e.map(o)}t[0]=j,t[1]=T,t[2]=$,t[3]=V,t[4]=C,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]=w,t[14]=L,t[15]=S,t[16]=I,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,A.jsx)("div",{className:D,children:_}),t[46]=D,t[47]=_,t[48]=W):W=t[48],t[49]!==N?(q=(0,A.jsx)("div",{className:Wn.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,A.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 Yn(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=$t(["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,A.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 Un={};function Qn(e){const t=(0,i.c)(40),{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,C=void 0===r?1:r,w=void 0===c?null:c,j=void 0===d?Un:d,k=void 0===u?Un: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,{metadata:z}=b||{},L=void 0===z?null:z,{width:I,height:P,description:B}=L||{},E=void 0===I?0:I,V=void 0===P?0:P,D=void 0===B?"image":B,_=E/V,[O,H]=(0,n.useState)({width:E,height:V}),{width:Z,height:W}=O,q=void 0===Z?0:Z,G=void 0===W?0:W,Y=De("supportsWebp",!1),U=De("imageResolution",C),[X,J]=(0,n.useState)(T);T&&!X&&J(T);const K=X||T;let ee;t[0]!==$||t[1]!==G||t[2]!==q?(ee=e=>{const{target:t}=e,{naturalWidth:l,naturalHeight:n}=t,a=void 0===l?0:l,i=void 0===n?0:n;a===q&&i===G||H({width:a||0,height:i||0}),null!==$&&$(e)},t[0]=$,t[1]=G,t[2]=q,t[3]=ee):ee=t[3];const te=ee,le=q>0&&G>0;let ne,ae,ie,oe,se;if(null!==w){let e,l=0,n=0,a=x,i=S,o=null,s=null;t[4]!==w?(e=w||{},t[4]=w,t[5]=e):e=t[5];const{fit:r,horizontalPosition:c,verticalPosition:d}=e,u=void 0===r?null:r,m=void 0===c?"center":c,g=void 0===d?"center":d;if(le){const e="cover"===u;let o;t[6]!==S||t[7]!==G||t[8]!==q||t[9]!==e||t[10]!==x?(o=(0,Fl.kL)(q,G,x,S,{cover:e}),t[6]=S,t[7]=G,t[8]=q,t[9]=e,t[10]=x,t[11]=o):o=t[11];const{width:s,height:r}=o;a=s,i=r,"center"===m?n=-(s-x)/2:"right"===m&&(n=-(s-x)),"center"===g?l=-(r-S)/2:"bottom"===g&&(l=-(r-S))}else o=u,s=`${m} ${g}`;let h,y;t[12]!==S||t[13]!==x?(h={width:x,height:S},t[12]=S,t[13]=x,t[14]=h):h=t[14],ne=h,t[15]!==i||t[16]!==n||t[17]!==o||t[18]!==s||t[19]!==l||t[20]!==a?(y={position:"absolute",width:a,height:i,top:l,left:n,objectFit:o,objectPosition:s},t[15]=i,t[16]=n,t[17]=o,t[18]=s,t[19]=l,t[20]=a,t[21]=y):y=t[21],ae=y,ie=a,oe=i}else{const e=null!==S&&"number"==typeof S,l=_&&e?S*_:null,n=_&&null!==x&&"number"==typeof x?x/_:null;let a=null!==x?x:l,i=null!==S?S:n;null===a&&null===i&&(a=q>0?E:null,i=G>0?V:null),ie=l??q??E,oe=n??G??V,ne={width:a,height:i};const o=e?"100%":"auto";let s;t[22]!==o?(s={width:"100%",height:o},t[22]=o,t[23]=s):s=t[23],ae=s}ne={...ne,...j},t[24]!==ae||t[25]!==k?(se={...ae,...k},t[24]=ae,t[25]=k,t[26]=se):se=t[26],ae=se;const re=Q(b,ie,oe||ie,{resolution:U,supportsWebp:Y});let ce,de;return t[27]!==M?(ce=$t(["micromag-element-image-container",M]),t[27]=M,t[28]=ce):ce=t[28],t[29]!==v||t[30]!==D||t[31]!==ae||t[32]!==K||t[33]!==re||t[34]!==N||t[35]!==F||t[36]!==te||t[37]!==G||t[38]!==q?(de=null!==re&&K?(0,A.jsx)("img",{src:re,alt:v||D,className:$t(["micromag-element-image-img",N]),style:ae,width:q,height:G,onLoad:te,loading:F}):null,t[29]=v,t[30]=D,t[31]=ae,t[32]=K,t[33]=re,t[34]=N,t[35]=F,t[36]=te,t[37]=G,t[38]=q,t[39]=de):de=t[39],(0,A.jsx)("div",{className:ce,style:ne,ref:R,children:de})}var Xn="micromag-element-visual-container",Jn="micromag-element-visual-natural";function Kn(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,C,w;t[0]!==e?(({media:n,mediaRef:y,width:f,height:b,ratio:v,resolution:x,objectFit:S,playing:C,muted:w,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]=C,t[21]=w):(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],C=t[20],w=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===C||C,z=void 0===w||w,L=void 0===a?null:a,I=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}=_t(J),te=(!Q||ee)&&I;let le=null;if("video"===G&&null!==T&&I){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]!==I||t[60]!==Y||t[61]!==G||t[62]!==D||t[63]!==le||t[64]!==P||t[65]!==M||t[66]!==_?(oe=null!==G?(0,A.jsxs)(A.Fragment,{children:["image"===G||!I||_?(0,A.jsx)(Qn,{...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:$t([Xn,E]),imageClassName:V}):null,"video"===G&&I&&!_?(0,A.jsx)("div",{className:$t([Xn,E,{[Jn]:ne}]),style:{width:M,height:N,aspectRatio:null!==$?`${$}`:null},ref:K,children:(0,A.jsxs)("div",{className:$t(["micromag-element-visual-videoContainer",D]),style:le,children:[(0,A.jsx)(On,{...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,A.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]=I,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 ea={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 ta(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,C=void 0===g?null:g,w=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=ne(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=ee(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=$t([ea.container,j]),t[36]=j,t[37]=T):T=t[37],t[38]!==w||t[39]!==v||t[40]!==z||t[41]!==x||t[42]!==C||t[43]!==$||t[44]!==M||t[45]!==T||t[46]!==b?(R=(0,A.jsx)(El,{className:T,disabled:v,style:z,onClick:C,refButton:M,type:b,focusable:x,withoutBootstrapStyles:!0,...$,children:w}),t[38]=w,t[39]=v,t[40]=z,t[41]=x,t[42]=C,t[43]=$,t[44]=M,t[45]=T,t[46]=b,t[47]=R):R=t[47],R}function la(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,C,w,j,k;t[0]!==e?(({label:n,visual:y,visualWidth:v,labelBoxStyle:x,textStyle:S,buttonStyle:C,resolution:w,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]=C,t[21]=w,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],C=t[20],w=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===C?null:C,z=void 0===w?null:w,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=ta;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=$t([ea.container,ea.rich,O,{[ea.layoutLabelBottom]:ce,[ea.layoutLabelTop]:de,[ea.layoutNoLabel]:ue,[ea.layoutLabelOver]:me,[ea.layoutLabelLeft]:ge,[ea.layoutLabelRight]:he,[ea.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,A.jsx)(I.sA,{id:"bv3rRe",defaultMessage:"Button"}),t[39]=fe):fe=t[39];const be=!ee&&!ie;let ve,xe,Se,Ce;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,A.jsx)(Kn,{media:N,width:$||se,resolution:z,shouldLoad:L,className:$t([ea.visual,Z]),imageClassName:$t([ea.image,W]),videoClassName:$t([ea.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,A.jsx)(Pn,{boxStyle:F,textStyle:T,body:ne,className:$t([ea.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,A.jsxs)(wn,{placeholder:"button",emptyLabel:fe,emptyClassName:ea.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?(Ce=(0,A.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]=Ce):Ce=t[74],Ce}function na(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,A.jsx)("g",{transform:"matrix(1, 0, 0, 1, 0, 0)",children:(0,A.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,A.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 aa={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 ia(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:C,openWebView:w,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,I=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===C||C,Z=void 0===w?null:w,W=void 0===j?null:j,q=cl(),G=null===k||"swipe-up"===k;let Y;t[0]!==M?(Y=he(M),t[0]=M,t[1]=Y):Y=t[1];const U=Y,Q=(0,n.useRef)(null);let J;t[2]!==N?(J=N||{},t[2]=N,t[3]=J):J=t[3];const{textStyle:K}=J,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,ue=void 0===ce?null:ce;let me,ge,ye;t[8]!==ie?(me={fontSize:ie},t[8]=ie,t[9]=me):me=t[9],t[10]!==ue||t[11]!==oe?(ge=X(null===ue?oe:ue,"color"),t[10]=ue,t[11]=oe,t[12]=ge):ge=t[12],t[13]!==me||t[14]!==ge?(ye={...me,...ge},t[13]=me,t[14]=ge,t[15]=ye):ye=t[15];const pe=ye,fe=(0,n.useRef)(null),[be,ve]=(0,n.useState)(!1),[xe,Se]=(0,n.useState)(!1);let Ce;t[16]!==F||t[17]!==W||t[18]!==Z||t[19]!==xe||t[20]!==q||t[21]!==M?(Ce=(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]=Ce):Ce=t[22];const we=Ce,je=oa;let ke;t[23]!==P||t[24]!==F||t[25]!==we?(ke=e=>{const{movement:t}=e,[,l]=t;l<-P&&(F?we(null,"swipe"):de()&&null!==fe.current?(fe.current.click(),ve(!0),we(null,"swipe")):Q.current&&(Q.current.click(),we(null,"swipe")))},t[23]=P,t[24]=F,t[25]=we,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,Nt.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,Ae,Ie,Pe;t[31]!==z||t[32]!==B||t[33]!==R||t[34]!==F||t[35]!==Re?(ze=$t([aa.container,B,{[aa.disabled]:R,[aa.animationDisabled]:z,[aa.invalidUrl]:Re,[aa.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,A.jsx)("div",{className:aa.leavingFrame}):null,t[37]=be,t[38]=Le):Le=t[38],t[39]!==O||t[40]!==F||t[41]!==G||t[42]!==M?(Ae=!F&&G?(0,A.jsx)("a",{className:aa.selfTargetLink,href:M,ref:fe,tabIndex:O?"0":"-1"}):null,t[39]=O,t[40]=F,t[41]=G,t[42]=M,t[43]=Ae):Ae=t[43],t[44]!==I||t[45]!==_||t[46]!==pe||t[47]!==G?(Ie=G?(0,A.jsx)("div",{className:$t([aa.arrow,_]),style:pe,children:I||(0,A.jsx)(na,{})}):null,t[44]=I,t[45]=_,t[46]=pe,t[47]=G,t[48]=Ie):Ie=t[48],t[49]!==V?(Pe=$t([aa.buttonBorder,V]),t[49]=V,t[50]=Pe):Pe=t[50];const Be=!F;let Ee;t[51]!==E||t[52]!==Be?(Ee=$t([aa.button,E,{[aa.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=$t([aa.label,D]),t[58]=D,t[59]=Oe):Oe=t[59],t[60]!==L?(He=null!==L?(0,A.jsx)("div",{className:aa.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,A.jsx)(Pn,{...N,className:aa.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,A.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]!==we||t[75]!==Ee||t[76]!==Ve||t[77]!==De||t[78]!==_e||t[79]!==Ge||t[80]!==xe?(Ye=(0,A.jsx)(ta,{className:Ee,refButton:Q,focusable:O,buttonStyle:$,inline:!0,"aria-pressed":xe,href:Ve,external:De,onClick:we,..._e,children:Ge}),t[72]=$,t[73]=O,t[74]=we,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,A.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]!==Ae||t[89]!==Ie||t[90]!==Ue?(Qe=(0,A.jsxs)("div",{className:ze,ref:T,children:[Le,Ae,Ie,Ue]}),t[85]=T,t[86]=ze,t[87]=Le,t[88]=Ae,t[89]=Ie,t[90]=Ue,t[91]=Qe):Qe=t[91],Qe}function oa(e){const{event:t}=e;t.preventDefault()}var sa=({ref:e,...t})=>(0,A.jsx)(ia,{elRef:e,...t});function ra(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=$t([o]),t[0]=o,t[1]=s):s=t[1],t[2]!==a?(r=(0,A.jsx)(sa,{...a}),t[2]=a,t[3]=r):r=t[3],t[4]!==s||t[5]!==r?(c=(0,A.jsx)("div",{className:s,children:r}),t[4]=s,t[5]=r,t[6]=c):c=t[6],c}function ca(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=ee(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=$t(["micromag-element-badge-container",c]),t[8]=c,t[9]=f):f=t[9];const v=b;let x;t[10]!==d?(x=$t(["micromag-element-badge-label",d]),t[10]=d,t[11]=x):x=t[11];const S=p||1;let C,w,j,k;return t[12]!==S||t[13]!==g?(C={...g,lineHeight:S},t[12]=S,t[13]=g,t[14]=C):C=t[14],t[15]!==s||t[16]!==C?(w=(0,A.jsx)(Pn,{...s,textStyle:C,inline:!0}),t[15]=s,t[16]=C,t[17]=w):w=t[17],t[18]!==x||t[19]!==w?(j=(0,A.jsx)("span",{className:x,children:w}),t[18]=x,t[19]=w,t[20]=j):j=t[20],t[21]!==b||t[22]!==j||t[23]!==f?(k=(0,A.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 da={container:"micromag-element-header-container",fade:"micromag-element-header-fade"};function ua(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=$t([da.container,s,{[da.fade]:r}]),t[0]=s,t[1]=r,t[2]=c):c=t[2],t[3]!==o?(d=null!==o?(0,A.jsx)(ca,{className:da.badge,...o}):null,t[3]=o,t[4]=d):d=t[4],t[5]!==c||t[6]!==d?(u=(0,A.jsx)("div",{className:c,children:d}),t[5]=c,t[6]=d,t[7]=u):u=t[7],u}function ma(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:C,highlight:w}=S,j=void 0===C?null:C,k=void 0===w?null:w;let M,N=null;t[2]!==j?(M=null!==j?le(j):null,t[2]=j,t[3]=M):M=t[3];let $,F=M;t[4]!==k?($=null!==k?te(k):null,t[4]=k,t[5]=$):$=t[5];const T=$;if(null!==h){let e,l;t[6]!==h?(e=ne(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=ae(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=ne(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 I,P,B,E;var V;let D,_,H;return t[20]!==F||t[21]!==L?(I=null!==F?(0,A.jsx)(Tn,{selector:`#${O(L)}`,style:F}):null,t[20]=F,t[21]=L,t[22]=I):I=t[22],t[23]!==T||t[24]!==L?(P=null!==T?(0,A.jsx)($n,{selector:`#${O(L)}`,style:T}):null,t[23]=T,t[24]=L,t[25]=P):P=t[25],t[26]!==b?(B=$t(["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,A.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]!==I||t[41]!==P||t[42]!==_?(H=(0,A.jsxs)(A.Fragment,{children:[I,P,_]}),t[40]=I,t[41]=P,t[42]=_,t[43]=H):H=t[43],H}var ga=({ref:e,...t})=>(0,A.jsx)(ma,{headingRef:e,...t});const ha=n.createContext({direction:"horizontal"});function ya(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,A.jsx)(ha,{value:s,children:n}),t[2]=n,t[3]=s,t[4]=r):r=t[4],r}var pa="micromag-element-stack-spacer-hasSize";function fa(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)(ha);return e})(),g=null!==r;let h;t[0]!==u||t[1]!==g?(h=$t(["micromag-element-stack-spacer-container",u,{[pa]: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,C;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?(C=(0,A.jsx)("div",{className:h,style:S}),t[10]=S,t[11]=h,t[12]=C):C=t[12],C}fa.withoutTransitionsWrapper=!0;var ba="micromag-element-layout-fullscreen";function va(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 C,w=null;"center"===h?w="center":"right"===h&&(w="flex-end"),t[0]!==w||t[1]!==g||t[2]!==S||t[3]!==x||t[4]!==m?(C={width:m,height:g,justifyContent:S,alignItems:w,...x},t[0]=w,t[1]=g,t[2]=S,t[3]=x,t[4]=m,t[5]=C):C=t[5];const j=C;let k,M;return t[6]!==b||t[7]!==f?(k=$t(["micromag-element-layout-container",b,{[ba]:f}]),t[6]=b,t[7]=f,t[8]=k):k=t[8],t[9]!==v||t[10]!==j||t[11]!==k?(M=(0,A.jsx)(ya,{direction:"vertical",children:(0,A.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 xa={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 Sa(e){const t=(0,i.c)(69),{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,C=void 0===a?null:a,w=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,I=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]!==C||t[3]!==S?(D={width:S,height:C},t[2]=C,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}=Dt(),{ref:Y,height:U}=Dt(),Q=(0,n.useRef)(!1),X=(0,n.useRef)(!1),J=(0,n.useRef)(!1);let K;t[6]!==L||t[7]!==I||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!==I&&I({initial:!X.current}),X.current=!0),n!==Z&&V&&W(n),J.current=i},t[6]=L,t[7]=I,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=!w;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,Nt.useScroll)(ee,le),ae=!w&&U>0&&G>0&&Math.round(U)>Math.round(G);let ie,oe;t[17]!==ae?(ie=()=>{W(ae)},oe=[ae],t[17]=ae,t[18]=ie,t[19]=oe):(ie=t[18],oe=t[19]),(0,n.useEffect)(ie,oe);const se=U>0&&G>0?U-G:null;let re,ce,de,ue,me,ge;t[20]!==w||t[21]!==se||t[22]!==L||t[23]!==I||t[24]!==q?(re=()=>{null!==se&&!w&&q.current.scrollTop+1>=se?null!==L&&L({initial:!1}):null!==I&&I({initial:!1})},ce=[se,w,q,L,I],t[20]=w,t[21]=se,t[22]=L,t[23]=I,t[24]=q,t[25]=re,t[26]=ce):(re=t[25],ce=t[26]),(0,n.useEffect)(re,ce),t[27]!==P||t[28]!==G||t[29]!==U?(de=()=>{null!==P&&P({scrollableHeight:G,scrolleeHeight:U,canScroll:(U||0)>(G||0)})},ue=[G,U,P],t[27]=P,t[28]=G,t[29]=U,t[30]=de,t[31]=ue):(de=t[30],ue=t[31]),(0,n.useEffect)(de,ue),t[32]!==F||t[33]!==q?(me=()=>{null!==q.current&&null!==F&&(q.current.scrollTop=F)},ge=[q,F],t[32]=F,t[33]=q,t[34]=me,t[35]=ge):(me=t[34],ge=t[35]),(0,n.useEffect)(me,ge);const he=xa[j],pe=null!==j&&U<G,fe=V&&Z;let be,ve,xe,Se,Ce;t[36]!==k||t[37]!==w||t[38]!==he||t[39]!==pe||t[40]!==fe||t[41]!==E?(be=$t([xa.container,xa.withScroll,k,{[xa.disabled]:w,[he]:pe,[xa.withArrow]:fe,[xa.withShadow]:E}]),t[36]=k,t[37]=w,t[38]=he,t[39]=pe,t[40]=fe,t[41]=E,t[42]=be):be=t[42],t[43]!==M?(ve=$t([xa.scrollable,M]),t[43]=M,t[44]=ve):ve=t[44],t[45]!==B||t[46]!==q?(xe=ye(q,B),t[45]=B,t[46]=q,t[47]=xe):xe=t[47],t[48]!==ne?(Se=ne(),t[48]=ne,t[49]=Se):Se=t[49],t[50]!==N?(Ce=$t([xa.scrollee,N]),t[50]=N,t[51]=Ce):Ce=t[51];const we=Y;let je,ke,Me,Ne;return t[52]!==$||t[53]!==Ce||t[54]!==we?(je=(0,A.jsx)("div",{className:Ce,ref:we,children:$}),t[52]=$,t[53]=Ce,t[54]=we,t[55]=je):je=t[55],t[56]!==ve||t[57]!==xe||t[58]!==Se||t[59]!==je?(ke=(0,A.jsx)("div",{className:ve,ref:xe,...Se,children:je}),t[56]=ve,t[57]=xe,t[58]=Se,t[59]=je,t[60]=ke):ke=t[60],t[61]!==w||t[62]!==V?(Me=!w&&V?(0,A.jsx)("div",{className:xa.arrowContainer,children:(0,A.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"16",viewBox:"0 0 10 16",className:xa.arrow,fill:"currentColor",children:(0,A.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[61]=w,t[62]=V,t[63]=Me):Me=t[63],t[64]!==_||t[65]!==be||t[66]!==ke||t[67]!==Me?(Ne=(0,A.jsxs)("div",{className:be,style:_,children:[ke,Me]}),t[64]=_,t[65]=be,t[66]=ke,t[67]=Me,t[68]=Ne):Ne=t[68],Ne}var Ca={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"},wa=[{id:"article",type:"screen",group:{label:(0,I.zR)({id:"fIawTr",defaultMessage:"Text"}),order:2},title:(0,I.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,I.tz)(),b=sl(h),{width:v,height:x,resolution:S}=st(),{topHeight:C,bottomHeight:w,bottomSidesWidth:j}=gt(),{open:k}=ft(),{muted:M}=Qe(),{ref:N,isCurrent:$=!1}=Xe(m,!0),{ref:F,height:T}=Dt(),{isView:R,isPreview:z,isPlaceholder:L,isEdit:P,isStatic:B,isCapture:E}=nt(),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=ge(s),G=re(d),Y=ce(u),U=ge(t),Q=ge(l),X=ge(o),J=ge(i),K=ge(O)||ue(H)||ge(Z),ee=ue(e),te=ge(a),le=q(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(Lt(ae).toDate(),{year:"numeric",month:"long",day:"2-digit"})}</p>`:null,[ae]),oe=(0,A.jsx)(wn,{placeholder:"image",emptyLabel:(0,A.jsx)(I.sA,{id:"ebsPd4",defaultMessage:"Image"}),emptyClassName:Ca.emptyText,placeholderClassName:"fs-1 mb-3",isEmpty:!ee,children:(0,A.jsx)("div",{ref:F,className:Ca.visualContainer,children:ee?(0,A.jsx)(Kn,{media:e,width:v,height:ne,shouldLoad:D,resolution:S,className:Ca.visual}):null})}),se=(0,A.jsx)(wn,{placeholder:"title",emptyLabel:(0,A.jsx)(I.sA,{id:"2ZOPe+",defaultMessage:"Title"}),emptyClassName:Ca.emptyTitle,placeholderClassName:"mb-3",isEmpty:!U,children:U?(0,A.jsx)(ga,{className:Ca.title,...t}):null},"title"),de=(0,A.jsx)(wn,{placeholder:"line",emptyLabel:(0,A.jsx)(I.sA,{id:"vdWMTA",defaultMessage:"Surtitle"}),emptyClassName:Ca.emptySurtitle,placeholderClassName:"mb-2",isEmpty:!Q,children:Q?(0,A.jsx)(Pn,{className:Ca.surtitle,...l}):null},"surtitle"),me=(0,A.jsx)(wn,{placeholder:"line",emptyLabel:(0,A.jsx)(I.sA,{id:"d60tSn",defaultMessage:"Subtitle"}),emptyClassName:Ca.emptySubtitle,placeholderClassName:"mb-2",isEmpty:!X,children:X?(0,A.jsx)(Pn,{className:Ca.subtitle,...o}):null},"subtitle"),he=(0,A.jsx)(wn,{placeholder:"line",emptyLabel:(0,A.jsx)(I.sA,{id:"/MsgWe",defaultMessage:"Date"}),emptyClassName:Ca.emptyDate,placeholderClassName:"mb-2",isEmpty:!te,children:te?(0,A.jsx)(Pn,{className:Ca.date,...a,body:ie}):null},"date"),pe=(0,A.jsxs)(wn,{placeholder:"line",emptyLabel:(0,A.jsx)(I.sA,{id:"xYqGzM",defaultMessage:"Author"}),emptyClassName:Ca.emptyAuthor,placeholderClassName:"mb-2",isEmpty:!K&&!J,children:[J?(0,A.jsx)(Pn,{className:Ca.author,...i}):null,K?(0,A.jsx)(Vn,{author:i}):null]},"author"),fe=(0,A.jsx)(wn,{placeholder:"text",emptyLabel:(0,A.jsx)(I.sA,{id:"z4CiV1",defaultMessage:"Text"}),emptyClassName:Ca.emptyText,isEmpty:!W,children:W?(0,A.jsx)(Pn,{className:Ca.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]),Ce=(0,n.useCallback)(()=>{ve(!1)},[ve]);return(0,A.jsxs)("div",{className:$t([Ca.container,p,{[Ca.isPlaceholder]:L}]),"data-screen-ready":!0,children:[(0,A.jsx)(Yn,{width:v,height:x,className:Ca.content,children:(0,A.jsx)(Sa,{disabled:_,onScrolledTrigger:Se,onScrolledBottom:xe,onScrolledNotBottom:Ce,withShadow:!0,children:(0,A.jsxs)(va,{className:Ca.layout,style:L?null:{paddingLeft:r,paddingRight:r,paddingTop:G?r/2+(z?0:C):r/2+T,paddingBottom:(m&&!z?w:0)+r/2},children:[!L&&G?(0,A.jsx)("div",{style:{height:ee&&T>0?0:"auto",paddingBottom:T>0?T-C:r},children:(0,A.jsx)(ua,{...d})},"header"):null,(0,A.jsxs)("div",{className:$t([Ca.main,{[Ca.hasText]:W&&K}]),children:[oe,(0,A.jsxs)("div",{className:Ca.topContent,children:[de,he]}),se,pe,me]}),fe,!L&&Y?(0,A.jsx)("div",{className:$t([Ca.footer,{[Ca.disabled]:!be}]),style:{paddingLeft:Math.max(j-r,0),paddingRight:Math.max(j-r,0),paddingTop:r},children:(0,A.jsx)(ra,{...le})}):null]})})}),L?null:(0,A.jsx)(Gn,{background:c,width:v,height:x,resolution:S,playing:V,muted:M,shouldLoad:D,mediaRef:ye(N,y),withoutVideo:z,className:Ca.background})]})},layouts:["normal"],fields:[{name:"image",type:"visual",label:(0,I.zR)({id:"xsipID",defaultMessage:"Image"})},{name:"title",type:"heading-element",inline:!0,theme:{textStyle:"header2"},label:(0,I.zR)({id:"N25iDO",defaultMessage:"Title"})},{name:"surtitle",type:"text-element",label:(0,I.zR)({id:"YD9M2p",defaultMessage:"Overtitle"})},{name:"date",type:"date-element",label:(0,I.zR)({id:"9AP246",defaultMessage:"Date"})},{name:"author",type:"author-element",label:(0,I.zR)({id:"73hxYw",defaultMessage:"Author"})},{name:"subtitle",type:"text-element",label:(0,I.zR)({id:"EcZYpr",defaultMessage:"Subtitle"})},{name:"text",type:"text-modal",label:(0,I.zR)({id:"4E2gbX",defaultMessage:"Text"})},{name:"background",type:"background",label:(0,I.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,I.zR)({id:"rhuDxI",defaultMessage:"Header"}),isSection:!0,theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,I.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]}],ja=l(3655);function ka({progress:e=0,playing:t=!1,duration:l=0,seek:a=null,play:i=null,className:o=null}){const s=(0,I.tz)(),{ref:r,width:c=null,height:d}=Dt(),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,Nt.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,A.jsxs)("div",{className:$t(["micromag-element-audio-audio-bars-container",o]),ref:r,children:[(0,A.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,A.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,A.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 Ma="micromag-element-audio-withAutoHeight";function Na({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:C=null,onDurationChange:w=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=Wt(F.current,{id:$,disabled:o||!u&&null===C,updateInterval:g}),R=Jt(F.current,{id:$}),z=Gt(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!==w&&w(z)},[z,w]);const I=(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]),tl({currentTime:T,duration:z,disabled:o,onStep:C});const V=null!==T&&z>0?T/z:0;return(0,A.jsxs)("div",{className:$t(["micromag-element-audio-container",h]),children:[(0,A.jsx)("audio",{ref:e=>{F.current=e,null!==t&&ja(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:I},$),u?(0,A.jsx)(ka,{className:$t(["micromag-element-audio-wave",{[Ma]:m}]),progress:V,duration:z,playing:!o,seek:y?null:E,play:P}):null]})}var $a=({ref:e,...t})=>(0,A.jsx)(Na,{mediaRef:e,...t}),Fa=l(9645);function Ta(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),[C,w]=(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(La).then(za).then(e=>{S(e)}).catch(Ra)},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]!==C||t[14]!==x.length?(T=()=>{if(x.length>0){const e=F(d);e!==C&&w(e)}},t[11]=d,t[12]=F,t[13]=C,t[14]=x.length,t[15]=T):T=t[15],t[16]!==d||t[17]!==F||t[18]!==x?(R=[d,x,F,w],t[16]=d,t[17]=F,t[18]=x,t[19]=R):R=t[19],(0,n.useEffect)(T,R);const z=-1!==C?x[C]:null,L=null!==z;let I;t[20]!==h?(I=null!==h?ee(h):null,t[20]=h,t[21]=I):I=t[21];const P=I;let B,E,V;return t[22]!==y?(B=$t(["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,A.jsx)("div",{className:"micromag-element-closed-captions-captions",style:P,children:(0,A.jsx)(Pn,{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,A.jsx)("div",{className:B,children:E}),t[29]=B,t[30]=E,t[31]=V):V=t[31],V}function Ra(e){console.error(e)}function za(e){return Fa(e)}function La(e){return e.text()}var Aa={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 Ia(){}var Pa={id:"audio",type:"screen",group:{label:(0,I.zR)({id:"+9akmg",defaultMessage:"Audio and Video"}),order:5},title:(0,I.zR)({id:"bhEaUt",defaultMessage:"Audio"}),component:function(e){const t=(0,i.c)(151),{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,C=void 0===m?null:m,w=void 0===g||g,j=void 0===h?null:h,{width:k,height:M,resolution:N}=st(),{isPlaceholder:$,isPreview:F,isView:T,isEdit:R,isStatic:z,isCapture:L}=nt(),{topHeight:P,bottomHeight:B,bottomSidesWidth:E}=gt(),{open:V}=ft(),D=rl("audio"),[_,O]=(0,n.useState)(z||$),H=x&&(T||R),Z=x||S;let W;t[0]!==b?(W=re(b),t[0]=b,t[1]=W):W=t[1];const G=W;let Y;t[2]!==v?(Y=ce(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=q(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:ue}=K,me=void 0===ee?null:ee,ge=void 0===te||te,he=void 0===le?null:le,pe=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===ue?null:ue;let Ce;t[12]!==me?(Ce=me||{},t[12]=me,t[13]=Ce):Ce=t[13];const{url:we}=Ce,je=null!==(void 0===we?null:we);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!==pe,{playing:$e,muted:Fe,setControls:Te,setControlsSuggestPlay:Re,setControlsTheme:ze,setPlaying:Le}=Qe(),{ref:Ae,isCurrent:Ie}=Xe(x),Pe=!x||!$e||!(void 0!==Ie&&Ie)&&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)}):Ia,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=de(),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 Je=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 at;t[52]!==me||t[53]!==D?(at=e=>{const{initial:t}=e;D(me,t?"play":"resume")},t[52]=me,t[53]=D,t[54]=at):at=t[54];const it=at;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 rt=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 ht;t[64]!==ge||t[65]!==x||t[66]!==J||t[67]!==T||t[68]!==$e||t[69]!==Re||t[70]!==Le?(ht=()=>{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]=ht):ht=t[71];const yt=ht;let pt,bt,vt,xt,St;t[72]!==j||t[73]!==$||t[74]!==F?(pt=$t([Aa.container,j,{[Aa.placeholder]:$,[Aa.isPreview]:F}]),t[72]=j,t[73]=$,t[74]=F,t[75]=pt):pt=t[75],t[76]!==G||t[77]!==$||t[78]!==F||t[79]!==p||t[80]!==P?(bt=$?null:{paddingLeft:p,paddingRight:p,paddingBottom:p,paddingTop:(F?0:P)+(G?p/2:p)},t[76]=G,t[77]=$,t[78]=F,t[79]=p,t[80]=P,t[81]=bt):bt=t[81],t[82]!==G||t[83]!==b?(vt=G?(0,A.jsx)(ua,{...b}):(0,A.jsx)(fa,{},"spacer-top"),t[82]=G,t[83]=b,t[84]=vt):vt=t[84],t[85]===Symbol.for("react.memo_cache_sentinel")?(xt={width:"50%",height:"50%"},t[85]=xt):xt=t[85],t[86]===Symbol.for("react.memo_cache_sentinel")?(St=(0,A.jsx)(I.sA,{id:"MYZwSA",defaultMessage:"Audio"}),t[86]=St):St=t[86];const Ct=!je;let wt;t[87]!==C||t[88]!==Ae?(wt=ye(Ae,C),t[87]=C,t[88]=Ae,t[89]=wt):wt=t[89];const jt=qe||F;let kt;t[90]!==xe||t[91]!==F||t[92]!==Se?(kt=F?{sampleWidth:10,sampleMargin:5,minSampleHeight:5,backgroundColor:xe,progressColor:Se}:{backgroundColor:xe,progressColor:Se},t[90]=xe,t[91]=F,t[92]=Se,t[93]=kt):kt=t[93];const Mt=w&&fe;let Nt,Ft,Tt,Rt,zt,Lt,At,It;return t[94]!==Me||t[95]!==Fe||t[96]!==dt||t[97]!==rt||t[98]!==it||t[99]!==yt||t[100]!==et||t[101]!==mt||t[102]!==Pe||t[103]!==wt||t[104]!==jt||t[105]!==kt||t[106]!==Mt?(Nt=(0,A.jsx)($a,{...Me,mediaRef:wt,waveFake:jt,waveProps:kt,paused:Pe,muted:Fe,className:Aa.audio,onReady:De,onPlay:it,onPause:rt,onTimeUpdate:Je,onProgressStep:et,onDurationChange:lt,onSeeked:mt,onEnded:dt,onPlayError:yt,withWave:Mt}),t[94]=Me,t[95]=Fe,t[96]=dt,t[97]=rt,t[98]=it,t[99]=yt,t[100]=et,t[101]=mt,t[102]=Pe,t[103]=wt,t[104]=jt,t[105]=kt,t[106]=Mt,t[107]=Nt):Nt=t[107],t[108]!==Ct||t[109]!==Nt?(Ft=(0,A.jsx)(wn,{placeholder:"audio",placeholderProps:xt,placeholderClassName:"position-absolute top-50 start-50 translate-middle w-100",emptyLabel:St,emptyClassName:Aa.empty,isEmpty:Ct,children:Nt},"audio"),t[108]=Ct,t[109]=Nt,t[110]=Ft):Ft=t[110],t[111]===Symbol.for("react.memo_cache_sentinel")?(Tt=(0,A.jsx)(fa,{},"spacer-middle"),t[111]=Tt):Tt=t[111],t[112]!==pe||t[113]!==he||t[114]!==x||t[115]!==_e||t[116]!==X||t[117]!==Ne||t[118]!==U||t[119]!==L||t[120]!==$||t[121]!==F||t[122]!==z||t[123]!==p||t[124]!==B||t[125]!==E?(Rt=$?null:(0,A.jsxs)("div",{className:Aa.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,A.jsx)(Ta,{className:Aa.closedCaptions,media:he,...pe,currentTime:_e}),U?(0,A.jsx)(ra,{...X,className:Aa.callToAction}):null]},"bottom"),t[112]=pe,t[113]=he,t[114]=x,t[115]=_e,t[116]=X,t[117]=Ne,t[118]=U,t[119]=L,t[120]=$,t[121]=F,t[122]=z,t[123]=p,t[124]=B,t[125]=E,t[126]=Rt):Rt=t[126],t[127]!==bt||t[128]!==vt||t[129]!==Ft||t[130]!==Rt?(zt=(0,A.jsxs)(va,{fullscreen:!0,style:bt,children:[vt,Ft,Tt,Rt]}),t[127]=bt,t[128]=vt,t[129]=Ft,t[130]=Rt,t[131]=zt):zt=t[131],t[132]!==M||t[133]!==zt||t[134]!==k?(Lt=(0,A.jsx)(Yn,{width:k,height:M,className:Aa.content,children:zt}),t[132]=M,t[133]=zt,t[134]=k,t[135]=Lt):Lt=t[135],t[136]!==f||t[137]!==H||t[138]!==M||t[139]!==$||t[140]!==F||t[141]!==Z||t[142]!==Fe||t[143]!==N||t[144]!==k?(At=$?null:(0,A.jsx)(Gn,{background:f,width:k,height:M,resolution:N,playing:H,muted:Fe,shouldLoad:Z,withoutVideo:F,className:Aa.background}),t[136]=f,t[137]=H,t[138]=M,t[139]=$,t[140]=F,t[141]=Z,t[142]=Fe,t[143]=N,t[144]=k,t[145]=At):At=t[145],t[146]!==_||t[147]!==pt||t[148]!==Lt||t[149]!==At?(It=(0,A.jsxs)("div",{className:pt,"data-screen-ready":_,children:[Lt,At]}),t[146]=_,t[147]=pt,t[148]=Lt,t[149]=At,t[150]=It):It=t[150],It},layouts:["middle"],fields:[{name:"audio",type:"audio-element",theme:{color:"primary"},defaultValue:{autoPlay:!0},label:(0,I.zR)({id:"169xnt",defaultMessage:"Audio"})},{name:"background",type:"background",label:(0,I.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,I.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,I.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]},Ba=l(1685),Ea=l(7519),Va=l(7749),Da=(l(2311),l(6451));const _a=n.createContext(null),Oa=()=>(0,n.useContext)(_a),Ha=(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},Za=(e=null)=>{const{screenId:t=null,visitorId:l=null,storyId:a=null,onSuccess:i=null}=e||{},o=Oa(),[s,r]=(0,n.useState)(!1),{id:c}=jt()||{},{id:d,document_id:u}=Pe()||{};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 Wa="micromag-element-text-input-element";function qa(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,C=void 0===l?null:l,w=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,I=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=ae(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=ne($),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=ne(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=ee(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=ne(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=!w;let Q,X;t[25]!==V||t[26]!==U?(Q=$t(["micromag-element-text-input-container",V,{[Wa]: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=w?null:J,te=w?void 0:C;let le;t[31]!==B||t[32]!==q||t[33]!==I||t[34]!==z||t[35]!==L||t[36]!==P||t[37]!==K||t[38]!==te||t[39]!==R?(le={className:Wa,...K,style:q,placeholder:te,value:R,onChange:z,onFocus:L,onBlur:I,required:P,disabled:B},t[31]=B,t[32]=q,t[33]=I,t[34]=z,t[35]=L,t[36]=P,t[37]=K,t[38]=te,t[39]=R,t[40]=le):le=t[40];const ie=le;let oe;t[41]!==ie||t[42]!==E||t[43]!==Y||t[44]!==T?(oe=T?(0,A.jsx)("textarea",{...ie,tabIndex:E?0:-1,id:`input-${Y}`}):(0,A.jsx)("input",{...ie,type:"text",tabIndex:E?0:-1,id:`input-${Y}`}),t[41]=ie,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,A.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]!==C||t[51]!==j||t[52]!==w||t[53]!==Z||t[54]!==de?(ue=w?(0,A.jsxs)("label",{...J,children:[(0,A.jsx)("div",{className:j,style:Z,children:C}),se,de]}):(0,A.jsxs)(A.Fragment,{children:[se,de]}),t[48]=J,t[49]=se,t[50]=C,t[51]=j,t[52]=w,t[53]=Z,t[54]=de,t[55]=ue):ue=t[55],ue}var Ga={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"},Ya={id:"contribution",type:"screen",group:{label:(0,I.zR)({id:"ZiWlL6",defaultMessage:"Questions"}),order:7},title:(0,I.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 C=(0,I.tz)(),w=e||"screen-id",j=sl(v),{width:k,height:M,resolution:N}=st(),{topHeight:$,bottomHeight:F,bottomSidesWidth:T}=gt(),{isView:R,isPreview:z,isPlaceholder:L,isEdit:P,isStatic:B,isCapture:E}=nt(),{open:V}=ft(),{muted:D}=Qe(),{ref:_,isCurrent:O=!1}=Xe(h,!0),H=h&&(R||P)&&(O||!R),Z=h||y,W=h,G=B||E||L||z||P,Y=!P&&G||!h,U=re(m),Q=ce(g),J=q(g,{isView:R,current:h,openWebView:V,isPreview:z}),K=ge(l),ee=me(a),te=me(i),le=ge(o),ne=(0,n.useRef)(null),ae=(0,n.useRef)(null),[ie,oe]=(0,n.useState)(null),[se,de]=(0,n.useState)(""),[ue,he]=(0,n.useState)(""),[pe,fe]=(0,n.useState)(B||E?4:0),[be,ve]=(0,n.useState)(!1),{canViewAnswers:xe=!1,skipButton:Se=null,backButton:Ce=null}=c||{},we=4===pe?Ce:Se,je=ge(we)?we:{...we,body:4===pe?C.formatMessage({id:"8NyYTH",defaultMessage:"Back"}):C.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=Oa(),[o,s]=(0,n.useState)(!1),{id:r}=jt()||{},{id:c,document_id:d}=Pe()||{};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:w}),{contributions:Ne}=((e=null)=>{const{screenId:t,storyId:l=null,opts:a={}}=e||{},i=Oa(),{id:o,document_id:s}=Pe()||{},[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?Ha(c,a):{data:null};return{contributions:d||r,...u}})({screenId:w,opts:{autoload:!L}}),$e=(0,n.useCallback)(e=>{const t=Ea.A.sanitize(e.currentTarget.value||"");de(t)},[de]),Fe=(0,n.useCallback)(e=>{const t=Ea.A.sanitize(e.currentTarget.value||"");he(t)},[he]),Te=(0,n.useCallback)(()=>{de(""),he(""),fe(0),ve(!1)},[de,he,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),Ae=(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]),[Ie,Be]=(0,n.useState)(!1),Ee=Ie&&4===pe,{ref:Ve,height:De=0}=Dt(),_e=(0,n.useCallback)(({initial:e})=>{e&&j("scroll","Contributions list"),Be(!0)},[j,Be]),Oe=(0,n.useCallback)(()=>{Be(!1)},[Be]),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===pe&&(oe(ae.current.offsetHeight),fe(1),Me({name:se,message:ue}),ke(),j("click_submit",`${se}: ${ue}`,{userName:se,userMessage:ue}))},[pe,fe,se,ue,j,ke]),We=(0,n.useCallback)(()=>{4===pe?(fe(0),j("click_skip","Skip button")):(fe(4),j("click_back","Back button"))},[pe,fe,j]);(0,n.useEffect)(()=>{let e=null;return 2===pe&&(e=setTimeout(fe,b,4),oe(ne.current.offsetHeight),fe(3)),()=>{3===pe&&null!==e&&clearTimeout(e)}},[pe,oe,fe,b]);const qe=[(0,A.jsx)(wn,{placeholder:"title",emptyLabel:(0,A.jsx)(I.sA,{id:"2ZOPe+",defaultMessage:"Title"}),emptyClassName:Ga.emptyTitle,placeholderClassName:"mb-4",isEmpty:!K,children:K?(0,A.jsx)(ga,{...l,className:Ga.title}):null},"title")],Ge=[...null!==se&&""!==se&&null!==ue&&""!==ue?[{name:se,message:ue}]:[],...Ne||[]];qe.push((0,A.jsxs)("div",{className:Ga.interactiveContainer,style:{height:pe<4?ie:null,transitionDuration:`${b}ms`},children:[(0,A.jsxs)("form",{className:Ga.form,onSubmit:Ze,ref:ae,children:[(0,A.jsxs)("div",{className:Ga.formContent,children:[(0,A.jsx)(wn,{placeholder:"inputText",placeholderClassName:"mb-2",emptyLabel:(0,A.jsx)(I.sA,{id:"G/ITGY",defaultMessage:"Your name"}),emptyClassName:Ga.emptyInputName,isEmpty:!ee,children:(0,A.jsx)(Nn,{transitions:p,playing:W,delay:f,disabled:G,children:(0,A.jsx)(qa,{className:Ga.inputName,...a,value:se,onChange:e=>$e(e),onBlur:e=>ze(e),focusable:h&&R,disabled:z,required:!0})})}),(0,A.jsx)(wn,{placeholder:"inputText",placeholderClassName:"mb-2",placeholderProps:{height:"3em"},emptyLabel:(0,A.jsx)(I.sA,{id:"JAguka",defaultMessage:"Your message"}),emptyClassName:Ga.emptyInputMessage,isEmpty:!te,children:(0,A.jsx)(Nn,{transitions:p,playing:W,delay:2*f,disabled:G,children:(0,A.jsx)(qa,{className:Ga.inputMessage,...i,value:ue,onChange:e=>Fe(e),onBlur:e=>Ae(e),disabled:z,focusable:h&&R,multiline:!0,required:!0})})}),(0,A.jsx)(wn,{placeholder:"button",emptyLabel:(0,A.jsx)(I.sA,{id:"5uH4x7",defaultMessage:"Submit"}),emptyClassName:Ga.emptySubmit,isEmpty:!le,children:(0,A.jsx)(Nn,{transitions:p,playing:W,delay:3*f,disabled:G,children:(0,A.jsx)(ta,{type:"submit",className:Ga.buttonSubmit,disabled:z,buttonStyle:null!==o?o.buttonStyle:null,focusable:h&&R,children:(0,A.jsx)(Pn,{...o,inline:!0})})})})]}),(0,A.jsx)("div",{className:Ga.formLoading,children:(0,A.jsx)(yl.gc,{className:Ga.loadingIcon,icon:Ba.z1})})]}),xe&&!be?(0,A.jsx)(wn,{placeholder:"button",emptyLabel:4!==pe?(0,A.jsx)(I.sA,{id:"U2RZp5",defaultMessage:"Skip"}):(0,A.jsx)(I.sA,{id:"AzN1aW",defaultMessage:"Back"}),emptyClassName:Ga.emptySkip,children:(0,A.jsx)(Nn,{transitions:p,playing:W,delay:3*f,disabled:G,children:(0,A.jsx)(ta,{type:"button",className:$t([Ga.buttonSkip,{[Ga.showBack]:4===pe}]),disabled:z,onClick:We,buttonStyle:null!==je?je.buttonStyle:null,focusable:h&&R,children:(0,A.jsx)(Pn,{...je,inline:!0})})})}):null,(0,A.jsx)("div",{className:Ga.contributionsContainer,"aria-hidden":4===pe?null:"true",children:(0,A.jsx)("div",{className:Ga.contributionsContent,children:(0,A.jsx)("div",{className:Ga.contributions,ref:ne,children:Ge.map((e,t)=>{const l=null!==s&&s.style||null,n=null!==r&&r.style||null;return(0,A.jsxs)("div",{className:Ga.contribution,style:null!==l?X(l.color,"borderColor"):null,children:[(0,A.jsx)(ga,{className:Ga.contributionName,body:e.name,size:2,textStyle:l}),(0,A.jsx)(Pn,{className:Ga.contributionMessage,body:e.message,textStyle:n})]},`contribution-${t}`)})})})}),Q?(0,A.jsx)("div",{style:{height:De}}):null]},"form"));const Ye=!L&&U?(0,A.jsx)("div",{className:Ga.header,style:{paddingBottom:d},children:(0,A.jsx)(ua,{...m})}):null,Ue=P&&4===pe;return(0,A.jsxs)("div",{className:$t([Ga.container,S,{[Ga.isPlaceholder]:L,[Ga.submitting]:1===pe,[Ga.submitted]:pe>1,[Ga.showContributions]:4===pe}]),"data-screen-ready":!0,children:[(0,A.jsxs)(Yn,{width:k,height:M,className:Ga.content,children:[Ue?(0,A.jsx)(ta,{className:Ga.reset,icon:(0,A.jsx)(yl.gc,{icon:wl.ye,size:"md"}),onClick:Te}):null,(0,A.jsxs)("div",{className:Ga.inner,children:[(0,A.jsx)(Sa,{verticalAlign:t,disabled:Y,onScrolledTrigger:He,onScrolledBottom:_e,onScrolledNotBottom:Oe,scrolleeClassName:Ga.scrollee,withShadow:!0,children:(0,A.jsxs)(va,{className:Ga.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,A.jsx)("div",{ref:Ve,className:$t([Ga.footer,{[Ga.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,A.jsx)(ra,{...J})}):null]})]}),L?null:(0,A.jsx)(Gn,{background:u,width:k,height:M,resolution:N,playing:H,muted:D,shouldLoad:Z,mediaRef:ye(_,x),withoutVideo:z,className:Ga.background})]})},layouts:["top","middle","bottom"],fields:[{name:"layout",type:"screen-layout",defaultValue:"top",label:(0,I.zR)({id:"4iBXj2",defaultMessage:"Layout"})},{name:"title",type:"heading-element",theme:{textStyle:"heading2"},label:(0,I.zR)({id:"N25iDO",defaultMessage:"Title"})},{name:"name",type:"input-element",theme:{textStyle:"text"},label:(0,I.zR)({id:"nXVNeg",defaultMessage:"Name"})},{name:"message",type:"input-element",theme:{textStyle:"text"},label:(0,I.zR)({id:"RcLsua",defaultMessage:"Message"})},{name:"submit",type:"button-element",theme:{textStyle:"button"},label:(0,I.zR)({id:"uAKPQ9",defaultMessage:"Submit"})},{name:"nameStyle",type:"item-text-style",theme:{style:{textStyle:"heading2"}},label:(0,I.zR)({id:"SyMSDa",defaultMessage:"Published name style"})},{name:"messageStyle",type:"item-text-style",theme:{style:{textStyle:"text"}},label:(0,I.zR)({id:"+SlKOi",defaultMessage:"Published message style"})},{name:"settings",component:"toggle-section",toggleField:"canViewAnswers",isList:!0,label:(0,I.zR)({id:"9omJnT",defaultMessage:"Answer settings"}),fields:[{name:"canViewAnswers",type:"toggle",isHorizontal:!0,label:(0,I.zR)({id:"xcHW4o",defaultMessage:"Can view answers"})},{name:"skipButton",type:"button-element",theme:{textStyle:"button"},label:(0,I.zR)({id:"CpCykm",defaultMessage:"Skip button"})},{name:"backButton",type:"button-element",theme:{textStyle:"button"},label:(0,I.zR)({id:"KIXg9M",defaultMessage:"Back button"})}]},{name:"background",type:"background",label:(0,I.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,I.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,I.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]},Ua=l(3104),Qa={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",isPlaceholder:"micromag-screen-conversation-isPlaceholder",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 Xa(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 C;t[11]!==f||t[12]!==m?(C=()=>{m&&f.postMessage({type:"play",id:m}),y(!0)},t[11]=f,t[12]=m,t[13]=C):C=t[13];const w=C;let j,k,M,N,$;return t[14]!==g?(j=$t([Qa.audioMessageContainer,g]),t[14]=g,t[15]=j):j=t[15],t[16]!==h?(k=(0,A.jsx)("div",{className:Qa.playButtonContainer,children:h?(0,A.jsx)(ql,{className:Qa.icon}):(0,A.jsx)(Wl,{className:Qa.icon})}),t[16]=h,t[17]=k):k=t[17],t[18]!==c||t[19]!==w||t[20]!==h?(M=(0,A.jsx)($a,{withWave:!0,autoWaveHeight:!0,className:Qa.audioMessage,media:c,paused:h,updateInterval:100,onEnded:w}),t[18]=c,t[19]=w,t[20]=h,t[21]=M):M=t[21],t[22]!==S?(N=(0,A.jsx)(El,{onClick:S,className:Qa.button}),t[22]=S,t[23]=N):N=t[23],t[24]!==j||t[25]!==k||t[26]!==M||t[27]!==N?($=(0,A.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 Ja(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,C=void 0===a?null:a,w=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,I=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:J}=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!==w&&w.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 Ka;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]!==J||t[25]!==Z||t[26]!==oe||t[27]!==L||t[28]!==ie||t[29]!==D||t[30]!==C||t[31]!==se||t[32]!==I||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,A.jsx)("div",{className:$t([Qa.messageContainer,B,{[Qa.withAnimation]:!0===R,[Qa.right]:ae}]),children:"typing"===se?(0,A.jsxs)("div",{className:Qa.loadingContainer,children:[(0,A.jsxs)("div",{className:Qa.loading,children:[(0,A.jsx)("div",{className:Qa.dot}),(0,A.jsx)("div",{className:Qa.dot}),(0,A.jsx)("div",{className:Qa.dot})]}),(0,A.jsx)("div",{className:Qa.loadingSpeakerName,children:Y})]}):(0,A.jsxs)("div",{className:$t([Qa.message,{[Qa.normalRight]:ae,[Qa.nextTheSame]:!0===oe&&ie,[Qa.inBetweenRight]:ye&&ae,[Qa.normalLeft]:!ae,[Qa.inBetweenLeft]:ye&&!ae,[Qa.last]:!1===oe}]),style:{...X(J)},children:[ie?null:(0,A.jsxs)("div",{className:$t([Qa.speakerDetails,{[Qa.right]:"right"===ee}]),children:[null!==ne?(0,A.jsx)("div",{className:$t([Qa.avatarContainer,{[Qa.right]:"right"===ee}]),children:(0,A.jsx)("img",{className:Qa.avatar,src:ne,alt:Y,loading:"lazy"})}):null,(0,A.jsx)(Pn,{body:Y,textStyle:P})]}),(0,A.jsxs)("div",{className:Qa.messageBody,children:[null!==Z?(0,A.jsx)("div",{className:Qa.imageContainer,children:(0,A.jsx)(Kn,{media:Z,width:"100%",playing:L,active:z})}):null,O&&W?(0,A.jsx)(Xa,{audio:O,messageId:C,nextAudioMessageId:k,audioEventsChannelName:E,className:$t(Qa.audioAttachment,Qa.beforeText)}):null,(0,A.jsx)(Pn,{className:Qa.messageText,body:D,textStyle:I}),O&&!W?(0,A.jsx)(Xa,{audio:O,messageId:C,nextAudioMessageId:k,audioEventsChannelName:E,className:$t(Qa.audioAttachment,Qa.afterText)}):null]})]})}):null,t[18]=z,t[19]=O,t[20]=E,t[21]=ne,t[22]=ye,t[23]=B,t[24]=J,t[25]=Z,t[26]=oe,t[27]=L,t[28]=ie,t[29]=D,t[30]=C,t[31]=se,t[32]=I,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 Ka(){}var ei={id:"conversation",type:"screen",group:{label:(0,I.zR)({id:"fIawTr",defaultMessage:"Text"}),order:3},title:(0,I.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}=st(),{topHeight:b,bottomHeight:v,bottomSidesWidth:x}=gt(),{open:S}=ft(),C=sl(d),{muted:w}=Qe(),{ref:j,isCurrent:k=!1}=Xe(r,!0),M=new BroadcastChannel(`conversation_${(0,Ua.A)()}_audioEvents`),{isView:N,isPreview:$,isPlaceholder:F,isEdit:T,isStatic:R,isCapture:z}=nt(),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=re(o),G=ce(s),Y=q(s,{isView:N,current:r,openWebView:S,isPreview:$}),U=ge(e),{ref:Q,height:X}=Dt(),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,Ua.A)()),[V]),de=R||z||F||$||T,ue=!T&&de||!r,me=te&&!F&&G||!B,he=(0,n.useCallback)(({initial:e})=>{e&&C("scroll","Screen"),ee(!0)},[C]),pe=(0,n.useCallback)(()=>{ee(!1)},[ee]),fe=(0,n.useCallback)((e=null)=>{if(null!==e){const t=Math.round(100*e);C("scroll",t,{scrollPercent:t})}},[C]);return(0,A.jsxs)("div",{className:$t([Qa.container,h,{[Qa.isPlaceholder]:F}]),"data-screen-ready":!0,children:[(0,A.jsx)(Yn,{width:y,height:p,className:Qa.content,children:(0,A.jsx)(Sa,{ref:J,disabled:ue,onScrolledTrigger:fe,onScrolledBottom:he,onScrolledNotBottom:pe,withShadow:!0,children:(0,A.jsx)("div",{ref:Q,children:(0,A.jsxs)(va,{className:Qa.layout,style:F?null:{paddingLeft:a,paddingRight:a,paddingTop:($?0:b)+a/2,paddingBottom:(r&&!$?v:0)+a/2},children:[!F&&W?(0,A.jsx)("div",{style:{paddingBottom:a},children:(0,A.jsx)(ua,{...o})},"header"):null,(0,A.jsx)(wn,{placeholder:"conversation",emptyLabel:(0,A.jsx)(I.sA,{id:"NmCfTO",defaultMessage:"Conversation"}),emptyClassName:Qa.empty,isEmpty:0===V.length&&null===e,placeholderClassName:"p-2",children:(0,A.jsxs)(Nn,{transitions:m,playing:r,disabled:de,children:[U?(0,A.jsx)(ga,{...e,className:Qa.title,isEmpty:null===e}):null,(0,A.jsx)("div",{className:Qa.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,A.jsx)(Ja,{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,A.jsx)("div",{className:$t([Qa.footer,{[Qa.disabled]:!K}]),style:{paddingLeft:Math.max(x-a,0),paddingRight:Math.max(x-a,0),paddingTop:a},children:(0,A.jsx)(ra,{...Y})}):null,(0,A.jsx)("div",{ref:Z})]})})]})})})}),F?null:(0,A.jsx)(Gn,{background:i,width:y,height:p,resolution:f,playing:L,muted:w,shouldLoad:P,mediaRef:ye(j,g),withoutVideo:$,className:Qa.background})]})},layouts:["normal"],fields:[{name:"timing",type:"select",options:[{value:"instant",label:"Instant"},{value:"sequence",label:"Sequence"}],label:(0,I.zR)({id:"6DV50M",defaultMessage:"Timing"})},{name:"title",type:"heading-element",theme:{textStyle:"heading1"},label:(0,I.zR)({id:"N25iDO",defaultMessage:"Title"})},{name:"conversation",type:"conversation",label:(0,I.zR)({id:"8tANs8",defaultMessage:"Conversation"})},{name:"readingSpeed",type:"number",defaultValue:255,label:(0,I.zR)({id:"QjbLZ9",defaultMessage:"Reading speed (in Words Per Minute)"})},{name:"background",type:"background",label:(0,I.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,I.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,I.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]},ti=l(8360);function li({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,A.jsx)("div",{className:$t(["micromag-element-grid-container",o]),style:{width:l,height:n,padding:null!==a&&a>0?a/2:null},children:(0,A.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,A.jsx)("div",{className:$t(["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,A.jsx)("div",{className:$t(["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 ni={"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]}]}},ai={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",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 ii=[];function oi(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?ii:a,x=void 0!==o&&o,S=void 0===s?null:s,C=void 0===r?null:r,w=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}=st(),{topHeight:B,bottomHeight:E,bottomSidesWidth:V}=gt(),{open:D}=ft(),{muted:_}=Qe(),{ref:O,isCurrent:H}=Xe(k,!0),Z=void 0!==H&&H,W=null!==$?Math.max(0,$||0):20,{isView:G,isPreview:Y,isPlaceholder:U,isEdit:Q}=nt(),X=k&&(G||Q)&&(Z||!G),J=k||N,K=U?5:W,ee=ti(ni[b])?ni[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 de;t[0]===Symbol.for("react.memo_cache_sentinel")?(de=()=>{oe(ri)},t[0]=de):de=t[0];const me=de;let he;t[1]===Symbol.for("react.memo_cache_sentinel")?(he=[],t[1]=he):he=t[1];const pe=(0,n.useRef)(he);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:Ce}=Dt(),we=void 0===Se?null:Se,je=void 0===Ce?null:Ce;let ke,Me,Ne;t[3]===Symbol.for("react.memo_cache_sentinel")?(ke=()=>{pe.current.length&&ve(pe.current.map(si))},t[3]=ke):ke=t[3],t[4]!==je||t[5]!==we||t[6]!==b?(Me=[we,je,b,ve],t[4]=je,t[5]=we,t[6]=b,t[7]=Me):Me=t[7],(0,n.useEffect)(ke,Me),t[8]!==w?(Ne=re(w),t[8]=w,t[9]=Ne):Ne=t[9];const $e=Ne;let Fe;t[10]!==j?(Fe=ce(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]!==G||t[16]!==D?(Re=q(j,{isView:G,current:k,openWebView:D,isPreview:Y}),t[12]=k,t[13]=j,t[14]=Y,t[15]=G,t[16]=D,t[17]=Re):Re=t[17];const ze=Re,{ref:Le,height:Ae}=Dt(),Ie=void 0===Ae?0:Ae,{ref:Pe,height:Be}=Dt(),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=ue(a),r=ge(o),{textStyle:c}=o||{},d=void 0===c?null:c;return(0,A.jsxs)("div",{className:ai.gridItem,children:[(0,A.jsx)("div",{className:ai.imageContainer,ref:e=>{pe.current[t]=e},children:(0,A.jsx)(wn,{placeholder:"image",placeholderProps:{width:"70%",height:"70%"},emptyLabel:(0,A.jsx)(I.sA,{id:"ebsPd4",defaultMessage:"Image"}),emptyClassName:ai.emptyImage,placeholderClassName:"position-absolute top-50 start-50 translate-middle w-100",isEmpty:!s,children:M||k?(0,A.jsx)(Kn,{className:ai.image,...a,...n,loadingMode:"lazy",resolution:P,objectFit:{fit:"cover"},playing:X,active:M,shouldLoad:J,withoutVideo:Y,onLoaded:me}):null})}),x?(0,A.jsx)(wn,{placeholder:"text",placeholderProps:{lines:1},emptyLabel:(0,A.jsx)(I.sA,{id:"6tIigB",defaultMessage:"Caption"}),emptyClassName:ai.emptyCaption,isEmpty:!r,children:(0,A.jsx)("div",{className:ai.caption,children:(0,A.jsx)(Pn,{...o,className:ai.captionText,lineClamp:F,textStyle:{...S||null,...d}})})}):null]},`item-${t}`)});let De;t[18]!==R||t[19]!==U?(De=$t([ai.container,R,{[ai.isPlaceholder]:U}]),t[18]=R,t[19]=U,t[20]=De):De=t[20];const _e=($e?Ie:0)+(Y?0:B),Oe=(Te?Ee:0)+(k&&!Y?E:0);let He,Ze,We,qe,Ge,Ye,Ue,Je;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]!==w||t[27]!==Le||t[28]!==U||t[29]!==Y||t[30]!==W||t[31]!==B?(Ze=!U&&$e?(0,A.jsx)("div",{className:ai.header,ref:Le,style:{paddingTop:$e?K/2:W,paddingLeft:W,paddingRight:W,transform:Y?null:`translate(0, ${B}px)`},children:(0,A.jsx)(ua,{...w})}):null,t[24]=K,t[25]=$e,t[26]=w,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,A.jsx)(li,{className:ai.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,A.jsx)("div",{className:ai.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,A.jsx)(ra,{...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,A.jsxs)("div",{className:ai.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,A.jsx)(Yn,{width:z,height:L,className:ai.content,children:Ge}),t[52]=L,t[53]=Ge,t[54]=z,t[55]=Ye):Ye=t[55],t[56]!==C||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,A.jsx)(Gn,{background:C,width:z,height:L,resolution:P,playing:X,muted:_,shouldLoad:J,mediaRef:ye(O,T),withoutVideo:Y,className:ai.background}),t[56]=C,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?(Je=(0,A.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]=Je):Je=t[72],Je}function si(e){return null!==e?{width:e.offsetWidth,height:e.offsetHeight}:{}}function ri(e){return e+1}var ci=[{id:"gallery",type:"screen",group:{label:(0,I.zR)({id:"6mX2ya",defaultMessage:"Images"}),order:4},title:(0,I.zR)({id:"jaFXki",defaultMessage:"Gallery"}),component:oi,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,I.zR)({id:"4iBXj2",defaultMessage:"Layout"})},{name:"images",type:"visuals",label:(0,I.zR)({id:"muYwrB",defaultMessage:"Images"})},{name:"background",type:"background",label:(0,I.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,I.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,I.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]},{id:"gallery-captions",type:"screen",group:{label:(0,I.zR)({id:"6mX2ya",defaultMessage:"Images"}),order:4},title:(0,I.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,A.jsx)(oi,{...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,I.zR)({id:"4iBXj2",defaultMessage:"Layout"})},{name:"images",type:"visuals-with-caption",theme:{caption:{textStyle:"text"}},label:(0,I.zR)({id:"59f2bg",defaultMessage:"Images"})},{name:"imageCaptionStyle",type:"text-style-form",label:(0,I.zR)({id:"Qz7nUz",defaultMessage:"Caption style"})},{name:"background",type:"background",label:(0,I.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,I.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,I.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]}],di={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 ui(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,C=void 0===r?20:r,w=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=sl(void 0===y?null:y),{width:z,height:L,resolution:P}=st(),{topHeight:B,bottomHeight:E,bottomSidesWidth:V}=gt(),{open:D}=ft(),{muted:_}=Qe(),{ref:O,isCurrent:H}=Xe(M,!0),Z=void 0!==H&&H,W=null!==C?Math.max(0,C||0):20,{isView:G,isPreview:Y,isPlaceholder:U,isEdit:Q,isStatic:X,isCapture:J}=nt(),K=M&&(G||Q)&&(Z||!G),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,de="reverse"===b,me=[],he=Q&&0===te?[null]:v,pe=U?[...Array(5)]:he,{ref:fe,width:be}=Dt();let ve;(pe||[]).forEach((e,t)=>{const l=x?e:{media:e},{caption:n}=l||{},a=void 0===n?null:n,i=ue(l),o=ge(a),{textStyle:s}=a||{},r=void 0===s?null:s,c=(0,A.jsx)(wn,{placeholder:"image",placeholderProps:{width:"4em",height:"4em"},emptyLabel:(0,A.jsx)(I.sA,{id:"ebsPd4",defaultMessage:"Image"}),placeholderClassName:"mb-2",emptyClassName:di.emptyImage,isEmpty:!i,children:(0,A.jsx)("div",{className:di.imageContainer,ref:0===t?fe:null,children:(0,A.jsx)(Kn,{...l,loadingMode:"lazy",className:di.image,videoClassName:di.video,width:be,resolution:P,playing:K,active:N,shouldLoad:ee,withoutVideo:Y,onLoaded:se})})},`image-${t}`);let d=null;if(x){const e=!de||t>0?W/2:0,l=de||t<(pe||[]).length-1?W/2:0;d=(0,A.jsx)(wn,{placeholder:"text",placeholderProps:{lines:2},emptyLabel:(0,A.jsx)(I.sA,{id:"6tIigB",defaultMessage:"Caption"}),emptyClassName:di.emptyCaption,placeholderClassName:"mb-2",isEmpty:!o,children:o?(0,A.jsx)("div",{className:di.caption,style:{marginTop:e,marginBottom:l},children:(0,A.jsx)(Pn,{...a,textStyle:{...S||null,...r},className:di.captionText})}):null},`caption-${t}`)}de?(x&&me.push(d),me.push(c)):(me.push(c),x&&me.push(d)),!U&&t<(pe||[]).length-1&&me.push((0,A.jsx)("div",{style:{height:W}},`spacing-${t}`))}),t[2]!==j?(ve=re(j),t[2]=j,t[3]=ve):ve=t[3];const xe=ve;let Se;t[4]!==k?(Se=ce(k),t[4]=k,t[5]=Se):Se=t[5];const Ce=Se;let we;t[6]!==M||t[7]!==k||t[8]!==Y||t[9]!==G||t[10]!==D?(we=q(k,{isView:G,current:M,openWebView:D,isPreview:Y}),t[6]=M,t[7]=k,t[8]=Y,t[9]=G,t[10]=D,t[11]=we):we=t[11];const je=we,[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,Ae,Ie,Pe,Be;return t[17]!==T||t[18]!==U?(Le=$t([di.container,T,{[di.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?(Ae=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]=Ae):Ae=t[27],t[28]!==xe||t[29]!==j||t[30]!==U||t[31]!==W?(Ie=!U&&xe?(0,A.jsx)("div",{style:{paddingBottom:W},children:(0,A.jsx)(ua,{...j})},"header"):null,t[28]=xe,t[29]=j,t[30]=U,t[31]=W,t[32]=Ie):Ie=t[32],t[33]!==je||t[34]!==Ce||t[35]!==U||t[36]!==ke||t[37]!==W||t[38]!==V?(Pe=!U&&Ce?(0,A.jsx)("div",{className:$t([di.footer,{[di.disabled]:!ke}]),style:{paddingLeft:Math.max(V-W,0),paddingRight:Math.max(V-W,0),paddingTop:W},children:(0,A.jsx)(ra,{...je})}):null,t[33]=je,t[34]=Ce,t[35]=U,t[36]=ke,t[37]=W,t[38]=V,t[39]=Pe):Pe=t[39],t[40]!==w||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,A.jsx)(Gn,{background:w,width:z,height:L,resolution:P,playing:K,muted:_,shouldLoad:ee,mediaRef:ye(O,F),withoutVideo:Y,className:di.background}),t[40]=w,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,A.jsxs)("div",{className:Le,"data-screen-ready":ae,children:[(0,A.jsx)(Yn,{width:z,height:L,className:di.content,children:(0,A.jsx)(Sa,{disabled:ie,onScrolledTrigger:ze,onScrolledBottom:$e,onScrolledNotBottom:Te,withShadow:!0,children:(0,A.jsxs)(va,{className:di.layout,style:Ae,children:[Ie,me,Pe]})})}),Be]})}var mi=[{id:"gallery-feed",type:"screen",group:{label:(0,I.zR)({id:"6mX2ya",defaultMessage:"Images"}),order:4},title:(0,I.zR)({id:"4bHvRS",defaultMessage:"Gallery Feed"}),component:ui,layouts:["normal"],fields:[{name:"images",type:"visuals",label:(0,I.zR)({id:"muYwrB",defaultMessage:"Images"})},{name:"spacing",type:"number",defaultValue:20,isHorizontal:!0,label:(0,I.zR)({id:"Zpl5bJ",defaultMessage:"Spacing"})},{name:"background",type:"background",label:(0,I.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,I.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,I.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]},{id:"gallery-feed-captions",type:"screen",group:{label:(0,I.zR)({id:"6mX2ya",defaultMessage:"Images"}),order:4},title:(0,I.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,A.jsx)(ui,{...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,I.zR)({id:"4iBXj2",defaultMessage:"Layout"})},{name:"images",type:"visuals-with-caption",theme:{caption:{textStyle:"text"}},label:(0,I.zR)({id:"T9NZPQ",defaultMessage:"Images"})},{name:"spacing",type:"number",defaultValue:20,isHorizontal:!0,label:(0,I.zR)({id:"Zpl5bJ",defaultMessage:"Spacing"})},{name:"imageCaptionStyle",type:"text-style-form",label:(0,I.zR)({id:"Qz7nUz",defaultMessage:"Caption style"})},{name:"background",type:"background",label:(0,I.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,I.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,I.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]}],gi=l(938),hi={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"},yi={id:"game-sort",type:"screen",group:{label:(0,I.zR)({id:"w3+kFW",defaultMessage:"Game"}),order:12},title:(0,I.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:C=null,className:w=null}){const j=(0,I.tz)(),{width:k,height:M,resolution:N}=st(),{isView:$,isPreview:F,isPlaceholder:T,isEdit:R}=nt(),{topHeight:z,bottomHeight:L,bottomSidesWidth:P}=gt(),{open:B}=ft(),{muted:E}=Qe(),{ref:V,isCurrent:D=!1}=Xe(x,!0),_=x&&($||R)&&(D||!$),O=x||S,H=re(b),Z=ce(v),W=q(v,{isView:$,current:x,openWebView:B,isPreview:F}),{ref:G,height:Y=0}=Dt(),{ref:U,height:Q=0}=Dt(),{ref:X,height:J=0}=Dt(),K=$,te=sl("game-sort"),le=(0,n.useMemo)(()=>(l||[]).map((e,t)=>({id:`item-${t}`,...e})),[l]),ae=$,[ie,oe]=(0,n.useState)(ae?gi(le||[]):le||[]),se=(0,n.useRef)(ie),de=(0,n.useRef)(le),ue=(0,n.useRef)({}),[me,ge]=(0,n.useState)(!1),[he,pe]=(0,n.useState)(null);(0,n.useRef)(ie);const[fe,be]=(0,n.useState)(!1),ve=$&&S&&x&&null===he;(0,n.useEffect)(()=>{if(de.current!==le&&!$){const e=ae?gi(le||[]):le||[];oe(e),se.current=e,de.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]),[Ce,we]=(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);we.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)},[we]),ke=(0,n.useRef)(!1);(0,n.useLayoutEffect)(()=>{if(!$||0===J)return;we.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)&&(we.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,Nt.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&&te("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&&te("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));pe(e);const t=e.reduce((e,t)=>e&&t,!0),l=e.filter(e=>!e).length;K&&te("submit",t?"valid":`invalid_${l}`)},[le,ie,K,te]);return(0,n.useEffect)(()=>{if(null===he)return()=>{};const e=setTimeout(()=>{oe(le),be(!0)},1e3);return()=>{clearTimeout(e)}},[he]),(0,A.jsxs)("div",{className:$t([hi.container,w,{[hi.sorted]:me||!$,[hi.draggable]:ve,[hi.resultsVisible]:fe,[hi.isPlaceholder]:T}]),"data-screen-ready":!0,children:[(0,A.jsx)(Yn,{width:k,height:M,className:hi.content,children:(0,A.jsxs)(va,{className:hi.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,A.jsx)("div",{className:hi.header,ref:G,style:{paddingTop:a/2,paddingBottom:a,paddingLeft:a,paddingRight:a,transform:`translate(0px, ${z}px)`},children:(0,A.jsx)(ua,{...b})}):null,(0,A.jsx)(wn,{placeholder:"title",emptyLabel:(0,A.jsx)(I.sA,{id:"X7kRRa",defaultMessage:"Heading"}),emptyClassName:hi.emptyHeading,isEmpty:!t||""===t?.body,children:t?(0,A.jsx)(ga,{className:$t([hi.heading]),...t}):null},"title"),(0,A.jsxs)("div",{className:hi.items,ref:X,children:[(0,A.jsx)(fa,{size:5},"spacer"),(0,A.jsx)(wn,{placeholder:"items",emptyLabel:(0,A.jsx)(I.sA,{id:"03U69o",defaultMessage:"Buttons"}),emptyClassName:hi.emptyItems,isEmpty:0===(le||[]).length,children:Ce.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,A.jsx)(Tl.CS.div,{className:$t([hi.item,{clickable:ve,[hi.isEmpty]:v,[hi.valid]:null!==he&&x,[hi.invalid]:null!==he&&!x}]),ref:e=>{ue.current[a]=e},style:{transform:e.to(e=>`translateY(${e}%)`),...ne(s),...ne(b)},...Me(l),children:(0,A.jsx)("div",{className:hi.itemInner,children:(0,A.jsxs)(Tl.CS.div,{className:$t([hi.button,{[hi.layoutLabelBottom]:"label-bottom"===i,[hi.layoutLabelTop]:"label-top"===i,[hi.layoutNoLabel]:"no-label"===i,[hi.layoutLabelOver]:"label-over"===i}]),style:{transform:t.to(e=>`scale(${e})`),...ee(o),...ee(h),...ee(he&&x?c:null),...ee(he&&!x?d:null)},children:[null!==m?(0,A.jsx)(Kn,{className:hi.buttonVisual,imageClassName:hi.thumbnail,media:m,width:"auto"}):null,null!==f||null!==y&&fe?(0,A.jsxs)("div",{className:hi.buttonLabel,children:[null!==f?(0,A.jsx)(Pn,{...p,textStyle:{...s,...b},className:hi.label}):null,null!==y&&fe?(0,A.jsx)(Pn,{...y,className:hi.buttonResults,textStyle:{...r,...y.textStyle}}):null]}):null]})})},`button-${l}`)})},"items")]}),fe&&null!==y?(0,A.jsx)("div",{className:hi.results,style:{...ee(p)},children:(0,A.jsx)(Pn,{...y})}):T?null:(0,A.jsx)(ta,{className:hi.submitButton,disabled:null!==he,type:"button",onClick:Ne,style:{...ee(m),...ne(g)},children:h||j.formatMessage({id:"IbZVf0",defaultMessage:"Submit"})}),!T&&Z?(0,A.jsx)("div",{className:hi.footer,ref:U,style:{paddingTop:a,paddingBottom:a/2,paddingLeft:Math.max(P-a,0),paddingRight:Math.max(P-a,0)},children:(0,A.jsx)(ra,{...W})}):null]})}),T?null:(0,A.jsx)(Gn,{background:f,width:k,height:M,resolution:N,playing:_,muted:E,shouldLoad:O,mediaRef:ye(V,C),withoutVideo:F,className:hi.background})]})},layouts:["top","middle","bottom"],fields:[{name:"layout",type:"screen-layout",defaultValue:"middle",label:(0,I.zR)({id:"4iBXj2",defaultMessage:"Layout"})},{name:"heading",type:"heading-element",label:(0,I.zR)({id:"wx5PI0",defaultMessage:"Heading"})},{name:"items",type:"game-sort-items",label:(0,I.zR)({id:"fbUW2U",defaultMessage:"Items"}),isSection:!0},{label:(0,I.zR)({id:"83959F",defaultMessage:"Items style"}),type:"fields",isList:!0,isSection:!0,fields:[{name:"itemsLayout",type:"button-layout",label:(0,I.zR)({id:"OPxJx/",defaultMessage:"Layout"})},{name:"itemsTextStyle",type:"text-style-form",label:(0,I.zR)({id:"rzXCu2",defaultMessage:"Label style"})},{name:"resultsTextStyle",type:"text-style-form",label:(0,I.zR)({id:"ex1Bgx",defaultMessage:"Results style"})},{name:"itemsBoxStyle",type:"box-style-form",label:(0,I.zR)({id:"p1pghO",defaultMessage:"Box style"})},{name:"validBoxStyle",type:"box-style-form",label:(0,I.zR)({id:"ao5VYd",defaultMessage:"Valid box style"})},{name:"invalidBoxStyle",type:"box-style-form",label:(0,I.zR)({id:"JLYWNN",defaultMessage:"Invalid box style"})}]},{label:(0,I.zR)({id:"WjigmA",defaultMessage:"Submit button"}),type:"fields",isList:!0,isSection:!0,fields:[{name:"submitButtonLabel",type:"text",label:(0,I.zR)({id:"Cg3LGu",defaultMessage:"Label"})},{name:"submitBoxStyle",type:"box-style-form",label:(0,I.zR)({id:"nno1Pq",defaultMessage:"Button style"})},{name:"submitTextStyle",type:"text-style-form",label:(0,I.zR)({id:"OEckOD",defaultMessage:"Text style"})}]},{label:(0,I.zR)({id:"jINZkT",defaultMessage:"Results"}),type:"fields",isList:!0,isSection:!0,fields:[{name:"results",type:"text-element",theme:{textStyle:"text"},label:(0,I.zR)({id:"ZMS1Wv",defaultMessage:"Text"})},{name:"resultsBoxStyle",type:"box-style-form",label:(0,I.zR)({id:"p1pghO",defaultMessage:"Box style"})}]},{name:"background",type:"background",label:(0,I.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,I.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,I.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]},pi={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",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 fi(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:C}=e,w=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===C?null:C,{width:Z,height:W,resolution:G}=st(),{isView:Y,isPreview:U,isPlaceholder:Q,isEdit:X}=nt(),{topHeight:J,bottomHeight:K,bottomSidesWidth:ee}=gt(),{open:te}=ft(),{muted:le}=Qe(),{ref:ne,isCurrent:ae}=Xe(V,!0),ie=void 0!==ae&&ae;let oe;t[0]!==B?(oe=re(B),t[0]=B,t[1]=oe):oe=t[1];const se=oe;let de;t[2]!==E?(de=ce(E),t[2]=E,t[3]=de):de=t[3];const ue=de;let me;t[4]!==V||t[5]!==E||t[6]!==U||t[7]!==Y||t[8]!==te?(me=q(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 he=me,pe=null!==j;let fe;t[10]!==N?(fe=ge(N),t[10]=N,t[11]=fe):fe=t[11];const be=fe;let ve;t[12]!==$?(ve=ge($),t[12]=$,t[13]=ve):ve=t[13];const xe=ve;let Se;t[14]!==F?(Se=ge(F),t[14]=F,t[15]=Se):Se=t[15];const Ce=Se,[we,je]=(0,n.useState)(!pe),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"===w||"card-reverse"===w,Le="title-top"===w,Ae="card"===w||"card-reverse"===w,Ie="card"===w,Pe="card-reverse"===w,Be="fullscreen"===w,Ee=Be||Q?0:L,{ref:Ve,width:De,height:_e}=Dt(),Oe=Ae?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]!==Ie||t[22]!==Pe||t[23]!==Q?(He=Q?null:{margin:Ee/2,marginTop:Pe&&!se?Ee:Ee/2,marginBottom:Ie&&!se?Ee:Ee/2},t[19]=Ee,t[20]=se,t[21]=Ie,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={width:"50%",height:"50%"},Ge=(0,A.jsx)(I.sA,{id:"ebsPd4",defaultMessage:"Image"}),t[28]=qe,t[29]=Ge):(qe=t[28],Ge=t[29]);const Ye=!pe;let Ue,Je,Ke,et,tt,lt,at;t[30]!==D||t[31]!==ke||t[32]!==Re||t[33]!==pe||t[34]!==j||t[35]!==_e||t[36]!==De||t[37]!==U||t[38]!==Me||t[39]!==le||t[40]!==G?(Ue=pe?(0,A.jsx)(Kn,{className:pi.image,media:j,objectFit:Re,width:De,height:_e,resolution:G,playing:ke,muted:le,active:D,shouldLoad:Me,withoutVideo:U,onLoaded:$e}):null,t[30]=D,t[31]=ke,t[32]=Re,t[33]=pe,t[34]=j,t[35]=_e,t[36]=De,t[37]=U,t[38]=Me,t[39]=le,t[40]=G,t[41]=Ue):Ue=t[41],t[42]!==Ye||t[43]!==Ue?(Je=(0,A.jsx)(wn,{placeholder:"image",placeholderProps:qe,emptyLabel:Ge,emptyClassName:pi.emptyImage,placeholderClassName:"position-absolute top-50 start-50 translate-middle w-100",isEmpty:Ye,children:Ue}),t[42]=Ye,t[43]=Ue,t[44]=Je):Je=t[44],t[45]!==Ve||t[46]!==We||t[47]!==Je?(Ke=(0,A.jsx)("div",{ref:Ve,className:pi.imageContainer,style:We,children:Je},"image"),t[45]=Ve,t[46]=We,t[47]=Je,t[48]=Ke):Ke=t[48],t[49]!==be||t[50]!==Ze||t[51]!==N||t[52]!==T?(et=T&&(0,A.jsx)(wn,{placeholder:"title",emptyLabel:(0,A.jsx)(I.sA,{id:"2ZOPe+",defaultMessage:"Title"}),emptyClassName:pi.emptyTitle,placeholderClassName:"mt-2",isEmpty:!be,children:be?(0,A.jsx)("div",{style:Ze,children:(0,A.jsx)(ga,{...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,A.jsx)(wn,{placeholder:"text",emptyLabel:(0,A.jsx)(I.sA,{id:"z4CiV1",defaultMessage:"Text"}),emptyClassName:pi.emptyText,placeholderClassName:"mt-2",isEmpty:!xe,children:xe?(0,A.jsx)("div",{style:Ze,children:(0,A.jsx)(Pn,{...$})}):null},"text"),t[54]=xe,t[55]=Ze,t[56]=$,t[57]=R,t[58]=tt):tt=t[58],t[59]!==Ce||t[60]!==Ze||t[61]!==F||t[62]!==z?(lt=z&&(0,A.jsx)(wn,{placeholder:"shortText",emptyLabel:(0,A.jsx)(I.sA,{id:"dqnkQk",defaultMessage:"Legend"}),emptyClassName:pi.emptyLegend,placeholderClassName:"mt-2",isEmpty:!Ce,children:Ce?(0,A.jsx)("div",{style:Ze,children:(0,A.jsx)(Pn,{...F})}):null},"legend"),t[59]=Ce,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?(at=[Ke,et,tt,lt],ze?at.reverse():Le&&T&&(be||Q)&&at.splice(0,0,at.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]=at):at=t[73];let it,ot,rt,ct,dt,ut,mt,ht,yt=(V&&!U?K:0)+Ee/2,pt=(U?0:J)+Ee/2;return(Ae||Be)&&(pt=0,yt=0),Pe&&(pt=V&&!U?J:0,yt=V&&!U?K:0),t[74]!==H||t[75]!==Ie||t[76]!==Pe||t[77]!==Be||t[78]!==Q||t[79]!==ze?(it=$t([pi.container,H,{[pi.isReversed]:ze,[pi.isPlaceholder]:Q,[pi.isCard]:Ie,[pi.isCardReverse]:Pe,[pi.isFullscreen]:Be}]),t[74]=H,t[75]=Ie,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]!==Ae||t[89]!==Pe||t[90]!==Be||t[91]!==Q||t[92]!==U||t[93]!==L||t[94]!==J?(rt=!Q&&se?(0,A.jsx)("div",{className:pi.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:Ae?L/2:null,paddingBottom:Ae?L:L/2,paddingLeft:L/2,paddingRight:L/2},children:(0,A.jsx)(ua,{...B})}):null,t[86]=se,t[87]=B,t[88]=Ae,t[89]=Pe,t[90]=Be,t[91]=Q,t[92]=U,t[93]=L,t[94]=J,t[95]=rt):rt=t[95],t[96]!==he||t[97]!==ue||t[98]!==Ae||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,A.jsx)("div",{className:pi.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:Ae?L/2:null,paddingBottom:Ae?L/2:null},children:(0,A.jsx)(ra,{...he})}):null,t[96]=he,t[97]=ue,t[98]=Ae,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]!==at||t[108]!==ot||t[109]!==rt||t[110]!==ct?(dt=(0,A.jsxs)(va,{className:pi.layout,fullscreen:!0,style:ot,children:[rt,at,ct]}),t[107]=at,t[108]=ot,t[109]=rt,t[110]=ct,t[111]=dt):dt=t[111],t[112]!==W||t[113]!==dt||t[114]!==Z?(ut=(0,A.jsx)(Yn,{width:Z,height:W,className:pi.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]!==G||t[126]!==Z?(mt=Q?null:(0,A.jsx)(Gn,{background:P,width:Z,height:W,resolution:G,playing:ke,muted:le,shouldLoad:Me,mediaRef:ye(ne,O),withoutVideo:U,className:pi.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]=G,t[126]=Z,t[127]=mt):mt=t[127],t[128]!==we||t[129]!==it||t[130]!==ut||t[131]!==mt?(ht=(0,A.jsxs)("div",{className:it,"data-screen-ready":we,children:[ut,mt]}),t[128]=we,t[129]=it,t[130]=ut,t[131]=mt,t[132]=ht):ht=t[132],ht}var bi=[{id:"image",type:"screen",group:{label:(0,I.zR)({id:"6mX2ya",defaultMessage:"Images"}),order:4},title:(0,I.zR)({id:"uJ9eBc",defaultMessage:"Image"}),component:fi,layouts:["normal","fullscreen"],fields:[{name:"layout",type:"screen-layout",defaultValue:"normal",label:(0,I.zR)({id:"4iBXj2",defaultMessage:"Layout"})},{name:"image",type:"visual",label:(0,I.zR)({id:"xsipID",defaultMessage:"Image"})},{name:"imageFit",type:"fit",defaultValue:"cover",values:["cover","contain"],label:(0,I.zR)({id:"dkBBRa",defaultMessage:"Image fit"})},{name:"background",type:"background",label:(0,I.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,I.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,I.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]},{id:"image-title",type:"screen",group:{label:(0,I.zR)({id:"S/mavZ",defaultMessage:"Text and Images"}),order:3},title:(0,I.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,A.jsx)(fi,{...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,I.zR)({id:"4iBXj2",defaultMessage:"Layout"})},{name:"image",type:"visual",label:(0,I.zR)({id:"xsipID",defaultMessage:"Image"})},{name:"imageFit",type:"fit",defaultValue:"cover",values:["cover","contain"],label:(0,I.zR)({id:"dkBBRa",defaultMessage:"Image fit"})},{name:"title",type:"heading-element",inline:!0,theme:{textStyle:"heading2"},label:(0,I.zR)({id:"N25iDO",defaultMessage:"Title"})},{name:"background",type:"background",label:(0,I.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",isSection:!0,label:(0,I.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",isSection:!0,label:(0,I.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]},{id:"image-text",type:"screen",group:{label:(0,I.zR)({id:"S/mavZ",defaultMessage:"Text and Images"}),order:3},title:(0,I.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,A.jsx)(fi,{...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,I.zR)({id:"4iBXj2",defaultMessage:"Layout"})},{name:"image",type:"visual",label:(0,I.zR)({id:"xsipID",defaultMessage:"Image"})},{name:"imageFit",type:"fit",defaultValue:"cover",values:["cover","contain"],label:(0,I.zR)({id:"dkBBRa",defaultMessage:"Image fit"})},{name:"text",type:"text-element",theme:{textStyle:"text"},label:(0,I.zR)({id:"4E2gbX",defaultMessage:"Text"})},{name:"background",type:"background",label:(0,I.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,I.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,I.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]},{id:"image-title-text",type:"screen",group:{label:(0,I.zR)({id:"S/mavZ",defaultMessage:"Text and Images"}),order:3},title:(0,I.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,A.jsx)(fi,{...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,I.zR)({id:"4iBXj2",defaultMessage:"Layout"})},{name:"image",type:"visual",isHorizontal:!1,label:(0,I.zR)({id:"xsipID",defaultMessage:"Image"})},{name:"imageFit",type:"fit",defaultValue:"cover",values:["cover","contain"],label:(0,I.zR)({id:"dkBBRa",defaultMessage:"Image fit"})},{name:"title",type:"text-element",inline:!0,theme:{textStyle:"heading2"},label:(0,I.zR)({id:"N25iDO",defaultMessage:"Title"})},{name:"text",type:"text-element",theme:{textStyle:"text"},label:(0,I.zR)({id:"4E2gbX",defaultMessage:"Text"})},{name:"background",type:"background",isSection:!0,label:(0,I.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",isSection:!0,label:(0,I.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",isSection:!0,label:(0,I.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]},{id:"image-legend",type:"screen",group:{label:(0,I.zR)({id:"6mX2ya",defaultMessage:"Images"}),order:4},title:(0,I.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,A.jsx)(fi,{...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,I.zR)({id:"4iBXj2",defaultMessage:"Layout"})},{name:"image",type:"visual",label:(0,I.zR)({id:"xsipID",defaultMessage:"Image"})},{name:"imageFit",type:"fit",defaultValue:"cover",values:["cover","contain"],label:(0,I.zR)({id:"dkBBRa",defaultMessage:"Image fit"})},{name:"legend",type:"text-element",theme:{textStyle:"text"},label:(0,I.zR)({id:"3OS3Ms",defaultMessage:"Legend"})},{name:"background",type:"background",label:(0,I.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,I.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,I.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]}],vi={inner:"micromag-element-keypad-inner"};function xi(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,C,w;return t[0]!==g?(f=$t([vi.container,g]),t[0]=g,t[1]=f):f=t[1],t[2]!==y?(b=$t([vi.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,A.jsx)("div",{className:$t([vi.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?(C=(0,A.jsx)("div",{className:b,style:x,children:S}),t[13]=x,t[14]=S,t[15]=b,t[16]=C):C=t[16],t[17]!==C||t[18]!==f?(w=(0,A.jsx)("div",{className:f,children:C}),t[17]=C,t[18]=f,t[19]=w):w=t[19],w}var Si={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",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 Ci=[{id:"1"},{id:"2"},{id:"3"},{id:"4"},{id:"5"},{id:"6"},{id:"7"},{id:"8"},{id:"9"}],wi={padding:{left:30,top:30,right:30,bottom:30}};function ji(e){return Math.abs(e)>.5?"none":"auto"}function ki(e){return`translateY(${100*e}%) scale(${1-Math.abs(.5*e)})`}function Mi(e){return 1-Math.abs(e)}function Ni(){}function $i(e){const t=void 0===e?null:e;null!==t&&t.stopPropagation()}function Fi(e){return!s(e)}function Ti(){}var Ri=[{id:"keypad",type:"screen",group:{label:(0,I.zR)({id:"cGItoy",defaultMessage:"List"}),order:4},title:(0,I.zR)({id:"75nZbY",defaultMessage:"Keypad"}),layouts:["top","middle","bottom"],component:function(e){const t=(0,i.c)(350),{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,C=void 0===l?null:l,w=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=sl("keypad"),{muted:H,playing:Z,setControlsTheme:W,setControls:G,setPlaying:Y,showControls:U,hideControls:Q}=Qe(),X=at(),{width:J,height:K,resolution:te}=st(),{topHeight:le,bottomHeight:ne,bottomSidesWidth:ae}=gt(),{open:ie}=ft(),{enableInteraction:oe,disableInteraction:se}=pt(),{isView:de,isPreview:ue,isPlaceholder:me,isEdit:he}=nt();let pe;t[0]!==T?(pe=re(T),t[0]=T,t[1]=pe):pe=t[1];const fe=pe;let be;t[2]!==R?(be=ce(R),t[2]=R,t[3]=be):be=t[3];const ve=be;let xe;t[4]!==L||t[5]!==R||t[6]!==ue||t[7]!==de||t[8]!==ie?(xe=q(R,{isView:de,current:L,openWebView:ie,isPreview:ue}),t[4]=L,t[5]=R,t[6]=ue,t[7]=de,t[8]=ie,t[9]=xe):xe=t[9];const Se=xe;let Ce;t[10]!==w?(Ce=ge(w),t[10]=w,t[11]=Ce):Ce=t[11];const we=Ce;let je;t[12]!==w?(je=w||{},t[12]=w,t[13]=je):je=t[13];const{textStyle:ke}=je,Me=void 0===ke?null:ke;let Ne;t[14]!==j?(Ne=ge(j),t[14]=j,t[15]=Ne):Ne=t[15];const $e=Ne,{ref:Fe,height:Te}=Dt(),Re=void 0===Te?0:Te,{ref:ze,height:Le}=Dt(),Ae=void 0===Le?0:Le,[,Ie]=(0,n.useState)(!1),{columnAlign:Pe,columns:Be,spacing:Ee,withSquareItems:Ve}=N||{},De=void 0===Pe?null:Pe,_e=void 0===Be?null:Be,Oe=void 0===Ee?null:Ee,He=void 0!==Ve&&Ve;let Ze;t[16]!==$?(Ze=$||{},t[16]=$,t[17]=Ze):Ze=t[17];const{layout:We,textStyle:qe,labelBoxStyle:Ge,boxStyle:Ye,visualWidth:Ue}=Ze,Je=void 0===We?null: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;let it;t[18]!==F?(it=F||{},t[18]=F,t[19]=it):it=t[19];const{layout:ot,headingTextStyle:rt,contentTextStyle:ct,button:dt,boxStyle:ut}=it,mt=void 0===ot?null:ot,ht=void 0===rt?null:rt,bt=void 0===ct?null:ct,vt=void 0===dt?null:dt,xt=void 0===ut?null:ut;let St;t[20]!==vt?(St=vt||{},t[20]=vt,t[21]=St):St=t[21];const{buttonTextStyle:Ct,boxStyle:wt}=St,jt=void 0===Ct?null:Ct,kt=void 0===wt?null:wt,Mt=null!==mt?(0,y.xQ)(mt):"",[Nt,Ft]=(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:At,largeVisual:Pt,video:Et,button:Vt,popupBoxStyle:_t}=zt,Ot=void 0===Lt?null:Lt,Ht=void 0===At?null:At,Zt=void 0===Pt?null:Pt,Wt=void 0===Et?null:Et,qt=void 0===Vt?null:Vt,Gt=void 0===_t?null:_t,{ref:Yt,isCurrent:Ut}=Xe(L,null===Wt,null!==Wt?"popup":null),Qt=void 0!==Ut&&Ut,Xt=L&&(de||he)&&Z&&(Qt||!de)&&Nt,Jt=L&&(de||he)&&(Qt||!de),Kt=!me&&(L||P),el=he&&null===X,tl=he&&null!==X;let ll;t[24]!==Zt?(ll=Zt||{},t[24]=Zt,t[25]=ll):ll=t[25];const{metadata:nl}=ll;let al;t[26]!==nl?(al=void 0===nl?{}:nl,t[26]=nl,t[27]=al):al=t[27];const{width:il,height:ol}=al,rl=void 0===il?0:il,cl=void 0===ol?0:ol,dl=rl>0&&cl>0?rl/cl:null;let ul;t[28]!==Wt?(ul=Wt||{},t[28]=Wt,t[29]=ul):ul=t[29];const{autoPlay:ml,withSeekBar:gl,withControls:hl,color:yl,progressColor:pl}=ul,fl=void 0===ml||ml,bl=void 0!==gl&&gl,vl=void 0!==hl&&hl,xl=void 0===yl?null:yl,Sl=void 0===pl?null:pl;let Cl;t[30]!==Ot?(Cl=ge(Ot),t[30]=Ot,t[31]=Cl):Cl=t[31];const wl=Cl;let jl;t[32]!==Ot?(jl=Ot||{},t[32]=Ot,t[33]=jl):jl=t[33];const{textStyle:kl}=jl,Ml=void 0===kl?null:kl;let Nl;t[34]!==Ht?(Nl=ge(Ht),t[34]=Ht,t[35]=Nl):Nl=t[35];const $l=Nl;let Fl;t[36]!==Ht?(Fl=Ht||{},t[36]=Ht,t[37]=Fl):Fl=t[37];const{textStyle:Rl}=Fl,zl=void 0===Rl?null:Rl;let Ll;t[38]!==qt?(Ll=qt||{},t[38]=qt,t[39]=Ll):Ll=t[39];const{label:Al,url:Il,inWebView:Pl,boxStyle:Bl}=Ll,El=void 0===Al?null:Al,Vl=void 0===Il?null:Il,Dl=void 0!==Pl&&Pl,_l=void 0===Bl?null:Bl;let Ol,Hl,Zl,Wl;t[40]!==xl||t[41]!==L||t[42]!==Sl||t[43]!==G||t[44]!==W||t[45]!==Nt||t[46]!==Wt||t[47]!==vl||t[48]!==bl?(Ol=()=>L&&null!==Wt&&Nt?(W({seekBarOnly:bl&&!vl,color:xl,progressColor:Sl}),G(!(!vl&&!bl)),()=>{(vl||bl)&&G(!1)}):Ti,Hl=[Nt,Wt,L,vl,G,W,bl,xl,Sl],t[40]=xl,t[41]=L,t[42]=Sl,t[43]=G,t[44]=W,t[45]=Nt,t[46]=Wt,t[47]=vl,t[48]=bl,t[49]=Ol,t[50]=Hl):(Ol=t[49],Hl=t[50]),(0,n.useEffect)(Ol,Hl),t[51]!==fl||t[52]!==L||t[53]!==Y||t[54]!==Wt?(Zl=()=>{L&&fl&&null!==Wt&&Y(!0)},Wl=[L,fl,Wt,Y],t[51]=fl,t[52]=L,t[53]=Y,t[54]=Wt,t[55]=Zl,t[56]=Wl):(Zl=t[55],Wl=t[56]),(0,n.useEffect)(Zl,Wl);const ql=yt();let Gl,Ul;t[57]!==ql||t[58]!==Q||t[59]!==U?(Gl=()=>{ql?U():Q()},t[57]=ql,t[58]=Q,t[59]=U,t[60]=Gl):Gl=t[60],It(null!==Wt&&L?Gl:null,ql,1e3),t[61]!==tl||t[62]!==ie||t[63]!==O?(Ul=(e,t,l)=>{if(e.stopPropagation(),tl)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?ie({url:c}):(Rt(t),Ft(!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(Fi).join(" "),{linkType:"keypad_item",linkUrl:c||null})},t[61]=tl,t[62]=ie,t[63]=O,t[64]=Ul):Ul=t[64];const Ql=Ul;let Xl;t[65]!==tl||t[66]!==O?(Xl=e=>{tl||(void 0!==e&&e&&O("close_modal"),Ft(!1),Ie(!1))},t[65]=tl,t[66]=O,t[67]=Xl):Xl=t[67];const Jl=Xl;let Kl;t[68]!==tl||t[69]!==Jl||t[70]!==Nt?(Kl=e=>{tl||(e.preventDefault(),e.stopPropagation(),Jl(Nt))},t[68]=tl,t[69]=Jl,t[70]=Nt,t[71]=Kl):Kl=t[71];const en=Kl,tn=$i,[ln,nn]=(0,n.useState)(null);let an;t[72]!==K?(an=e=>{const{scrolleeHeight:t}=e,l=void 0===t?0:t;Math.floor(l)>=Math.floor(K)?nn("top"):nn("bottom")},t[72]=K,t[73]=an):an=t[73];const on=an;let sn;t[74]!==Jl||t[75]!==ln?(sn=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"===ln&&null!==o&&o<0?u=.5*d*-1:"bottom"===ln&&null!==o&&o>0&&(u=.5*d),a?u:null!==r&&(r>1||d>.3)?(Jl(!0),1):0},t[74]=Jl,t[75]=ln,t[76]=sn):sn=t[76];const rn=sn;let cn,dn,un,mn,gn;t[77]!==L||t[78]!==se||t[79]!==oe||t[80]!==Nt?(cn=()=>{L&&(Nt?se():oe())},dn=[L,Nt,oe,se],t[77]=L,t[78]=se,t[79]=oe,t[80]=Nt,t[81]=cn,t[82]=dn):(cn=t[81],dn=t[82]),(0,n.useEffect)(cn,dn),t[83]!==L||t[84]!==he||t[85]!==el||t[86]!==de||t[87]!==Jl||t[88]!==Nt?(un=()=>{const e=function(e){(!L&&de||_.current&&!_.current.contains(e.target)&&D.current&&D.current.contains(e.target)&&!el&&!he&&Nt)&&(e.preventDefault(),e.stopPropagation(),Jl(Nt))};return document.addEventListener("mouseup",e),()=>{document.removeEventListener("mouseup",e)}},t[83]=L,t[84]=he,t[85]=el,t[86]=de,t[87]=Jl,t[88]=Nt,t[89]=un):un=t[89],t[90]!==L||t[91]!==he||t[92]!==el||t[93]!==Nt?(mn=[L,_,D,el,he,Nt],t[90]=L,t[91]=he,t[92]=el,t[93]=Nt,t[94]=mn):mn=t[94],(0,n.useEffect)(un,mn),t[95]===Symbol.for("react.memo_cache_sentinel")?(gn=()=>{Ie(!1)},t[95]=gn):gn=t[95];const hn=gn;let yn;t[96]===Symbol.for("react.memo_cache_sentinel")?(yn=()=>{Ie(!0)},t[96]=yn):yn=t[96];const pn=yn;let fn;t[97]!==O?(fn=e=>{const t=void 0===e?null:e;if(null!==t){const e=Math.round(100*t);O("scroll",e,{scrollPercent:e})}},t[97]=O,t[98]=fn):fn=t[98];const bn=fn;let vn;t[99]!==Jl||t[100]!==Nt?(vn=()=>{Jl(Nt)},t[99]=Jl,t[100]=Nt,t[101]=vn):vn=t[101];const xn=vn,Sn=Ni,Cn=Nt?0:1;let jn,kn,Mn;t[102]===Symbol.for("react.memo_cache_sentinel")?(jn={config:{tension:300,friction:30}},kn={filterTaps:!0,preventDefault:!0,stopPropagation:!0},t[102]=jn,t[103]=kn):(jn=t[102],kn=t[103]),t[104]!==rn||t[105]!==xn||t[106]!==Cn?(Mn={disabled:!0,progress:Cn,computeProgress:rn,onResolve:Sn,springParams:jn,dragOptions:kn,onTap:xn},t[104]=rn,t[105]=xn,t[106]=Cn,t[107]=Mn):Mn=t[107];const{bind:Nn,progress:$n,transitioning:Fn}=Bt(Mn);let Tn,Rn;t[108]!==Jl||t[109]!==Nt?(Tn=()=>{const e=e=>{"Escape"===e.key&&Nt&&Jl(Nt)};return document.addEventListener("keyup",e),()=>{document.removeEventListener("keyup",e)}},Rn=[Nt,Jl],t[108]=Jl,t[109]=Nt,t[110]=Tn,t[111]=Rn):(Tn=t[110],Rn=t[111]),(0,n.useEffect)(Tn,Rn);const zn=null===C||0===C.length?Ci:C;let Ln;if(t[112]!==tt||t[113]!==et||t[114]!==Je||t[115]!==Ke||t[116]!==lt||t[117]!==L||t[118]!==Ql||t[119]!==te||t[120]!==zn){let e;t[122]!==tt||t[123]!==et||t[124]!==Je||t[125]!==Ke||t[126]!==lt||t[127]!==L||t[128]!==Ql||t[129]!==te?(e=(e,t)=>{const{id:l,label:n,visual:a,boxStyle:i,heading:o,content:s,url:r,inWebView:c,largeVisual:d,video:m}=e||{},g=void 0===l?null:l,h=void 0===n?null:n,y=void 0===a?null:a,p=void 0===i?null:i,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?null:d,{url:C}=y||{},w=void 0===C?null:C,{body:j}=f||{},k=void 0===j?null:j,{body:M}=b||{},N=void 0===M?null:M,$=u(h)?{body:h}:h||{},{textStyle:F}=$||{},T=void 0===F?null:F,{body:R}=$||{},z=void 0===R?null:R,I=z||w||g,P=null===z&&null===y,B=null!==v&&!x,E=!(null!==f&&null!==k&&""!==k||null!==b&&null!==N&&""!==N||null!==S||null!==m);return(0,A.jsx)("div",{className:Si.item,children:(0,A.jsx)(la,{className:$t([Si.button,{[Si.isEmpty]:P,[Si.isLink]:null!==v,[Si.disableHover]:E&&null===v}]),layout:Je||null,external:B,href:B?v:null,focusable:L,onClick:!E||null!==v&&!B?l=>Ql(l,e,t):null,textStyle:{...Ke,...T},buttonStyle:{...tt,...p},label:$,labelBoxStyle:et,visual:y,visualWidth:null!==lt?`${lt}%`:null,resolution:te,textClassName:Si.buttonLabel})},I)},t[122]=tt,t[123]=et,t[124]=Je,t[125]=Ke,t[126]=lt,t[127]=L,t[128]=Ql,t[129]=te,t[130]=e):e=t[130],Ln=zn.map(e),t[112]=tt,t[113]=et,t[114]=Je,t[115]=Ke,t[116]=lt,t[117]=L,t[118]=Ql,t[119]=te,t[120]=zn,t[121]=Ln}else Ln=t[121];const An=Ln;let In,Bn,En,Vn;t[131]!==me||t[132]!==de||t[133]!==C||t[134]!==X?(In=()=>{if("popup"===X&&me&&(Rt(wi),Ft(!0)),"keypad"===X&&(Rt(null),Ft(!1)),null!==X&&X.includes("popup")){const e=X.split(".").pop(),t=C[e];Rt(t),Ft(!0)}null!==X||de||(Rt(null),Ft(!1))},t[131]=me,t[132]=de,t[133]=C,t[134]=X,t[135]=In):In=t[135],t[136]!==de||t[137]!==C||t[138]!==X?(Bn=[X,C,de],t[136]=de,t[137]=C,t[138]=X,t[139]=Bn):Bn=t[139],(0,n.useEffect)(In,Bn),t[140]!==de||t[141]!==Fn||t[142]!==X||t[143]!==Nt?(En=()=>{!de||null!==X||Nt||Fn||Rt(null)},Vn=[de,X,Nt,Fn],t[140]=de,t[141]=Fn,t[142]=X,t[143]=Nt,t[144]=En,t[145]=Vn):(En=t[144],Vn=t[145]),(0,n.useEffect)(En,Vn);const Dn=$t([Si.container,V,{[Si.isPlaceholder]:me,[Si.withSquareItems]:He}]);let _n,Hn;t[146]!==z||t[147]!==Jt||t[148]!==E||t[149]!==K||t[150]!==me||t[151]!==Yt||t[152]!==Kt||t[153]!==H||t[154]!==te||t[155]!==Wt||t[156]!==J?(_n=me?null:(0,A.jsx)(Gn,{background:z,width:J,height:K,resolution:te,playing:Jt,muted:H,shouldLoad:Kt,mediaRef:ye(null===Wt?Yt:null,E),className:Si.background}),t[146]=z,t[147]=Jt,t[148]=E,t[149]=K,t[150]=me,t[151]=Yt,t[152]=Kt,t[153]=H,t[154]=te,t[155]=Wt,t[156]=J,t[157]=_n):_n=t[157],t[158]!==me||t[159]!==ue||t[160]!==de||t[161]!==en||t[162]!==Nt||t[163]!==B?(Hn=!de||me||B?null:(0,A.jsx)(Tl.CS.div,{className:$t([Si.fixedHeader,{[Si.open]:Nt}]),children:(0,A.jsx)("div",{className:Si.buttons,children:(0,A.jsx)(ta,{className:Si.close,onClick:en,focusable:!ue&&!me&&Nt,withoutStyle:!0,children:(0,A.jsx)(Yl,{color:"#000",className:Si.closeIcon})})})}),t[158]=me,t[159]=ue,t[160]=de,t[161]=en,t[162]=Nt,t[163]=B,t[164]=Hn):Hn=t[164];const Zn=!Nt,Wn=!Nt,qn=ue||me||Nt;let Un,Qn,Xn,Jn;t[165]!==L||t[166]!==Ae||t[167]!==ve||t[168]!==fe||t[169]!==Re||t[170]!==me||t[171]!==ue||t[172]!==M||t[173]!==ne||t[174]!==le?(Un=me?null:{paddingLeft:M,paddingRight:M,paddingTop:(fe?Re:M)+(L&&!ue?le:0),paddingBottom:(ve?Ae:M)+(L&&!ue?ne:0)},t[165]=L,t[166]=Ae,t[167]=ve,t[168]=fe,t[169]=Re,t[170]=me,t[171]=ue,t[172]=M,t[173]=ne,t[174]=le,t[175]=Un):Un=t[175],t[176]!==fe||t[177]!==T||t[178]!==Fe||t[179]!==me||t[180]!==ue||t[181]!==M||t[182]!==le?(Qn=!me&&fe?(0,A.jsx)("div",{ref:Fe,className:Si.header,style:{paddingTop:M/2,paddingLeft:M,paddingRight:M,paddingBottom:M,transform:ue?null:`translate(0, ${le}px)`},children:(0,A.jsx)(ua,{...T})}):null,t[176]=fe,t[177]=T,t[178]=Fe,t[179]=me,t[180]=ue,t[181]=M,t[182]=le,t[183]=Qn):Qn=t[183],t[184]===Symbol.for("react.memo_cache_sentinel")?(Xn=(0,A.jsx)(I.sA,{id:"BSTWf8",defaultMessage:"Title"}),Jn=$t([Si.empty,Si.emptyHeading]),t[184]=Xn,t[185]=Jn):(Xn=t[184],Jn=t[185]);const ea=!we;let na,aa,ia,oa;t[186]!==we||t[187]!==w||t[188]!==Me?(na=we?(0,A.jsx)(ga,{className:Si.title,...w,textStyle:Me}):null,t[186]=we,t[187]=w,t[188]=Me,t[189]=na):na=t[189],t[190]!==ea||t[191]!==na?(aa=(0,A.jsx)(wn,{placeholder:"Title",emptyLabel:Xn,emptyClassName:Jn,isEmpty:ea,children:na}),t[190]=ea,t[191]=na,t[192]=aa):aa=t[192],t[193]===Symbol.for("react.memo_cache_sentinel")?(ia=(0,A.jsx)(I.sA,{id:"ZG8/oK",defaultMessage:"Subtitle"}),oa=$t([Si.empty,Si.emptyHeading]),t[193]=ia,t[194]=oa):(ia=t[193],oa=t[194]);const ca=!$e;let da,ma,ha;t[195]!==$e||t[196]!==j?(da=$e?(0,A.jsx)(Pn,{className:Si.subtitle,...j}):null,t[195]=$e,t[196]=j,t[197]=da):da=t[197],t[198]!==ca||t[199]!==da?(ma=(0,A.jsx)(wn,{placeholder:"Subtitle",emptyLabel:ia,emptyClassName:oa,isEmpty:ca,placeholderClassName:"mt-2",children:da}),t[198]=ca,t[199]=da,t[200]=ma):ma=t[200],t[201]!==me?(ha=$t([Si.grid,{"mt-4":me}]),t[201]=me,t[202]=ha):ha=t[202];const ya=me?3:_e,pa=me?2:Oe;let fa,ba,xa,Ca,wa,ja,ka,Ma,Na;t[203]!==De||t[204]!==An||t[205]!==ha||t[206]!==ya||t[207]!==pa?(fa=(0,A.jsx)(xi,{className:ha,align:De,columns:ya,spacing:pa,items:An}),t[203]=De,t[204]=An,t[205]=ha,t[206]=ya,t[207]=pa,t[208]=fa):fa=t[208],t[209]!==k||t[210]!==Un||t[211]!==Qn||t[212]!==aa||t[213]!==ma||t[214]!==fa||t[215]!==J?(ba=(0,A.jsxs)(va,{className:Si.layout,verticalAlign:k,width:J,style:Un,children:[Qn,aa,ma,fa]}),t[209]=k,t[210]=Un,t[211]=Qn,t[212]=aa,t[213]=ma,t[214]=fa,t[215]=J,t[216]=ba):ba=t[216],t[217]===Symbol.for("react.memo_cache_sentinel")?(xa=$t([Si.popupBackdrop]),t[217]=xa):xa=t[217],t[218]!==$n?(Ca=$n.to(Mi),t[218]=$n,t[219]=Ca):Ca=t[219],t[220]!==Ca?(wa=(0,A.jsx)(Tl.CS.div,{className:xa,style:{opacity:Ca}}),t[220]=Ca,t[221]=wa):wa=t[221],t[222]!==$n?(ja=$n.to(ki),t[222]=$n,t[223]=ja):ja=t[223],t[224]!==$n?(ka=$n.to(ji),t[224]=$n,t[225]=ka):ka=t[225],t[226]!==ja||t[227]!==ka?(Ma={transform:ja,pointerEvents:ka},t[226]=ja,t[227]=ka,t[228]=Ma):Ma=t[228],t[229]!==Nn?(Na=Nn(),t[229]=Nn,t[230]=Na):Na=t[230];const $a=ue||me,Fa=Nt?null:1,Ta=Si[Mt],Ra=null===xt;let za,La,Aa,Ia,Pa,Ba,Ea;t[231]!==Ta||t[232]!==Ra?(za=$t([Si.popupInner,Ta,{[Si.withShadow]:Ra}]),t[231]=Ta,t[232]=Ra,t[233]=za):za=t[233],t[234]===Symbol.for("react.memo_cache_sentinel")?(La=ee(wi),t[234]=La):La=t[234],t[235]!==xt?(Aa=ee(xt),t[235]=xt,t[236]=Aa):Aa=t[236],t[237]!==Gt?(Ia=ee(Gt),t[237]=Gt,t[238]=Ia):Ia=t[238],t[239]!==Aa||t[240]!==Ia?(Pa={...La,...Aa,...Ia},t[239]=Aa,t[240]=Ia,t[241]=Pa):Pa=t[241],t[242]===Symbol.for("react.memo_cache_sentinel")?(Ba=(0,A.jsx)(I.sA,{id:"uT+qYH",defaultMessage:"Video"}),Ea=$t([Si.empty,Si.emptyVisual]),t[242]=Ba,t[243]=Ea):(Ba=t[242],Ea=t[243]);const Va=null===Wt;let Da,_a,Oa,Ha;t[244]!==E||t[245]!==Yt||t[246]!==H||t[247]!==te||t[248]!==Wt||t[249]!==Xt?(Da=null!==Wt?(0,A.jsx)("div",{className:Si.popupVideoWrapper,children:(0,A.jsx)(On,{...Wt,paused:!Xt,muted:H,className:Si.video,resolution:te,mediaRef:ye(Yt,E)})}):null,t[244]=E,t[245]=Yt,t[246]=H,t[247]=te,t[248]=Wt,t[249]=Xt,t[250]=Da):Da=t[250],t[251]!==Va||t[252]!==Da?(_a=(0,A.jsx)(wn,{placeholder:"video",emptyLabel:Ba,emptyClassName:Ea,isEmpty:Va,children:Da}),t[251]=Va,t[252]=Da,t[253]=_a):_a=t[253],t[254]===Symbol.for("react.memo_cache_sentinel")?(Oa=(0,A.jsx)(I.sA,{id:"IE7U/Q",defaultMessage:"Heading"}),Ha=$t([Si.empty,Si.emptyHeading]),t[254]=Oa,t[255]=Ha):(Oa=t[254],Ha=t[255]);const Za=!wl;let Wa,qa,Ga,Ya;t[256]!==wl||t[257]!==ht||t[258]!==Ot||t[259]!==Ml?(Wa=wl?(0,A.jsx)(ga,{className:Si.popupHeading,...Ot,textStyle:{...ht,...Ml}}):null,t[256]=wl,t[257]=ht,t[258]=Ot,t[259]=Ml,t[260]=Wa):Wa=t[260],t[261]!==Za||t[262]!==Wa?(qa=(0,A.jsx)(wn,{emptyLabel:Oa,emptyClassName:Ha,isEmpty:Za,children:Wa}),t[261]=Za,t[262]=Wa,t[263]=qa):qa=t[263],t[264]===Symbol.for("react.memo_cache_sentinel")?(Ga=(0,A.jsx)(I.sA,{id:"JRZoe6",defaultMessage:"Content"}),Ya=$t([Si.empty,Si.emptyContent]),t[264]=Ga,t[265]=Ya):(Ga=t[264],Ya=t[265]);const Ua=!$l;let Qa,Xa,Ja,Ka;t[266]!==bt||t[267]!==$l||t[268]!==Ht||t[269]!==zl?(Qa=$l?(0,A.jsx)(Pn,{className:Si.popupContent,...Ht,textStyle:{...bt,...zl}}):null,t[266]=bt,t[267]=$l,t[268]=Ht,t[269]=zl,t[270]=Qa):Qa=t[270],t[271]!==Ua||t[272]!==Qa?(Xa=(0,A.jsx)(wn,{placeholder:"popupContent",emptyLabel:Ga,emptyClassName:Ya,isEmpty:Ua,children:Qa}),t[271]=Ua,t[272]=Qa,t[273]=Xa):Xa=t[273],t[274]===Symbol.for("react.memo_cache_sentinel")?(Ja=(0,A.jsx)(I.sA,{id:"z4Pr+g",defaultMessage:"Visual (Image or Video)"}),Ka=$t([Si.empty,Si.emptyVisual]),t[274]=Ja,t[275]=Ka):(Ja=t[274],Ka=t[275]);const ei=null===Zt;let ti,li,ni,ai;t[276]!==Zt||t[277]!==dl||t[278]!==te?(ti=null!==Zt?(0,A.jsx)(Kn,{className:Si.popupVisual,imageClassName:Si.popupVisualImage,videoClassName:Si.popupVisualVideo,media:Zt,resolution:te,ratio:dl,width:"100%",height:"auto"}):null,t[276]=Zt,t[277]=dl,t[278]=te,t[279]=ti):ti=t[279],t[280]!==ei||t[281]!==ti?(li=(0,A.jsx)(wn,{placeholder:"image",emptyLabel:Ja,emptyClassName:Ka,isEmpty:ei,children:ti}),t[280]=ei,t[281]=ti,t[282]=li):li=t[282],t[283]===Symbol.for("react.memo_cache_sentinel")?(ni=(0,A.jsx)(I.sA,{id:"N7Kj8z",defaultMessage:"Button"}),ai=$t([Si.empty,Si.emptyCTA]),t[283]=ni,t[284]=ai):(ni=t[283],ai=t[284]);const ii=null===qt;let oi,si,ri,ci,di,ui,mi,gi,hi,yi;return t[285]!==El||t[286]!==Vl||t[287]!==tn||t[288]!==ie||t[289]!==qt||t[290]!==_l||t[291]!==kt||t[292]!==jt||t[293]!==Dl?(oi=null!==qt?(0,A.jsx)(sa,{className:Si.popupCTA,label:{...jt,...El},url:Vl,onClick:tn,inWebView:Dl,openWebView:ie,type:"click",boxStyle:{...kt,..._l}}):null,t[285]=El,t[286]=Vl,t[287]=tn,t[288]=ie,t[289]=qt,t[290]=_l,t[291]=kt,t[292]=jt,t[293]=Dl,t[294]=oi):oi=t[294],t[295]!==ii||t[296]!==oi?(si=(0,A.jsx)(wn,{placeholder:"button",emptyLabel:ni,emptyClassName:ai,isEmpty:ii,children:oi}),t[295]=ii,t[296]=oi,t[297]=si):si=t[297],t[298]!==za||t[299]!==Pa||t[300]!==_a||t[301]!==qa||t[302]!==Xa||t[303]!==li||t[304]!==si?(ri=(0,A.jsxs)("div",{ref:_,className:za,style:Pa,children:[_a,qa,Xa,li,si]}),t[298]=za,t[299]=Pa,t[300]=_a,t[301]=qa,t[302]=Xa,t[303]=li,t[304]=si,t[305]=ri):ri=t[305],t[306]!==hn||t[307]!==on||t[308]!==pn||t[309]!==$a||t[310]!==Fa||t[311]!==ri?(ci=(0,A.jsx)(Sa,{disabled:$a,verticalAlign:"middle",withArrow:!1,scrollPosition:Fa,onScrolledBottom:hn,onScrolledNotBottom:pn,onScrollHeightChange:on,className:Si.popupScroll,withShadow:!0,children:ri}),t[306]=hn,t[307]=on,t[308]=pn,t[309]=$a,t[310]=Fa,t[311]=ri,t[312]=ci):ci=t[312],t[313]!==Ma||t[314]!==Na||t[315]!==ci?(di=(0,A.jsx)(Tl.CS.div,{className:Si.popup,style:Ma,...Na,children:ci}),t[313]=Ma,t[314]=Na,t[315]=ci,t[316]=di):di=t[316],t[317]!==wa||t[318]!==di?(ui=(0,A.jsxs)(A.Fragment,{children:[wa,di]}),t[317]=wa,t[318]=di,t[319]=ui):ui=t[319],t[320]!==K||t[321]!==k||t[322]!==bn||t[323]!==Zn||t[324]!==Wn||t[325]!==qn||t[326]!==ba||t[327]!==ui||t[328]!==J?(mi=(0,A.jsxs)(Sa,{width:J,height:K,verticalAlign:k,withArrow:Zn,withShadow:Wn,disabled:qn,onScrolledTrigger:bn,children:[ba,ui]}),t[320]=K,t[321]=k,t[322]=bn,t[323]=Zn,t[324]=Wn,t[325]=qn,t[326]=ba,t[327]=ui,t[328]=J,t[329]=mi):mi=t[329],t[330]!==L||t[331]!==Se||t[332]!==ze||t[333]!==ve||t[334]!==me||t[335]!==ue||t[336]!==M||t[337]!==ne||t[338]!==ae?(gi=!me&&ve?(0,A.jsx)("div",{ref:ze,className:Si.footer,style:{transform:L&&!ue?`translate(0, -${ne}px)`:null,paddingLeft:Math.max(M/2,ae),paddingRight:Math.max(M/2,ae),paddingBottom:M/2,paddingTop:M},children:(0,A.jsx)(ra,{...Se})}):null,t[330]=L,t[331]=Se,t[332]=ze,t[333]=ve,t[334]=me,t[335]=ue,t[336]=M,t[337]=ne,t[338]=ae,t[339]=gi):gi=t[339],t[340]!==K||t[341]!==mi||t[342]!==gi||t[343]!==J?(hi=(0,A.jsxs)(Yn,{width:J,height:K,className:Si.inner,children:[mi,gi]}),t[340]=K,t[341]=mi,t[342]=gi,t[343]=J,t[344]=hi):hi=t[344],t[345]!==Dn||t[346]!==_n||t[347]!==Hn||t[348]!==hi?(yi=(0,A.jsxs)("div",{ref:D,className:Dn,"data-screen-ready":!0,children:[_n,Hn,hi]}),t[345]=Dn,t[346]=_n,t[347]=Hn,t[348]=hi,t[349]=yi):yi=t[349],yi},states:[{id:"keypad",label:(0,I.zR)({id:"Z4f5qh",defaultMessage:"Buttons"}),fields:[{name:"layout",type:"screen-layout",defaultValue:"middle",label:(0,I.zR)({id:"4iBXj2",defaultMessage:"Layout"})},{name:"items",type:"buttons",label:(0,I.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,I.zR)({id:"FjuRaw",defaultMessage:"Keypad settings"})},{name:"buttonStyles",type:"rich-button-styles",defaultValue:{layout:"label-bottom",boxStyle:{backgroundColor:{alpha:.15,color:"#000000"}}},label:(0,I.zR)({id:"Arl5Ze",defaultMessage:"Button styles"}),isList:!0}]},{id:"popups",label:(0,I.zR)({id:"FYm4w+",defaultMessage:"Popups"}),fields:[{name:"popupStyles",type:"fields",defaultValue:{layout:"content-top"},fields:[{name:"layout",type:"card-layout",label:(0,I.zR)({id:"OPxJx/",defaultMessage:"Layout"})},{name:"headingTextStyle",type:"text-style-form",label:(0,I.zR)({id:"zrK6ak",defaultMessage:"Heading text style"})},{name:"contentTextStyle",type:"text-style-form",label:(0,I.zR)({id:"z9nSIG",defaultMessage:"Content text style"})},{name:"boxStyle",type:"box-style-form",label:(0,I.zR)({id:"p1pghO",defaultMessage:"Box style"})},{name:"button",type:"fields",isList:!0,label:(0,I.zR)({id:"i6bmbD",defaultMessage:"Button"}),fields:[{name:"buttonTextStyle",type:"text-style-form",label:(0,I.zR)({id:"p5RHzq",defaultMessage:"Button text style"})},{name:"buttonStyle",type:"box-style-form",label:(0,I.zR)({id:"nno1Pq",defaultMessage:"Button style"})}]}]}]},{id:"popup",label:(0,I.zR)({id:"sSahY1",defaultMessage:"Popup"}),defaultValue:[],repeatable:!0,fieldName:"items",fields:[{name:"heading",type:"heading-element",label:(0,I.zR)({id:"6iR9Mt",defaultMessage:"Heading"})},{name:"content",type:"text-element",label:(0,I.zR)({id:"uoF5Pv",defaultMessage:"Content"}),theme:{label:{textStyle:"text"}}},{name:"video",type:"video-element",label:(0,I.zR)({id:"vERejo",defaultMessage:"Video"})},{name:"largeVisual",type:"visual",label:(0,I.zR)({id:"HwqzVR",defaultMessage:"Visual"})},{name:"popupBoxStyle",type:"box-style-form",label:(0,I.zR)({id:"p1pghO",defaultMessage:"Box style"})},{name:"button",type:"button-link",label:(0,I.zR)({id:"i6bmbD",defaultMessage:"Button"}),theme:{label:{textStyle:"button"}}}]}],fields:[{name:"title",type:"heading-element",theme:{textStyle:"heading1"},label:(0,I.zR)({id:"N25iDO",defaultMessage:"Title"})},{name:"subtitle",type:"text-element",theme:{textStyle:"text"},label:(0,I.zR)({id:"EcZYpr",defaultMessage:"Subtitle"})},{name:"background",type:"background",label:(0,I.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,I.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,I.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]}],zi=[{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 Li={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 Ai="micromag-element-map-preventScroll";const Ii={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 Pi(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,C=void 0===a?null:a,w=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,I=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]!==I||t[6]!==T||t[7]!==w||t[8]!==L||t[9]!==R||t[10]!==z||t[11]!==M||t[12]!==C||t[13]!==F?(V={zoom:C,maxZoom:w,bounds:j,draggable:k,fitBounds:$,center:S,events:N,withoutStyle:M,zoomControl:F,mapTypeControl:T,scaleControl:R,streetViewControl:z,rotateControl:L,fullscreenControl:I},t[0]=j,t[1]=S,t[2]=k,t[3]=N,t[4]=$,t[5]=I,t[6]=T,t[7]=w,t[8]=L,t[9]=R,t[10]=z,t[11]=M,t[12]=C,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=qe(),[p,f]=(0,n.useState)(!1),b=(0,n.useRef)(null),v=(0,n.useRef)(null),{ref:x,width:S=null,height:C=null}=Dt();(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 w=(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&&w(e,o)},[w,o,i,S,C]),(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:zi,zoomControl:c,mapTypeControl:d,scaleControl:u,streetViewControl:m,rotateControl:g,fullscreenControl:h});return i&&w(t,o),v.current=t,null!==s&&Object.keys(s).forEach(e=>{null!==s[e]&&t.addListener(Li[e][0],()=>s[e](Li[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=$t(["micromag-element-map-container",P,{[Ai]: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,A.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,A.jsxs)("div",{className:H,...Ii,children:[W,q]}),t[26]=H,t[27]=W,t[28]=q,t[29]=G):G=t[29],G}const Bi={onClick:"click",onDoubleClick:"dblclick"};function Ei(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=qe(),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(Bi[e],o[e])}),c.current=t,()=>{r.maps.event.clearInstanceListeners(t),t.setMap(null)}},[r,e]),c.current}(m,S),null}function Vi(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:C,fullscreenControl:w,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,I=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!==C&&C,W=void 0!==w&&w,q=void 0===j||j;let G;t[0]!==$?(G=$||[],t[0]=$,t[1]=G):G=t[1];const Y=G,U=qe();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(Di);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]!==I||t[16]!==L||t[17]!==X||t[18]!==P||t[19]!==B?(oe={onClick:X,onCenterChanged:L,onBoundsChanged:I,onDrag:P,onDragEnd:B,onTilesLoaded:ie},t[15]=I,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=$t(["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,A.jsx)(Ei,{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,A.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,A.jsx)(Pi,{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,A.jsx)("div",{className:re,children:de}),t[42]=re,t[43]=de,t[44]=ue):ue=t[44],ue}function Di(e){return null!==e&&null!==(e.geoPosition||null)}var _i={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 Oi={lat:45.5,lng:-73.56},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()},Zi=[];function Wi({layout:e="normal",draggable:t=!0,markers:l=Zi,title:a=null,description:i=null,button:o=null,openedMarkerSpacerHeight:s=.75,withMarkerImages:r=!1,zoom:c=10,center:d=Oi,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,I.tz)(),{apiKey:v=null}=He(),x=sl(y),[S,C]=(0,n.useState)(null),w=null!==S,j=(0,n.useRef)(null),{width:k,height:M,resolution:N}=st(),{muted:$}=Qe(),{ref:F,isCurrent:T=!1}=Xe(g,!0),{color:R}=m||{},z=X(R),{isView:L,isPreview:P,isPlaceholder:B,isEdit:E,isStatic:V,isCapture:D}=nt(),_=at(),[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}=pt(),J=(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,C(null)},[K,S,C]),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];C(t),x("click_marker_open",`Marker ${t+1}: ${l.title.body}`,{marker:l,markerIndex:t})},[K,C,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%"}=Dt({disabled:!L}),[ce,de]=(0,n.useState)(0),ue=ce===(l||[]).length,me=O&&(!r||ue);let he;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),C(null)):"map"===e?(Y(!0),C(null)):"markers"!==e&&"markers-with-image"!==e||(Y(!0),C(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(he=`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||{};he+=`&center=${e},${t}`}null!==c&&(he+=`&zoom=${c}`),null!==v&&(he+=`&key=${v}`),null!==b&&(he+=`&language=${b}`),null!==e&&(he+=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 pe=w?K[S]:j.current,{title:fe=null,subtitle:be=null,description:ve=null,image:xe=null}=pe||{},Se=null!==fe,Ce=null!==be,we=null!==ve,je=null!==xe,ke=ge(a),Me=ge(i),Ne=ge(o);return(0,A.jsxs)("div",{className:$t([_i.container,f,{[_i[`${e}Layout`]]:null!==e,[_i.opened]:G||P&&"intro"!==_,[_i.hasSelectedMarker]:w}]),"data-screen-ready":me,children:[(0,A.jsx)(Yn,{width:k,height:M,className:_i.content,children:B?(0,A.jsx)(un,{className:_i.placeholder,withImages:r}):(0,A.jsxs)(A.Fragment,{children:[P?(0,A.jsx)(Qn,{media:null!==he?{url:he,metadata:{width:Math.min(640,k),height:Math.min(640,M)}}:null,width:k,height:M,resolution:N,objectFit:{fit:"cover"}}):(0,A.jsx)(Vi,{center:d,zoom:c,draggable:t,markers:K,fitBounds:u,onClickMarker:le,onReady:J,onDragEnd:ie},"map"),(0,A.jsx)("div",{className:_i.markerOverlayContainer,...Hi,children:(0,A.jsx)("div",{className:_i.markerOverlayScrollable,children:(0,A.jsxs)(Sa,{fullscreen:!0,disabled:Z,onScrolledBottom:oe,children:[(0,A.jsx)(El,{className:_i.markerOverlaySafe,onClick:te,withoutStyle:!0,style:{height:M*s},disabled:P,focusable:g&&L}),(0,A.jsx)("div",{className:_i.markerOverlay,style:{minHeight:M*(1-s)},children:(0,A.jsxs)("div",{className:_i.markerOverlayContent,style:z,children:[(0,A.jsx)("div",{className:_i.swipeIndicator}),(0,A.jsxs)("div",{className:_i.markerOverlayContentInner,ref:se,children:[je?(0,A.jsx)(Qn,{className:_i.markerImage,media:xe,width:re,resolution:N}):null,Se?(0,A.jsx)(ga,{className:_i.markerTitle,...fe}):null,Ce?(0,A.jsx)(ga,{size:3,className:_i.markerSubtitle,...be}):null,we?(0,A.jsx)(Pn,{className:_i.markerDescription,...ve}):null]},`markerContent-${S}`)]})})]})})},"marker-overlay"),(0,A.jsxs)("div",{className:$t([_i.splash]),children:[(0,A.jsx)(wn,{emptyLabel:(0,A.jsx)(I.sA,{id:"2ZOPe+",defaultMessage:"Title"}),emptyClassName:_i.emptyTitle,isEmpty:!ke,children:(0,A.jsx)(ga,{className:_i.title,...a})}),(0,A.jsx)(wn,{emptyLabel:(0,A.jsx)(I.sA,{id:"507VAi",defaultMessage:"Description"}),emptyClassName:_i.emptyDescription,isEmpty:!Me,children:(0,A.jsx)(Pn,{className:_i.description,...i})}),(0,A.jsx)(wn,{emptyLabel:(0,A.jsx)(I.sA,{id:"bv3rRe",defaultMessage:"Button"}),emptyClassName:_i.emptyButton,isEmpty:!Ne,children:(0,A.jsx)(ta,{className:_i.splashButton,onClick:ne,buttonStyle:null!==o?o.buttonStyle:null,focusable:g&&L,children:Ne?(0,A.jsx)(Pn,{...o,className:_i.button}):(0,A.jsx)(I.sA,{id:"sXfFFw",defaultMessage:"Enter"})})})]},"splash"),V||D||P||E?null:(0,A.jsx)(El,{className:_i.closeButton,onClick:ae,focusable:g&&L,children:"×"},"close-button")]})}),B?null:(0,A.jsx)(qn,{color:{color:"#FFFFFF",alpha:1},width:k,height:M,resolution:N,playing:W,muted:$,shouldLoad:q,mediaRef:ye(F,p),withoutVideo:P,className:_i.background})]})}var qi=[{id:"map",type:"screen",group:{label:(0,I.zR)({id:"Z27IP6",defaultMessage:"Map"}),order:6},title:(0,I.zR)({id:"dPYwJG",defaultMessage:"Map"}),component:Wi,layouts:["normal"],states:[{id:"intro",label:(0,I.zR)({id:"BgrRxZ",defaultMessage:"Intro"}),fields:[{name:"title",type:"heading-element",theme:{textStyle:"heading1"},label:(0,I.zR)({id:"+AEVbJ",defaultMessage:"Title"})},{name:"description",type:"text-element",theme:{textStyle:"text"},label:(0,I.zR)({id:"ZCe0r4",defaultMessage:"Description"})},{name:"button",type:"button-element",theme:{textStyle:"button"},label:(0,I.zR)({id:"i6bmbD",defaultMessage:"Button"})}]},{id:"map",label:(0,I.zR)({id:"eYHEYe",defaultMessage:"Map"}),fields:[{name:"draggable",type:"toggle",defaultValue:!0,label:(0,I.zR)({id:"A7ncT3",defaultMessage:"Draggable"})},{name:"fitBounds",type:"toggle",defaultValue:!0,label:(0,I.zR)({id:"NVUpOG",defaultMessage:"Map fit markers"})},{name:"zoom",type:"slider",defaultValue:9,min:0,max:16,label:(0,I.zR)({id:"vRzzo6",defaultMessage:"Zoom"})},{name:"center",type:"geo-position",label:(0,I.zR)({id:"W5qWPj",defaultMessage:"Center"})}]},{id:"markers",label:(0,I.zR)({id:"+LvOvJ",defaultMessage:"Markers"}),repeatable:!0,fieldName:"markers",fields:[{name:"title",type:"heading-element",label:(0,I.zR)({id:"+AEVbJ",defaultMessage:"Title"})},{name:"description",type:"text-element",label:(0,I.zR)({id:"ZCe0r4",defaultMessage:"Description"})},{name:"geoPosition",type:"geo-position",label:(0,I.zR)({id:"u3ok54",defaultMessage:"Position"})}]}],fields:[{name:"background",type:"background",label:(0,I.zR)({id:"cDj1mZ",defaultMessage:"Background"})}]},{id:"map-images",type:"screen",group:{label:(0,I.zR)({id:"Z27IP6",defaultMessage:"Map"}),order:6},title:(0,I.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,A.jsx)(Wi,{...l,withMarkerImages:!0}),t[2]=l,t[3]=n):n=t[3],n},layouts:["normal"],states:[{id:"intro",label:(0,I.zR)({id:"BgrRxZ",defaultMessage:"Intro"}),fields:[{name:"title",type:"heading-element",theme:{textStyle:"heading1"},label:(0,I.zR)({id:"+AEVbJ",defaultMessage:"Title"})},{name:"description",type:"text-element",theme:{textStyle:"text"},label:(0,I.zR)({id:"ZCe0r4",defaultMessage:"Description"})},{name:"button",type:"button-element",theme:{textStyle:"button"},label:(0,I.zR)({id:"i6bmbD",defaultMessage:"Button"})}]},{id:"map",label:(0,I.zR)({id:"eYHEYe",defaultMessage:"Map"}),fields:[{name:"draggable",type:"toggle",defaultValue:!0,label:(0,I.zR)({id:"A7ncT3",defaultMessage:"Draggable"})},{name:"fitBounds",type:"toggle",defaultValue:!0,label:(0,I.zR)({id:"NVUpOG",defaultMessage:"Map fit markers"})},{name:"zoom",type:"slider",defaultValue:9,min:0,max:16,label:(0,I.zR)({id:"vRzzo6",defaultMessage:"Zoom"})},{name:"center",type:"geo-position",label:(0,I.zR)({id:"W5qWPj",defaultMessage:"Center"})}]},{id:"markers-with-image",label:(0,I.zR)({id:"+LvOvJ",defaultMessage:"Markers"}),repeatable:!0,fieldName:"markers",fields:[{name:"title",type:"heading-element",label:(0,I.zR)({id:"+AEVbJ",defaultMessage:"Title"})},{name:"description",type:"text-element",label:(0,I.zR)({id:"ZCe0r4",defaultMessage:"Description"})},{name:"geoPosition",type:"geo-position",label:(0,I.zR)({id:"u3ok54",defaultMessage:"Position"})}]}],fields:[{name:"background",type:"background",label:(0,I.zR)({id:"cDj1mZ",defaultMessage:"Background"})}]}],Gi={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 Yi({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:C=!1,className:w=null}){const{isView:j,isPreview:k,isPlaceholder:M,isEdit:N}=nt(),$=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&&!C,[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:C=null}=m||{},w=ge(m),j=ue(p),M=w||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(C||{}).reduce((e,t)=>{const l=C[t];return null!==l&&""!==l&&(e[t]=l),e},{}),...z,...x};return(0,A.jsx)("div",{className:$t([Gi.item,{[Gi.rightAnswer]:!g&&!0===a,[Gi.userAnswer]:N,[Gi.otherAnswer]:F,[Gi.withoutOpacity]:!Y}]),style:{...S},children:(0,A.jsx)("div",{className:Gi.itemContent,ref:e=>{O.current[t]=e},children:(0,A.jsx)(wn,{placeholder:"quizAnswer",placeholderProps:{good:0===t},emptyLabel:(0,A.jsx)(I.sA,{id:"+Ok+7S",defaultMessage:"Answer"}),emptyClassName:Gi.emptyAnswer,isEmpty:!M,children:M?(0,A.jsxs)(la,{className:Gi.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:Gi.optionVisual,imageClassName:Gi.optionImage,layout:f||o||(j?"label-right":null),children:[$&&!h&&!0===a?(0,A.jsx)("span",{className:Gi.resultIcon,style:X(d,"backgroundColor"),children:(0,A.jsx)(yl.gc,{className:Gi.faIcon,icon:kl.e6})}):null,!h&&$&&!1===a?(0,A.jsx)("span",{className:Gi.resultIcon,style:X(u,"backgroundColor"),children:(0,A.jsx)(yl.gc,{className:Gi.faIcon,icon:Ml.GR})}):null]}):null})})},`answer-${t}`)}),{columnAlign:Q=null,columns:J=1,spacing:K=null,withSquareItems:ee=!1}=t||{};return(0,A.jsx)("div",{className:$t([Gi.container,w,{[Gi.answered]:$,[Gi.withIcon]:!h&&G,[Gi.withSquareItems]:!0===ee,[Gi.isPlaceholder]:M}]),children:null!==q||M?(0,A.jsx)(xi,{className:Gi.items,items:U,align:Q,columns:J,spacing:K}):null})}var Ui={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 Qi(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:C,animated:w,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!==C&&C,oe=void 0!==w&&w,se=void 0!==j&&j,re=void 0!==k&&k,ce=void 0!==M&&M,de=void 0!==N&&N,me=void 0!==$&&$,he=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,Ce=void 0===V?null:V,we=void 0===D?null:D,{isPlaceholder:je}=nt(),ke="split"===he,Me=ke?null:he;let Ne;t[0]!==_?(Ne=ge(_),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),Ae=null!==Y,Ie=null!==Y&&O[Y]?O[Y]:null;let Pe;t[4]!==Ie?(Pe=Ie||{},t[4]=Ie,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=ge(Ve)||ge(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=ue(De)||ue(W),t[9]=De,t[10]=W,t[11]=He):He=t[11];const Ze=He;let We;t[12]!==Z?(We=ge(Z)?Z:null,t[12]=Z,t[13]=We):We=t[13];const qe=We;let Ge;t[14]!==Ve?(Ge=ge(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,at,it;t[19]!==Ce||t[20]!==je||t[21]!==ze||t[22]!==tt?(lt=$t([Ui.container,Ce,{[Ui.isPlaceholder]:je,[Ui.resultVisible]:ze,[Ui.resultHidden]:tt}]),t[19]=Ce,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]!==me?(at=!me&&et?(0,A.jsx)(wn,{placeholder:(0,A.jsx)("div",{className:$t([Ui.index,"fs-3"]),children:"1 / 10"}),children:G>1?(0,A.jsx)(Nn,{transitions:ye,playing:pe,disabled:be,children:(0,A.jsx)(Pn,{className:Ui.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]=me,t[32]=at):at=t[32],t[33]===Symbol.for("react.memo_cache_sentinel")?(it=(0,A.jsx)(I.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,A.jsx)(Nn,{transitions:ye,playing:pe,disabled:be,children:(0,A.jsx)(ga,{..._,className:Ui.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,A.jsx)(wn,{placeholder:"title",emptyLabel:it,emptyClassName:Ui.emptyQuestion,placeholderClassName:"mb-4",isEmpty:ot,children:st},"question"),t[42]=ot,t[43]=st,t[44]=rt):rt=t[44],t[45]!==ke?(ct=ke?(0,A.jsx)(fa,{},"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,A.jsx)(Yi,{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]!==Ae||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,A.jsx)("div",{className:Ui.result,children:(0,A.jsx)("div",{className:Ui.resultContent,children:(0,A.jsx)(wn,{emptyLabel:Ae?(0,A.jsx)(I.sA,{id:"li7ADr",defaultMessage:"Result"}):null,isEmpty:Ae&&!Oe,emptyClassName:Ui.emptyResult,children:(Oe||Ze)&&null!==O?(0,A.jsxs)(Nn,{transitions:ye,playing:pe,delay:(1+O.length)*fe,disabled:be,children:[Oe?(0,A.jsx)(Pn,{...Ye||{},className:Ui.resultText,textStyle:{...te||null,...Xe||null}}):null,Ze?(0,A.jsx)(Kn,{media:De||W,width:"100%",height:"auto"}):null]}):null})})},"results"):null,t[71]=De,t[72]=Ae,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]!==at||t[87]!==rt||t[88]!==ct||t[89]!==ut||t[90]!==mt?(gt=[at,rt,ct,ut,mt],t[86]=at,t[87]=rt,t[88]=ct,t[89]=ut,t[90]=mt,t[91]=gt):gt=t[91],t[92]!==we||t[93]!==lt||t[94]!==gt||t[95]!==Me?(ht=(0,A.jsx)(va,{className:lt,verticalAlign:Me,style:we,children:gt}),t[92]=we,t[93]=lt,t[94]=gt,t[95]=Me,t[96]=ht):ht=t[96],ht}var Xi={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 Ji(e){return null!==e&&e.good}var Ki={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 eo(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,C=void 0!==u&&u,w=void 0===m?null:m,j=void 0===g?null:g,k="split"===h,M=k?null:h;let N;t[0]!==y?(N=ge(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=ge(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]!==w?(V=$t([Ki.container,w]),t[8]=w,t[9]=V):V=t[9],t[10]===Symbol.for("react.memo_cache_sentinel")?(D=(0,A.jsx)(I.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]!==C||t[16]!==x||t[17]!==v?(O=$?(0,A.jsx)(Nn,{transitions:v,playing:x,disabled:C,children:(0,A.jsx)(ga,{...y,className:Ki.title,textStyle:{...f,...R}})}):null,t[11]=$,t[12]=f,t[13]=y,t[14]=R,t[15]=C,t[16]=x,t[17]=v,t[18]=O):O=t[18],t[19]!==_||t[20]!==O?(H=(0,A.jsx)(wn,{placeholder:"title",emptyLabel:D,emptyClassName:Ki.emptyTitle,isEmpty:_,children:O},"title"),t[19]=_,t[20]=O,t[21]=H):H=t[21],t[22]!==k?(Z=k?(0,A.jsx)(fa,{},"spacer"):null,t[22]=k,t[23]=Z):Z=t[23],t[24]===Symbol.for("react.memo_cache_sentinel")?(W=(0,A.jsx)(I.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]!==C||t[30]!==x||t[31]!==S||t[32]!==v?(G=$?(0,A.jsx)(Nn,{transitions:v,playing:x,disabled:C,delay:S,children:(0,A.jsx)(Pn,{...p,className:Ki.description,textStyle:{...b,...E}})}):null,t[25]=p,t[26]=E,t[27]=$,t[28]=b,t[29]=C,t[30]=x,t[31]=S,t[32]=v,t[33]=G):G=t[33],t[34]!==q||t[35]!==G?(Y=(0,A.jsx)(wn,{placeholder:"text",emptyLabel:W,emptyClassName:Ki.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,A.jsx)(va,{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 to={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 lo(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,C=S?null:m;let w;t[0]!==g?(w=ge(g),t[0]=g,t[1]=w):w=t[1];const j=w;let k;t[2]!==h?(k=ge(h),t[2]=h,t[3]=k):k=t[3];const M=k;let N;t[4]!==y?(N=ge(y),t[4]=y,t[5]=N):N=t[5];const $=N;let F,T;t[6]!==b?(F=$t([to.container,b]),t[6]=b,t[7]=F):F=t[7],t[8]===Symbol.for("react.memo_cache_sentinel")?(T=(0,A.jsx)(I.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,A.jsx)(ga,{...g,className:to.title}):null,t[9]=j,t[10]=g,t[11]=z):z=t[11],t[12]!==R||t[13]!==z?(L=(0,A.jsx)(wn,{placeholder:"title",emptyLabel:T,emptyClassName:to.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,A.jsx)(I.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,A.jsx)(Pn,{...h,className:to.description}):null,t[16]=h,t[17]=M,t[18]=E):E=t[18],t[19]!==B||t[20]!==E?(V=(0,A.jsx)(wn,{placeholder:"text",emptyLabel:P,emptyClassName:to.emptyDescription,isEmpty:B,children:E},"description"),t[19]=B,t[20]=E,t[21]=V):V=t[21],t[22]!==S?(D=S?(0,A.jsx)(fa,{},"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,A.jsx)(Pn,{...y,className:to.label}):(0,A.jsx)(I.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,A.jsx)(wn,{placeholder:"button",children:(0,A.jsx)(ta,{disabled:p,focusable:f,buttonStyle:_,className:to.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]!==C?(W=(0,A.jsx)(va,{className:F,fullscreen:!0,verticalAlign:C,style:v,children:Z}),t[38]=v,t[39]=F,t[40]=Z,t[41]=C,t[42]=W):W=t[42],W}var no=[{id:"quiz",type:"screen",group:{label:(0,I.zR)({id:"ZiWlL6",defaultMessage:"Questions"}),order:7},title:(0,I.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:C,footer:w,background:j,current:k,preload:M,ready:N,transitions:$,transitionStagger:F,type:T,mediaRef:R,className:z}=e,L=void 0===a?"middle":a,I=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,G=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===C?null:C,K=void 0===w?null:w,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,de=(void 0===l?null:l)||"screen-id",ue=sl(void 0===T?null:T),{width:me,height:ge,resolution:he}=st(),{isView:pe,isPreview:fe,isPlaceholder:be,isEdit:ve,isStatic:xe,isCapture:Se}=nt(),Ce=!ne,{topHeight:we,bottomHeight:je,bottomSidesWidth:ke}=gt(),{open:Me}=ft(),{muted:Ne}=Qe(),{ref:$e,isCurrent:Fe}=Xe(te,!0),Te=te&&ne,Re=xe||Se||be||fe||ve,ze=te&&(pe||ve)&&(void 0!==Fe&&Fe||!pe),Le=te||le;let Ae;t[0]!==J?(Ae=re(J),t[0]=J,t[1]=Ae):Ae=t[1];const Ie=Ae;let Pe;t[2]!==K?(Pe=ce(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]!==pe||t[8]!==Me?(Ee=q(K,{isView:pe,current:te,openWebView:Me,isPreview:fe}),t[4]=te,t[5]=K,t[6]=fe,t[7]=pe,t[8]=Me,t[9]=Ee):Ee=t[9];const Ve=Ee,{ref:De,height:_e}=Dt(),Oe=void 0===_e?0:_e,{ref:He,height:Ze}=Dt(),We=void 0===Ze?0:Ze,qe=xe||Se;let Ge;t[10]!==B?(Ge=null!==B?B.findIndex(Ji):null,t[10]=B,t[11]=Ge):Ge=t[11];const Ye=Ge,Ue=null===Ye||-1===Ye,[Je,Ke]=(0,n.useState)(qe?Ye:null);let et;t[12]!==de?(et={screenId:de},t[12]=de,t[13]=et):et=t[13];const{create:tt}=Za(et);let lt;t[14]!==ue||t[15]!==Je?(lt=(e,t)=>{null===Je&&(Ke(t),ue("click_answer",`${Je+1}: ${e.label.body}`,{linkType:"quiz_answer",answer:e,answerIndex:t,isGood:e.good||!1}))},t[14]=ue,t[15]=Je,t[16]=lt):lt=t[16];const at=lt;let it,ot,rt,ct;t[17]!==te||t[18]!==ve||t[19]!==Je?(it=()=>{!te&&ve&&null!==Je&&Ke(null)},ot=[ve,te,Je,Ke],t[17]=te,t[18]=ve,t[19]=Je,t[20]=it,t[21]=ot):(it=t[20],ot=t[21]),(0,n.useEffect)(it,ot),t[22]!==B||t[23]!==pe||t[24]!==tt||t[25]!==Je?(rt=()=>{if(pe&&null!==Je){const{good:e,label:t}=null!==Je&&B?B[Je]:{},l=void 0!==e&&e,n=void 0===t?{}:t,{body:a}=n||{};tt({choice:(void 0===a?"":a)||Je,value:l?1:0})}},ct=[pe,Je,B,tt],t[22]=B,t[23]=pe,t[24]=tt,t[25]=Je,t[26]=rt,t[27]=ct):(rt=t[26],ct=t[27]),(0,n.useEffect)(rt,ct);const dt=!ve&&Re||!te,[ut,mt]=(0,n.useState)(!1);let ht;t[28]!==ue?(ht=e=>{const{initial:t}=e;t&&ue("scroll","Screen"),mt(!0)},t[28]=ue,t[29]=ht):ht=t[29];const yt=ht;let pt;t[30]===Symbol.for("react.memo_cache_sentinel")?(pt=()=>{mt(!1)},t[30]=pt):pt=t[30];const bt=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,Ct]=(0,n.useState)(!1);let wt;t[33]===Symbol.for("react.memo_cache_sentinel")?(wt=e=>{const{canScroll:t}=e;Ct(void 0!==t&&t)},t[33]=wt):wt=t[33];const jt=wt;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 Ft=Nt.length;let Tt,Rt;t[37]===Symbol.for("react.memo_cache_sentinel")?(Tt=()=>{Mt()},t[37]=Tt):Tt=t[37],t[38]!==Ft?(Rt=[Ft,Mt],t[38]=Ft,t[39]=Rt):Rt=t[39],(0,n.useEffect)(Tt,Rt);const zt="split"===L?null:L,Lt=ve&&null!==Je;let At,It,Pt;t[40]!==se||t[41]!==Ce?(At=$t([Xi.container,se,{[Xi.disabled]:Ce}]),t[40]=se,t[41]=Ce,t[42]=At):At=t[42],t[43]!==Lt?(It=Lt?(0,A.jsx)(El,{className:Xi.reset,icon:(0,A.jsx)(yl.gc,{icon:wl.ye,size:"md"}),onClick:Mt}):null,t[43]=Lt,t[44]=It):It=t[44],t[45]!==Ie||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]!==Je||t[55]!==we?(Pt=!be&&Ie?(0,A.jsx)("div",{className:$t([Xi.header,{[Xi.disabled]:null!==Je||ut&&!dt&&St}]),ref:De,style:{paddingTop:X/2,paddingLeft:X,paddingRight:X,paddingBottom:X,transform:fe?null:`translate(0, ${we}px)`},children:(0,A.jsx)(ua,{...J})}):null,t[45]=Ie,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]=Je,t[55]=we,t[56]=Pt):Pt=t[56];const Bt=te&&pe;let Et,Vt,_t,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]!==we?(Et=be?null:{paddingLeft:X,paddingRight:X,paddingTop:(fe?0:we)+(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]=we,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]!==pe||t[76]!==I||t[77]!==L||t[78]!==G||t[79]!==at||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]!==Je||t[91]!==Ue||t[92]!==Q?(Vt=(0,A.jsx)(Qi,{question:P,answers:B,keypadLayout:I,result:E,resultImage:V,answeredIndex:Je,buttonsLayout:D,buttonsStyle:_,buttonsTextStyle:H,inactiveButtonsStyle:O,inactiveButtonsTextStyle:Z,feedbackTextStyle:W,numbersTextStyle:G,goodAnswerColor:Y,badAnswerColor:U,withoutTrueFalse:Q,withoutGoodAnswer:Ue,focusable:Bt,animated:pe,showInstantAnswer:qe,withResult:!0,layout:L,transitions:ae,transitionPlaying:Te,transitionStagger:ie,transitionDisabled:Re,onAnswerClick:at,className:Xi.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]=pe,t[76]=I,t[77]=L,t[78]=G,t[79]=at,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]=Je,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?(_t=(0,A.jsxs)(Sa,{verticalAlign:zt,disabled:dt,onScrolledTrigger:xt,onScrolledBottom:yt,onScrolledNotBottom:bt,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]=_t):_t=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,A.jsx)("div",{ref:He,className:$t([Xi.footer,{[Xi.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,A.jsx)(ra,{...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]!==It||t[115]!==_t||t[116]!==Ot||t[117]!==me?(Ht=(0,A.jsxs)(Yn,{width:me,height:ge,className:Xi.content,children:[It,_t,Ot]}),t[113]=ge,t[114]=It,t[115]=_t,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,A.jsx)(Gn,{background:ee,width:me,height:ge,resolution:he,playing:ze,muted:Ne,shouldLoad:Le,mediaRef:ye($e,oe),withoutVideo:fe,className:Xi.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]!==At||t[132]!==Ht||t[133]!==Zt?(Wt=(0,A.jsxs)("div",{className:At,"data-screen-ready":!0,children:[Ht,Zt]}),t[131]=At,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,I.zR)({id:"hVE7TA",defaultMessage:"Question"})},{name:"answers",type:"quiz-answers",theme:{label:{textStyle:"button"}},label:(0,I.zR)({id:"KHWeV7",defaultMessage:"Answers"})},{name:"keypadLayout",type:"keypad-layout",isList:!0,defaultValue:{columnAlign:"middle",columns:1,spacing:10,withSquareItems:!1},label:(0,I.zR)({id:"FjuRaw",defaultMessage:"Keypad settings"})},{name:"withoutTrueFalse",type:"toggle",label:(0,I.zR)({id:"LFziCV",defaultMessage:"Without right/wrong icon"})},{name:"result",type:"text-element",theme:{textStyle:"text"},label:(0,I.zR)({id:"iQ5Uf7",defaultMessage:"Default feedback"})},{name:"resultImage",type:"visual",label:(0,I.zR)({id:"yA4B6h",defaultMessage:"Result feedback image"})},{type:"fields",isList:!0,label:(0,I.zR)({id:"R9DB4a",defaultMessage:"Styles"}),fields:[{name:"buttonsLayout",type:"button-layout",label:(0,I.zR)({id:"8Dmlwh",defaultMessage:"Answer button layout"})},{name:"buttonsTextStyle",type:"text-style-form",label:(0,I.zR)({id:"gwPu/I",defaultMessage:"Buttons text"})},{name:"buttonsStyle",type:"box-style-form",label:(0,I.zR)({id:"l5uLMd",defaultMessage:"Buttons"})},{name:"inactiveButtonsTextStyle",type:"text-style-form",label:(0,I.zR)({id:"my7Kox",defaultMessage:"Inactive buttons text"})},{name:"inactiveButtonsStyle",type:"box-style-form",label:(0,I.zR)({id:"xlFOg3",defaultMessage:"Inactive buttons"})},{name:"feedbackTextStyle",type:"text-style-form",label:(0,I.zR)({id:"4w7K2K",defaultMessage:"Feedback text"})},{name:"goodAnswerColor",type:"color",label:(0,I.zR)({id:"hZcXoa",defaultMessage:"Good answer icon color"})},{name:"badAnswerColor",type:"color",label:(0,I.zR)({id:"NbTtNk",defaultMessage:"Bad answer icon color"})}]},{name:"background",type:"background",label:(0,I.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,I.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,I.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]},{id:"quiz-multiple",type:"screen",group:{label:(0,I.zR)({id:"ZiWlL6",defaultMessage:"Questions"}),order:7},title:(0,I.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:C=null,introButton:w=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=sl(R),{width:E,height:V,resolution:D}=st(),{topHeight:_,bottomHeight:O,bottomSidesWidth:H}=gt(),{isView:Z,isPreview:W,isPlaceholder:G,isEdit:Y,isStatic:U,isCapture:Q}=nt(),{muted:X}=Qe(),{open:J}=ft(),K=at(),[ee=null,te=0]=null!==K?K.split("."):[],le=N,ne=U||Q||G||W||Y,ae=ge(j),ie=re(k),oe=ce(M),se=q(M,{isView:Z,current:N,openWebView:J,isPreview:W}),{ref:de,height:me=0}=Dt(),{ref:he,height:pe=0}=Dt(),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:!G&&be||(Se=0);const[Ce,we]=(0,n.useState)(Se);(0,n.useEffect)(()=>{W&&be&&"intro"!==Ce&&we("intro")},[W,be,Ce,we]);const je=(0,n.useCallback)((e,t)=>{xe({...ve,[Ce]:t}),B("click_answer",`Question #${Ce+1} ${t+1}: ${e.label.body}`,{linkType:"quiz_answer",question:o[Ce],questionIndex:Ce,answer:e,answerIndex:t})},[ve,xe,B,o,Ce]),ke=(0,n.useCallback)(()=>{we(0)},[we]);(0,n.useEffect)(()=>{!N&&Y&&null!==ve&&xe(null)},[Y,N,ve,xe]);const Me=null!==o&&o.length>0&&o[Ce]||{},{text:Ne=null,answers:$e=[],background:Fe=null,layout:Te=null,keypadLayout:Re=null,result:ze=null,resultImage:Le=null}=Me||{},Ae=null!==ve&&void 0!==ve[Ce]?ve[Ce]:null,Ie=null!==Ae&&void 0!==$e[Ae]?$e[Ae]:null,{result:Pe=null}=Ie||{},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=ge(ze),_e=ue(Le),Oe=ge(Pe),He=De||_e||Oe,Ze=(0,n.useCallback)(()=>{if(Y||W)return;const e=Ce+1,t=o.length;e<t?we(e):e===t&&we("results")},[o,Ce,we,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"===Ce,Ge="results"===Ce,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:Je=null,layout:Ke=null}=Ue||{},{create:et}=Za({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?we(parseInt(te,10)):"results"===ee?we("results"):"intro"===ee&&we("intro"))},[ee,te,Y,W,we]);let tt=S,lt="background";qe&&null!==C?(tt=C,lt="results"):Ge&&null!==Je?(tt=Je,lt="results"):Ye&&null!==Fe&&(tt=Fe,lt=`question_${Ce}`);const{ref:it,isCurrent:ot=!1}=Xe(N,null!==tt,lt),rt=N&&(Z||Y)&&(ot||!Z),ct=N||$,dt=(0,n.useRef)(Ce),ut=(0,n.useMemo)(()=>{if(Ce===dt.current)return null;const{current:e}=dt;return dt.current=Ce,"intro"===Ce||"results"===e||e>Ce?"left":(dt.current=Ce,"right")},[Ce]),mt=!Y&&ne||!N||qe,[ht,yt]=(0,n.useState)(!1),pt=(0,n.useCallback)(({initial:e})=>{e&&B("scroll","Screen"),yt(!0)},[B]),bt=(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),Ct=(0,n.useCallback)(({canScroll:e=!1})=>{St(e)},[St]),wt=(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!==Ae,Nt=[];qe&&Nt.push({key:"intro",element:(0,A.jsx)(lo,{title:a,description:i,layout:l||t,button:w,buttonDisabled:(o||[]).length<1||Y||W,focusable:N&&Z,transitions:F,transitionPlaying:le,transitionStagger:T,transitionDisabled:ne,className:Xi.intro,style:G?null:{paddingLeft:x,paddingRight:x,paddingTop:(W?0:_)+x,paddingBottom:(N&&!W?O:0)+(pe||x)},onClickButton:ke})}),Ye&&Nt.push({key:`question-${Ce}`,element:(0,A.jsx)(Qi,{index:Ce,totalCount:(o||[]).length,question:Ne,answers:$e,keypadLayout:Re,answeredIndex:Ae,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:Xi.question,style:G?null:{paddingLeft:x,paddingRight:x,paddingTop:(N&&!W?_:0)+(me||x),paddingBottom:(N&&!W?O:0)+(pe||x)}})}),He&&null!==Ae&&Nt.push({key:"next",element:(0,A.jsx)("div",{className:Xi.next,style:G?null:{paddingLeft:x,paddingRight:x,paddingTop:(N&&!W?_:0)+(me||x),paddingBottom:(N&&!W?O:0)+(pe||x)},children:(0,A.jsx)(ta,{disabled:null===Ae,focusable:!0,buttonStyle:null!==j?j.buttonStyle:null,className:Xi.nextButton,onClick:Ze,children:ae?(0,A.jsx)(Pn,{...j,className:Xi.label}):(0,A.jsx)("span",{className:Xi.label,children:(0,A.jsx)(I.sA,{id:"SVLGTA",defaultMessage:"Next"})})})})}),Ge&&Nt.push({key:"results",element:(0,A.jsx)(eo,{...Ue,resultsHeadingStyle:h,resultsTextStyle:y,layout:Ke||t,transitions:F,transitionPlaying:le,transitionStagger:T,transitionDisabled:ne,className:Xi.results,style:G?null:{paddingLeft:x,paddingRight:x,paddingTop:(N&&!W?_:0)+(me||x),paddingBottom:(N&&!W?O:0)+(pe||x)}})});const Ft=(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,A.jsxs)("div",{className:$t([Xi.container,L]),"data-screen-ready":!0,children:[(0,A.jsxs)(Yn,{width:E,height:V,className:Xi.content,children:[kt&&null!==We&&We>0?(0,A.jsxs)("div",{className:Xi.points,children:[`${We} `,(0,A.jsx)(I.sA,{id:"Xr1v8l",defaultMessage:"points gained"})]}):null,Mt?(0,A.jsx)(ta,{className:Xi.reset,icon:(0,A.jsx)(yl.gc,{icon:wl.ye,size:"md"}),onClick:wt}):null,!G&&ie?(0,A.jsx)("div",{className:$t([Xi.header,{[Xi.disabled]:ht&&!mt&&xt}]),ref:de,style:{paddingTop:x/2,paddingLeft:x,paddingRight:x,paddingBottom:x,transform:W?null:`translate(0, ${_}px)`},children:(0,A.jsx)(ua,{...k})}):null,(0,A.jsx)(Sa,{verticalAlign:jt,disabled:mt,onScrolledTrigger:vt,onScrolledBottom:pt,onScrolledNotBottom:bt,onScrollHeightChange:Ct,withShadow:!0,children:(0,A.jsx)("div",{style:{position:"absolute",inset:"0"},children:Ft((e,t)=>{const l=Nt.some(e=>e.key===t.key);return(0,A.jsx)(Tl.CS.div,{style:{...e,...l?{position:"relative",zIndex:1,top:0,left:0,width:"100%",minHeight:He&&null!==Ae?0:"100%"}:{position:"absolute",top:0,left:0,width:"100%",minHeight:"100%",zIndex:0}},children:t.element})})})}),!G&&oe?(0,A.jsx)("div",{ref:he,className:$t([Xi.footer,{[Xi.disabled]:!ht}]),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,A.jsx)(ra,{...se})}):null]}),G?null:Rt((e,t)=>(0,A.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,A.jsx)(Gn,{background:t.background,width:E,height:V,resolution:D,playing:t.key===Tt.key&&rt,muted:X,shouldLoad:ct,mediaRef:t.key===Tt.key?ye(it,z):null,className:Xi.background,withoutVideo:W})}))]})},layouts:["top","middle","bottom","split"],states:[{id:"intro",label:(0,I.zR)({id:"BgrRxZ",defaultMessage:"Intro"}),fields:[{name:"introLayout",type:"screen-layout",defaultValue:"middle",screenState:"intro",label:(0,I.zR)({id:"4iBXj2",defaultMessage:"Layout"})},{name:"title",type:"heading-element",theme:{textStyle:"heading2"},label:(0,I.zR)({id:"+AEVbJ",defaultMessage:"Title"})},{name:"description",type:"text-element",theme:{textStyle:"text"},label:(0,I.zR)({id:"ZCe0r4",defaultMessage:"Description"})},{name:"introButton",type:"button-element",theme:{textStyle:"button"},label:(0,I.zR)({id:"i6bmbD",defaultMessage:"Button"})},{name:"introBackground",type:"background",label:(0,I.zR)({id:"cDj1mZ",defaultMessage:"Background"})}]},{id:"questions",label:(0,I.zR)({id:"VMd1oG",defaultMessage:"Questions"}),repeatable:!0,fieldName:"questions",fields:[{name:"text",type:"heading-element",theme:{textStyle:"heading2"},label:(0,I.zR)({id:"hVE7TA",defaultMessage:"Question"})},{name:"answers",type:"quiz-points-answers",theme:{label:{textStyle:"button"}},label:(0,I.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,I.zR)({id:"FjuRaw",defaultMessage:"Keypad settings"})},{name:"background",type:"background",label:(0,I.zR)({id:"cDj1mZ",defaultMessage:"Background"})}]},{id:"results",label:(0,I.zR)({id:"uiTxd7",defaultMessage:"Results"}),repeatable:!0,fields:[{name:"layout",type:"screen-layout",defaultValue:"top",screenState:"results",label:(0,I.zR)({id:"4iBXj2",defaultMessage:"Layout"})},{name:"title",type:"heading-element",theme:{textStyle:"heading2"},label:(0,I.zR)({id:"+AEVbJ",defaultMessage:"Title"})},{name:"description",type:"text-element",theme:{textStyle:"text"},label:(0,I.zR)({id:"ZCe0r4",defaultMessage:"Description"})},{name:"points",type:"number",isHorizontal:!0,label:(0,I.zR)({id:"jWAJW4",defaultMessage:"Points"}),help:(0,I.zR)({id:"JoyIgA",defaultMessage:"Minimum points for this result"})},{name:"background",type:"background",label:(0,I.zR)({id:"cDj1mZ",defaultMessage:"Background"})}]}],fields:[{name:"layout",type:"screen-layout",defaultValue:"top",label:(0,I.zR)({id:"OPxJx/",defaultMessage:"Layout"})},{type:"fields",label:(0,I.zR)({id:"LOknw0",defaultMessage:"Styles"}),isList:!0,fields:[{name:"buttonsStyle",type:"box-style-form",label:(0,I.zR)({id:"l5uLMd",defaultMessage:"Buttons"})},{name:"buttonsTextStyle",type:"text-style-form",label:(0,I.zR)({id:"gwPu/I",defaultMessage:"Buttons text"})},{name:"inactiveButtonsTextStyle",type:"text-style-form",label:(0,I.zR)({id:"my7Kox",defaultMessage:"Inactive buttons text"})},{name:"inactiveButtonsStyle",type:"box-style-form",label:(0,I.zR)({id:"xlFOg3",defaultMessage:"Inactive buttons"})},{name:"questionsHeadingStyle",type:"text-style-form",label:(0,I.zR)({id:"+FHxPO",defaultMessage:"Questions title"})},{name:"resultsHeadingStyle",type:"text-style-form",label:(0,I.zR)({id:"BnRW4y",defaultMessage:"Results title"})},{name:"resultsTextStyle",type:"text-style-form",label:(0,I.zR)({id:"uDHTZn",defaultMessage:"Results description"})},{name:"numbersTextStyle",type:"text-style-form",label:(0,I.zR)({id:"iltluX",defaultMessage:"Numbers text"})}]},{name:"nextButton",type:"button-element",theme:{textStyle:"button"},label:(0,I.zR)({id:"Yu/PB5",defaultMessage:"Next button"})},{name:"background",type:"background",label:(0,I.zR)({id:"cDj1mZ",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,I.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,I.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]}],ao="micromag-element-quote-showEmpty";function io(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,C=void 0===x?null:x;let w;t[2]===Symbol.for("react.memo_cache_sentinel")?(w={},t[2]=w):w=t[2];let j,k=w;t[3]!==S?(j=null!==S?le(S):null,t[3]=S,t[4]=j):j=t[4];let M,N=j;t[5]!==C?(M=null!==C?te(C):null,t[5]=C,t[6]=M):M=t[6];const $=M;if(null!==m){const e=k;let l,n;t[7]!==m?(l=ne(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=ae(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=ne(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,A.jsx)(Tn,{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,A.jsx)($n,{selector:`#${O(T)}`,style:$}):null,t[24]=$,t[25]=T,t[26]=z):z=t[26];const L=y&&null!==f;let I,P,B,E;return t[27]!==p||t[28]!==f||t[29]!==y||t[30]!==L?(I=$t(["micromag-element-quote-container",p,{[ao]:y,[f]:L}]),t[27]=p,t[28]=f,t[29]=y,t[30]=L,t[31]=I):I=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]!==I||t[37]!==P?(B=(0,A.jsx)("blockquote",{id:T,className:I,style:k,dangerouslySetInnerHTML:P}),t[34]=k,t[35]=T,t[36]=I,t[37]=P,t[38]=B):B=t[38],t[39]!==R||t[40]!==z||t[41]!==B?(E=(0,A.jsxs)(A.Fragment,{children:[R,z,B]}),t[39]=R,t[40]=z,t[41]=B,t[42]=E):E=t[42],E}var oo={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"},so={id:"quote",type:"screen",group:{label:(0,I.zR)({id:"fIawTr",defaultMessage:"Text"}),order:2},title:(0,I.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,C=void 0===u||u,w=void 0===m?null:m,j=void 0===g?null:g,{width:k,height:M,resolution:N}=st(),{isView:$,isPreview:F,isPlaceholder:T,isEdit:R}=nt(),{topHeight:z,bottomHeight:L,bottomSidesWidth:P}=gt(),{open:B}=ft(),{muted:E}=Qe(),{ref:V,isCurrent:D}=Xe(S,!0),_=void 0!==D&&D,O="split"===h,H="top"===h,Z="middle"===h,W="bottom"===h,G=O?null:h;let Y;t[0]!==v?(Y=re(v),t[0]=v,t[1]=Y):Y=t[1];const U=Y;let Q;t[2]!==x?(Q=ce(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=q(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,de,ue,me,he,pe,fe,be,ve,xe,Se,Ce,we,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]!==C||t[26]!==y||t[27]!==f||t[28]!==G||t[29]!==L||t[30]!==z||t[31]!==k){const e=ge(y);ae=ge(p);const l=e&&ae&&!O;ne=S&&($||R)&&(_||!$),ie=S||C,t[57]!==j||t[58]!==T?(Ne=$t([oo.container,j,{[oo.isPlaceholder]:T}]),t[57]=j,t[58]=T,t[59]=Ne):Ne=t[59],$e=!0,le=Yn,je=k,ke=M,Me=oo.content,te=va,pe=oo.layout,fe=!0,be=G,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,A.jsx)("div",{style:{paddingBottom:f},children:(0,A.jsx)(ua,{...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,A.jsx)(fa,{},"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?(Ce=!T&&U&&W?(0,A.jsx)(fa,{},"spacer-cta-top"):null,t[77]=U,t[78]=W,t[79]=T,t[80]=Ce):Ce=t[80],t[81]!==X||t[82]!==U||t[83]!==Z||t[84]!==T?(we=!T&&U&&!X&&Z?(0,A.jsx)(fa,{},"spacer-cta-top"):null,t[81]=X,t[82]=U,t[83]=Z,t[84]=T,t[85]=we):we=t[85],ee=wn,oe="quote",se="quote",t[86]===Symbol.for("react.memo_cache_sentinel")?(de=(0,A.jsx)(I.sA,{id:"CrzYgw",defaultMessage:"Quote"}),t[86]=de):de=t[86],ue=oo.emptyQuote,me=!e,he=e?(0,A.jsx)(io,{className:$t([oo.quote,{[oo.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]=C,t[26]=y,t[27]=f,t[28]=G,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]=de,t[41]=ue,t[42]=me,t[43]=he,t[44]=pe,t[45]=fe,t[46]=be,t[47]=ve,t[48]=xe,t[49]=Se,t[50]=Ce,t[51]=we,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],de=t[40],ue=t[41],me=t[42],he=t[43],pe=t[44],fe=t[45],be=t[46],ve=t[47],xe=t[48],Se=t[49],Ce=t[50],we=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]!==de||t[91]!==ue||t[92]!==me||t[93]!==he?(Fe=(0,A.jsx)(ee,{placeholder:se,emptyLabel:de,emptyClassName:ue,isEmpty:me,children:he},oe),t[87]=ee,t[88]=oe,t[89]=se,t[90]=de,t[91]=ue,t[92]=me,t[93]=he,t[94]=Fe):Fe=t[94],t[95]!==O?(Te=O?(0,A.jsx)(fa,{},"spacer"):null,t[95]=O,t[96]=Te):Te=t[96],t[97]===Symbol.for("react.memo_cache_sentinel")?(Re=(0,A.jsx)(I.sA,{id:"xYqGzM",defaultMessage:"Author"}),t[97]=Re):Re=t[97];const ze=!ae;let Le,Ae,Ie,Pe,Be,Ee,Ve,De,_e;return t[98]!==p||t[99]!==ae?(Le=ae?(0,A.jsx)(Pn,{className:oo.author,...p}):null,t[98]=p,t[99]=ae,t[100]=Le):Le=t[100],t[101]!==ze||t[102]!==Le?(Ae=(0,A.jsx)(wn,{placeholder:"subtitle",emptyLabel:Re,emptyClassName:oo.emptyAuthor,placeholderClassName:"mt-4",isEmpty:ze,children:Le},"author"),t[101]=ze,t[102]=Le,t[103]=Ae):Ae=t[103],t[104]!==X||t[105]!==Z||t[106]!==T||t[107]!==H?(Ie=!T&&X&&(H||Z)?(0,A.jsx)(fa,{},"spacer-cta-bottom"):null,t[104]=X,t[105]=Z,t[106]=T,t[107]=H,t[108]=Ie):Ie=t[108],t[109]!==X||t[110]!==U||t[111]!==Z||t[112]!==T?(Pe=!T&&U&&!X&&Z?(0,A.jsx)(fa,{},"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,A.jsx)("div",{style:{paddingTop:f,paddingLeft:Math.max(P-f,0),paddingRight:Math.max(P-f,0)},children:(0,A.jsx)(ra,{...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]!==pe||t[122]!==fe||t[123]!==be||t[124]!==ve||t[125]!==xe||t[126]!==Se||t[127]!==Ce||t[128]!==we||t[129]!==Fe||t[130]!==Te||t[131]!==Ae||t[132]!==Ie||t[133]!==Pe||t[134]!==Be?(Ee=(0,A.jsxs)(te,{className:pe,fullscreen:fe,verticalAlign:be,style:ve,children:[xe,Se,Ce,we,Fe,Te,Ae,Ie,Pe,Be]}),t[120]=te,t[121]=pe,t[122]=fe,t[123]=be,t[124]=ve,t[125]=xe,t[126]=Se,t[127]=Ce,t[128]=we,t[129]=Fe,t[130]=Te,t[131]=Ae,t[132]=Ie,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,A.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]!==w||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,A.jsx)(Gn,{background:b,width:k,height:M,resolution:N,playing:ne,muted:E,shouldLoad:ie,mediaRef:ye(V,w),withoutVideo:F,className:oo.background}),t[142]=b,t[143]=ne,t[144]=w,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,A.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,I.zR)({id:"4iBXj2",defaultMessage:"Layout"})},{name:"quote",type:"heading-element",fieldType:"multi",theme:{textStyle:"heading2"},label:(0,I.zR)({id:"88/Ge8",defaultMessage:"Quote"})},{name:"author",type:"text-element",theme:{textStyle:"text"},label:(0,I.zR)({id:"73hxYw",defaultMessage:"Author"})},{name:"background",type:"background",label:(0,I.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,I.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,I.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]},ro={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 co=[null];function uo(){return{}}var mo={id:"ranking",type:"screen",group:{label:(0,I.zR)({id:"cGItoy",defaultMessage:"List"}),order:8},title:(0,I.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,C=void 0===o?co:o,w=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=sl(void 0===f?null:f),{width:E,height:V,resolution:D}=st(),{topHeight:_,bottomHeight:O,bottomSidesWidth:H}=gt(),{open:Z}=ft(),{muted:W}=Qe(),{ref:G,isCurrent:Y}=Xe(R,!0),U=void 0!==Y&&Y,{isView:Q,isPreview:X,isPlaceholder:J,isEdit:K,isStatic:ee,isCapture:te}=nt();let le;t[0]!==J||t[1]!==C?(le=J?[...new Array(10)].map(uo):C||[null],t[0]=J,t[1]=C,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 de;t[3]!==S?(de=ge(S),t[3]=S,t[4]=de):de=t[4];const ue=de;let me,he;t[5]===Symbol.for("react.memo_cache_sentinel")?(me=(0,A.jsx)(I.sA,{id:"BSTWf8",defaultMessage:"Title"}),he=$t([ro.empty,ro.emptyTitle]),t[5]=me,t[6]=he):(me=t[5],he=t[6]);const pe=!ue;let fe,be;t[7]!==ue||t[8]!==S?(fe=ue?(0,A.jsx)(ga,{className:ro.title,...S}):null,t[7]=ue,t[8]=S,t[9]=fe):fe=t[9],t[10]!==pe||t[11]!==fe?(be=(0,A.jsx)(wn,{placeholder:"Title",emptyLabel:me,emptyClassName:he,isEmpty:pe,placeholderClassName:"mb-3",children:fe}),t[10]=pe,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]!==w||t[19]!==ae||t[20]!==k||t[21]!==xe){let e;t[23]!==M||t[24]!==J||t[25]!==j||t[26]!==w||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=ge(a),s=ge(i),{textStyle:r}=a||{},c=void 0===r?null:r,{textStyle:d}=i||{},u=void 0===d?null:d,m=(0,A.jsx)("div",{className:ro.itemTitle,children:(0,A.jsx)(wn,{placeholder:"title",emptyLabel:(0,A.jsx)(I.sA,{id:"bmO4Ss",defaultMessage:"Entry Title"}),emptyClassName:ro.empty,isEmpty:!o,children:o?(0,A.jsx)(ga,{...a,textStyle:{...w||null,...c}}):null})}),g=(0,A.jsx)("div",{className:ro.description,children:(0,A.jsx)(wn,{placeholder:"text",emptyLabel:(0,A.jsx)(I.sA,{id:"507VAi",defaultMessage:"Description"}),emptyClassName:ro.empty,isEmpty:!s,placeholderClassName:"mt-2",children:s?(0,A.jsx)(Pn,{...i,textStyle:{...j||null,...u}}):null})}),h=`${M?t+1:ae-t}`;return(0,A.jsxs)("div",{className:ro.item,children:[(0,A.jsx)("div",{className:ro.rank,children:J?h:(0,A.jsx)(Pn,{className:ro.rankText,body:h,textStyle:k})}),(0,A.jsxs)("div",{className:ro.label,children:[m,g]})]},`item-${t}`)},t[23]=M,t[24]=J,t[25]=j,t[26]=w,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]=w,t[19]=ae,t[20]=k,t[21]=xe,t[22]=Se}else Se=t[22];const Ce=Se;let we;t[30]!==F?(we=re(F),t[30]=F,t[31]=we):we=t[31];const je=we;let ke;t[32]!==T?(ke=ce(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=q(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}=Dt(),Le=void 0===ze?0:ze;let Ae;t[40]!==B?(Ae=e=>{const{initial:t}=e;t&&B("scroll","Screen"),Te(!0)},t[40]=B,t[41]=Ae):Ae=t[41];const Ie=Ae;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=ro[`${x}Layout`],_e=null!==x;let Oe,He,Ze,We,qe,Ge,Ye,Ue,Je,Ke;return t[45]!==P||t[46]!==J||t[47]!==De||t[48]!==_e?(Oe=$t([ro.container,P,{[De]:_e,[ro.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,A.jsx)("div",{style:{paddingTop:N/2+_,paddingLeft:N,paddingRight:N},children:(0,A.jsx)(ua,{...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]!==Ce?(We=(0,A.jsx)("div",{className:ro.elementsContainer,children:Ce}),t[65]=Ce,t[66]=We):We=t[66],t[67]!==Ze||t[68]!==We||t[69]!==ve?(qe=(0,A.jsxs)(va,{className:ro.layout,style:Ze,children:[ve,We]}),t[67]=Ze,t[68]=We,t[69]=ve,t[70]=qe):qe=t[70],t[71]!==Ie||t[72]!==Ve||t[73]!==ie||t[74]!==He||t[75]!==qe?(Ge=(0,A.jsxs)(Sa,{className:ro.scroll,verticalAlign:"middle",disabled:ie,onScrolledTrigger:Ve,onScrolledBottom:Ie,onScrolledNotBottom:Be,withShadow:!0,children:[He,qe]}),t[71]=Ie,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,A.jsx)("div",{ref:Re,className:$t([ro.callToAction,{[ro.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,A.jsx)(ra,{...$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,A.jsxs)(Yn,{width:E,height:V,className:ro.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]!==G||t[100]!==se||t[101]!==W||t[102]!==D||t[103]!==E?(Je=J?null:(0,A.jsx)(Gn,{background:$,width:E,height:V,resolution:D,playing:oe,muted:W,shouldLoad:se,mediaRef:ye(G,L),withoutVideo:X,className:ro.background}),t[93]=$,t[94]=oe,t[95]=L,t[96]=V,t[97]=J,t[98]=X,t[99]=G,t[100]=se,t[101]=W,t[102]=D,t[103]=E,t[104]=Je):Je=t[104],t[105]!==Oe||t[106]!==Ue||t[107]!==Je?(Ke=(0,A.jsxs)("div",{className:Oe,"data-screen-ready":!0,children:[Ue,Je]}),t[105]=Oe,t[106]=Ue,t[107]=Je,t[108]=Ke):Ke=t[108],Ke},layouts:["side","over"],fields:[{name:"layout",type:"screen-layout",defaultValue:"side",label:(0,I.zR)({id:"4iBXj2",defaultMessage:"Layout"})},{name:"title",type:"heading-element",theme:{textStyle:"heading1"},label:(0,I.zR)({id:"N25iDO",defaultMessage:"Title"})},{name:"items",type:"entries",theme:{title:{textStyle:"heading2"},description:{textStyle:"text"}},label:(0,I.zR)({id:"sESmah",defaultMessage:"Entries"})},{type:"fields",label:(0,I.zR)({id:"xac4z/",defaultMessage:"Entry styles"}),isList:!0,fields:[{name:"itemTitleStyle",type:"text-style-form",label:(0,I.zR)({id:"+AEVbJ",defaultMessage:"Title"})},{name:"itemDescriptionStyle",type:"text-style-form",label:(0,I.zR)({id:"ZCe0r4",defaultMessage:"Description"})},{name:"numbersStyle",type:"text-style-form",theme:{textStyle:"heading1"},label:(0,I.zR)({id:"UdrdRF",defaultMessage:"Numbers style"})}]},{name:"ascending",type:"toggle",label:(0,I.zR)({id:"9DhYaZ",defaultMessage:"Ascending"})},{name:"background",type:"background",label:(0,I.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,I.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,I.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]},go=l(4625);function ho(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=$t([a]),t[0]=a,t[1]=s):s=t[1],t[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,A.jsxs)("g",{clipPath:"url(#clip0_837_18233)",children:[(0,A.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,A.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,A.jsx)("defs",{children:(0,A.jsx)("clipPath",{id:"clip0_837_18233",children:(0,A.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,A.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 yo(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=$t([a]),t[0]=a,t[1]=s):s=t[1],t[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,A.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,A.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,A.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 po(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=$t([a]),t[0]=a,t[1]=s):s=t[1],t[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,A.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,A.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 fo={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 bo({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=X(b,"color");null!==c&&(v={...v,...ne(c)}),null!==r&&(v={...v,...ee(r)});const[x,S]=(0,n.useState)(!1),C=(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]),w=(0,n.useCallback)(e=>{null!==g&&g(e)},[g]),j=(0,n.useMemo)(()=>({className:$t([fo.button,a]),url:o,onShareWindowClose:()=>{null!==h&&h()}}),[o,h]),k=(0,n.useMemo)(()=>({className:fo.icon,size:d,bgStyle:{fill:"none"},iconFillColor:"currentColor"}),[d]),M=[{id:"facebook",button:(0,A.jsxs)(go.uI,{...j,quote:i,beforeOnClick:()=>(w("Facebook"),Promise.resolve()),tabIndex:y?null:"-1",style:v,children:[(0,A.jsx)(go.ik,{...k}),(0,A.jsx)("div",{className:$t([fo.label,l]),children:"Facebook"}),(0,A.jsx)("div",{className:fo.spacer,style:{width:`${d}px`}})]})},{id:"twitter",button:(0,A.jsxs)(go.r6,{...j,title:i,beforeOnClick:()=>(w("Twitter"),Promise.resolve()),tabIndex:y?null:"-1",style:v,children:[(0,A.jsx)(go.Fi,{...k}),(0,A.jsx)("div",{className:$t([fo.label,l]),children:"X (Twitter)"}),(0,A.jsx)("div",{className:fo.spacer,style:{width:`${d}px`}})]})},{id:"linkedin",button:(0,A.jsxs)(go.wk,{...j,title:i,beforeOnClick:()=>(w("LinkedIn"),Promise.resolve()),tabIndex:y?null:"-1",style:v,children:[(0,A.jsx)(go._z,{...k}),(0,A.jsx)("div",{className:$t([fo.label,l]),children:"LinkedIn"}),(0,A.jsx)("div",{className:fo.spacer,style:{width:`${d}px`}})]})},{id:"whatsapp",button:(0,A.jsxs)(go.Kz,{...j,title:i,beforeOnClick:()=>(w("Whatsapp"),Promise.resolve()),tabIndex:y?null:"-1",style:v,children:[(0,A.jsx)(go.Y4,{...k}),(0,A.jsx)("div",{className:$t([fo.label,l]),children:"Whatsapp"}),(0,A.jsx)("div",{className:fo.spacer,style:{width:`${d}px`}})]})},{id:"email",button:(0,A.jsxs)(go.Ot,{...j,subject:i,beforeOnClick:()=>(w("Email"),Promise.resolve()),tabIndex:y?null:"-1",style:v,children:[(0,A.jsx)(ho,{...k}),(0,A.jsx)("div",{className:$t([fo.label,l]),children:(0,A.jsx)(I.sA,{id:"Lrwi2G",defaultMessage:"Email"})}),(0,A.jsx)("div",{className:fo.spacer,style:{width:`${d}px`}})]})},{id:"sms",button:(0,A.jsxs)(El,{className:$t([fo.button,a]),href:`sms:?&body=${o}`,focusable:y,style:v,external:!0,withoutBootstrapStyles:!0,children:[(0,A.jsx)(po,{...k}),(0,A.jsx)("div",{className:$t([fo.label,l]),children:(0,A.jsx)("span",{className:fo.labelText,children:(0,A.jsx)(I.sA,{id:"dSfmnf",defaultMessage:"SMS"})})}),(0,A.jsx)("div",{className:fo.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,A.jsx)("div",{className:$t([fo.container,e]),children:(0,A.jsxs)("div",{className:fo.options,children:[N?(0,A.jsx)("div",{className:$t([fo.item,t,{[fo.isLinkCopied]:x}]),children:(0,A.jsxs)(El,{className:$t([fo.button,a]),onClick:C,focusable:y,style:v,withoutBootstrapStyles:!0,children:[(0,A.jsx)(yo,{...k}),(0,A.jsx)("div",{className:$t([fo.label,l]),children:(0,A.jsxs)("span",{className:fo.labelText,children:[x?null:(0,A.jsx)(I.sA,{id:"D21uVQ",defaultMessage:"Copy link"}),x?(0,A.jsx)(I.sA,{id:"xFlbR7",defaultMessage:"Link copied!"}):null]})}),(0,A.jsx)("div",{className:fo.spacer,style:{width:`${d}px`}})]})}):null,$.map(({id:e,button:l})=>(0,A.jsx)("div",{className:$t([fo.item,t]),children:l},e))]})})}var vo={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"},xo={id:"share",type:"screen",group:{label:(0,I.zR)({id:"64JlRq",defaultMessage:"Share"}),order:12},title:(0,I.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}=st(),{isView:S,isPreview:C,isPlaceholder:w,isEdit:j}=nt(),{topHeight:k,bottomHeight:M,bottomSidesWidth:N}=gt(),{open:$}=ft(),{muted:F}=Qe(),{ref:T,isCurrent:R=!1}=Xe(h,!0),z=h&&(S||j)&&(R||!S),L=h||y,P=re(d),B=ce(u),E=q(u,{isView:S,current:h,openWebView:$,isPreview:C}),{ref:V,height:D=0}=Dt(),{ref:_,height:O=0}=Dt(),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"]:[],G=null!==a?Object.keys(a).reduce((e,t)=>a[t]?[...e,t]:e,[]):W,Y=S,U=sl("share"),Q=(0,n.useCallback)(e=>{Y&&U("click_share",e,{shareUrl:Z})},[U]);return(0,A.jsxs)("div",{className:$t([vo.container,f,{[vo.isPlaceholder]:w}]),"data-screen-ready":!0,children:[(0,A.jsx)(Yn,{width:b,height:v,className:vo.content,children:(0,A.jsxs)(va,{className:vo.layout,verticalAlign:e,fullscreen:!0,style:w?null:{paddingLeft:r,paddingRight:r,paddingTop:(C?0:k)+(D||r),paddingBottom:(h&&!C?M:0)+(O||r)},children:[!w&&P?(0,A.jsx)("div",{className:vo.header,ref:V,style:{paddingTop:r/2,paddingBottom:r,paddingLeft:r,paddingRight:r,transform:`translate(0px, ${k}px)`},children:(0,A.jsx)(ua,{...d})}):null,(0,A.jsx)(wn,{placeholder:"title",emptyLabel:(0,A.jsx)(I.sA,{id:"X7kRRa",defaultMessage:"Heading"}),emptyClassName:vo.emptyHeading,isEmpty:!t||""===t?.body,children:t?(0,A.jsx)(ga,{className:$t([vo.heading]),...t}):null},"title"),(0,A.jsx)(fa,{size:5},"spacer"),(0,A.jsx)(wn,{placeholder:"share-options",emptyLabel:(0,A.jsx)(I.sA,{id:"RucIeL",defaultMessage:"Share options"}),emptyClassName:vo.emptyOptions,isEmpty:!a,children:(0,A.jsx)(bo,{className:$t([vo.shareOptions,{[vo.isCentered]:s}]),buttonClassName:vo.shareButton,url:Z,options:G,onShare:Q,buttonsStyle:i,buttonsTextStyle:o})},"share-options"),!w&&B?(0,A.jsx)("div",{className:vo.footer,ref:_,style:{paddingTop:r,paddingBottom:r/2,paddingLeft:Math.max(N-r,0),paddingRight:Math.max(N-r,0)},children:(0,A.jsx)(ra,{...E})}):null]})}),w?null:(0,A.jsx)(Gn,{background:c,width:b,height:v,resolution:x,playing:z,muted:F,shouldLoad:L,mediaRef:ye(T,p),withoutVideo:C,className:vo.background})]})},layouts:["top","middle","bottom"],fields:[{name:"layout",type:"screen-layout",defaultValue:"top",label:(0,I.zR)({id:"4iBXj2",defaultMessage:"Layout"})},{name:"shareUrl",type:"url",label:(0,I.zR)({id:"0R+nB5",defaultMessage:"Custom URL"}),help:(0,I.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,I.zR)({id:"wx5PI0",defaultMessage:"Heading"})},{name:"options",type:"fields",isList:!0,label:(0,I.zR)({id:"4js1kW",defaultMessage:"Share Options"}),fields:[{name:"copylink",type:"toggle",defaultValue:!0,label:(0,I.zR)({id:"rKuiKj",defaultMessage:"Copy link"})},{name:"facebook",type:"toggle",defaultValue:!0,label:(0,I.zR)({id:"r+bcpa",defaultMessage:"Facebook"})},{name:"twitter",type:"toggle",defaultValue:!0,label:(0,I.zR)({id:"mlucL+",defaultMessage:"Twitter"})},{name:"linkedin",type:"toggle",defaultValue:!0,label:(0,I.zR)({id:"hvxkzE",defaultMessage:"LinkedIn"})},{name:"whatsapp",type:"toggle",defaultValue:!0,label:(0,I.zR)({id:"3B9cb3",defaultMessage:"Whatsapp"})},{name:"email",type:"toggle",defaultValue:!0,label:(0,I.zR)({id:"LI0Gz4",defaultMessage:"Email"})},{name:"sms",type:"toggle",defaultValue:!0,label:(0,I.zR)({id:"d3va12",defaultMessage:"SMS"})}]},{name:"buttonsTextStyle",type:"text-style-form",label:(0,I.zR)({id:"gwPu/I",defaultMessage:"Buttons text"})},{name:"buttonsStyle",type:"box-style-form",label:(0,I.zR)({id:"l5uLMd",defaultMessage:"Buttons"})},{name:"background",type:"background",label:(0,I.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,I.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,I.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]},So={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 Co=[];var wo=[{id:"slideshow",type:"screen",group:{label:(0,I.zR)({id:"6mX2ya",defaultMessage:"Images"}),order:7},title:(0,I.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?Co:l,v=void 0!==a&&a,x=void 0===o?null:o,S=void 0===s?null:s,C=void 0===r?null:r,w=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}=st(),{topHeight:B,bottomHeight:E}=gt(),{enableInteraction:V,disableInteraction:D}=pt(),{isView:_,isPreview:O,isPlaceholder:H,isEdit:Z,isStatic:W,isCapture:G}=nt(),{muted:Y}=Qe(),{ref:U,isCurrent:Q}=Xe(w,!0),X=w&&(_||Z)&&(void 0!==Q&&Q||!_),J=w||k,K=H?5:M,[ee,te]=(0,n.useState)(0),le=w&&!0,ne=W||G||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 de;t[3]!==S?(de=re(S),t[3]=S,t[4]=de):de=t[4];const ue=de;let me;t[5]!==C?(me=ce(C),t[5]=C,t[6]=me):me=t[6];const he=me;let pe;t[7]!==w||t[8]!==D||t[9]!==V||t[10]!==C||t[11]!==O||t[12]!==_?(pe=q(C,{isView:_,current:w,isPreview:O,enableInteraction:V,disableInteraction:D}),t[7]=w,t[8]=D,t[9]=V,t[10]=C,t[11]=O,t[12]=_,t[13]=pe):pe=t[13];const fe=pe,{ref:be,height:ve}=Dt(),xe=void 0===ve?0:ve,{ref:Se}=Dt();let Ce;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?(Ce=(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=ge(i),c=t>0?t*(1e3*N):0;return(0,A.jsxs)("div",{className:So.gridItem,children:[(0,A.jsx)("div",{className:So.imageContainer,ref:e=>{se.current[t]=e},children:(0,A.jsx)(Nn,{transitions:F,delay:c,playing:le,disabled:ne,fullscreen:!0,children:(0,A.jsx)(wn,{placeholder:"image",placeholderProps:{className:So.placeholder,height:"100%"},emptyLabel:(0,A.jsx)(I.sA,{id:"ebsPd4",defaultMessage:"Image"}),emptyClassName:So.emptyImage,isEmpty:!s,children:J?(0,A.jsx)(Kn,{className:So.image,media:a,muted:Y,...o,resolution:P,objectFit:{fit:"cover"},playing:X,active:j,withoutVideo:O,onLoaded:ie}):null})})}),v?(0,A.jsx)(Nn,{transitions:F,delay:c,playing:le,disabled:ne,children:(0,A.jsx)(wn,{placeholder:"line",emptyLabel:(0,A.jsx)(I.sA,{id:"6tIigB",defaultMessage:"Caption"}),emptyClassName:So.emptyCaption,isEmpty:!r,children:r?(0,A.jsx)("div",{className:So.caption,children:(0,A.jsx)(Pn,{...i,className:So.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]=Ce):Ce=t[30];const we=Ce;let je;t[31]!==R||t[32]!==H?(je=$t([So.container,R,{[So.isPlaceholder]:H}]),t[31]=R,t[32]=H,t[33]=je):je=t[33];const ke=O?null:B,Me=(he?xe-K:0)+(w&&!O?E:0);let Ne,$e,Fe,Te,Re,ze,Le,Ae;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,A.jsx)(wn,{placeholder:"image",placeholderProps:{width:"50%",height:"50%"},placeholderClassName:"position-absolute top-50 start-50 translate-middle w-100",emptyLabel:(0,A.jsx)(I.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,A.jsx)("div",{className:So.header,ref:Se,style:{padding:K,paddingTop:K/2,transform:O?null:`translate(0, ${B}px)`},children:(0,A.jsx)(ua,{...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]!==he||t[51]!==H?(Te=!H&&he?(0,A.jsx)("div",{className:So.footer,ref:be,style:{padding:K/2},children:(0,A.jsx)(ra,{...fe})}):null,t[47]=K,t[48]=fe,t[49]=be,t[50]=he,t[51]=H,t[52]=Te):Te=t[52],t[53]!==we||t[54]!==Ne||t[55]!==$e||t[56]!==Fe||t[57]!==Te?(Re=(0,A.jsxs)("div",{className:So.inner,style:Ne,children:[$e,Fe,we,Te]}),t[53]=we,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,A.jsx)(Yn,{width:z,height:L,className:So.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,A.jsx)(Gn,{background:x,width:z,height:L,resolution:P,muted:Y,mediaRef:ye(U,T),playing:X,shouldLoad:J,withoutVideo:O,className:So.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?(Ae=(0,A.jsxs)("div",{className:je,"data-screen-ready":!0,children:[ze,Le]}),t[75]=je,t[76]=ze,t[77]=Le,t[78]=Ae):Ae=t[78],Ae},fields:[{name:"slides",type:"visuals-with-caption",label:(0,I.zR)({id:"muYwrB",defaultMessage:"Images"})},{name:"transitionDelay",type:"number",min:0,float:!0,label:(0,I.zR)({id:"/6zaOP",defaultMessage:"Transition Delay (in seconds)"})},{name:"background",type:"background",label:(0,I.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,I.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,I.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]}],jo="micromag-screen-survey-disabled",ko="micromag-screen-survey-resultText",Mo="micromag-screen-survey-userAnswer",No="micromag-screen-survey-selected",$o="micromag-screen-survey-focused",Fo="micromag-screen-survey-filled",To="micromag-screen-survey-multiline",Ro="micromag-screen-survey-answered",zo="micromag-screen-survey-withPercentage",Lo="micromag-screen-survey-withBar",Ao="micromag-screen-survey-inputFocused",Io="micromag-screen-survey-isPlaceholder",Po={id:"survey",type:"screen",group:{label:(0,I.zR)({id:"ZiWlL6",defaultMessage:"Questions"}),order:7},title:(0,I.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:C=null,mediaRef:w=null,className:j=null}){const k=e||"screen-id",M=sl(C),{width:N,height:$,resolution:F}=st(),{create:T}=Za({screenId:k}),{isView:R,isPreview:z,isPlaceholder:L,isEdit:P,isStatic:E,isCapture:V}=nt(),{topHeight:D,bottomHeight:_,bottomSidesWidth:O}=gt(),{open:H}=ft(),{muted:Z}=Qe(),{ref:W,isCurrent:Y=!1}=Xe(b,!0),{quiz:U=[]}=((e=null)=>{const{screenId:t=null,storyId:l=null,opts:a={}}=e||{},i=Oa(),{id:o,document_id:s}=Pe()||{},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?Ha(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)}),J=ge(l),K=ge(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||{},de=E||V,[ue,me]=(0,n.useState)(de?-1:null),he=null!==ue,pe=(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:G(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,Ce=b&&(R||P)&&(Y||!R),we=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||he,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=Ea.A.sanitize(e.currentTarget.value||"");Ne(""!==t?t:null)},[Ne]),Ae=(0,n.useCallback)(()=>{Ne("")},[Ne]),Ie=(0,n.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),null===Me||""===Me||he||(T({choice:Me,value:1}),me("input"),Fe(!1),M("click_answer",`Answer input: ${Me}`,{textInput:Me,answerIndex:null,answerType:"custom"}))},[Me,T,he,me,Fe,M]),Be=re(d),Ee=ce(u),Ve=q(u,{isView:R,current:b,openWebView:H,isPreview:z}),{ref:De,height:_e=0}=Dt(),{ref:Oe,height:He=0}=Dt(),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]),[Je,Ke]=(0,n.useState)(!1),et=(0,n.useCallback)(({canScroll:e=!1})=>{Ke(e)},[Ke]),tt=[(0,A.jsx)(wn,{placeholder:"title",emptyLabel:(0,A.jsx)(I.sA,{id:"e1I+KU",defaultMessage:"Question"}),emptyClassName:"micromag-screen-survey-emptyQuestion",placeholderClassName:"mb-4",isEmpty:!J,children:J?(0,A.jsx)(Nn,{transitions:x,playing:xe,disabled:Se,children:(0,A.jsx)(ga,{...l,className:"micromag-screen-survey-question"})}):null},"question")];(fe||!L&&Ee&&be)&&tt.push((0,A.jsx)(fa,{},"spacer"));const lt=(0,n.useMemo)(()=>de?0:`${S}ms`,[de,S]),{barColor:at=null,textColor:it=null,percentageTextStyle:ot=null}=r||{},rt=(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,A.jsx)("div",{className:"micromag-screen-survey-answers",children:null!==a||L?(0,A.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&&pe[m]||{},{textStyle:v=null}=n||{},{color:x=null}=v||{},S=ge(n),C=ue===t,w={...o,...a,...he?{textAlign:"left"}:null},{borderRadius:j=null}=w||{},k=null!==j&&B(j)&&j>2?j-2:j;return(0,A.jsx)("div",{className:$t(["micromag-screen-survey-item",{[Mo]:C}]),children:(0,A.jsx)(wn,{placeholder:"surveyAnswer",emptyLabel:(0,A.jsx)(I.sA,{id:"+Ok+7S",defaultMessage:"Answer"}),emptyClassName:"micromag-screen-survey-emptyAnswer",placeholderClassName:"mb-2",isEmpty:!S,children:l?(0,A.jsx)("div",{className:"micromag-screen-survey-itemContent",children:(0,A.jsx)("div",{className:"micromag-screen-survey-itemInner",style:{borderRadius:j,transitionDuration:lt},children:(0,A.jsx)(ta,{className:"micromag-screen-survey-button",onPointerUp:e=>{"mouse"===e.pointerType&&0!==e.button||je(t)},disabled:z||null!==ue,focusable:b&&R,buttonStyle:w,textStyle:{...s,...v,...i},children:(0,A.jsxs)("span",{className:"micromag-screen-survey-itemLabel",children:[(0,A.jsx)(Pn,{...n,textStyle:{...s,...v,...i},inline:!0,className:"micromag-screen-survey-itemText"}),p?null:(0,A.jsx)("div",{className:"micromag-screen-survey-resultLabel",style:{...X(he?d||it||c||at||x:null,"color"),...he?{opacity:1}:{opacity:0}},children:(0,A.jsx)(Pn,{...n,textStyle:{...s,...v,...i,...it,...ot,...d,...u},inline:!0,className:ko,body:y?h:`${g}%`})}),f?null:(0,A.jsx)("div",{className:"micromag-screen-survey-resultBar",style:{borderRadius:k,transitionDuration:lt,width:null!==g?`${g}%`:"0%",...X(c||at||x,"backgroundColor"),...he?{opacity:.5}:{opacity:0}}})]})})})}):null})},`answer-${t+1}`)})}):null},"answers")),(0,A.jsxs)("div",{className:$t(["micromag-screen-survey-container",j,{[Ro]:he,[Ao]:$e,[zo]:!p,[Lo]:!f,[Io]:L}]),children:[(0,A.jsxs)(Yn,{width:N,height:$,className:"micromag-screen-survey-content",children:[(0,A.jsxs)(Sa,{verticalAlign:ve,disabled:Ze,onScrolledTrigger:Ue,onScrolledBottom:Ge,onScrolledNotBottom:Ye,onScrollHeightChange:et,withShadow:!0,children:[ct?(0,A.jsx)(ta,{className:"micromag-screen-survey-reset",icon:(0,A.jsx)(yl.gc,{icon:wl.ye,size:"md"}),onClick:ke}):null,!L&&Be?(0,A.jsx)("div",{className:$t(["micromag-screen-survey-header",{[jo]:We&&!Ze&&Je}]),ref:De,style:{paddingTop:c/2,paddingLeft:c,paddingRight:c,paddingBottom:c,transform:z?null:`translate(0, ${D}px)`},children:(0,A.jsx)(ua,{...d})}):null,(0,A.jsxs)(va,{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,A.jsxs)("form",{className:$t(["micromag-screen-survey-input",{[$o]:$e,[Fo]:null!==Me&&""!==Me,[jo]:Te,[No]:"input"===ue,[To]:ie}]),onSubmit:Ie,children:[(0,A.jsx)(qa,{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}),he?null:(0,A.jsx)(ta,{className:$t(["micromag-screen-survey-confirm",{[jo]:Te||null===Me||""===Me}]),type:"button",onClick:Ae,disabled:Te||null===Me||""===Me,children:(0,A.jsx)(Ol,{className:"micromag-screen-survey-icon"})}),he?null:(0,A.jsx)(ta,{className:$t(["micromag-screen-survey-submit",{[jo]:Te||null===Me||""===Me}]),type:"submit",buttonStyle:ae?.buttonStyle,disabled:Te||null===Me||""===Me,children:(0,A.jsx)(Pn,{...ae,inline:!0})})]}):null,null!==ue&&null!==rt?(0,A.jsx)(Nn,{transitions:x,playing:xe,disabled:Se,children:(0,A.jsx)(Pn,{...rt||{},className:ko})}):null]})]}),!L&&Ee?(0,A.jsx)("div",{ref:Oe,className:$t(["micromag-screen-survey-footer",{[jo]:!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,A.jsx)(ra,{...Ve})}):null]}),L?null:(0,A.jsx)(Gn,{background:g,width:N,height:$,resolution:F,playing:Ce,muted:Z,shouldLoad:we,mediaRef:ye(W,w),withoutVideo:z,className:"micromag-screen-survey-background"})]})},layouts:["top","middle","bottom","split"],fields:[{name:"layout",type:"screen-layout",defaultValue:"top",isSection:!0,label:(0,I.zR)({id:"4iBXj2",defaultMessage:"Layout"})},{name:"question",type:"heading-element",isSection:!0,theme:{textStyle:"heading2"},label:(0,I.zR)({id:"hVE7TA",defaultMessage:"Question"})},{type:"fields",isSection:!0,label:(0,I.zR)({id:"KHWeV7",defaultMessage:"Answers"}),fields:[{name:"answers",type:"answers",isSection:!0,theme:{label:{textStyle:"button"}}},{name:"customAnswer",type:"custom-answer",defaultValue:!1,theme:{textStyle:"button"}},{name:"result",type:"text-element",theme:{textStyle:"text"},label:(0,I.zR)({id:"iQ5Uf7",defaultMessage:"Default feedback"})}]},{type:"fields",isList:!0,isSection:!0,label:(0,I.zR)({id:"R9DB4a",defaultMessage:"Styles"}),fields:[{name:"showCount",type:"toggle",defaultValue:!1,label:(0,I.zR)({id:"ppGXAR",defaultMessage:"Show the answer count"})},{name:"withoutPercentage",type:"toggle",defaultValue:!1,label:(0,I.zR)({id:"crLqJd",defaultMessage:"Without percentage"})},{name:"withoutBar",type:"toggle",defaultValue:!1,label:(0,I.zR)({id:"D7kxD3",defaultMessage:"Without bar"})},{name:"buttonsStyle",type:"box-style-form",label:(0,I.zR)({id:"l5uLMd",defaultMessage:"Buttons"})},{name:"buttonsTextStyle",type:"text-style-form",label:(0,I.zR)({id:"gwPu/I",defaultMessage:"Buttons text"})},{name:"resultsStyle",type:"graph-bar-style-form",label:(0,I.zR)({id:"e4UTx9",defaultMessage:"Results"}),noValueLabel:(0,I.zR)({id:"65rc70",defaultMessage:"Edit style..."})}]},{name:"background",type:"background",isSection:!0,label:(0,I.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",isSection:!0,label:(0,I.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",isSection:!0,label:(0,I.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]},Bo={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 Eo(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,C=void 0===d?null:d,w=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}=st(),{isView:T,isPreview:R,isPlaceholder:z,isEdit:L}=nt(),{topHeight:P,bottomHeight:B,bottomSidesWidth:E}=gt(),{open:V}=ft(),{muted:D}=Qe(),{ref:_,isCurrent:O}=Xe(w,!0),H=void 0!==O&&O;let Z,W,G,Y,U,Q,X,J,K,ee,te,le,ne,ae,ie,oe,se,de,ue,me,he,pe,fe,be,ve,xe,Se;if(t[0]!==M||t[1]!==w||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=ge(f);X=ge(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;G=w&&(T||L)&&(H||!T),te=w||j,t[45]!==x?(i=re(x),t[45]=x,t[46]=i):i=t[46],Q=i,t[47]!==S?(o=ce(S),t[47]=S,t[48]=o):o=t[48],U=o,t[49]!==w||t[50]!==S||t[51]!==R||t[52]!==T||t[53]!==V?(s=q(S,{isView:T,current:w,openWebView:V,isPreview:R}),t[49]=w,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=$t([Bo.container,M,{[Bo.isPlaceholder]:z}]),t[55]=M,t[56]=z,t[57]=be):be=t[57],ve=!0,W=Yn,he=N,pe=$,fe=Bo.content,Z=va,le=Bo.layout,ne=!0,ae=n,t[58]!==w||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:(w&&!R?B:0)+(U?v/2:v)},t[58]=w,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,A.jsx)("div",{style:{paddingBottom:v},children:(0,A.jsx)(ua,{...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,A.jsx)(fa,{},"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?(de=!z&&Q&&l?(0,A.jsx)(fa,{},"spacer-cta-top"):null,t[76]=Q,t[77]=l,t[78]=z,t[79]=de):de=t[79],t[80]!==U||t[81]!==Q||t[82]!==J||t[83]!==z?(ue=!z&&Q&&!U&&J?(0,A.jsx)(fa,{},"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,A.jsx)(wn,{placeholder:"title",emptyLabel:(0,A.jsx)(I.sA,{id:"2ZOPe+",defaultMessage:"Title"}),emptyClassName:Bo.emptyTitle,isEmpty:!e,children:e?(0,A.jsx)(ga,{className:$t([Bo.title,{[Bo.withMargin]:a}]),...f}):null},"title"):null,t[0]=M,t[1]=w,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]=G,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]=de,t[38]=ue,t[39]=me,t[40]=he,t[41]=pe,t[42]=fe,t[43]=be,t[44]=ve}else Z=t[20],W=t[21],G=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],de=t[37],ue=t[38],me=t[39],he=t[40],pe=t[41],fe=t[42],be=t[43],ve=t[44];t[85]!==K||t[86]!==b?(xe=K&&b?(0,A.jsx)(fa,{},"spacer"):null,t[85]=K,t[86]=b,t[87]=xe):xe=t[87],t[88]===Symbol.for("react.memo_cache_sentinel")?(Se=(0,A.jsx)(I.sA,{id:"z4CiV1",defaultMessage:"Text"}),t[88]=Se):Se=t[88];const Ce=!X;let we,je,ke,Me,Ne,$e,Fe,Te,Re;return t[89]!==X||t[90]!==p?(we=X?(0,A.jsx)(Pn,{className:Bo.text,...p}):null,t[89]=X,t[90]=p,t[91]=we):we=t[91],t[92]!==Ce||t[93]!==we?(je=(0,A.jsx)(wn,{placeholder:"text",emptyLabel:Se,emptyClassName:Bo.emptyText,placeholderClassName:"mt-2",isEmpty:Ce,children:we},"description"),t[92]=Ce,t[93]=we,t[94]=je):je=t[94],t[95]!==U||t[96]!==J||t[97]!==z||t[98]!==ee?(ke=!z&&U&&(ee||J)?(0,A.jsx)(fa,{},"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,A.jsx)(fa,{},"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,A.jsx)("div",{className:Bo.footer,style:{paddingTop:v,paddingLeft:Math.max(0,E-v),paddingRight:Math.max(0,E-v)},children:(0,A.jsx)(ra,{...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]!==de||t[119]!==ue||t[120]!==me||t[121]!==xe||t[122]!==je||t[123]!==ke||t[124]!==Me||t[125]!==Ne?($e=(0,A.jsxs)(Z,{className:le,fullscreen:ne,verticalAlign:ae,style:ie,children:[oe,se,de,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]=de,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]!==he||t[129]!==pe||t[130]!==fe||t[131]!==$e?(Fe=(0,A.jsx)(W,{width:he,height:pe,className:fe,children:$e}),t[127]=W,t[128]=he,t[129]=pe,t[130]=fe,t[131]=$e,t[132]=Fe):Fe=t[132],t[133]!==C||t[134]!==G||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,A.jsx)(Gn,{background:C,width:N,height:$,resolution:F,playing:G,muted:D,shouldLoad:te,mediaRef:ye(_,k),withoutVideo:R,className:Bo.background}),t[133]=C,t[134]=G,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,A.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 Vo=[{id:"text",type:"screen",group:{label:(0,I.zR)({id:"fIawTr",defaultMessage:"Text"}),order:2},title:(0,I.zR)({id:"S9YpbV",defaultMessage:"Text"}),component:Eo,layouts:["top","middle","bottom"],fields:[{name:"layout",type:"screen-layout",defaultValue:"top",label:(0,I.zR)({id:"4iBXj2",defaultMessage:"Layout"})},{name:"text",type:"text-element",theme:{textStyle:"text"},label:(0,I.zR)({id:"4E2gbX",defaultMessage:"Text"})},{name:"background",type:"background",label:(0,I.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,I.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,I.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]},{id:"text-title",type:"screen",group:{label:(0,I.zR)({id:"fIawTr",defaultMessage:"Text"}),order:2},title:(0,I.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,A.jsx)(Eo,{...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,I.zR)({id:"4iBXj2",defaultMessage:"Layout"})},{name:"title",type:"heading-element",inline:!0,theme:{textStyle:"heading2"},label:(0,I.zR)({id:"N25iDO",defaultMessage:"Title"})},{name:"text",type:"text-element",theme:{textStyle:"text"},label:(0,I.zR)({id:"4E2gbX",defaultMessage:"Text"})},{name:"background",type:"background",label:(0,I.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,I.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,I.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]}],Do={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 _o=[null];function Oo({layout:e="normal",title:t=null,items:l=_o,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:C=null,className:w=null}){const j=sl(S),{width:k,height:M,imageResolution:N,resolution:$}=st(),{topHeight:F,bottomHeight:T,bottomSidesWidth:R}=gt(),{open:z}=ft(),{isView:L,isPreview:P,isPlaceholder:B,isEdit:E,isStatic:V,isCapture:D}=nt(),{muted:_,playing:O,setControls:H,setControlsSuggestPlay:Z,setControlsTheme:W,setPlaying:G,controlsVisible:Y,showControls:U,hideControls:Q}=Qe(),{ref:J,isCurrent:K=!1}=Xe(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||{},de=(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),he=b&&(L||E)&&(K||!L),pe=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&&G(!0)},[b,te]);const fe=yt(),be=(0,n.useCallback)(()=>{fe?U():Q()},[fe,U,Q]);It(b?be:null,fe,1e3);const ve=rl("video"),[xe,Se]=(0,n.useState)(null),[Ce,we]=(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)},[Ce,Se]),$e=(0,n.useCallback)((e,t)=>{ve(ne,`progress_${Math.round(100*e,10)}%`,t)},[ve,ne]),Fe=(0,n.useCallback)(e=>{we(e)},[we]),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&&G(!1)},[le,b]),Ae=(0,n.useMemo)(()=>B?[...new Array(5)].map(()=>({})):l||[null],[B,l]),Ie=ge(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!==Ae?Ae.length:0,Ve=null!==Ae&&Ee?Ae.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}=Dt(),{ref:Ye,width:Ue=null}=Dt(),Je=(Ue??0)-(Ge??0),Ke=(Ae||[]).map((t,l)=>{const{title:n=null,description:c=null,image:m=null}=t||{},g=ge(n),h=ge(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:C}=c||{};return(0,A.jsx)("div",{className:Do.item,children:p.map((e,t)=>{let u=null,p=!1;switch(e){case"title":p=g,u=(0,A.jsx)("div",{className:Do.title,children:(0,A.jsx)(wn,{placeholder:"title",emptyLabel:(0,A.jsx)(I.sA,{id:"bmO4Ss",defaultMessage:"Entry Title"}),emptyClassName:Do.empty,isEmpty:!g,children:g?(0,A.jsx)(ga,{...n,textStyle:{...a||null,...S}}):null})});break;case"image":p=y,u=(0,A.jsx)("div",{className:Do.imageContainer,children:(0,A.jsx)(wn,{placeholder:"image",emptyLabel:(0,A.jsx)(I.sA,{id:"ebsPd4",defaultMessage:"Image"}),placeholderClassName:"mt-2 fs-1",emptyClassName:Do.empty,isEmpty:!y,children:y?(0,A.jsx)(Kn,{className:Do.image,videoClassName:Do.video,loadingMode:"lazy",media:m,width:Je,resolution:$,playing:he,active:v,shouldLoad:Ze,withoutVideo:P,onLoaded:We}):null})});break;case"description":p=h,u=(0,A.jsx)("div",{className:Do.description,children:(0,A.jsx)(wn,{placeholder:"text",emptyLabel:(0,A.jsx)(I.sA,{id:"507VAi",defaultMessage:"Description"}),placeholderClassName:"mt-2",emptyClassName:Do.empty,isEmpty:!h,children:h?(0,A.jsx)(Pn,{...c,textStyle:{...i||null,...C}}):null})});break;default:u=null,p=!1}const b=0===l,w=l===Ee-1,j=t===x-1,k=b&&t<=f||w&&t>f,M=b&&t<f||w&&t>=f;return(0,A.jsxs)("div",{className:$t([Do.element,Do[`element-${e}`],{[Do.hidden]:(L||V)&&!p}]),ref:0===l?Ye:null,children:[o?null:(0,A.jsxs)("div",{className:Do.timeline,ref:0===l?qe:null,children:[(0,A.jsx)("div",{className:$t([Do.line,{[Do.hidden]:k}]),style:{...k?null:X(r,"backgroundColor")}}),"title"===e?(0,A.jsx)("div",{className:Do.bullet,style:{...X(s,"borderColor"),...d?X(s,"backgroundColor"):null}}):null,(0,A.jsx)("div",{className:$t([Do.line,{[Do.hidden]:M}]),style:{...M?null:X(r,"backgroundColor")}})]}),(0,A.jsx)("div",{className:Do.body,style:{marginBottom:j&&!w?Be:0},children:u})]},`element-${e}`)})},`item-${l}`)}),et=re(h),tt=ce(y),lt=q(y,{isView:L,current:b,openWebView:z,isPreview:P}),[at,it]=(0,n.useState)(!1),{ref:ot,height:rt=0}=Dt(),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,A.jsxs)("div",{className:$t([Do.container,w,{[Do.isPlaceholder]:B,[Do[`${c}BulletShape`]]:null!==c,[Do.withoutLines]:Ee<2}]),"data-screen-ready":Oe,children:[(0,A.jsxs)(Yn,{width:k,height:M,className:Do.content,children:[(0,A.jsx)(Sa,{className:Do.scroll,verticalAlign:"middle",disabled:He,onScrolledTrigger:ut,onScrolledBottom:ct,onScrolledNotBottom:dt,withShadow:!0,children:(0,A.jsxs)(va,{style:B?null:{paddingLeft:Pe,paddingRight:Pe,paddingTop:(P?0:F)+(et?Pe/2:Pe),paddingBottom:(b&&!P?T:0)+(rt||Pe)},children:[!B&&et?(0,A.jsx)("div",{style:{paddingBottom:Pe},children:(0,A.jsx)(ua,{...h})}):null,(0,A.jsx)(wn,{placeholder:"Title",emptyLabel:(0,A.jsx)(I.sA,{id:"BSTWf8",defaultMessage:"Title"}),emptyClassName:$t([Do.empty,Do.emptyTitle]),placeholderClassName:"mb-3",isEmpty:!Ie,children:Ie?(0,A.jsx)(ga,{className:Do.title,...t}):null}),Ke]})}),!B&&tt?(0,A.jsx)("div",{ref:ot,className:$t([Do.callToAction,{[Do.disabled]:!at}]),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,A.jsx)(ra,{...lt})}):null]}),null!==ne?(0,A.jsx)($a,{...de,paused:!pe,mediaRef:ye(J,C),muted:_,className:Do.audio,shouldLoad:Ze,onReady:Me,onPlay:Te,onPause:Re,onTimeUpdate:Ne,onProgressStep:$e,onDurationChange:Fe,onSeeked:ze,onEnded:Le}):null,B?null:(0,A.jsx)(Gn,{background:p,width:k,height:M,resolution:N,playing:he,muted:_,shouldLoad:Ze,mediaRef:null===ne?ye(J,C):null,withoutVideo:P,className:Do.background})]})}var Ho=[{id:"timeline",type:"screen",group:{label:(0,I.zR)({id:"cGItoy",defaultMessage:"List"}),order:8},title:(0,I.zR)({id:"GzoKNb",defaultMessage:"Timeline"}),component:Oo,layouts:["normal"],fields:[{name:"title",type:"heading-element",theme:{textStyle:"heading1"},label:(0,I.zR)({id:"N25iDO",defaultMessage:"Title"})},{name:"items",type:"entries",theme:{title:{textStyle:"heading2"},description:{textStyle:"text"}},label:(0,I.zR)({id:"3ifj0j",defaultMessage:"Entries"})},{name:"spacing",type:"number",defaultValue:20,isHorizontal:!0,label:(0,I.zR)({id:"Zpl5bJ",defaultMessage:"Spacing"})},{type:"fields",label:(0,I.zR)({id:"xac4z/",defaultMessage:"Entry styles"}),isList:!0,fields:[{name:"itemTitleStyle",type:"text-style-form",label:(0,I.zR)({id:"+AEVbJ",defaultMessage:"Title"})},{name:"itemDescriptionStyle",type:"text-style-form",label:(0,I.zR)({id:"ZCe0r4",defaultMessage:"Description"})},{name:"itemBottomSpacing",type:"number",defaultValue:20,isHorizontal:!0,label:(0,I.zR)({id:"Lp0bG4",defaultMessage:"Bottom spacing"})}]},{name:"bulletShape",type:"radios",defaultValue:"circle",options:[{value:"circle",label:(0,I.zR)({id:"+uInZz",defaultMessage:"Circle"})},{value:"square",label:(0,I.zR)({id:"fusnxf",defaultMessage:"Square"})}],label:(0,I.zR)({id:"twTaAZ",defaultMessage:"Bullet shape"})},{name:"withoutLine",type:"toggle",defaultValue:!1,label:(0,I.zR)({id:"N4lZhy",defaultMessage:"Without line"})},{name:"bulletFilled",type:"toggle",defaultValue:!1,label:(0,I.zR)({id:"YWcp4v",defaultMessage:"Bullet filled"})},{name:"bulletColor",type:"color",defaultValue:{alpha:1,color:"#FFFFFF"},label:(0,I.zR)({id:"uNpHnA",defaultMessage:"Bullet color"})},{name:"lineColor",type:"color",defaultValue:{alpha:1,color:"#FFFFFF"},label:(0,I.zR)({id:"RHMS2f",defaultMessage:"Line color"})},{name:"alternatives",type:"alternatives",label:(0,I.zR)({id:"68NE9W",defaultMessage:"Alternatives"})},{name:"background",type:"background",label:(0,I.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,I.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,I.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]},{id:"timeline-illustrated",type:"screen",group:{label:(0,I.zR)({id:"cGItoy",defaultMessage:"List"}),order:8},title:(0,I.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,A.jsx)(Oo,{...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,I.zR)({id:"N25iDO",defaultMessage:"Title"})},{name:"layout",type:"screen-layout",defaultValue:"title-image-description",label:(0,I.zR)({id:"4iBXj2",defaultMessage:"Layout"})},{name:"items",type:"entries-with-visual",theme:{title:{textStyle:"heading2"},description:{textStyle:"text"}},label:(0,I.zR)({id:"3ifj0j",defaultMessage:"Entries"})},{name:"spacing",type:"number",defaultValue:20,isHorizontal:!0,label:(0,I.zR)({id:"Zpl5bJ",defaultMessage:"Spacing"})},{type:"fields",label:(0,I.zR)({id:"xac4z/",defaultMessage:"Entry styles"}),isList:!0,fields:[{name:"itemTitleStyle",type:"text-style-form",label:(0,I.zR)({id:"+AEVbJ",defaultMessage:"Title"})},{name:"itemDescriptionStyle",type:"text-style-form",label:(0,I.zR)({id:"ZCe0r4",defaultMessage:"Description"})},{name:"itemBottomSpacing",type:"number",defaultValue:20,isHorizontal:!0,label:(0,I.zR)({id:"Lp0bG4",defaultMessage:"Bottom spacing"})}]},{name:"withoutLine",type:"toggle",defaultValue:!1,label:(0,I.zR)({id:"N4lZhy",defaultMessage:"Without line"})},{name:"bulletShape",type:"radios",defaultValue:"circle",options:[{value:"circle",label:(0,I.zR)({id:"+uInZz",defaultMessage:"Circle"})},{value:"square",label:(0,I.zR)({id:"fusnxf",defaultMessage:"Square"})}],label:(0,I.zR)({id:"twTaAZ",defaultMessage:"Bullet shape"})},{name:"bulletFilled",type:"toggle",defaultValue:!1,label:(0,I.zR)({id:"YWcp4v",defaultMessage:"Bullet filled"})},{name:"bulletColor",type:"color",defaultValue:{alpha:1,color:"#FFFFFF"},label:(0,I.zR)({id:"uNpHnA",defaultMessage:"Bullet color"})},{name:"lineColor",type:"color",defaultValue:{alpha:1,color:"#FFFFFF"},label:(0,I.zR)({id:"RHMS2f",defaultMessage:"Line color"})},{name:"alternatives",type:"alternatives",label:(0,I.zR)({id:"68NE9W",defaultMessage:"Alternatives"})},{name:"background",type:"background",label:(0,I.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,I.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,I.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]}],Zo="micromag-screen-title-withMargin",Wo="micromag-screen-title-box",qo="micromag-screen-title-isPlaceholder";function Go({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,A.jsx)(I.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}=st(),{isView:x,isPreview:S,isPlaceholder:C,isEdit:w}=nt(),{topHeight:j,bottomHeight:k,bottomSidesWidth:M}=gt(),{open:N}=ft(),{muted:$}=Qe(),{ref:F,isCurrent:T=!1}=Xe(g,!0),R=ge(t),z=ge(l),L=ge(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||w)&&(T||!x),W=g||h,G=re(d),Y=ce(u),U=q(u,{isView:x,current:g,openWebView:N,isPreview:S}),Q=(0,A.jsx)(wn,{placeholder:"title",emptyLabel:(0,A.jsx)(I.sA,{id:"2ZOPe+",defaultMessage:"Title"}),emptyClassName:"micromag-screen-title-emptyTitle",isEmpty:!R,children:R?(0,A.jsx)(ga,{className:$t(["micromag-screen-title-title",{[Zo]:O}]),...t,size:1}):null},"title"),X=i?(0,A.jsx)(wn,{placeholder:"subtitle",emptyLabel:(0,A.jsx)(I.sA,{id:"d60tSn",defaultMessage:"Subtitle"}),emptyClassName:"micromag-screen-title-emptySubtitle",placeholderClassName:"mt-3",isEmpty:!z,children:z?(0,A.jsx)(ga,{className:$t(["micromag-screen-title-subtitle",{[Zo]:H}]),...l,size:2}):null},"subtitle"):null,J=o?(0,A.jsx)(wn,{placeholder:"shortText",emptyLabel:c,emptyClassName:"micromag-screen-title-emptyDescription",isEmpty:!L,placeholderClassName:"mt-4",children:L?(0,A.jsx)(Pn,{...n}):null},"description"):null;return(0,A.jsxs)("div",{className:$t(["micromag-screen-title-container",p,{[qo]:C}]),"data-screen-ready":!0,children:[(0,A.jsx)(Yn,{width:f,height:b,className:"micromag-screen-title-content",children:(0,A.jsxs)(va,{className:"micromag-screen-title-layout",fullscreen:!0,verticalAlign:_,style:C?null:{paddingLeft:r,paddingRight:r,paddingTop:(S?0:j)+(G?r/2:r),paddingBottom:(g&&!S?k:0)+(Y?r/2:r)},children:[!C&&G?(0,A.jsx)("div",{style:{paddingBottom:r},children:(0,A.jsx)(ua,{...d})}):null,!C&&Y&&V?(0,A.jsx)(fa,{},"spacer-cta-top"):null,!C&&G&&D?(0,A.jsx)(fa,{},"spacer-cta-top"):null,!C&&G&&!Y&&V?(0,A.jsx)(fa,{},"spacer-cta-top"):null,s&&!B?(0,A.jsx)("div",{className:Wo,style:w||C||R||z||L?ee(a):null,children:[Q,X,J]}):null,s&&B?(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)("div",{className:Wo,style:w||C||R||o&&"top"===_&&z?ee(a):null,children:[Q,o&&"top"===_?X:null]},"top"),(0,A.jsx)(fa,{},"spacer1"),(0,A.jsxs)("div",{className:Wo,style:w||C||L||(!o||"bottom"===_)&&z?ee(a):null,children:[o&&"bottom"!==_?null:X,J]},"bottom")]}):null,s?null:(0,A.jsxs)(A.Fragment,{children:[Q,B&&(!o||"bottom"===_)&&(0,A.jsx)(fa,{},"spacer1"),X,B&&o&&"top"===_&&(0,A.jsx)(fa,{},"spacer2"),J]}),!C&&Y&&(E||V)?(0,A.jsx)(fa,{},"spacer-cta-bottom"):null,!C&&G&&!Y&&V?(0,A.jsx)(fa,{},"spacer-cta-bottom"):null,!C&&Y?(0,A.jsx)("div",{style:{paddingTop:r,paddingLeft:Math.max(0,M-r),paddingRight:Math.max(0,M-r)},children:(0,A.jsx)(ra,{...U})},"call-to-action"):null]})}),C?null:(0,A.jsx)(Gn,{background:m,width:f,height:b,resolution:v,playing:Z,muted:$,shouldLoad:W,mediaRef:ye(F,y),withoutVideo:S,className:"micromag-screen-title-background"})]})}var Yo=[{id:"title",type:"screen",group:{label:(0,I.zR)({id:"uKJRh2",defaultMessage:"Title"}),order:1},title:(0,I.zR)({id:"dVcog7",defaultMessage:"Title"}),component:Go,layouts:["top","middle","bottom"],fields:[{name:"layout",type:"screen-layout",defaultValue:"top",label:(0,I.zR)({id:"4iBXj2",defaultMessage:"Layout"})},{name:"title",type:"heading-element",theme:{textStyle:"heading1"},label:(0,I.zR)({id:"N25iDO",defaultMessage:"Title"})},{name:"background",type:"background",label:(0,I.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,I.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,I.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]},{id:"title-subtitle",type:"screen",group:{label:(0,I.zR)({id:"uKJRh2",defaultMessage:"Title"}),order:1},title:(0,I.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,A.jsx)(Go,{...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,I.zR)({id:"4iBXj2",defaultMessage:"Layout"})},{name:"title",type:"heading-element",theme:{textStyle:"heading1"},label:(0,I.zR)({id:"N25iDO",defaultMessage:"Title"})},{name:"subtitle",type:"heading-element",theme:{textStyle:"heading2"},label:(0,I.zR)({id:"EcZYpr",defaultMessage:"Subtitle"})},{name:"background",type:"background",label:(0,I.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,I.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,I.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]},{id:"title-subtitle-credits",type:"screen",group:{label:(0,I.zR)({id:"uKJRh2",defaultMessage:"Title"}),order:1},title:(0,I.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,A.jsx)(I.sA,{id:"/hupzO",defaultMessage:"Credits"}),t[3]=o):o=t[3],t[4]!==a||t[5]!==l?(s=(0,A.jsx)(Go,{...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,I.zR)({id:"4iBXj2",defaultMessage:"Layout"})},{name:"title",type:"heading-element",theme:{textStyle:"heading1"},label:(0,I.zR)({id:"N25iDO",defaultMessage:"Title"})},{name:"subtitle",type:"heading-element",theme:{textStyle:"heading2"},label:(0,I.zR)({id:"EcZYpr",defaultMessage:"Subtitle"})},{name:"credits",type:"text-element",theme:{textStyle:"text"},label:(0,I.zR)({id:"upzOTm",defaultMessage:"Credits"})},{name:"background",type:"background",label:(0,I.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,I.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,I.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]},{id:"title-with-box",type:"screen",group:{label:(0,I.zR)({id:"uKJRh2",defaultMessage:"Title"}),order:1},title:(0,I.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,A.jsx)(Go,{...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,I.zR)({id:"4iBXj2",defaultMessage:"Layout"})},{name:"title",type:"heading-element",theme:{textStyle:"heading1"},label:(0,I.zR)({id:"N25iDO",defaultMessage:"Title"})},{name:"subtitle",type:"heading-element",theme:{textStyle:"heading2"},label:(0,I.zR)({id:"EcZYpr",defaultMessage:"Subtitle"})},{name:"description",type:"text-element",theme:{textStyle:"text"},label:(0,I.zR)({id:"ZCe0r4",defaultMessage:"Description"})},{type:"fields",isList:!0,label:(0,I.zR)({id:"LOknw0",defaultMessage:"Styles"}),fields:[{name:"boxStyle",type:"box-style-form",label:(0,I.zR)({id:"f5Yipd",defaultMessage:"Box"})}]},{name:"background",type:"background",label:(0,I.zR)({id:"cDj1mZ",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,I.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,I.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]}],Uo={container:"micromag-element-urbania-author-avatar-container",shapeCircle:"micromag-element-urbania-author-avatar-shapeCircle",shape:"micromag-element-urbania-author-avatar-shape"};function Qo(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=De("supportsWebp",!1),S=De("imageResolution",h);let C;t[0]!==g||t[1]!==u||t[2]!==S||t[3]!==x||t[4]!==m?(C=Q(u,m,g,{resolution:S,supportsWebp:x}),t[0]=g,t[1]=u,t[2]=S,t[3]=x,t[4]=m,t[5]=C):C=t[5];const w=C;let j;t[6]!==p?(j=null!==p?(0,y.fL)(p):null,t[6]=p,t[7]=j):j=t[7];const k=Uo[`shape${j}`],M=null!==j;let N;t[8]!==b||t[9]!==f||t[10]!==k||t[11]!==M?(N=$t([Uo.container,{[k]:M,[Uo.isTag]:f},b]),t[8]=b,t[9]=f,t[10]=k,t[11]=M,t[12]=N):N=t[12];const $=v?`url("${w}")`:null;let F,T;return t[13]!==$?(F=(0,A.jsx)("span",{className:Uo.shape,style:{backgroundImage:$}}),t[13]=$,t[14]=F):F=t[14],t[15]!==N||t[16]!==F?(T=(0,A.jsx)("span",{className:N,children:F}),t[15]=N,t[16]=F,t[17]=T):T=t[17],T}var Xo={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 Jo(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,C=void 0===g?null:g,w=void 0===h?null:h,j=void 0===a?null:a,k=void 0===o||o,M=(0,I.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]!==w||t[18]!==z?(_=ge(z)?(0,A.jsx)(Pn,{className:$t([Xo.name,w]),...z}):null,t[17]=w,t[18]=z,t[19]=_):_=t[19];const O=_;let H;t[20]!==B?(H=ge(B)?(0,A.jsx)(Pn,{className:Xo.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]!==C||t[23]!==x||t[24]!==W||t[25]!==E||t[26]!==v?(q=$t([Xo.container,C,{[Xo.isSmall]:x,[Xo.withoutAvatar]:E,[Xo.withoutImage]:W,[Xo.withoutBackground]:v}]),t[22]=C,t[23]=x,t[24]=W,t[25]=E,t[26]=v,t[27]=q):q=t[27],t[28]!==w||t[29]!==z||t[30]!==D||t[31]!==b?(G=b?null:(0,A.jsx)(Pn,{...z,className:$t([Xo.prefix,w]),body:`<span>${D}<span>`}),t[28]=w,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,A.jsx)(Qo,{className:Xo.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,A.jsx)("div",{children:O}):(0,A.jsx)(Ln,{className:Xo.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,A.jsx)("div",{className:$t([Xo.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,A.jsxs)("div",{className:Xo.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,A.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 Ko(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,A.jsx)("g",{transform:"matrix(1, 0, 0, 1, 0, 0)",children:(0,A.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,A.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 es(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,A.jsxs)("g",{transform:"translate(0 0)",children:[(0,A.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,A.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,A.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 ts={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 ls(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:C}=e,w=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===C?null:C,{width:Z,height:W,resolution:G}=st(),{isView:Y,isPreview:U,isPlaceholder:Q,isEdit:J,isStatic:K,isCapture:ee}=nt();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}=ft(),{bottomSidesWidth:oe,topHeight:se}=gt(),{enableInteraction:de,disableInteraction:ue}=pt(),{muted:me,playing:he}=Qe(),{ref:pe,entry:fe,height:be}=Dt(),{contentRect:ve}=fe;let xe;t[2]!==ve?(xe=ve||{},t[2]=ve,t[3]=xe):xe=t[3];const{top:Se}=xe,Ce=W-be-Se+1;let we;t[4]!==Ce?(we={imageHeight:Ce},t[4]=Ce,t[5]=we):we=t[5];const{minContentHeight:je}=we,ke=void 0===je?null:je,Me="video"===j;let Ne;t[6]!==$?(Ne=ge($),t[6]=$,t[7]=Ne):Ne=t[7];const $e=Ne;let Fe;t[8]!==M?(Fe=ge(M),t[8]=M,t[9]=Fe):Fe=t[9];const Te=Fe,Re=ge(N);let ze;t[10]!==T?(ze=(T||[]).length>0&&ge(T[0]),t[10]=T,t[11]=ze):ze=t[11];const Le=ze;let Ae;t[12]!==F?(Ae=F||{},t[12]=F,t[13]=Ae):Ae=t[13];const{name:Ie}=Ae;let Pe;t[14]!==Ie?(Pe=ge(Ie),t[14]=Ie,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=re(P),t[18]=P,t[19]=He):He=t[19];const Ze=He;let We;t[20]!==B||t[21]!==w?(We=ce(B)||w,t[20]=B,t[21]=w,t[22]=We):We=t[22];const qe=We;let Ge,Ye,Ue;if(t[23]===Symbol.for("react.memo_cache_sentinel")?(Ge=(0,A.jsx)(Ko,{}),t[23]=Ge):Ge=t[23],t[24]!==j?(Ye="video"===j?(0,A.jsx)(es,{className:ts.icon}):null,t[24]=j,t[25]=Ye):Ye=t[25],t[26]!==V||t[27]!==ue||t[28]!==de||t[29]!==B||t[30]!==U||t[31]!==Y||t[32]!==ie||t[33]!==Ye){const e={buttonClassName:ts.button,labelClassName:ts.label,arrowClassName:ts.arrow,arrow:Ge,icon:Ye},{callToAction:l,...n}=B||{};Ue=q({...n,callToAction:{...void 0===l?null:l,...e}},{isView:Y,current:V,openWebView:ie,isPreview:U,animationDisabled:U,focusable:V&&Y,enableInteraction:de,disableInteraction:ue}),t[26]=V,t[27]=ue,t[28]=de,t[29]=B,t[30]=U,t[31]=Y,t[32]=ie,t[33]=Ye,t[34]=Ue}else Ue=t[34];const Je=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,at=he&&V,it="video"!==_e&&tt,{ref:ot,isCurrent:rt}=Xe(V,it),ct=V&&!ae&&(Y||J)&&(void 0!==rt&&rt||!Y);let dt,ut,mt;t[37]===Symbol.for("react.memo_cache_sentinel")?(dt=(0,A.jsx)(mn,{className:ts.placeholder}),ut=$t([ts.emptyContainer,ts.small]),t[37]=dt,t[38]=ut):(dt=t[37],ut=t[38]),t[39]===Symbol.for("react.memo_cache_sentinel")?(mt=(0,A.jsx)("div",{className:ut,children:(0,A.jsx)(Xl,{className:ts.empty,children:(0,A.jsx)(I.sA,{id:"pRzSQ7",defaultMessage:"Overtitle"})})}),t[39]=mt):mt=t[39];const ht=!$e;let yt,bt,vt,xt;t[40]!==$e||t[41]!==$?(yt=$e?(0,A.jsx)(ga,{className:$t([ts.overTitle]),...$}):null,t[40]=$e,t[41]=$,t[42]=yt):yt=t[42],t[43]!==ht||t[44]!==yt?(bt=(0,A.jsx)(wn,{placeholder:dt,empty:mt,isEmpty:ht,children:yt},"overTitle"),t[43]=ht,t[44]=yt,t[45]=bt):bt=t[45],t[46]===Symbol.for("react.memo_cache_sentinel")?(vt=(0,A.jsx)(hn,{className:ts.placeholder}),t[46]=vt):vt=t[46],t[47]===Symbol.for("react.memo_cache_sentinel")?(xt=(0,A.jsx)("div",{className:ts.emptyContainer,children:(0,A.jsx)(Xl,{className:ts.empty,children:(0,A.jsx)(I.sA,{id:"2ZOPe+",defaultMessage:"Title"})})}),t[47]=xt):xt=t[47];const St=!Te;let Ct,wt;t[48]!==Te||t[49]!==M?(Ct=Te?(0,A.jsx)(ga,{className:$t([ts.title]),...M}):null,t[48]=Te,t[49]=M,t[50]=Ct):Ct=t[50],t[51]!==St||t[52]!==Ct?(wt=(0,A.jsx)(wn,{placeholder:vt,empty:xt,isEmpty:St,children:Ct},"title"),t[51]=St,t[52]=Ct,t[53]=wt):wt=t[53];const jt=wn;let kt;t[54]===Symbol.for("react.memo_cache_sentinel")?(kt=(0,A.jsx)("div",{className:ts.emptyContainer,children:(0,A.jsx)(Xl,{className:ts.empty,children:(0,A.jsx)(I.sA,{id:"6jX5Tb",defaultMessage:"Authors"})})}),t[54]=kt):kt=t[54];const Mt=!Be,Nt=Be?(0,A.jsx)("div",{className:$t([ts.authors,{[ts.isAboveDescription]:Re}]),children:(0,A.jsx)(Jo,{author:F,shouldLoad:lt})}):null;let Ft,Tt;t[55]!==jt||t[56]!==kt||t[57]!==Mt||t[58]!==Nt?(Ft=(0,A.jsx)(jt,{empty:kt,isEmpty:Mt,children:Nt},"authors"),t[55]=jt,t[56]=kt,t[57]=Mt,t[58]=Nt,t[59]=Ft):Ft=t[59],t[60]===Symbol.for("react.memo_cache_sentinel")?(Tt=(0,A.jsx)("div",{className:ts.emptyContainer,children:(0,A.jsx)(Xl,{className:ts.empty,children:(0,A.jsx)(I.sA,{id:"zl6zsZ",defaultMessage:"Lede"})})}),t[60]=Tt):Tt=t[60];const Rt=!Re&&!w;let zt,Lt,At,It;t[61]!==N||t[62]!==Re?(zt=Re?(0,A.jsx)("div",{className:$t([ts.description]),children:(0,A.jsx)(Pn,{className:$t([ts.lede]),...N})}):null,t[61]=N,t[62]=Re,t[63]=zt):zt=t[63],t[64]!==Rt||t[65]!==zt?(Lt=(0,A.jsx)(wn,{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")?(At=$t([ts.emptyContainer,ts.small]),t[67]=At):At=t[67],t[68]===Symbol.for("react.memo_cache_sentinel")?(It=(0,A.jsx)("div",{className:At,children:(0,A.jsx)(Xl,{className:ts.empty,children:(0,A.jsx)(I.sA,{id:"zGIcdn",defaultMessage:"Sponsors"})})}),t[68]=It):It=t[68];const Pt=!Le&&!w;let Bt,Et,Vt;t[69]!==Le||t[70]!==z||t[71]!==R||t[72]!==T?(Bt=Le?(0,A.jsx)("div",{className:ts.sponsors,style:{...X(z)},children:T.map(e=>{const t=void 0===e?null:e,{body:l}=t||{},a=void 0===l?"":l;return(0,A.jsxs)(n.Fragment,{children:[null!==R?(0,A.jsx)("span",{className:ts.sponsor,children:R}):null,(0,A.jsx)("span",{children:" "}),(0,A.jsx)(ga,{className:ts.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,A.jsx)(wn,{empty:It,isEmpty:Pt,children:Bt},"sponsors"),t[74]=Pt,t[75]=Bt,t[76]=Et):Et=t[76],t[77]!==bt||t[78]!==wt||t[79]!==Ft||t[80]!==Lt||t[81]!==Et?(Vt=[bt,wt,Ft,Lt,Et].filter(ns),t[77]=bt,t[78]=wt,t[79]=Ft,t[80]=Lt,t[81]=Et,t[82]=Vt):Vt=t[82];const _t=Vt;let Ot;t[83]!==H||t[84]!==V||t[85]!==tt||t[86]!==Q||t[87]!==Me?(Ot=$t([ts.container,H,{[ts.isCurrent]:V,[ts.isVideo]:Me,[ts.hasVideoBackground]:tt,[ts.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?ye(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]!==G||t[100]!==Zt||t[101]!==Z?(Wt=(0,A.jsx)(Gn,{className:ts.background,background:E,width:Z,height:W,resolution:G,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]=G,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,A.jsx)("div",{className:ts.header,style:{paddingTop:_/2,paddingLeft:_,paddingRight:_,transform:U?null:`translate(0, ${se}px)`},children:(0,A.jsx)(ua,{...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=ts[`${L}`],Yt=null!==L;let Ut,Qt,Xt,Jt,Kt,el;t[110]!==Gt||t[111]!==Yt?(Ut=$t([ts.articleContent,{[Gt]:Yt}]),t[110]=Gt,t[111]=Yt,t[112]=Ut):Ut=t[112],t[113]!==ne||t[114]!==Me?(Qt=Me?null:X(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]!==pe||t[121]!==_t||t[122]!==Ut||t[123]!==Xt?(Jt=(0,A.jsx)("div",{className:Ut,style:Xt,ref:pe,children:_t}),t[120]=pe,t[121]=_t,t[122]=Ut,t[123]=Xt,t[124]=Jt):Jt=t[124],t[125]===Symbol.for("react.memo_cache_sentinel")?(Kt=(0,A.jsx)(rn,{className:ts.placeholder}),t[125]=Kt):Kt=t[125],t[126]===Symbol.for("react.memo_cache_sentinel")?(el=(0,A.jsx)("div",{className:ts.emptyContainer,children:(0,A.jsx)(Xl,{className:ts.empty,children:(0,A.jsx)(I.sA,{id:"ebsPd4",defaultMessage:"Image"})})}),t[126]=el):el=t[126];const tl=!Oe&&!w;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]!==G||t[133]!==Z?(ll=Oe&&!Me?(0,A.jsx)(Kn,{className:ts.image,imageClassName:ts.img,media:k,width:Z,height:W,resolution:G,objectFit:{fit:"cover"},shouldLoad:lt}):null,t[127]=Oe,t[128]=W,t[129]=k,t[130]=Me,t[131]=lt,t[132]=G,t[133]=Z,t[134]=ll):ll=t[134],t[135]!==O||t[136]!==at||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]!==G||t[147]!==Z?(nl=Oe&&Me&&!tt?(0,A.jsx)(Kn,{className:ts.video,media:k,width:Z,height:W,resolution:G,objectFit:{fit:"cover"},shouldLoad:lt,playing:at,muted:me,withoutVideo:U,mediaRef:ye(ot,O),autoPlay:!0}):null,t[135]=O,t[136]=at,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]=G,t[147]=Z,t[148]=nl):nl=t[148],t[149]!==tl||t[150]!==ll||t[151]!==nl?(al=(0,A.jsx)("div",{className:ts.visual,children:(0,A.jsxs)(wn,{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]!==Je||t[154]!==qe||t[155]!==Q||t[156]!==_||t[157]!==oe?(il=!Q&&qe?(0,A.jsx)("div",{style:{paddingTop:_,paddingLeft:Math.max(0,oe-_),paddingRight:Math.max(0,oe-_)},className:ts.footer,children:(0,A.jsx)(ra,{...Je})}):null,t[153]=Je,t[154]=qe,t[155]=Q,t[156]=_,t[157]=oe,t[158]=il):il=t[158],t[159]!==il?(ol=(0,A.jsx)("div",{className:ts.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,A.jsxs)(Yn,{className:ts.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,A.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 ns(e){return null!==e}function as(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?ls: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,C=void 0===g?null:g,w=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&&he(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,Va.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]!==C?(L=C||{},t[20]=C,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:C,image:w}=h||{},j=void 0===C?null:C,k=void 0===w?null:w;G={...null!==j&&""!==j?{name:{body:`<p>${j}</p>`}}:null,...null!==k?{image:k}:null},q=b||i,J=(u||[]).length>0?(u||[]).map(os).filter(is).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=ge(f),t[37]=f,t[38]=ee):ee=t[38];const te=ee;let le;t[39]!==v?(le=ge(v),t[39]=v,t[40]=le):le=t[40];const ne=le;let ae;t[41]!==x?(ae=ge(x),t[41]=x,t[42]=ae):ae=t[42];const ie=ae,oe=null!==S&&null!==S.name&&ge(S.name);let se;t[43]!==K||t[44]!==ie?(se=ie||null===K?null:(0,A.jsx)(I.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,ye,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?(ye=null===K||ie?[x]:[{...x,body:`<strong>${K}</strong>`}],t[56]=K,t[57]=ie,t[58]=x,t[59]=ye):ye=t[59],t[60]!==Z||t[61]!==C||t[62]!==B||t[63]!==U||t[64]!==Q?(pe=null!==B&&null!==C?C:{type:"image",...Z,sizes:{medium:Q,large:U}},t[60]=Z,t[61]=C,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,Ce;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]!==w||t[83]!==X||t[84]!==re||t[85]!==ce||t[86]!==de||t[87]!==me||t[88]!==ye||t[89]!==pe||t[90]!==Se?(Ce={type:q,title:ce,articleTitle:W,overTitle:de,author:me,sponsors:ye,sponsorPrefix:re,site:X,image:pe,url:T,header:w,footer:Se},t[79]=W,t[80]=q,t[81]=T,t[82]=w,t[83]=X,t[84]=re,t[85]=ce,t[86]=de,t[87]=me,t[88]=ye,t[89]=pe,t[90]=Se,t[91]=Ce):Ce=t[91];const we=Ce;let je;t[92]!==we?(je=we||{},t[92]=we,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]!==we?(Te=(0,A.jsx)(p,{...l,...we,hasArticle:Fe}),t[96]=p,t[97]=l,t[98]=Fe,t[99]=we,t[100]=Te):Te=t[100],Te}function is(e){return null!==e}function os(e){const{organisation:t}=e,{name:l}=void 0===t?{}:t;return void 0===l?null:l}var ss={id:"urbania-article",type:"screen",namespaces:["urbania"],group:{label:(0,I.zR)({id:"oPjl8f",defaultMessage:"Urbania"}),order:10},title:(0,I.zR)({id:"nJgzwC",defaultMessage:"Urbania article"}),component:as,fields:[{name:"url",type:"url",label:(0,I.zR)({id:"2pO2Cj",defaultMessage:"Url"})},{name:"articleType",type:"select",label:(0,I.zR)({id:"ppq6CK",defaultMessage:"Type"}),options:[{value:"article",label:(0,I.zR)({id:"pE7UhY",defaultMessage:"Article"})},{value:"video",label:(0,I.zR)({id:"J9e9Qb",defaultMessage:"Video"})}]},{name:"overTitle",type:"heading-element",defaultValue:{body:"En vedette"},label:(0,I.zR)({id:"z2I2bJ",defaultMessage:"Overtitle"})},{name:"title",type:"heading-element",label:(0,I.zR)({id:"N25iDO",defaultMessage:"Title"})},{name:"description",type:"text-element",label:(0,I.zR)({id:"cuKSQz",defaultMessage:"Lede"})},{name:"author",type:"author-element",label:(0,I.zR)({id:"73hxYw",defaultMessage:"Author"})},{name:"sponsorLabel",type:"heading-element",label:(0,I.zR)({id:"hzvEim",defaultMessage:"Sponsor Label"})},{name:"sponsorColor",type:"color",label:(0,I.zR)({id:"Qw8cb5",defaultMessage:"Sponsor color"})},{name:"image",type:"visual",label:(0,I.zR)({id:"k+coTi",defaultMessage:"Image"})},{name:"background",type:"background",label:(0,I.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,I.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,I.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]},rs={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 cs(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,C=void 0===s?null:s,w=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,I.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}=st(),{isView:Z,isPreview:W,isPlaceholder:q,isEdit:G,isStatic:Y,isCapture:U}=nt(),{open:Q,opened:X,close:J}=ft(),K=void 0!==X&&X,ee=void 0===J?null:J,{topHeight:te,bottomHeight:le}=gt(),{enableInteraction:ne,disableInteraction:ae}=pt(),{playing:ie,muted:oe,setControls:se,setControlsTheme:ce,setControlsSuggestPlay:de,setPlaying:ue}=Qe();let me;t[5]!==C?(me=C||{},t[5]=C,t[6]=me):me=t[6];const{name:he}=me,pe=void 0===he?null:he;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=re(k),t[9]=k,t[10]=ve):ve=t[10];const xe=ve;let Se;t[11]!==w?(Se=ge(w),t[11]=w,t[12]=Se):Se=t[12];const Ce=Se;let we;t[13]!==S?(we=ge(S),t[13]=S,t[14]=we):we=t[14];const je=we;let ke;t[15]!==pe?(ke=ge(pe),t[15]=pe,t[16]=ke):ke=t[16];const Me=ke;let Ne;t[17]!==N?(Ne=ge(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=Da.A.parse(null!==e&&-1!==e.indexOf("?")?e.split("?")[1]:"");Fe=null!==e?`${e.split("?")[0]}?${Da.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}=Xe($&&!K,!0),Ae=$&&(Z||G)&&(void 0!==Le&&Le||!Z),Ie=!q&&!W&&!Y,Pe=Ie&&D&&Ae,Be=Ie&&$;let Ee,Ve,De;t[22]!==$||t[23]!==D||t[24]!==se||t[25]!==ce||t[26]!==K?(Ee=()=>$?(ce({seekBarOnly:!0}),se(!(!D||K)),()=>{D&&!K&&se(!1)}):us,Ve=[$,se,D,K,se,ce],t[22]=$,t[23]=D,t[24]=se,t[25]=ce,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,Nt.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,Tt.wY)(qe),{contentRect:Ue}=Ye,Je=void 0===Ue?null:Ue;let Ke;t[41]!==Je?(Ke=Je||{},t[41]=Je,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 at=W?lt:100;let it,ot;t[43]!==at?(it={y:at},t[43]=at,t[44]=it):it=t[44],t[45]!==lt?(ot={y:lt},t[45]=lt,t[46]=ot):ot=t[46];const rt=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]!==rt||t[52]!==dt?(ut={from:it,to:ot,delay:rt,config:dt},t[49]=it,t[50]=ot,t[51]=rt,t[52]=dt,t[53]=ut):ut=t[53];const mt=(0,Tl.zh)(ut);let ht,yt,bt;t[54]!==ee||t[55]!==$||t[56]!==K?(ht=()=>{},t[54]=ee,t[55]=$,t[56]=K,t[57]=ht):ht=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)(ht,yt),t[63]!==$||t[64]!==D||t[65]!==Z||t[66]!==ie||t[67]!==de||t[68]!==ue?(bt=()=>{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]=bt):bt=t[69];const vt=bt;let xt;t[70]!==z||t[71]!==$||t[72]!==q?(xt=$t([rs.container,z,{[rs.isCurrent]:$,[rs.isPlaceholder]:q}]),t[70]=z,t[71]=$,t[72]=q,t[73]=xt):xt=t[73];const St=Y||U,Ct=Ae&&!K;let wt,jt,kt;t[74]!==R||t[75]!==ze?(wt=ye(ze,R),t[74]=R,t[75]=ze,t[76]=wt):wt=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]!==Ct||t[85]!==wt||t[86]!==_?(jt=(0,A.jsx)(Gn,{className:rs.background,background:B,width:_,height:O,resolution:H,playing:Ct,muted:oe,mediaRef:wt,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]=Ct,t[85]=wt,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,A.jsx)("div",{className:rs.header,style:{paddingTop:T/2,paddingLeft:T,paddingRight:T,transform:W?null:`translate(0, ${te}px)`},children:(0,A.jsx)(ua,{...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 Ft,Rt,zt,Lt,At,It,Pt,Bt;t[95]===Symbol.for("react.memo_cache_sentinel")?(Ft=(0,A.jsx)(Xl,{className:rs.emptyText,children:(0,A.jsx)(I.sA,{id:"z4CiV1",defaultMessage:"Text"})}),Rt=(0,A.jsx)(gn,{className:rs.placeholderText}),t[95]=Ft,t[96]=Rt):(Ft=t[95],Rt=t[96]),t[97]!==Ce||t[98]!==w?(zt=Ce?(0,A.jsx)(Pn,{className:rs.text,...w}):null,t[97]=Ce,t[98]=w,t[99]=zt):zt=t[99],t[100]!==zt?(Lt=(0,A.jsx)(wn,{empty:Ft,placeholder:Rt,children:zt},"text"),t[100]=zt,t[101]=Lt):Lt=t[101],t[102]!==Mt||t[103]!==Lt?(At=(0,A.jsx)(va,{className:rs.layout,height:Mt,children:Lt}),t[102]=Mt,t[103]=Lt,t[104]=At):At=t[104],t[105]!==q?(It=$t([rs.cardContainer,{[rs.isPlaceholder]:q}]),t[105]=q,t[106]=It):It=t[106],t[107]===Symbol.for("react.memo_cache_sentinel")?(Pt={className:rs.placeholder},Bt=(0,A.jsx)(I.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]!==C||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,A.jsxs)(Tl.CS.div,{className:rs.card,style:{height:O,width:_,transform:W?"translateY(80%)":mt.y.to(ds)},children:[(0,A.jsx)("button",{type:"button",onClick:_e,className:rs.dragHandle,tabIndex:$?0:-1,"aria-label":L.formatMessage({id:"IoMJgw",defaultMessage:"Toggle article"}),"aria-pressed":K,...$?Ze():null}),(0,A.jsxs)("div",{className:$t([rs.cardInner,{[rs.pulse]:Be}]),children:[$e?(0,A.jsxs)("div",{className:rs.callToAction,children:[(0,A.jsx)(Ko,{strokeWidth:1,className:rs.arrow}),(0,A.jsx)(Pn,{className:rs.ctaText,...N})]}):null,(0,A.jsx)("div",{className:rs.articlePreview,ref:Ge,children:(0,A.jsxs)("div",{className:rs.articlePreviewInner,style:{paddingBottom:$&&!W?Math.max(le,20):null},children:[je?(0,A.jsx)(ga,{className:$t([rs.articleTitle]),...S}):null,Me?(0,A.jsx)(Jo,{isSmall:!0,withoutBackground:!0,author:C,shouldLoad:Re,className:rs.author}):null]})})]})]}):null,t[109]=Ge,t[110]=C,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,A.jsx)(wn,{placeholderProps:Pt,emptyLabel:Bt,emptyClassName:rs.empty,isEmpty:Et,children:Vt}),t[131]=Et,t[132]=Vt,t[133]=Dt):Dt=t[133],t[134]!==It||t[135]!==Dt?(_t=(0,A.jsx)(Yn,{className:It,children:Dt}),t[134]=It,t[135]=Dt,t[136]=_t):_t=t[136],t[137]!==O||t[138]!==kt||t[139]!==At||t[140]!==_t||t[141]!==_?(Ot=(0,A.jsxs)(Yn,{className:rs.content,width:_,height:O,children:[kt,At,_t]}),t[137]=O,t[138]=kt,t[139]=At,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,A.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 ds(e){return`translateY(${e}%`}function us(){}var ms={id:"urbania-article-card",type:"screen",namespaces:["urbania"],group:{label:(0,I.zR)({id:"oPjl8f",defaultMessage:"Urbania"}),order:10},title:(0,I.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,A.jsx)(as,{component:cs,callToAction:o,...e}),t[4]=o,t[5]=e,t[6]=s):s=t[6],s},fields:[{name:"url",type:"url",label:(0,I.zR)({id:"2pO2Cj",defaultMessage:"Url"})},{name:"title",type:"heading-element",label:(0,I.zR)({id:"N25iDO",defaultMessage:"Title"})},{name:"author",type:"author-element",label:(0,I.zR)({id:"73hxYw",defaultMessage:"Author"})},{name:"text",type:"text-element",fieldsProps:{textStyle:{excludedFields:["highlight","link"]}},label:(0,I.zR)({id:"4E2gbX",defaultMessage:"Text"})},{name:"background",type:"background",label:(0,I.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"cardCallToAction",type:"text-element",fieldsProps:{textStyle:{excludedFields:["highlight","link"]}},label:(0,I.zR)({id:"eBFxNl",defaultMessage:"Call to Action"})},{name:"header",type:"header",label:(0,I.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}}]},gs=l.p+"static/media/38b67a045c917eba.e6e69508c2874940ccf5.png",hs=l.p+"static/media/f1d91f035ccb8c4f.cf7fe3cdf6b99f3937c0.png",ys=l.p+"static/media/c2730eca851f3186.6b706bc308ab406bdc0a.png",ps=l.p+"static/media/a6d606997910361a.798f151041dae7550524.png",fs=l.p+"static/media/12148919dcf14f67.86a591223295244b0d7f.png",bs=l.p+"static/media/5ccc4bde48c478ee.906bd043a9344f192acf.png",vs=l.p+"static/media/d94c6aef4634d47f.0aa17efacea9438ca7af.png",xs=l.p+"static/media/bc3a4d9747d9235c.cb79868c1299ee1d9ce6.png",Ss=l.p+"static/media/4aec8c7b2b1f6739.f679137fdc2040d22d60.png",Cs=l.p+"static/media/01b9ca612cf4a6a6.77c1dfc199d2da49d465.png",ws=l.p+"static/media/3a3a4d27b9a019b2.a66beb0b99213523e04d.png",js=l.p+"static/media/f3452bab9d2d80d5.eae38988e000ba051294.png",ks=l.p+"static/media/f82faebe2d495394.042a94dd81202e81b92e.png",Ms=l.p+"static/media/ddafd58fab0d5925.d89063fa6da5b944d7ef.png",Ns=l.p+"static/media/7d6b81c3035f5968.846ef58b3f258346f088.png",$s=l.p+"static/media/422146a5faadb139.13a3f00ad0c07d3f9741.png",Fs=l.p+"static/media/ead69accd3f76ece.a95331e7f1e86a05ff08.png",Ts=l.p+"static/media/36c18c31d1e80a70.653a2699b3b21d9b1ed9.png",Rs=l.p+"static/media/ef219f6696d5ce04.a08d7046ef2af71205ba.png",zs=l.p+"static/media/f21db7431692d889.3f599fa556b406bbed82.png",Ls=l.p+"static/media/0964d576c4c1da6d.6476c469b305c7e636c9.png",As=l.p+"static/media/1ffa37309c1fbcfa.12c9287ed3fe592ee844.png",Is=l.p+"static/media/822018b354054d62.c8e23b27e8f926515005.png",Ps=l.p+"static/media/b3e1e35461e78e82.a86f7561afbc039e2933.png",Bs=[{id:"aries",image:hs,thumbnail:Ms,label:(0,I.zR)({id:"/PJA/1",defaultMessage:"Aries"}),date:(0,I.zR)({id:"ZeosMy",defaultMessage:"Mar 21 - Apr 19"})},{id:"taurus",image:ws,thumbnail:Is,label:(0,I.zR)({id:"XKcyqx",defaultMessage:"Taurus"}),date:(0,I.zR)({id:"raUY02",defaultMessage:"Apr 20 - May 20"})},{id:"gemini",image:fs,thumbnail:Fs,label:(0,I.zR)({id:"4g35M0",defaultMessage:"Gemini"}),date:(0,I.zR)({id:"142Fjj",defaultMessage:"May 21 - June 20"})},{id:"cancer",image:ys,thumbnail:Ns,label:(0,I.zR)({id:"0acGK7",defaultMessage:"Cancer"}),date:(0,I.zR)({id:"bMdONM",defaultMessage:"June 21 - July 22"})},{id:"leo",image:bs,thumbnail:Ts,label:(0,I.zR)({id:"EEUc6n",defaultMessage:"Leo"}),date:(0,I.zR)({id:"MBgLeH",defaultMessage:"July 23 - Aug 22"})},{id:"virgo",image:js,thumbnail:Ps,label:(0,I.zR)({id:"6bd963",defaultMessage:"Virgo"}),date:(0,I.zR)({id:"xL0GD2",defaultMessage:"Aug 23 - Sept 22"})},{id:"libra",image:vs,thumbnail:Rs,label:(0,I.zR)({id:"M/FGRs",defaultMessage:"Libra"}),date:(0,I.zR)({id:"F0QDfY",defaultMessage:"Sept 23 - Oct 22"})},{id:"scorpio",image:Cs,thumbnail:As,label:(0,I.zR)({id:"YyPYHk",defaultMessage:"Scorpio"}),date:(0,I.zR)({id:"7ZzlUE",defaultMessage:"Oct 23 - Nov 22"})},{id:"sagittarius",image:Ss,thumbnail:Ls,label:(0,I.zR)({id:"7mMPO4",defaultMessage:"Sagittarius"}),date:(0,I.zR)({id:"yCj5uv",defaultMessage:"Nov 23 - Dec 21"})},{id:"capricorn",image:ps,thumbnail:$s,label:(0,I.zR)({id:"NumcrW",defaultMessage:"Capricorn"}),date:(0,I.zR)({id:"rAkTvt",defaultMessage:"Dec 22 - Jan 20"})},{id:"aquarius",image:gs,thumbnail:ks,label:(0,I.zR)({id:"fBii8l",defaultMessage:"Aquarius"}),date:(0,I.zR)({id:"Op1ZIp",defaultMessage:"Jan 21 - Feb 18"})},{id:"pisces",image:xs,thumbnail:zs,label:(0,I.zR)({id:"dxAumJ",defaultMessage:"Pisces"}),date:(0,I.zR)({id:"Evl2dG",defaultMessage:"Feb 19 - Mar 20"})}],Es={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 Vs(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,A.jsx)(hn,{className:Es.placeholder}),S=(0,A.jsx)(I.sA,{id:"ceaRdq",defaultMessage:"Horoscope sign"}),t[2]=x,t[3]=S):(x=t[2],S=t[3]);const C=!p;let w;t[4]!==s?(w=$t([Es.container,s]),t[4]=s,t[5]=w):w=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,A.jsx)("img",{className:Es.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,A.jsx)(I.sA,{...b}):null,t[9]=b,t[10]=M):M=t[10],t[11]!==M?(N=(0,A.jsx)("h2",{className:Es.name,children:M}),t[11]=M,t[12]=N):N=t[12],t[13]!==v?($=null!==v?(0,A.jsx)(I.sA,{...v}):null,t[13]=v,t[14]=$):$=t[14],t[15]!==$?(F=(0,A.jsx)("p",{className:Es.date,children:$}),t[15]=$,t[16]=F):F=t[16],t[17]!==N||t[18]!==F?(T=(0,A.jsxs)("div",{className:Es.gridText,children:[N,F]}),t[17]=N,t[18]=F,t[19]=T):T=t[19],t[20]!==d||t[21]!==w||t[22]!==j||t[23]!==k||t[24]!==T?(R=(0,A.jsxs)("button",{className:w,type:"button",tabIndex:j,onClick:d,children:[k,T]}),t[20]=d,t[21]=w,t[22]=j,t[23]=k,t[24]=T,t[25]=R):R=t[25],t[26]!==C||t[27]!==R?(z=(0,A.jsx)(wn,{placeholder:x,emptyLabel:S,emptyClassName:Es.emptyText,isEmpty:C,children:R}),t[26]=C,t[27]=R,t[28]=z):z=t[28],z}var Ds={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 _s(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:C,image:w,date:j,word:k,description:M}=S,N=void 0===C?null:C,$=void 0===w?null:w,F=void 0===k?null:k,T=void 0===M?null:M,{isEdit:R}=nt();let z;t[2]!==F?(z=ge(F),t[2]=F,t[3]=z):z=t[3];const L=z;let P;t[4]!==y?(P=ge(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=$t([Ds.container,x,{[Ds.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,A.jsx)(wn,{children:(0,A.jsx)("h2",{className:Ds.name,children:(0,A.jsx)(I.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,A.jsxs)("div",{className:Ds.wordContainer,children:[B?(0,A.jsx)(ga,{className:Ds.wordOfTheWeek,...y}):(0,A.jsx)("h3",{className:Ds.wordOfTheWeek,children:(0,A.jsx)(I.sA,{id:"+vzDdb",defaultMessage:"Word of the Week"})}),(0,A.jsx)(Pn,{className:Ds.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,A.jsx)(Pn,{className:Ds.description,...T}):null,t[18]=T,t[19]=Z):Z=t[19],t[20]!==$||t[21]!==N?(W=$?(0,A.jsx)("img",{className:Ds.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,A.jsxs)("div",{className:Ds.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,A.jsx)(Sa,{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,A.jsx)("button",{type:"button",className:Ds.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,A.jsx)(Yn,{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 Os={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 Hs={onTouchMove:e=>e.stopPropagation(),onTouchStart:e=>e.stopPropagation(),onTouchEnd:e=>e.stopPropagation(),onPointerMove:e=>e.stopPropagation(),onPointerUp:e=>e.stopPropagation(),onPointerDown:e=>e.stopPropagation()},Zs={...Hs,onClick:e=>e.stopPropagation(),style:{position:"fixed",zIndex:"1000",top:0,right:0,bottom:0,left:0,cursor:"default"}};function Ws(e){return e<.25?"none":"auto"}function qs(){return(0,A.jsx)("div",{className:Os.placeholderItem})}function Gs(e){return{transform:e.to(Us),pointerEvents:e.to(Ys)}}function Ys(e){return e<.1?"none":"auto"}function Us(e){return`translateY(${100*(1-(e<.2?.1*e+e:e))}%)`}function Qs(e){return{opacity:e}}function Xs(e){return{transform:e.to(Js),opacity:e}}function Js(e){return`translateY(${2*(1-e)}rem)`}function Ks(e){return{opacity:e,transform:e.to(er)}}function er(e){return`translateY(${3*(1-e)**5}rem) scale(${1-.25*(1-e)})`}function tr(e){return{opacity:e,pointerEvents:e.to(lr)}}function lr(e){return e<.25?"none":"auto"}function nr(e){return{transform:e.to(ir),opacity:e.to(ar)}}function ar(e){return e>.25?1-e:1}function ir(e){return`translateY(${-100*e*(1-e)}%)`}var or=[{id:"urbania-horoscope",type:"screen",namespaces:["urbania","bayard"],group:{label:(0,I.zR)({id:"oPjl8f",defaultMessage:"Urbania"}),order:10},title:(0,I.zR)({id:"F59wsl",defaultMessage:"Urbania horoscope"}),component:function(e){const t=(0,i.c)(166),{defaultSigns:l,signs:a,title:o,description:s,author:r,button:c,signSubtitle:d,spacing:u,background:m,popupBackground:g,current:h,preload:y,type:p,mediaRef:f,className:b}=e,v=void 0===l?null:l,x=void 0===a?null:a,S=void 0===o?null:o,C=void 0===s?null:s,w=void 0===r?null:r,j=void 0===c?null:c,k=void 0===d?null:d,M=void 0===u?20:u,N=void 0===m?null:m,$=void 0===g?null:g,F=void 0===h||h,T=void 0===y||y,R=void 0===p?"horoscope":p,z=void 0===f?null:f,L=void 0===b?null:b,P=(0,I.tz)(),B=sl(R),{enableInteraction:E,disableInteraction:V}=pt(),{muted:D}=Qe(),{ref:_,isCurrent:O}=Xe(F,!0),H=void 0!==O&&O;let Z;t[0]!==w?(Z=null!==w&&ge(w.name),t[0]=w,t[1]=Z):Z=t[1];const W=Z,q=v||Bs;let G;if(t[2]!==x||t[3]!==q){let e;t[5]!==x?(e=(e,t)=>({...null!==x?x.find(t=>{const{id:l}=t;return l===e.id})||x[t]:null,...e}),t[5]=x,t[6]=e):e=t[6],G=q.map(e),t[2]=x,t[3]=q,t[4]=G}else G=t[4];const Y=G,{width:U,height:Q,resolution:X}=st(),{topHeight:J,bottomHeight:K}=gt(),{isView:ee,isPreview:te,isPlaceholder:le,isEdit:ne}=nt();let ae;t[7]!==S?(ae=ge(S),t[7]=S,t[8]=ae):ae=t[8];const ie=ae;let oe;t[9]!==C?(oe=ge(C),t[9]=C,t[10]=oe):oe=t[10];const se=oe;let re;t[11]!==j?(re=ge(j),t[11]=j,t[12]=re):re=t[12];const ce=re,de=F&&(ee||ne)&&(H||!ee),ue=!le&&(F||T),[me,he]=(0,n.useState)(!1),[pe,fe]=(0,n.useState)(null),[be,ve]=(0,n.useState)(!1);let xe;t[13]!==$?(xe=$||{},t[13]=$,t[14]=xe):xe=t[14];const{video:Se}=xe,Ce=void 0===Se?null:Se;let we;t[15]!==Ce?(we=Ce||{},t[15]=Ce,t[16]=we):we=t[16];const{url:je}=we,ke=void 0===je?null:je;let Me;t[17]!==V||t[18]!==B?(Me=()=>{he(!0),V(),B("open")},t[17]=V,t[18]=B,t[19]=Me):Me=t[19];const Ne=Me;let $e;t[20]!==E||t[21]!==be||t[22]!==B?($e=()=>{be?ve(!1):(he(!1),ve(!1),E(),B("close"))},t[20]=E,t[21]=be,t[22]=B,t[23]=$e):$e=t[23];const Fe=$e;let Te;t[24]!==Y||t[25]!==B?(Te=(e,t)=>{e.stopPropagation();const l=Y.findIndex(e=>e.id===t);fe(l),ve(!0),B("select_sign",Y[l])},t[24]=Y,t[25]=B,t[26]=Te):Te=t[26];const Re=Te;let ze;t[27]!==B?(ze=()=>{ve(!1),B("close_sign")},t[27]=B,t[28]=ze):ze=t[28];const Le=ze;let Ae;t[29]!==Fe?(Ae=e=>{const{active:t,movement:l,velocity:n}=e,[,a]=l,[,i]=n,o="undefined"!=typeof window?window.innerHeight:0,s=o>0?Math.max(0,a)/(.8*o):0,r=i>.3||Math.abs(s)>.3;return t?1-s:(r&&Fe(),r?0:1)},t[29]=Fe,t[30]=Ae):Ae=t[30];const Ie=Ae,Pe=!ee,Be=me?1:0;let Ee,Ve,De;t[31]===Symbol.for("react.memo_cache_sentinel")?(Ee={config:{tension:300,friction:30}},Ve={pointer:{keys:!1}},t[31]=Ee,t[32]=Ve):(Ee=t[31],Ve=t[32]),t[33]!==Ie||t[34]!==Pe||t[35]!==Be?(De={disabled:Pe,progress:Be,computeProgress:Ie,springParams:Ee,dragOptions:Ve},t[33]=Ie,t[34]=Pe,t[35]=Be,t[36]=De):De=t[36];const{bind:_e,progress:Oe}=Bt(De);let He;t[37]!==Le?(He=e=>{const{active:t,movement:l,velocity:n}=e,[,a]=l,[,i]=n,o="undefined"!=typeof window?window.innerHeight:0,s=o>0?Math.max(0,a)/o:0,r=.5*s,c=i>.3||Math.abs(s)>.3;return t?1-r:(c&&Le(),c?0:1)},t[37]=Le,t[38]=He):He=t[38];const Ze=He,We=!ee,qe=be?1:0;let Ge,Ye,Ue;t[39]===Symbol.for("react.memo_cache_sentinel")?(Ge={config:{tension:300,friction:30}},Ye={pointer:{keys:!1}},t[39]=Ge,t[40]=Ye):(Ge=t[39],Ye=t[40]),t[41]!==Ze||t[42]!==We||t[43]!==qe?(Ue={disabled:We,progress:qe,computeProgress:Ze,springParams:Ge,dragOptions:Ye},t[41]=Ze,t[42]=We,t[43]=qe,t[44]=Ue):Ue=t[44];const{bind:Je,progress:Ke}=Bt(Ue),et=nr,tt=tr,lt=Ks,it=Xs,ot=Qs,rt=Gs,ct=at();let dt,ut,mt,ht,yt;t[45]!==ct?(dt=()=>{if(he(!1),null!==ct&&"intro"!==ct||(he(!1),ve(!1)),"grid"===ct&&(he(!0),fe(null),ve(!1)),null!==ct&&ct.includes("signs")){const e=ct.split(".").pop();he(!0),ve(!0),fe(e)}},ut=[ct,he,ve,fe],t[45]=ct,t[46]=dt,t[47]=ut):(dt=t[46],ut=t[47]),(0,n.useEffect)(dt,ut),t[48]!==Le||t[49]!==Fe||t[50]!==be||t[51]!==me?(mt=()=>{const e=e=>{if("Escape"===e.key){if(be)return void Le();me&&Fe()}};return document.addEventListener("keyup",e),()=>{document.removeEventListener("keyup",e)}},ht=[be,Le,me,Fe],t[48]=Le,t[49]=Fe,t[50]=be,t[51]=me,t[52]=mt,t[53]=ht):(mt=t[52],ht=t[53]),(0,n.useEffect)(mt,ht),t[54]!==L||t[55]!==le?(yt=$t([Os.container,L,{[Os.isPlaceholder]:le}]),t[54]=L,t[55]=le,t[56]=yt):yt=t[56];const ft=me?Hs:null;let bt,vt;t[57]!==ee?(bt=ee?null:(0,A.jsx)("div",{...Zs}),t[57]=ee,t[58]=bt):bt=t[58],t[59]!==F||t[60]!==le||t[61]!==te||t[62]!==M||t[63]!==K||t[64]!==J?(vt=le?null:{paddingLeft:M,paddingRight:M,paddingTop:(te?0:J)+M,paddingBottom:(F&&!te?K:0)+M},t[59]=F,t[60]=le,t[61]=te,t[62]=M,t[63]=K,t[64]=J,t[65]=vt):vt=t[65];const xt=.8*Q;let St,Ct,wt,jt;t[66]!==le?(St=le?(0,A.jsx)("div",{className:Os.placeholderGrid,children:[...Array(12).keys()].map(qs)}):null,t[66]=le,t[67]=St):St=t[67],t[68]!==Oe?(Ct=et(Oe),t[68]=Oe,t[69]=Ct):Ct=t[69],t[70]!==ie||t[71]!==S?(wt=(0,A.jsx)(wn,{emptyClassName:Os.emptyText,children:ie?(0,A.jsx)(ga,{className:Os.title,...S}):(0,A.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:Os.titleImage})}),t[70]=ie,t[71]=S,t[72]=wt):wt=t[72],t[73]===Symbol.for("react.memo_cache_sentinel")?(jt=(0,A.jsx)(I.sA,{id:"EQdIAR",defaultMessage:"Description"}),t[73]=jt):jt=t[73];const kt=!se;let Mt,Nt,Ft,Tt;t[74]!==C||t[75]!==se?(Mt=se?(0,A.jsx)(Pn,{className:Os.description,...C}):null,t[74]=C,t[75]=se,t[76]=Mt):Mt=t[76],t[77]!==kt||t[78]!==Mt?(Nt=(0,A.jsx)(wn,{emptyLabel:jt,emptyClassName:Os.emptyText,isEmpty:kt,children:Mt},"description"),t[77]=kt,t[78]=Mt,t[79]=Nt):Nt=t[79],t[80]!==Ct||t[81]!==wt||t[82]!==Nt?(Ft=(0,A.jsxs)(Tl.CS.div,{className:Os.headerContainer,style:Ct,children:[wt,Nt]}),t[80]=Ct,t[81]=wt,t[82]=Nt,t[83]=Ft):Ft=t[83],t[84]===Symbol.for("react.memo_cache_sentinel")?(Tt=(0,A.jsx)(I.sA,{id:"bv3rRe",defaultMessage:"Button"}),t[84]=Tt):Tt=t[84];const Rt=!ce;let zt,Lt,At,It,Pt,Et;t[85]!==j||t[86]!==F||t[87]!==ce||t[88]!==le||t[89]!==te||t[90]!==Ne?(zt=ce?(0,A.jsx)(ta,{className:Os.button,type:"button",onClick:Ne,withoutBootstrapStyles:!0,focusable:F&&!te&&!le,...j,children:(0,A.jsx)(Pn,{className:Os.buttonLabel,...j,inline:!0})}):null,t[85]=j,t[86]=F,t[87]=ce,t[88]=le,t[89]=te,t[90]=Ne,t[91]=zt):zt=t[91],t[92]!==Rt||t[93]!==zt?(Lt=(0,A.jsx)(wn,{emptyLabel:Tt,emptyClassName:Os.emptyText,isEmpty:Rt,children:zt}),t[92]=Rt,t[93]=zt,t[94]=Lt):Lt=t[94],t[95]!==P||t[96]!==le||t[97]!==te||t[98]!==ee||t[99]!==Fe||t[100]!==be||t[101]!==me||t[102]!==Oe?(At=ee&&!le?(0,A.jsx)(Tl.CS.div,{className:Os.header,style:{opacity:Oe,pointerEvents:Oe.to(Ws)},children:(0,A.jsx)("div",{className:Os.buttons,children:(0,A.jsx)(ta,{className:Os.close,onClick:Fe,label:P.formatMessage({id:"dj/p/q",defaultMessage:"Close"}),iconPosition:"right",icon:(0,A.jsx)("svg",{className:Os.closeIcon,xmlns:"http://www.w3.org/2000/svg",width:"10",height:"16",viewBox:"0 0 10 16",fill:"currentColor",children:(0,A.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:!te&&!le&&(me||be),withoutStyle:!0})})}):null,t[95]=P,t[96]=le,t[97]=te,t[98]=ee,t[99]=Fe,t[100]=be,t[101]=me,t[102]=Oe,t[103]=At):At=t[103],t[104]!==w||t[105]!==_e||t[106]!==W||t[107]!==le||t[108]!==te||t[109]!==ue||t[110]!==Re||t[111]!==be||t[112]!==me||t[113]!==Oe||t[114]!==Y?(It=le?null:(0,A.jsxs)(Tl.CS.div,{className:Os.signsGridContainer,style:tt(Oe),..._e(),children:[(0,A.jsx)(xi,{columns:3,spacing:5,withoutCloseButton:!0,items:Y.map(e=>{const{id:t}=e||{},l=void 0===t?null:t;return(0,A.jsx)(Tl.CS.div,{className:Os.sign,style:lt(Oe),children:(0,A.jsx)(Vs,{sign:e,focusable:!te&&!le&&me&&!be,onClick:e=>Re(e,l)},l)},l)})}),(0,A.jsx)(wn,{emptyLabel:(0,A.jsx)(I.sA,{id:"xYqGzM",defaultMessage:"Author"}),emptyClassName:Os.emptyText,isEmpty:!W,children:W&&!le?(0,A.jsx)(Jo,{author:w,className:Os.author,collaboratorClassName:Os.collaborator,backgroundClassName:Os.authorBackground,shouldLoad:ue,style:it(Oe)}):null},"author")]}),t[104]=w,t[105]=_e,t[106]=W,t[107]=le,t[108]=te,t[109]=ue,t[110]=Re,t[111]=be,t[112]=me,t[113]=Oe,t[114]=Y,t[115]=It):It=t[115],t[116]!==Ke?(Pt=rt(Ke),t[116]=Ke,t[117]=Pt):Pt=t[117],t[118]!==Je?(Et=Je(),t[118]=Je,t[119]=Et):Et=t[119];const Vt=Y[pe],Dt=!te&&!le&&be;let _t,Ot,Ht,Zt,Wt,qt,Gt;return t[120]!==Q||t[121]!==Le||t[122]!==k||t[123]!==Vt||t[124]!==Dt||t[125]!==U?(_t=(0,A.jsx)(_s,{width:U,height:Q,sign:Vt,subtitle:k,focusable:Dt,onClick:Le}),t[120]=Q,t[121]=Le,t[122]=k,t[123]=Vt,t[124]=Dt,t[125]=U,t[126]=_t):_t=t[126],t[127]!==Pt||t[128]!==Et||t[129]!==_t?(Ot=(0,A.jsx)(Tl.CS.div,{className:Os.modal,style:Pt,...Et,children:_t}),t[127]=Pt,t[128]=Et,t[129]=_t,t[130]=Ot):Ot=t[130],t[131]!==le||t[132]!==ke||t[133]!==Oe?(Ht=le?null:(0,A.jsx)(Tl.CS.div,{className:Os.backdrop,style:ot(Oe),children:null!==ke?(0,A.jsx)("video",{className:Os.videoBackdrop,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,children:(0,A.jsx)("source",{src:ke,type:"video/mp4"})}):null}),t[131]=le,t[132]=ke,t[133]=Oe,t[134]=Ht):Ht=t[134],t[135]!==vt||t[136]!==xt||t[137]!==St||t[138]!==Ft||t[139]!==Lt||t[140]!==At||t[141]!==It||t[142]!==Ot||t[143]!==Ht?(Zt=(0,A.jsxs)(va,{className:Os.layout,style:vt,height:xt,children:[St,Ft,Lt,At,It,Ot,Ht]}),t[135]=vt,t[136]=xt,t[137]=St,t[138]=Ft,t[139]=Lt,t[140]=At,t[141]=It,t[142]=Ot,t[143]=Ht,t[144]=Zt):Zt=t[144],t[145]!==Q||t[146]!==Zt||t[147]!==U?(Wt=(0,A.jsx)(Yn,{width:U,height:Q,className:Os.content,children:Zt}),t[145]=Q,t[146]=Zt,t[147]=U,t[148]=Wt):Wt=t[148],t[149]!==N||t[150]!==de||t[151]!==z||t[152]!==Q||t[153]!==le||t[154]!==_||t[155]!==ue||t[156]!==D||t[157]!==X||t[158]!==U?(qt=le?null:(0,A.jsx)(Gn,{background:N,width:U,height:Q,resolution:X,playing:de,muted:D,shouldLoad:ue,mediaRef:ye(_,z),className:Os.background}),t[149]=N,t[150]=de,t[151]=z,t[152]=Q,t[153]=le,t[154]=_,t[155]=ue,t[156]=D,t[157]=X,t[158]=U,t[159]=qt):qt=t[159],t[160]!==yt||t[161]!==ft||t[162]!==bt||t[163]!==Wt||t[164]!==qt?(Gt=(0,A.jsxs)("div",{className:yt,"data-screen-ready":!0,...ft,children:[bt,Wt,qt]}),t[160]=yt,t[161]=ft,t[162]=bt,t[163]=Wt,t[164]=qt,t[165]=Gt):Gt=t[165],Gt},states:[{id:"intro",label:(0,I.zR)({id:"82g1F5",defaultMessage:"Intro"}),fields:[{name:"title",type:"heading-element",label:(0,I.zR)({id:"N25iDO",defaultMessage:"Title"})},{name:"description",type:"text-element",label:(0,I.zR)({id:"Y7bs1v",defaultMessage:"Description"})},{name:"button",type:"button-element",label:(0,I.zR)({id:"i6bmbD",defaultMessage:"Button"})},{name:"background",type:"background",label:(0,I.zR)({id:"+MPZRu",defaultMessage:"Background"})}]},{id:"grid",label:(0,I.zR)({id:"xj0o1v",defaultMessage:"Grid"}),fields:[{name:"popupBackground",type:"background",label:(0,I.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"author",type:"author-element",label:(0,I.zR)({id:"73hxYw",defaultMessage:"Author"})}]},{id:"signs",label:(0,I.zR)({id:"ap68Fp",defaultMessage:"Signs"}),defaultValue:Bs,repeatable:!0,withoutCreate:!0,fieldName:"signs",fields:[{name:"word",type:"heading-element",label:(0,I.zR)({id:"fLdjGi",defaultMessage:"Word of the week"})},{name:"description",type:"text-element",label:(0,I.zR)({id:"ZCe0r4",defaultMessage:"Description"})}]}],fields:[{name:"signSubtitle",type:"heading-element",defaultValue:{body:"Le mot de la semaine"},label:(0,I.zR)({id:"Qe03Xz",defaultMessage:"Sign Subtitle"})},{name:"background",type:"background",label:(0,I.zR)({id:"+MPZRu",defaultMessage:"Background"})}]}],sr={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"},rr=[{id:"urbania-recommendation",type:"screen",namespaces:["urbania","bayard"],group:{label:(0,I.zR)({id:"oPjl8f",defaultMessage:"Urbania"}),order:10},title:(0,I.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,I.tz)(),C=sl(),{width:w,height:j,resolution:k}=st(),{topHeight:M,bottomHeight:N,bottomSidesWidth:$}=gt(),{open:F}=ft(),{playing:T,setPlaying:R,muted:z,setMuted:L}=Qe(),{ref:P,isCurrent:B=!1}=Xe(p,!0),{enableInteraction:E,disableInteraction:V}=pt(),{isView:D,isPreview:_,isPlaceholder:O,isEdit:Z,isStatic:W}=nt(),G=p&&!O&&!W&&!_&&!Z,[Y,U]=(0,n.useState)(G),[Q,X]=(0,n.useState)(!1),{image:J=null}=l||{},{type:K=null,metadata:te=null}=J||{},{width:le=0,height:ae=0}=te||{},ie=null!==J,oe="video"===K,se=ie&&oe&&le>ae,de=ge(t),ue=ge(a),me=ge(i),he=ge(o),pe=ge(s),fe=ge(r),be=de||ue||me||he||pe||fe,ve=p&&(D||Z)&&(B||!D),xe=p&&(D||Z)&&T&&(B||!D),Se=p||b,Ce=!D&&!Z||!p,we=re(d),je=ce(u),ke=q(u,{isView:D,current:p,openWebView:F,isPreview:_}),[Me,Ne]=(0,n.useState)(!1),{ref:$e,entry:{contentRect:Fe=null}}=(0,Tt.wY)(),{width:Te=0,height:Re=0}=Fe||{},[ze,Le]=(0,n.useState)(!1),[Ae,Ie]=(0,n.useState)(!1),Pe=!ze&&!Ae,{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,A.jsx)("span",{children:e})),[Ee]);(0,n.useEffect)(()=>{let e=null;return Y&&(e=setTimeout(()=>{U(!1),X(!0)},1600)),()=>{clearTimeout(e)}},[Y,G,X,U]),(0,n.useEffect)(()=>{U(!(!D||W||!p))},[D,p,U]);const _e=(0,n.useCallback)(({initial:e})=>{e&&C("scroll","Screen"),Ne(!0)},[C]),Oe=(0,n.useCallback)(()=>{Ne(!1)},[Ne]),He=(0,n.useCallback)((e=null)=>{if(null!==e){const t=Math.round(100*e);C("scroll",t,{scrollPercent:t})}},[C]);(0,n.useEffect)(()=>{let e=null;return ze&&(e=setTimeout(()=>{Le(!1),Ie(!0)},400)),p||Ie(!1),()=>{clearTimeout(e)}},[ze,Le,p]);const Ze=(0,n.useCallback)(()=>{Ae||Le(!0),z&&oe&&L(!1)},[Ie]),We=(0,n.useCallback)(()=>{ze&&Le(!1),Ie(!1)},[Ie]);(0,n.useEffect)(()=>{Ae?V():E()},[p,Ae]),(0,n.useEffect)(()=>{const e=e=>{"Escape"===e.key&&Ae&&We()};return document.addEventListener("keyup",e),()=>{document.removeEventListener("keyup",e)}},[Ae,We]),(0,n.useEffect)(()=>{p&&!Y&&R(!0)},[p,Y]);const{titleTextStyle:qe,titleColor:Ge,titleFontWeight:Ye,titleFontStyle:Ue,categoryTextStyle:Je,categoryFontWeight:Ke,categoryFontStyle:et,descriptionTextStyle:tt,descriptionFontWeight:lt,dateTextStyle:at,dateFontStyle:it,locationTextStyle:ot,locationFontStyle:rt,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:C=null}=i||{},{fontFamily:w=null,fontStyle:j=null}=C||{},k=null===w?{...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:A=null,fontStyle:I=null}=Ve||{};return{defaultTextTransform:m,titleColor:d,titleTextStyle:e,titleFontWeight:u,titleFontStyle:g,categoryTextStyle:h,categoryFontWeight:f,categoryFontStyle:b,descriptionTextStyle:v,descriptionFontWeight:S,dateTextStyle:C,dateFontStyle:k,locationTextStyle:M,locationFontStyle:F,sponsorTextStyle:T,sponsorFontStyle:L,backgroundFontStyle:null===A?{...I,transform:"uppercase"}:I}},[a,t,s,i,o,r,Ve]),mt=O?null:ee(g),{borderRadius:ht=null}=mt||{},yt=0===ht,bt=(0,n.useMemo)(()=>null!==h?H(h):Ge,[h,Ge]);return(0,A.jsxs)("div",{className:$t([sr.container,x,{[sr.isPlaceholder]:O}]),"data-screen-ready":!0,children:[(0,A.jsx)(Yn,{width:w,height:j,className:sr.content,children:(0,A.jsx)(Sa,{width:w,height:j,disabled:Ce,onScrolledTrigger:He,onScrolledBottom:_e,onScrolledNotBottom:Oe,verticalAlign:"middle",withShadow:!Ae,withArrow:!Ae,className:sr.scroll,children:(0,A.jsxs)(va,{className:sr.layout,width:w,style:O?null:{paddingLeft:c,paddingRight:c,paddingTop:(_?0:M)+c/2,paddingBottom:(p&&!_?N:0)+c/2,minHeight:j},children:[!O&&we?(0,A.jsx)("div",{style:{paddingBottom:c},className:$t([sr.headerContainer]),children:(0,A.jsx)(ua,{...d})},"header"):null,O?null:(0,A.jsx)(fa,{},"spacer-cta-top"),Ae?(0,A.jsx)(ta,{className:sr.close,onClick:We,children:(0,A.jsx)(Yl,{className:sr.closeIcon})}):null,be||O||Z?(0,A.jsxs)(Yn,{className:$t([sr.textCard,{[sr.isPlaceholder]:O,[sr.visualBottom]:"bottom"===e,[sr.appear]:Y,[sr.modalOpened]:ze||Ae,[sr.hidden]:!p&&D&&!_}]),style:{...mt,...yt?{borderRadius:0}:null},children:[(0,A.jsxs)("div",{className:$t([sr.visualContainer,{[sr.modalOpened]:ze||Ae}]),style:null!==ht?"bottom"===e?{borderBottomLeftRadius:ht,borderBottomRightRadius:ht}:{borderTopLeftRadius:ht,borderTopRightRadius:ht}:null,children:[(0,A.jsx)(wn,{placeholder:(0,A.jsx)(rn,{className:sr.visualPlaceholder}),emptyLabel:(0,A.jsx)(I.sA,{id:"JzSBzL",defaultMessage:"Visual"}),emptyClassName:$t([sr.empty,sr.emptyVisual]),isEmpty:!ie,children:ie?(0,A.jsx)("div",{className:$t([sr.visualWrapper,{[sr.modalOpened]:ze||Ae}]),style:ze||Ae?{width:w,height:j}:{width:Te,height:"auto"},children:(0,A.jsxs)(ta,{className:$t([sr.visualButton,{[sr.transitioning]:ze,[sr.disabled]:y}]),onClick:Ze,disabled:_||Y||Ae||y,focusable:p&&!_&&!Ae,"aria-label":S.formatMessage({id:"XHO5Ua",defaultMessage:"Expand visual"}),"aria-pressed":Ae,style:{transform:ze?`scale(${w/Te})`:null},children:[oe?(0,A.jsx)(Kn,{media:J,mediaRef:ye(P,v),width:ze||Ae?w:.9*(w-40)+1,height:ze||Ae?j:250,resolution:k,objectFit:{fit:(ze||Ae)&&se?"contain":"cover"},shouldLoad:Se,muted:z||!Ae,withoutVideo:_,playing:xe}):(0,A.jsx)(Kn,{media:J,width:Ae?w:Te,resolution:k,active:f,shouldLoad:Se}),Pe?(0,A.jsx)("div",{className:$t([sr.iconContainer,{[sr.visualBottom]:"bottom"===e,[sr.hidden]:y}]),children:oe?(0,A.jsx)(Zl,{color:"#000",className:sr.icon}):(0,A.jsx)(Hl,{color:"#000",className:sr.icon})}):null]})}):null},"visual"),(0,A.jsx)(wn,{placeholder:(0,A.jsx)(gn,{className:sr.sponsorPlaceholder}),children:fe?(0,A.jsx)(Pn,{className:$t([sr.sponsor,{[sr.hasVisual]:ie}]),...r,textStyle:{...ct,fontStyle:dt}}):null},"sponsor")]}),(0,A.jsxs)("div",{ref:$e,className:sr.text,children:[(0,A.jsx)(wn,{placeholder:(0,A.jsx)(hn,{className:sr.categoryPlaceholder}),emptyLabel:(0,A.jsx)(I.sA,{id:"I5+AHN",defaultMessage:"Category"}),emptyClassName:sr.emptyCategory,isEmpty:!de,children:de?(0,A.jsx)("div",{className:sr.categoryContainer,style:{width:Re},children:(0,A.jsx)(ga,{className:sr.category,...t,textStyle:{...Je,fontWeight:Ke,fontStyle:et}})}):null},"category"),(0,A.jsxs)("div",{className:$t([sr.textContent,{[sr.isPlaceholder]:O,[sr.withoutCategory]:!de}]),children:[(0,A.jsx)(wn,{placeholder:"title",emptyLabel:(0,A.jsx)(I.sA,{id:"2c1WFV",defaultMessage:"Title"}),emptyClassName:sr.emptyText,isEmpty:!ue,children:ue?(0,A.jsxs)("div",{className:sr.titleContainer,children:[(0,A.jsx)(ga,{className:sr.title,...a,textStyle:{...qe,fontWeight:Ye,fontStyle:Ue}}),(0,A.jsx)("hr",{className:sr.border,style:{borderColor:bt}})]}):null},"title"),(0,A.jsx)(wn,{placeholder:(0,A.jsx)(gn,{className:sr.datePlaceholder}),children:me?(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(Pn,{className:sr.date,...i,textStyle:{...at,fontStyle:it}}),(0,A.jsx)("hr",{className:sr.border,style:{borderColor:bt}})]}):null},"date"),(0,A.jsx)(wn,{placeholder:(0,A.jsx)(gn,{className:sr.locationPlaceholder}),children:he?(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(Pn,{className:sr.location,...o,textStyle:{...ot,fontStyle:rt}}),(0,A.jsx)("hr",{className:sr.border,style:{borderColor:bt}})]}):null},"location"),(0,A.jsx)(wn,{placeholder:(0,A.jsx)(gn,{className:sr.descriptionPlaceholder}),emptyLabel:(0,A.jsx)(I.sA,{id:"EQdIAR",defaultMessage:"Description"}),emptyClassName:sr.emptyText,isEmpty:!pe,children:pe?(0,A.jsx)(Pn,{className:sr.description,...s,textStyle:{...tt,fontWeight:lt}}):null},"description")]})]})]}):null,O?null:(0,A.jsx)(fa,{},"spacer-cta-bottom"),!O&&je?(0,A.jsx)("div",{className:$t([sr.footer,{[sr.disabled]:!Me&&!Ae}]),style:{paddingTop:c,paddingLeft:Math.max(0,$-c),paddingRight:Math.max(0,$-c)},children:(0,A.jsx)(ra,{...ke})},"footer"):null]})})}),O?null:(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(Gn,{background:m,width:w,height:j,resolution:k,playing:ve&&!Ae,muted:z||Ae,shouldLoad:Se,mediaRef:ye(P,v),withoutVideo:_,className:sr.background}),null!==Be&&De.length>0?(0,A.jsx)(Yn,{width:w,height:j,className:sr.backgroundTextContainer,children:(De||[]).map((e,t)=>(0,A.jsx)("div",{className:$t([sr.backgroundText],{[sr.hidden]:!p&&D&&!_,[sr.didAnimate]:Q,[sr.animateFromBottom]:Y&&t%2!=0,[sr.animateFromTop]:Y&&t%2==0}),style:{animationDelay:100*t+"ms",...ne({...Ve,fontStyle:ut})},children:e},`reco-background-text-${t+1}`))}):null]})]})},layouts:["top","bottom"],fields:[{name:"layout",type:"screen-layout",label:(0,I.zR)({id:"4iBXj2",defaultMessage:"Layout"})},{name:"sponsor",type:"text-element",label:(0,I.zR)({id:"WY14Zu",defaultMessage:"Sponsor"})},{name:"visual",type:"fields",isList:!0,label:(0,I.zR)({id:"HwqzVR",defaultMessage:"Visual"}),fields:[{name:"image",type:"visual",label:(0,I.zR)({id:"xT/onn",defaultMessage:"Image"})}]},{name:"category",type:"heading-element",label:(0,I.zR)({id:"4grcMU",defaultMessage:"Category"})},{name:"title",type:"heading-element",label:(0,I.zR)({id:"N25iDO",defaultMessage:"Title"})},{name:"date",type:"text-element",label:(0,I.zR)({id:"yEG9zh",defaultMessage:"Date"})},{name:"location",type:"text-element",label:(0,I.zR)({id:"zLxBdl",defaultMessage:"Location"})},{name:"description",type:"text-element",label:(0,I.zR)({id:"Y7bs1v",defaultMessage:"Description"})},{name:"background",type:"background-recommendation",label:(0,I.zR)({id:"+MPZRu",defaultMessage:"Background"})},{id:"recommendation",type:"fields",isList:!0,label:(0,I.zR)({id:"hPXJzA",defaultMessage:"Box params"}),fields:[{name:"cardBoxStyle",type:"box-style-form",label:(0,I.zR)({id:"1yNxAl",defaultMessage:"Card box style"})},{name:"lineColor",type:"color",label:(0,I.zR)({id:"Jti6I6",defaultMessage:"Lines color"})},{name:"withoutZoom",type:"toggle",defaultValue:!1,label:(0,I.zR)({id:"ehuj8A",defaultMessage:"Without image zoom"})}]},{name:"header",type:"header",label:(0,I.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,I.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]}],cr={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 dr={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"},ur={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 mr={id:"urbania-trivia",type:"screen",namespaces:["urbania"],group:{label:(0,I.zR)({id:"oPjl8f",defaultMessage:"Urbania"}),order:10},title:(0,I.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=rl("video"),{width:h,height:y,resolution:p}=st(),{isView:f,isPreview:b,isPlaceholder:v,isEdit:x,isStatic:S,isCapture:C}=nt(),{bottomHeight:w}=gt(),{gotoNextScreen:j}=ht(),k=ge(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}=Qe(),{ref:G,isCurrent:Y=!1}=Xe(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=yt();(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,[he,ye]=(0,n.useState)(me),pe=(0,n.useMemo)(()=>me?{...l,autoPlay:!b&&!S&&!C&&F&&o}:null,[me,l,b,S,C,F,o]),{metadata:fe=null,url:be=null,thumbnail_url:ve=null}=T||{},xe=null!==be,{width:Se=0,height:Ce=0}=fe||{},{ref:we,height:je=0}=Dt(),ke=y-je-(c?2*c:40),{width:Me,height:Ne}=(0,Fl.kL)(Se,Ce,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?{...dr,...i}:{...dr,...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,A.jsxs)("div",{className:$t([cr.container,u,{[cr.fullscreen]:se}]),"data-screen-ready":S||C||he,children:[(0,A.jsx)(Yn,{width:h,height:y,className:cr.content,children:(0,A.jsx)("div",{className:cr.inner,style:Fe?{justifyContent:"flex-start",marginTop:2*r}:null,children:(0,A.jsxs)(Yn,{className:cr.itemsContainer,style:{marginTop:-r/2},children:[(0,A.jsx)(wn,{className:cr.headingScreenElement,placeholder:(0,A.jsx)(hn,{className:cr.placeholder,...Re}),empty:(0,A.jsx)("div",{className:cr.emptyContainer,children:(0,A.jsx)(Xl,{className:cr.empty,children:(0,A.jsx)(I.sA,{id:"oAtOlP",defaultMessage:"Heading"})})}),isEmpty:!k,children:k?(0,A.jsx)("div",{ref:we,children:(0,A.jsx)(ga,{className:cr.heading,...t})}):null},"heading"),(0,A.jsx)(wn,{className:cr.videoScreenElement,placeholder:(0,A.jsx)(yn,{className:cr.videoPlaceholder,...Re}),empty:(0,A.jsx)("div",{className:cr.emptyContainer,children:(0,A.jsx)(Xl,{className:cr.empty,children:(0,A.jsx)(I.sA,{id:"3ext9Q",defaultMessage:"Video"})})}),isEmpty:!xe,children:xe?(0,A.jsxs)("div",{className:cr.videoContainer,style:{width:Math.min(h,Me),height:Ne,left:$e>0?$e:null,maxHeight:ke},children:[b||C?(0,A.jsx)(Qn,{className:cr.image,media:{url:ve,metadata:{width:Se,height:Ce}},width:Math.min(h,Me),height:Ne,resolution:p}):(0,A.jsx)(On,{...pe,mediaRef:G,paused:!o||!E||!Y&&f,muted:V,width:Me,height:Ne,className:cr.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,A.jsx)("div",{className:cr.bottomContent,style:{transform:`translate(0, -${w}px)`},children:null===R||b||C||S?null:(0,A.jsx)(Ta,{className:cr.closedCaptions,media:R,currentTime:U})},"bottom-content"):null]}):null},"video")]})})}),v?(0,A.jsx)(Gn,{background:ur,className:cr.background,width:h,height:y,resolution:p,withoutVideo:b}):(0,A.jsx)(Gn,{background:Te,className:$t([cr.background,u,{[cr.isCustomBackground]:de,[cr.isAnimated]:ue}]),width:h,height:y,resolution:p,playing:M,shouldLoad:N,withoutVideo:b})]})},fields:[{name:"title",type:"heading-element",label:(0,I.zR)({id:"N25iDO",defaultMessage:"Title"})},{name:"video",type:"video-element",defaultValue:{autoPlay:!0},label:(0,I.zR)({id:"tvl2Zc",defaultMessage:"Video"})},{name:"gotoNextScreenOnEnd",type:"toggle",defaultValue:!1,label:(0,I.zR)({id:"n8zmLY",defaultMessage:"Go to next screen on end"})},{name:"background",type:"background",label:(0,I.zR)({id:"+MPZRu",defaultMessage:"Background"})}]},gr={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",videoContainer:"micromag-screen-video-videoContainer",fullscreen:"micromag-screen-video-fullscreen",image:"micromag-screen-video-image",video:"micromag-screen-video-video"};function hr(){}var yr={id:"video",type:"screen",group:{label:(0,I.zR)({id:"+9akmg",defaultMessage:"Audio and Video"}),order:5},title:(0,I.zR)({id:"UBXIYP",defaultMessage:"Video"}),component:function(e){const t=(0,i.c)(111),{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,C=void 0===d||d,w=void 0===m||m,j=void 0===g?20:g,k=void 0===h?null:h,M=void 0===y?null:y,N=rl("video"),{width:$,height:F,resolution:T}=st(),{isView:R,isPreview:z,isPlaceholder:L,isEdit:P,isStatic:B,isCapture:E}=nt(),{gotoNextScreen:V}=ht(),{topHeight:D,bottomHeight:_,bottomSidesWidth:O}=gt(),{open:H}=ft(),Z=C||w,W=b&&R&&C,{autoPlay:G,loop:Y,media:Q,thumbnail:X,captions:J,closedCaptions:K,withSeekBar:ee,withControls:te,color:le,progressColor:ne}=f||{},ae=void 0===G||G,ie=void 0!==Y&&Y,oe=void 0===Q?null:Q,se=void 0===X?null:X,de=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,pe=void 0===ne?null:ne,{playing:fe,muted:be,setControls:ve,setControlsSuggestPlay:xe,setControlsTheme:Se,setPlaying:Ce,controlsVisible:we,showControls:je,hideControls:ke,currentQualityLevel:Me,setCurrentQualityLevel:Ne}=Qe(),{ref:$e,isCurrent:Fe}=Xe(C),Te=void 0!==Fe&&Fe,[Re,ze]=(0,n.useState)(!1),Le=C&&(R||P)&&(Te||!R),Ae=C&&(R||P)&&fe&&(Te||!R),Ie=z||E;(0,n.useEffect)(()=>C?(Se({seekBarOnly:me&&!ge,color:he,progressColor:pe}),ve(!(!ge&&!me)),()=>{(ge||me)&&ve(!1)}):hr,[C,ge,ve,me,he,pe]),(0,n.useEffect)(()=>{C&&ae&&Ce(!0)},[C,ae]);const Pe=yt();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],It(C?Be:null,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=()=>{C&&!ie&&Ce(!1),C&&W&&V()},Je="full"===p;let Ke;t[6]!==v?(Ke=re(v),t[6]=v,t[7]=Ke):Ke=t[7];const et=Ke;let tt;t[8]!==x?(tt=ce(x),t[8]=x,t[9]=tt):tt=t[9];const lt=tt;let at;t[10]!==C||t[11]!==x||t[12]!==z||t[13]!==R||t[14]!==H?(at=q(x,{isView:R,current:C,openWebView:H,isPreview:z}),t[10]=C,t[11]=x,t[12]=z,t[13]=R,t[14]=H,t[15]=at):at=t[15];const it=at,ot=null!==f,[rt,ct]=(0,n.useState)(ot),dt=ot?{...f,autoPlay:!z&&!B&&!E&&ae&&C}:null,{metadata:ut,url:mt}=oe||{},pt=void 0===ut?null:ut,bt=void 0===mt?null:mt,vt=U(oe,se),xt=null!==bt,{width:St,height:Ct}=pt||{},wt=void 0===St?0:St,jt=void 0===Ct?0:Ct,{width:kt,height:Mt}=(0,Fl.kL)(wt,jt,$,F,{cover:Je}),Nt=-(kt-$)/2,Ft=-(Mt-F)/2;let Tt;!xt&&rt&&ct(!1),t[16]!==ct?(Tt=()=>{ct(!0)},t[16]=ct,t[17]=Tt):Tt=t[17];const Rt=Tt;let zt;t[18]!==ae||t[19]!==C||t[20]!==xt||t[21]!==R||t[22]!==fe||t[23]!==xe||t[24]!==Ce?(zt=()=>{R&&fe&&C&&xt&&ae&&(Ce(!1),xe(!0))},t[18]=ae,t[19]=C,t[20]=xt,t[21]=R,t[22]=fe,t[23]=xe,t[24]=Ce,t[25]=zt):zt=t[25];const Lt=zt;let At;t[26]!==M||t[27]!==Je?(At=$t([gr.container,M,{[gr.fullscreen]:Je}]),t[26]=M,t[27]=Je,t[28]=At):At=t[28];const Pt=B||E||rt;let Bt;t[29]!==we||t[30]!==C||t[31]!==et||t[32]!==v||t[33]!==L||t[34]!==z||t[35]!==j||t[36]!==D?(Bt=!L&&et?(0,A.jsx)("div",{className:gr.header,style:{paddingTop:j/2,paddingLeft:j,paddingRight:j,transform:z?null:`translate(0, ${D}px)`},children:(0,A.jsx)(ua,{fade:C&&!we,...v})},"header"):null,t[29]=we,t[30]=C,t[31]=et,t[32]=v,t[33]=L,t[34]=z,t[35]=j,t[36]=D,t[37]=Bt):Bt=t[37];const Et=Je?"100%":"50%",Vt=Je?"100%":"50%";let Dt,_t;t[38]!==Et||t[39]!==Vt?(Dt={width:Et,height:Vt},t[38]=Et,t[39]=Vt,t[40]=Dt):Dt=t[40],t[41]===Symbol.for("react.memo_cache_sentinel")?(_t=(0,A.jsx)("div",{className:gr.emptyContainer,children:(0,A.jsx)(Xl,{className:gr.empty,children:(0,A.jsx)(I.sA,{id:"3ext9Q",defaultMessage:"Video"})})}),t[41]=_t):_t=t[41];const Ot=!xt;let Ht,Zt,Wt,qt,Gt,Yt,Ut;return t[42]!==C||t[43]!==Me||t[44]!==k||t[45]!==vt||t[46]!==dt||t[47]!==xt||t[48]!==R||t[49]!==$e||t[50]!==Z||t[51]!==be||t[52]!==We||t[53]!==Ue||t[54]!==Ge||t[55]!==qe||t[56]!==Lt||t[57]!==He||t[58]!==Ye||t[59]!==Oe||t[60]!==Rt||t[61]!==Mt||t[62]!==Nt||t[63]!==Ft||t[64]!==kt||t[65]!==T||t[66]!==Ne||t[67]!==Ie||t[68]!==Ae?(Ht=xt?(0,A.jsx)("div",{className:gr.videoContainer,style:{width:kt,height:Mt,left:Nt,top:Ft},children:Ie?(0,A.jsx)(Qn,{className:gr.image,media:vt,width:kt,height:Mt,objectFit:{fit:"cover"},resolution:T,shouldLoad:Z}):(0,A.jsx)(On,{...dt,width:kt,height:Mt,paused:!Ae,muted:be,mediaRef:ye($e,k),className:gr.video,onReady:Rt,onPlay:qe,onPause:Ge,onTimeUpdate:Oe,onProgressStep:He,onDurationChange:We,onSeeked:Ye,onEnded:Ue,onPlayError:Lt,disablePictureInPicture:!0,focusable:C&&R,shouldLoad:Z,qualityStartLevel:Me,onQualityLevelChange:Ne})}):null,t[42]=C,t[43]=Me,t[44]=k,t[45]=vt,t[46]=dt,t[47]=xt,t[48]=R,t[49]=$e,t[50]=Z,t[51]=be,t[52]=We,t[53]=Ue,t[54]=Ge,t[55]=qe,t[56]=Lt,t[57]=He,t[58]=Ye,t[59]=Oe,t[60]=Rt,t[61]=Mt,t[62]=Nt,t[63]=Ft,t[64]=kt,t[65]=T,t[66]=Ne,t[67]=Ie,t[68]=Ae,t[69]=Ht):Ht=t[69],t[70]!==Dt||t[71]!==Ot||t[72]!==Ht?(Zt=(0,A.jsx)(wn,{placeholder:"video",placeholderProps:Dt,placeholderClassName:"position-absolute top-50 start-50 translate-middle w-100",empty:_t,isEmpty:Ot,children:Ht},"video"),t[70]=Dt,t[71]=Ot,t[72]=Ht,t[73]=Zt):Zt=t[73],t[74]!==de||t[75]!==ue||t[76]!==C||t[77]!==Ee||t[78]!==it||t[79]!==lt||t[80]!==E||t[81]!==L||t[82]!==z||t[83]!==B||t[84]!==j||t[85]!==_||t[86]!==O?(Wt=L?null:(0,A.jsxs)("div",{className:gr.bottom,style:{transform:C&&!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===de||z||E||B?null:(0,A.jsx)(Ta,{className:gr.closedCaptions,media:ue,...de,currentTime:Ee}),lt?(0,A.jsx)(ra,{...it}):null]},"bottom-content"),t[74]=de,t[75]=ue,t[76]=C,t[77]=Ee,t[78]=it,t[79]=lt,t[80]=E,t[81]=L,t[82]=z,t[83]=B,t[84]=j,t[85]=_,t[86]=O,t[87]=Wt):Wt=t[87],t[88]!==Bt||t[89]!==Zt||t[90]!==Wt?(qt=(0,A.jsxs)("div",{className:gr.inner,children:[Bt,Zt,Wt]}),t[88]=Bt,t[89]=Zt,t[90]=Wt,t[91]=qt):qt=t[91],t[92]!==F||t[93]!==qt||t[94]!==$?(Gt=(0,A.jsx)(Yn,{width:$,height:F,className:gr.content,children:qt}),t[92]=F,t[93]=qt,t[94]=$,t[95]=Gt):Gt=t[95],t[96]!==S||t[97]!==Le||t[98]!==F||t[99]!==L||t[100]!==z||t[101]!==Z||t[102]!==be||t[103]!==T||t[104]!==$?(Yt=L?null:(0,A.jsx)(Gn,{background:S,width:$,height:F,resolution:T,playing:Le,muted:be,shouldLoad:Z,withoutVideo:z}),t[96]=S,t[97]=Le,t[98]=F,t[99]=L,t[100]=z,t[101]=Z,t[102]=be,t[103]=T,t[104]=$,t[105]=Yt):Yt=t[105],t[106]!==At||t[107]!==Pt||t[108]!==Gt||t[109]!==Yt?(Ut=(0,A.jsxs)("div",{className:At,"data-screen-ready":Pt,children:[Gt,Yt]}),t[106]=At,t[107]=Pt,t[108]=Gt,t[109]=Yt,t[110]=Ut):Ut=t[110],Ut},layouts:["middle","full"],fields:[{name:"layout",type:"screen-layout",defaultValue:"middle",label:(0,I.zR)({id:"4iBXj2",defaultMessage:"Layout"})},{name:"video",type:"video-element",theme:{color:"primary"},defaultValue:{autoPlay:!0},label:(0,I.zR)({id:"tvl2Zc",defaultMessage:"Video"})},{name:"gotoNextScreenOnEnd",type:"toggle",defaultValue:!1,label:(0,I.zR)({id:"n8zmLY",defaultMessage:"Go to next screen on end"})},{name:"background",type:"background",label:(0,I.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,I.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,I.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]};let pr=null;var fr={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"},br={id:"video-360",type:"screen",group:{label:(0,I.zR)({id:"+9akmg",defaultMessage:"Audio and Video"}),order:5},title:(0,I.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:pr});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})=>{pr={Scene:e,PerspectiveCamera:l,SphereBufferGeometry:a,VideoTexture:i,MeshBasicMaterial:o,Mesh:s,WebGLRenderer:r,MathUtils:c},n||t({package:pr})}),()=>{n=!0}},[e,t]),e})(),y=sl(d),p=rl("video_360"),{enableInteraction:f,disableInteraction:b}=pt(),{gotoPreviousScreen:v,gotoNextScreen:x}=ht(),{topHeight:S,bottomHeight:C,bottomSidesWidth:w}=gt(),{width:j,height:k,landscape:M,resolution:N}=st(),{isView:$,isPreview:F,isPlaceholder:T,isEdit:R,isStatic:z,isCapture:L}=nt(),{open:P}=ft(),B=ll(),E=r||c,{media:V=null,closedCaptions:D=null,captions:_=null,withSeekBar:O=!1,withControls:H=!1,autoPlay:Z=!0,color:W=null,progressColor:G=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}=Qe(),{ref:oe,isCurrent:se=!1}=Xe(r),de=r&&($||R)&&(se||!$),ue=r&&($||R)&&U&&(se||!$);(0,n.useEffect)(()=>r?(H||O?(X(!0),J({seekBarOnly:O&&!H,color:W,progressColor:G})):X(!1),()=>{(H||O)&&X(!1)}):()=>{},[r,H,X,O,W,G]),(0,n.useEffect)(()=>r?(ee(oe.current),()=>{ee(null)}):()=>{},[r]),(0,n.useEffect)(()=>{r&&Z&&!U&&te(!0)},[r,Z]);const me=yt(),ge=(0,n.useCallback)(()=>{me?le():ne()},[me,le,ne]);It(r?ge:null,me,1e3);const[he,pe]=(0,n.useState)(null),[fe,be]=(0,n.useState)(null),ve=(0,n.useCallback)(e=>{pe(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]),Ce=(0,n.useCallback)(({initial:e})=>{p(V,e?"play":"resume")},[p,V]),we=(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=re(a),Te=ce(o),Re=q(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:Ae=null,thumbnail_url:Ie=null}=V||{},Pe=null!==Ae,{width:Be=0,height:Ee=0}=Le||{},Ve=null!==Ie,[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)},[Ae,Pe,$e]),(0,n.useEffect)(()=>{_e(!Ve)},[Ie,Ve,_e]);const Ge=(0,n.useCallback)(()=>{$e(!0)},[$e]),Ye=(0,n.useCallback)(()=>{_e(!0)},[De]),Ue=(0,n.useRef)(null),Je=(0,n.useRef)(null),Ke=(0,n.useRef)(null),et=(0,n.useRef)(null),tt=(0,n.useRef)(0),lt=(0,n.useRef)(0),at=(0,n.useRef)(0),it=(0,n.useRef)(0),ot=(0,n.useRef)(50),rt=(0,n.useRef)(!1),ct=(0,n.useRef)(0),dt=(0,n.useRef)(0),ut=(0,n.useRef)(0),mt=(0,n.useRef)(0),bt=(0,n.useCallback)(()=>{if(null===h)return;const{MathUtils:e}=h;lt.current=Math.max(-85,Math.min(85,lt.current)),at.current=e.degToRad(90-lt.current),it.current=e.degToRad(tt.current),Je.current.position.x=ot.current*Math.sin(at.current)*Math.cos(it.current),Je.current.position.y=ot.current*Math.cos(at.current),Je.current.position.z=ot.current*Math.sin(at.current)*Math.sin(it.current),Je.current.lookAt(0,0,0),et.current.render(Ke.current,Je.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()=>{Je.current=null,Ke.current=null,et.current=null};const{offsetWidth:s,offsetHeight:r}=Ue.current;Je.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),bt()}return()=>{Oe&&(Je.current=null,Ke.current=null,et.current=null)}},[Pe,Oe,bt]),((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)})(bt,{disabled:!Oe}),(0,n.useEffect)(()=>{null!==Je.current&&null!==et.current&&(Je.current.aspect=j/k,Je.current.updateProjectionMatrix(),et.current.setSize(j,k))},[j,k]);const vt=(0,n.useRef)(null),xt=(0,n.useCallback)(e=>{rt.current=!0,ct.current=e.clientX,dt.current=e.clientY,ut.current=tt.current,mt.current=lt.current},[]),St=(0,n.useRef)(0),Ct=(0,n.useRef)(null),wt=(0,n.useRef)(!1),jt=(0,n.useCallback)(e=>{if(rt.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}=Ct.current||{},r=Math.abs(o-l)||0,c=Math.abs(s-n)||0;St.current+=r+c,!wt.current&&St.current>Math.min(j,k)&&(y("drag_sphere",t.name),wt.current=!0),Ct.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(rt.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)}rt.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,A.jsxs)("div",{className:$t([fr.container,g,{[fr.showVideo]:F||z||L}]),"data-screen-ready":(z||L)&&De||Ne,children:[(0,A.jsxs)(Yn,{width:j,height:k,className:fr.content,children:[Oe?(0,A.jsx)("div",{ref:Y,className:fr.videoContainer,style:{width:He,height:Ze,left:We,top:qe},children:(0,A.jsx)(On,{...ze,mediaRef:ye(oe,m),className:fr.video,paused:!ue,muted:Q,withoutCors:!0,onReady:Ge,onPlay:Ce,onPause:we,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,A.jsxs)("div",{className:fr.inner,children:[(0,A.jsxs)(wn,{placeholder:(0,A.jsx)(pn,{className:fr.placeholder,width:"100%",height:"100%"}),emptyClassName:fr.empty,emptyLabel:(0,A.jsx)(I.sA,{id:"oLtEu6",defaultMessage:"Video 360"}),isEmpty:!Oe,children:[!T&&Fe?(0,A.jsx)("div",{className:fr.header,style:{paddingTop:u/2,paddingLeft:u,paddingRight:u,transform:F?null:`translate(0, ${S}px)`},children:(0,A.jsx)(ua,{...a})},"header"):null,Oe?(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("canvas",{ref:Ue,className:fr.canvas}),(0,A.jsx)("button",{className:fr.canvasButton,type:"button","aria-label":"canvas-interaction",onPointerDown:xt,onPointerMove:jt,onPointerUp:kt,tabIndex:r&&$?null:"-1"})]}):(0,A.jsx)("div",{className:fr.videoContainer,style:{width:He,height:Ze,left:We,top:qe},children:(0,A.jsx)(Qn,{className:fr.video,media:{url:Ie,metadata:{width:Be,height:Ee}},width:He,height:Ze,resolution:N})})]},"video"),T?null:(0,A.jsxs)("div",{className:fr.bottom,style:{transform:r&&!F?`translate(0, -${C}px)`:null,paddingLeft:Math.max(u/2,w),paddingRight:Math.max(u/2,w),paddingBottom:u/2,paddingTop:0},children:[null===D&&null===_||F||L||z?null:(0,A.jsx)(Ta,{className:fr.closedCaptions,media:D,..._,currentTime:he}),Te?(0,A.jsx)(ra,{...Re,className:fr.callToAction}):null]},"bottom-content")]})]}),T?null:(0,A.jsx)(Gn,{background:s,width:j,height:k,resolution:N,playing:de,muted:Q,shouldLoad:E,withoutVideo:F,className:fr.background})]})},layouts:["full"],fields:[{name:"video",type:"video-element",theme:{color:"primary"},defaultValue:{autoPlay:!0},label:(0,I.zR)({id:"tvl2Zc",defaultMessage:"Video"})},{name:"background",type:"background",label:(0,I.zR)({id:"+MPZRu",defaultMessage:"Background"})},{name:"header",type:"header",label:(0,I.zR)({id:"rhuDxI",defaultMessage:"Header"}),theme:{badge:{label:{textStyle:"badge"},boxStyle:"badge"}}},{name:"footer",type:"footer",label:(0,I.zR)({id:"g4nybp",defaultMessage:"Footer"}),theme:{callToAction:{label:{textStyle:"cta"},boxStyle:"cta"}}}]},vr=Object.freeze({__proto__:null,article:wa,audio:Pa,contribution:Ya,conversation:ei,gallery:ci,galleryFeed:mi,gameSort:yi,image:bi,keypad:Ri,map:qi,quiz:no,quote:so,ranking:mo,share:xo,slideshow:wo,survey:Po,text:Vo,timeline:Ho,title:Yo,urbaniaArticle:ss,urbaniaArticleCard:ms,urbaniaHoroscope:or,urbaniaRecommendation:rr,urbaniaTrivia:mr,video:yr,video360:br});const xr=new w(Object.keys(vr).reduce((e,t)=>[...e,...m(vr[t])?vr[t]:[vr[t]]],[]));function Sr(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,A.jsx)(Ae,{...n,manager:xr,children:l}),t[3]=l,t[4]=n,t[5]=a):a=t[5],a}xr.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]+\.video\.captions\.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$/,/^customAnswer\.placeholder\.textStyle\.fontFamily$/,/^customAnswer\.submit\.textStyle\.fontFamily$/,/^customAnswer\.textStyle\.fontFamily$/,/^result\.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]+\.video\.media$/,/^items\.[0-9]+\.video\.thumbnail$/,/^items\.[0-9]+\.video\.captions\.textStyle\.fontFamily\.media$/,/^items\.[0-9]+\.video\.captions\.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$/,/^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$/,/^result\.textStyle\.fontFamily\.media$/,/^result\.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 Cr={box:"micromag-element-share-incentive-box",tip:"micromag-element-share-incentive-tip"};function wr(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=$t([Cr.container,o]),t[4]=o,t[5]=h):h=t[5],t[6]!==r?(y=ee(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,A.jsx)("polygon",{points:"0,0 0,10 10,10"}),t[10]=f):f=t[10],t[11]!==g?(b=(0,A.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 10",className:Cr.tip,fill:g,children:f}),t[11]=g,t[12]=b):b=t[12],t[13]!==s?(v=(0,A.jsx)(Pn,{className:Cr.text,...s}),t[13]=s,t[14]=v):v=t[14],t[15]!==b||t[16]!==v||t[17]!==p?(x=(0,A.jsxs)("div",{className:Cr.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,A.jsx)("div",{className:h,children:x}),t[19]=x,t[20]=h,t[21]=S):S=t[21],S}var jr={container:"micromag-element-webview-container",iframe:"micromag-element-webview-iframe",top:"micromag-element-webview-top",close:"micromag-element-webview-close"};function kr(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,I.tz)(),b=!h;let v,x,S;t[0]!==p||t[1]!==g||t[2]!==b?(v=$t([jr.container,p,{[jr.hidden]:b,[jr.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,A.jsx)("div",{className:jr.top,children:(0,A.jsx)(ta,{className:jr.close,"aria-label":f.formatMessage({id:"cXt3NU",defaultMessage:"Close Popup"}),focusable:h,onClick:y,children:(0,A.jsx)(Yl,{className:jr.closeIcon})})}):null,t[7]=g,t[8]=h,t[9]=f,t[10]=y,t[11]=S):S=t[11];const C=h?null:"true",w=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]!==C||t[15]!==w||t[16]!==j||t[17]!==k?(M=(0,A.jsx)("iframe",{className:jr.iframe,"aria-hidden":C,tabIndex:w,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]=C,t[15]=w,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,A.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 Mr=l(3608);function Nr(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 $r(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&&$r(o,t,l+1))}function Fr(e,t){const{id:l}=t;return{[l]:!0,...e}}function Tr(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&&Tr(i,t,l+1))}const Rr={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 zr={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 Lr(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,C,w,j,k,M,N,$;t[0]!==e?(({type:n,theme:p,size:C,href:w,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]=C,t[20]=w,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],C=t[19],w=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===w?null:w,z=void 0!==j&&j,L=void 0!==k&&k,I=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,J=P||B;let K;t[26]!==J?(K=null!==J?(0,A.jsx)(zl,{children:J}):null,t[26]=J,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]!==I||t[49]!==ee||t[50]!==T){re=Symbol.for("react.early_return_sentinel");e:{let e;ie=$t([zr.container,zr[`icon-${D}`],G,{[zr.withIcon]:le,[zr.withIconColumns]:ae,[zr.withText]:null!==ee,[zr.isLink]:null!==R,[zr.asLink]:Z,[zr.isDisabled]:_,[zr.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=X(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,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("span",{className:$t([zr.icon,Y]),children:V}),null!==ee?(0,A.jsx)("span",{className:$t([zr.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,A.jsxs)(A.Fragment,{children:["left"===D?(0,A.jsx)("span",{className:$t([zr.icon,zr.left,{[Y]:null!==Y&&"left"===D}]),children:V}):null,(0,A.jsx)("span",{className:$t([zr.center,zr.label,U]),children:ee}),"right"===D?(0,A.jsx)("span",{className:$t([zr.icon,zr.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,A.jsxs)(A.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=$t([ie,{disabled:_,[zr.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]!==I?(n=z||L?(0,A.jsx)("a",{...l,href:_?null:R,className:e,style:oe,onClick:q,target:z?I:null,ref:Q,tabIndex:E?"":"-1",children:se}):(0,A.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]=I,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]=I,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,A.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 Ar(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=$t(["micromag-viewer-buttons-icon-button-container",s]),t[4]=s,t[5]=r):r=t[5],t[6]!==o?(c=$t(["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,A.jsx)(Lr,{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 Ir(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,I.tz)();let c,d,u,m,g,h,y,p;return t[4]!==s?(c=$t([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,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("mask",{id:"path-1-inside-1_560_19911",fill:"currentColor",children:(0,A.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,A.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,A.jsx)("rect",{x:"3.5",y:"0.5",width:"15",height:"19",rx:"2.5",stroke:"currentColor"}),g=(0,A.jsx)("path",{d:"M7.35333 6.35333L14.6467 13.6467",stroke:"currentColor",strokeLinejoin:"round"}),h=(0,A.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,A.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,A.jsx)(Ar,{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 Pr(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,I.tz)();let r,c,d,u;return t[4]!==o?(r=$t([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,A.jsxs)("svg",{width:"19",height:"23",viewBox:"0 0 19 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,A.jsx)("mask",{id:"path-1-inside-1_572_15622",fill:"currentColor",children:(0,A.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,A.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,A.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,A.jsx)(Ar,{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 Br(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,I.tz)();let s,r,c,d;return t[3]!==a?(s=$t([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,A.jsxs)("svg",{width:"16",height:"22",viewBox:"0 0 16 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,A.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,A.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,A.jsx)(Ar,{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 Er(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=$t(["micromag-viewer-buttons-toggle-button-container",r]),t[0]=r,t[1]=g):g=t[1],t[2]!==c?(h=c.to(Dr),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,A.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=$t(["micromag-viewer-buttons-toggle-button-toggled",m]),t[9]=m,t[10]=f):f=t[10],t[11]!==c?(b=c.to(Vr),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,A.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,A.jsxs)("div",{className:g,children:[p,x]}),t[19]=x,t[20]=g,t[21]=p,t[22]=S):S=t[22],S}function Vr(e){return`translateY(${-100*(e-1)}%)`}function Dr(e){return`translateY(${-100*e}%)`}function _r(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=X(y,"backgroundColor"),t[4]=y,t[5]=p):p=t[5];const f=p;let b,v,x,S,C,w,j,k,M,N;return t[6]!==c?(b=$t(["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(Wr),t[9]=l,t[10]=x):x=t[10],t[11]!==l?(S=l.to(Zr),t[11]=l,t[12]=S):S=t[12],t[13]!==l?(C=l.to(Hr),t[13]=l,t[14]=C):C=t[14],t[15]!==f||t[16]!==l||t[17]!==x||t[18]!==S||t[19]!==C?(w={opacity:l,transform:x,pointerEvents:S,zIndex:C,...f},t[15]=f,t[16]=l,t[17]=x,t[18]=S,t[19]=C,t[20]=w):w=t[20],t[21]!==r||t[22]!==w?(j=(0,A.jsx)(Tl.CS.div,{className:"micromag-viewer-menus-menu-container-heightContainer",style:w,children:r}),t[21]=r,t[22]=w,t[23]=j):j=t[23],t[24]!==l?(k=l.to(Or),t[24]=l,t[25]=k):k=t[25],t[26]!==k?(M=(0,A.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,A.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 Or(e){return 1-(1-e)**5}function Hr(e){return Math.round(2+e)}function Zr(e){return e<.25?"none":"auto"}function Wr(e){return`translateY(${-2*(1-e)}rem)`}var qr={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 Gr(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:C}=x,w=void 0===S?"rgba(255, 255, 255, 1)":S,j=void 0===C?"rgba(255, 255, 255, 0.25)":C,k=(0,Mt.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,Mt.zh)(M);let F,T,R,z,L,I,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=$t([qr.container,v,{[qr.active]:m,[qr.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]!==w?(I=(0,A.jsx)(Tl.CS.div,{className:qr.progress,style:{...N,backgroundColor:w}}),t[19]=N,t[20]=w,t[21]=I):I=t[21],t[22]!==L||t[23]!==I?(P=(0,A.jsx)("div",{className:qr.dot,style:L,children:I}),t[22]=L,t[23]=I,t[24]=P):P=t[24],t[25]!==R||t[26]!==z||t[27]!==P?(B=(0,A.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 Yr="micromag-viewer-menus-menu-dots-withButtons",Ur="micromag-viewer-menus-menu-dots-vertical";const Qr=[];function Xr(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?Qr: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,C=void 0!==g&&g,w=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,I.tz)(),T=p.findIndex(Jr);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=$t(["micromag-viewer-menus-menu-dots-container",{[Yr]:L,[Ur]: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]!==C||t[32]!==w){let e;t[34]!==v||t[35]!==T||t[36]!==y||t[37]!==f||t[38]!==b||t[39]!==C||t[40]!==w?(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,A.jsx)(Gr,{current:i,active:t<=T,colors:v,count:o,subIndex:s,className:"micromag-viewer-menus-menu-dots-dot",onClick:()=>{(C||w)&&null!==f?f(e):C||null===b||b()},vertical:"vertical"===y},t)},t[34]=v,t[35]=T,t[36]=y,t[37]=f,t[38]=b,t[39]=C,t[40]=w,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]=C,t[32]=w,t[33]=V}else V=t[33];return t[42]!==x||t[43]!==F||t[44]!==j||t[45]!==$?(D=x?(0,A.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,A.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,A.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,A.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 Jr(e){const{current:t}=e;return void 0!==t&&t}function Kr(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,A.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,A.jsx)("path",{fill:a,d:"m46.8.69v55.55h-10.42V.69h10.42Z"}),g=(0,A.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,A.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,A.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,A.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,A.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,A.jsx)("rect",{fill:a,x:"105.65",y:".69",width:"31.25",height:"55.55",rx:"3",ry:"3"}),r=(0,A.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,A.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,A.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,A.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 ec(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=$t(["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,A.jsxs)("a",{href:"https://micromag.media",target:"_blank",rel:"noopener noreferrer",className:"micromag-viewer-partials-micromag-branding-link",children:[(0,A.jsxs)("span",{className:"micromag-viewer-partials-micromag-branding-text",children:[(0,A.jsx)(I.sA,{id:"LiMAIC",defaultMessage:"This Micromag was"}),(0,A.jsx)("br",{}),(0,A.jsx)(I.sA,{id:"TDAOl2",defaultMessage:"created with"})]}),(0,A.jsx)(Kr,{className:"micromag-viewer-partials-micromag-branding-icon"})]}),t[2]=o):o=t[2],t[3]!==a?(s=(0,A.jsx)("div",{className:a,children:o}),t[3]=a,t[4]=s):s=t[4],s}function tc(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=$t([n]),t[0]=n,t[1]=a):a=t[1],t[2]===Symbol.for("react.memo_cache_sentinel")?(o=(0,A.jsx)("rect",{width:"10",height:"16"}),s=(0,A.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,A.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 lc="micromag-viewer-menus-menu-screen-isCurrent";function nc(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,I.tz)(),{current:b,screen:v,count:x}=u||{},S=void 0!==b&&b,C=void 0===x?1:x;let w;t[0]!==h?(w=h||{},t[0]=h,t[1]=w):w=t[1];const{width:j,height:k}=w;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:$}=_t(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=$t(["micromag-viewer-menus-menu-screen-container",d,{[lc]: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,A.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]!==C?(D=C>1?(0,A.jsxs)("div",{className:"micromag-viewer-menus-menu-screen-subScreenBadge",children:[(0,A.jsx)("span",{className:"micromag-viewer-menus-menu-screen-subScreenCount",children:C}),(0,A.jsx)(tc,{className:"micromag-viewer-menus-menu-screen-subScreenIcon"})]}):null,t[15]=C,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,A.jsx)(vn,{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,A.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,A.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 ac={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 ic=[];function oc(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,C=void 0===r?null:r,w=void 0===c?ic: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}=Dt(),L=void 0===z?0:z,I=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?ne(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?(_=$t([ac.container,T]),t[3]=T,t[4]=_):_=t[4],t[5]!==P||t[6]!==C?(O={...P,width:C},t[5]=P,t[6]=C,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,A.jsx)("div",{className:ac.titleContainer,style:{paddingTop:D},children:(0,A.jsx)("h1",{className:ac.title,style:{...E},children:S})}):(0,A.jsx)("div",{className:ac.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]!==w||t[19]!==k||t[20]!==x||t[21]!==I){let e;t[23]!==j||t[24]!==k||t[25]!==x||t[26]!==I?(e=(e,t)=>{const{screenId:l}=e||{},n={width:100/I+"%"},{width:a,height:i}=x||{};return(0,A.jsx)("li",{className:ac.item,style:n,children:(0,A.jsx)("div",{className:ac.inner,children:(0,A.jsx)("div",{className:$t([ac.frame,{[ac.isLoading]:!1}]),style:{paddingBottom:i/a*100+"%"},children:(0,A.jsx)(nc,{className:ac.screen,item:e,index:t,screenSize:x,onClick:k,focusable:j})})})},`item-${l}`)},t[23]=j,t[24]=k,t[25]=x,t[26]=I,t[27]=e):e=t[27],q=w.map(e),t[17]=j,t[18]=w,t[19]=k,t[20]=x,t[21]=I,t[22]=q}else q=t[22];return t[28]!==q?(G=(0,A.jsx)("ul",{className:ac.items,children:q}),t[28]=q,t[29]=G):G=t[29],t[30]!==W||t[31]!==G?(Y=(0,A.jsx)("nav",{className:ac.nav,style:W,children:G}),t[30]=W,t[31]=G,t[32]=Y):Y=t[32],t[33]!==F?(U=F?(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("div",{className:ac.micromagBrandingSeparator}),(0,A.jsx)(ec,{className:ac.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,A.jsxs)(Sa,{className:ac.scroll,scrolleeClassName:ac.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,A.jsx)("div",{className:ac.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,A.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 sc(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=$t(["micromag-viewer-partials-micromag-preview-container",m]),t[0]=m,t[1]=g):g=t[1],t[2]!==r?(h=(0,A.jsx)("div",{className:"micromag-viewer-partials-micromag-preview-cover",children:(0,A.jsx)(vn,{screen:r,width:100,height:150,withSize:!0})}),t[2]=r,t[3]=h):h=t[3],t[4]!==c?(y=(0,A.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,A.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,A.jsx)("p",{children:u}),t[8]=u,t[9]=f):f=t[9],t[10]!==f||t[11]!==y||t[12]!==p?(b=(0,A.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,A.jsxs)("div",{className:g,children:[h,b]}),t[14]=b,t[15]=g,t[16]=h,t[17]=v):v=t[17],v}var rc={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 cc=[];function dc(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?cc:r,S=void 0===c?null:c,C=void 0===d||d,w=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(mc),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(uc)},t[14]=X):X=t[14];const J=X,K=U&&0!==j?`${k}/${j+1}`:k;let ee,te;t[15]!==N?(ee=$t([rc.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=C?null:"true";let ne;t[20]!==w?(ne={paddingTop:w},t[20]=w,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,A.jsx)(sc,{className:rc.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,A.jsx)("div",{className:rc.mode,children:(0,A.jsxs)("label",{children:[(0,A.jsx)("input",{type:"checkbox",name:"currentScreen",value:"currentScreen",onChange:J,checked:U}),(0,A.jsx)(I.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,A.jsxs)("div",{className:rc.header,children:[ie,oe]}),t[30]=ie,t[31]=oe,t[32]=se):se=t[32],t[33]!==K||t[34]!==C||t[35]!==M||t[36]!==U||t[37]!==S||t[38]!==b||t[39]!==p?(re=(0,A.jsx)(bo,{className:rc.options,itemClassName:rc.optionItem,buttonClassName:rc.optionButton,title:b,options:S,url:K,focusable:C,onShare:M,theme:p,shareCurrentScreen:U}),t[33]=K,t[34]=C,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,A.jsx)("div",{className:rc.content,children:(0,A.jsx)(Sa,{className:rc.scroll,children:(0,A.jsxs)("div",{className:rc.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,A.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 uc(e){return!e}function mc(e){const{current:t}=e||{};return void 0!==t&&t}var gc={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 hc=["share","main"];function yc(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:C,withMicromagBranding:w,withDotItemClick:j,withoutScreensMenu:k,withoutShareMenu:M,onClickScreen:N,onChange:$,onClickCloseViewer:F,refDots:T}=e,R=void 0===a?hc:a,z=void 0===o?0:o,L=void 0===s?null:s,I=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===C?null:C,Q=void 0!==w&&w,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}=gt();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})(),[Ce,we]=(0,n.useState)(!1),[je,ke]=(0,n.useState)(!1),{ref:Me,height:Ne}=Dt(),$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(pc),Te=cl();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 Ae;t[10]!==D?(Ae=null!==D&&-1!==D.indexOf("http"),t[10]=D,t[11]=Ae):Ae=t[11];const Ie=Ae,Pe=null!==D?`${Le}${D}`:Le;let Be;t[12]!==Ie||t[13]!==Pe||t[14]!==D?(Be=null!==D&&Ie?D.replace(/\/$/,""):Pe,t[12]=Ie,t[13]=Pe,t[14]=D,t[15]=Be):Be=t[15];const Ee=Be;let Ve;t[16]!==we||t[17]!==ke||t[18]!==ze?(Ve=()=>{we(!0),ke(!1),ze("viewer_menu","open_screens_menu")},t[16]=we,t[17]=ke,t[18]=ze,t[19]=Ve):Ve=t[19];const De=Ve;let _e;t[20]!==we||t[21]!==ke||t[22]!==ze?(_e=()=>{we(!1),ke(!1),ze("viewer_menu","close_screens_menu")},t[20]=we,t[21]=ke,t[22]=ze,t[23]=_e):_e=t[23];const Oe=_e;let He;t[24]!==we||t[25]!==ke||t[26]!==ze?(He=()=>{ke(!0),we(!1),ze("viewer_menu","open_share_menu")},t[24]=we,t[25]=ke,t[26]=ze,t[27]=He):He=t[27];const Ze=He;let We;t[28]!==we||t[29]!==ke||t[30]!==ze?(We=()=>{ke(!1),we(!1),ze("viewer_menu","close_share_menu")},t[28]=we,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]!==we||t[36]!==ze?(Ge=e=>{we(!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]=we,t[36]=ze,t[37]=Ge):Ge=t[37];const Ye=Ge;let Ue,Qe,Xe;t[38]!==Ce||t[39]!==te||t[40]!==je?(Ue=()=>{null!==te&&te({menuOpen:Ce,shareOpen:je})},Qe=[te,Ce,je],t[38]=Ce,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}=Bt(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 ht=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=Ce?1:0,ft=Ce?yt:ht;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:Ct}=Bt(vt);let wt,jt,kt;t[64]!==Ce||t[65]!==Oe||t[66]!==De?(wt=()=>Ce?Oe():De(),t[64]=Ce,t[65]=Oe,t[66]=De,t[67]=wt):wt=t[67],t[68]!==Oe?(jt=()=>Oe(),t[68]=Oe,t[69]=jt):jt=t[69],t[70]!==wt||t[71]!==jt?(kt={m:wt,escape:jt},t[70]=wt,t[71]=jt,t[72]=kt):kt=t[72],Nr(kt);const Mt=Ce||je;let Nt,Ft,Tt,Rt,zt,Lt,At,It,Pt,Et,Vt;if(t[73]!==Mt||t[74]!==V?(Nt=$t([gc.menuNavContainer,{[gc.withShadow]:V,[gc.isOpened]:Mt}]),t[73]=Mt,t[74]=V,t[75]=Nt):Nt=t[75],t[76]!==W?(Ft={width:W},t[76]=W,t[77]=Ft):Ft=t[77],t[78]!==Y||t[79]!==U||t[80]!==xt||t[81]!==ct||t[82]!==R||t[83]!==Ce||t[84]!==Ct||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]!==Ce||t[100]!==Ct||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,A.jsxs)("div",{className:gc.menuItem,...ct(),children:[K?null:(0,A.jsx)(Er,{className:gc.slidingButton,button:(0,A.jsx)(Br,{className:gc.menuButton,onClick:Ze,theme:xe,iconPosition:"left",focusable:!je}),toggledButton:(0,A.jsx)(Mr.Ay,{group:"share",disabled:!je,returnFocus:!0,children:(0,A.jsx)(Ir,{className:gc.menuButton,onClick:qe,theme:xe,iconPosition:"left",focusable:je,single:!0})}),progressSpring:ut}),Y]},"share"):"main"===e?J&&null===U?null:(0,A.jsxs)("div",{className:gc.menuItem,...xt(),children:[U,J?null:(0,A.jsx)(Er,{className:gc.slidingButton,button:(0,A.jsx)(Pr,{className:gc.menuButton,iconClassName:gc.menuButtonIcon,onClick:De,theme:xe,focusable:!Ce}),toggledButton:(0,A.jsx)(Mr.Ay,{group:"screens",disabled:!Ce,returnFocus:!0,children:(0,A.jsx)(Ir,{className:gc.menuButton,onClick:Oe,theme:xe,iconPosition:"right",focusable:Ce})}),progressSpring:Ct,toggledButtonClassName:gc.screensMenuButtonToggled})]},"main"):e||null,t[95]=Y,t[96]=U,t[97]=xt,t[98]=ct,t[99]=Ce,t[100]=Ct,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]=Ce,t[84]=Ct,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,A.jsx)("nav",{className:gc.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,A.jsx)(Xr,{...xe,direction:"horizontal",items:Fe,onClickDot:Ye,onClickScreensMenu:De,buttons:B,closeable:E,withItemClick:X,withoutScreensMenu:J,withoutShareMenu:K,onClose:le,className:gc.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]!==Ft||t[128]!==Rt||t[129]!==zt?(Lt=(0,A.jsxs)("div",{className:Nt,ref:ne,style:Ft,children:[Rt,zt]}),t[125]=ne,t[126]=Nt,t[127]=Ft,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?(At=dt||je?(0,A.jsx)(Mr.Ay,{group:"share",disabled:!je,returnFocus:!0,children:(0,A.jsx)(dc,{viewerTheme:H,className:gc.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]=At):At=t[144],t[145]!==ut||t[146]!==At||t[147]!==H?(It=(0,A.jsx)(_r,{className:gc.menuContainer,progressSpring:ut,theme:H,children:At}),t[145]=ut,t[146]=At,t[147]=H,t[148]=It):It=t[148],t[149]!==z||t[150]!==St||t[151]!==I||t[152]!==P||t[153]!==Fe||t[154]!==Ce||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=Ce||St?(0,A.jsx)(Mr.Ay,{group:"screens",disabled:!Ce,returnFocus:!0,children:(0,A.jsx)(oc,{viewerTheme:H,header:q,footer:G,title:re,className:gc.menuPreview,screenSize:Z,menuWidth:W,paddingTop:$e,items:Fe,currentScreenIndex:z,shareUrl:Ee,onShare:Je,onClickScreen:Ye,onClose:Oe,scrollDisabled:St,toggleFullscreen:L,fullscreenActive:I,fullscreenEnabled:P,withMicromagBranding:Q})}):null,t[149]=z,t[150]=St,t[151]=I,t[152]=P,t[153]=Fe,t[154]=Ce,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]!==Ct||t[170]!==Pt||t[171]!==H?(Et=(0,A.jsx)(_r,{className:gc.menuContainer,progressSpring:Ct,theme:H,children:Pt}),t[169]=Ct,t[170]=Pt,t[171]=H,t[172]=Et):Et=t[172],t[173]!==Lt||t[174]!==It||t[175]!==Et?(Vt=(0,A.jsxs)(A.Fragment,{children:[Lt,It,Et]}),t[173]=Lt,t[174]=It,t[175]=Et,t[176]=Vt):Vt=t[176],Vt}function pc(e){const{visible:t}=e;return void 0===t||t}function fc(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,C=void 0!==d&&d,w=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||C);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),!$&&!C)return null;t[7]!==N?(z=$t(["micromag-viewer-screen-container",N]),t[7]=N,t[8]=z):z=t[8];const L=null!==M?`scale(${M})`:null,I=null!==M?"0 0":null,P=$?1:null;let B,E,V,D;return t[9]!==k||t[10]!==L||t[11]!==I||t[12]!==P||t[13]!==j?(B={width:j,height:k,transform:L,transformOrigin:I,opacity:P},t[9]=k,t[10]=L,t[11]=I,t[12]=P,t[13]=j,t[14]=B):B=t[14],t[15]!==x||t[16]!==C||t[17]!==b||t[18]!==w||t[19]!==$||t[20]!==S||t[21]!==f||t[22]!==p||t[23]!==v?(E=$||C?(0,A.jsx)(bn,{screen:p,renderContext:f,screenState:v,index:b,active:x,preload:S,current:C,mediaRef:w}):null,t[15]=x,t[16]=C,t[17]=b,t[18]=w,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,A.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,A.jsx)("div",{className:z,children:V}),t[28]=z,t[29]=V,t[30]=D):D=t[30],D}var bc={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 vc(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=bc[s];let u,m;t[5]!==c||t[6]!==d?(u=$t([bc.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,A.jsx)("svg",{className:bc.arrow,xmlns:"http://www.w3.org/2000/svg",width:"10",height:"16",viewBox:"0 0 10 16",fill:"currentColor",children:(0,A.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,A.jsx)(Ar,{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 xc="micromag-viewer-partials-arrow-hint-withoutShadow";function Sc(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=$t(["micromag-viewer-partials-arrow-hint-container",o,{[xc]:a}]),t[0]=o,t[1]=a,t[2]=s):s=t[2],t[3]===Symbol.for("react.memo_cache_sentinel")?(r=(0,A.jsx)("div",{className:"micromag-viewer-partials-arrow-hint-inner",children:(0,A.jsx)(_l,{className:"micromag-viewer-partials-arrow-hint-arrow"})}),t[3]=r):r=t[3],t[4]!==s?(c=(0,A.jsx)("div",{className:s,children:r}),t[4]=s,t[5]=c):c=t[5],c}function Cc(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,A.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,A.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 wc="micromag-viewer-partials-hand-tap-withoutShadow";function jc(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=$t(["micromag-viewer-partials-hand-tap-container",o,{[wc]:a}]),t[0]=o,t[1]=a,t[2]=s):s=t[2],t[3]===Symbol.for("react.memo_cache_sentinel")?(r=(0,A.jsxs)("div",{className:"micromag-viewer-partials-hand-tap-inner",children:[(0,A.jsx)("div",{className:"micromag-viewer-partials-hand-tap-circle"}),(0,A.jsx)(Cc,{className:"micromag-viewer-partials-hand-tap-hand"})]}),t[3]=r):r=t[3],t[4]!==s?(c=(0,A.jsx)("div",{className:s,children:r}),t[4]=s,t[5]=c):c=t[5],c}var kc={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 Mc(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 Nc(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,C=void 0===d?null:d,w=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,I.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&&xe(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=Gt(a,y),[f,b]=(0,n.useState)(a),[v,x]=(0,n.useState)(0),[S,C]=(0,n.useState)(Xt);if(a!==f){const e=null!==a&&(a?.currentTime||0)>0&&(a?.duration||0)>0?a.currentTime/a.duration:0;C(Date.now()/1e3),x(e),g(xe(a)),b(a)}let w,j,k,M;return l[11]!==a?(w=()=>{if(null===a)return Qt;const e=function(e){g(xe(e.currentTarget));const t=e.currentTarget.currentTime/e.currentTarget.duration;(0,n.startTransition)(()=>{C(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]=w):w=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)(w,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 Ut;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)(()=>{C(Date.now()/1e3),x(c)}),i=s,l=c,e=Rt(o)}(),()=>{t=!0,Rt.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=Wt(p,B),V=!f&&!z;let D;t[4]!==V?(D={disabled:V},t[4]=V,t[5]=D):D=t[5];const _=Gt(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]!==C||t[11]!==R?(W=()=>{O.current=R,L(!0),null!==C&&C()},t[10]=C,t[11]=R,t[12]=W):W=t[12];const q=W;let G;t[13]!==w?(G=()=>{null!==w&&(L(!1),w())},t[13]=w,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,Nt.useGesture)(U,Q);let J,K;t[20]!==M||t[21]!==z||t[22]!==N?(J=$t([kc.container,M,{[kc.withSeekHead]:N,[kc.showTimestamp]:z}]),t[20]=M,t[21]=z,t[22]=N,t[23]=J):J=t[23],t[24]!==b?(K=(0,A.jsx)("div",{className:kc.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=Mc(E),t[31]=E,t[32]=ne,t[33]=ae):ae=t[33],t[34]!==le||t[35]!==ae?(ie=(0,A.jsx)("div",{className:kc.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,A.jsx)("div",{className:kc.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,A.jsx)("div",{className:kc.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,A.jsxs)("div",{className:kc.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:Mc(E),duration:Mc(_)}),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,A.jsx)("button",{...de,type:"button",role:"slider","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":R,"aria-valuetext":ue,"data-draggable":!0,className:kc.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,A.jsxs)("div",{className:kc.inner,children:[ce,ye]}),t[64]=ce,t[65]=ye,t[66]=pe):pe=t[66],t[67]!==J||t[68]!==pe?(fe=(0,A.jsx)("div",{className:J,...Rr,children:pe}),t[67]=J,t[68]=pe,t[69]=fe):fe=t[69],fe}var $c="micromag-viewer-partials-playback-controls-icon",Fc="micromag-viewer-partials-playback-controls-offset",Tc="micromag-viewer-partials-playback-controls-withPlayPause",Rc="micromag-viewer-partials-playback-controls-withSuggestPlay",zc="micromag-viewer-partials-playback-controls-isCollapsed",Lc="micromag-viewer-partials-playback-controls-loading",Ac="micromag-viewer-partials-playback-controls-hidden",Ic="micromag-viewer-partials-playback-controls-isMuted",Pc="micromag-viewer-partials-playback-controls-withMute",Bc="micromag-viewer-partials-playback-controls-withSeekBar",Ec="micromag-viewer-partials-playback-controls-withSeekBarOnly",Vc="micromag-viewer-partials-playback-controls-withoutShadow";const Dc={color:"#FFFFFF",alpha:1},_c={color:"#666",alpha:1};function Oc(e){const t=(0,i.c)(109),{defaultColor:l,defaultProgressColor:a,withLoading:o,withoutShadow:s,className:r,collapsedClassName:c}=e,d=void 0===l?Dc:l,u=void 0===a?_c: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,I.tz)(),{media:f,mediaSrc:b,hasAudio:v,playing:x,muted:S,setPlaying:C,setMuted:w,controls:j,controlsSuggestPlay:k,controlsVisible:M,controlsTheme:N,showControls:$,seekByProgress:F}=Qe(),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=Jt(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=()=>xe(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=()=>ve(a)||d,l[7]=a,l[8]=d,l[9]=S):S=l[9];const[C,w]=(0,n.useState)(S);let j;l[10]!==h?(j=we(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=je(null!==k?`micromag:media:${k}`:"micromag:media"),a!==u&&(b(xe(a)||c),x(!1),w(ve(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]!==C||l[21]!==f?($=()=>{M("State change %o",{playing:f,buffering:v,muted:C})},N=[f,v,C,M],l[18]=v,l[19]=M,l[20]=C,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 Ht;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(Se(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(xe(e.currentTarget)),x(Se(e.currentTarget))},c=function(e){M("onVolumeChange"),w(ve(e.currentTarget))},d=function(e){M("onLoadChange %s",e.type),y(Ce(e.currentTarget)),x(Se(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]!==C||l[33]!==f?(R={playing:f,muted:C,buffering:v},l[31]=v,l[32]=C,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]!==C||t[15]!==$||t[16]!==z?(ne=()=>{z&&!W&&null!==T?T.play():C(!0),!M&&j&&$()},t[10]=j,t[11]=M,t[12]=T,t[13]=W,t[14]=C,t[15]=$,t[16]=z,t[17]=ne):ne=t[17];const ae=ne;let ie;t[18]!==j||t[19]!==M||t[20]!==C||t[21]!==$?(ie=()=>{C(!1),!M&&j&&$()},t[18]=j,t[19]=M,t[20]=C,t[21]=$,t[22]=ie):ie=t[22];const oe=ie;let se;t[23]!==j||t[24]!==M||t[25]!==w||t[26]!==$?(se=()=>{w(!0),!M&&j&&$()},t[23]=j,t[24]=M,t[25]=w,t[26]=$,t[27]=se):se=t[27];const re=se;let ce;t[28]!==j||t[29]!==M||t[30]!==w||t[31]!==$?(ce=()=>{w(!1),!M&&j&&$()},t[28]=j,t[29]=M,t[30]=w,t[31]=$,t[32]=ce):ce=t[32];const de=ce;let ue;t[33]!==W||t[34]!==C?(ue=()=>{le(W),W&&C(!1)},t[33]=W,t[34]=C,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]!==C||t[42]!==te?(ye=()=>{te&&C(!0)},t[41]=C,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,ke=null!==T,Me=ke&&(null===R||!0===R),Ne=j&&!M&&W||!j&&Me,$e=k&&!_&&!W;let Fe;t[48]!==W?(Fe=W?(0,A.jsx)(Wl,{className:$c,color:"currentColor"}):(0,A.jsx)(ql,{className:$c,color:"currentColor"}),t[48]=W,t[49]=Fe):Fe=t[49];const Te=Fe,Re=$t(["micromag-viewer-partials-playback-controls-container",h,Ne?y:null,{[Tc]:j&&!ee,[Rc]:$e,[Pc]:ke||j,[Bc]:j,[Ec]:ee,[zc]:Ne,[Vc]:g,[Ic]: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,A.jsx)(El,{className:$t(["micromag-viewer-partials-playback-controls-suggest"]),style:{color:J},onClick:W?oe:ae,focusable:M,icon:(0,A.jsx)(ql,{className:$t([$c,Fc]),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 Ae,Ie;t[58]!==_||t[59]!==Le?(Ae=$t(["micromag-viewer-partials-playback-controls-playPauseButton",{[Ac]:Le,[Lc]:_}]),t[58]=_,t[59]=Le,t[60]=Ae):Ae=t[60],t[61]!==J?(Ie={color:J},t[61]=J,t[62]=Ie):Ie=t[62];const Pe=W?oe:ae,Be=j&&M&&(!ee||!W);let Ee;t[63]!==_||t[64]!==Te?(Ee=_?(0,A.jsx)(Dl,{className:$t(["micromag-viewer-partials-playback-controls-spinner",Fc])}):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]!==Ae||t[71]!==Ie||t[72]!==Pe||t[73]!==Be||t[74]!==Ee||t[75]!==Ve||t[76]!==De?(_e=(0,A.jsx)(El,{className:Ae,style:Ie,onClick:Pe,focusable:Be,disabled:_,icon:Ee,"aria-pressed":Ve,"aria-label":De,withoutBootstrapStyles:!0}),t[69]=_,t[70]=Ae,t[71]=Ie,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,A.jsx)(Nc,{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,A.jsx)(Gl,{className:$c,color:"currentColor"}):(0,A.jsx)(Zl,{className:$c,color:"currentColor"}),t[92]=q,t[93]=Ye):Ye=t[93];const Ue=!q;let Xe,Je,Ke;return t[94]!==p?(Xe=p.formatMessage({id:"RK/QEY",defaultMessage:"Unmute"}),t[94]=p,t[95]=Xe):Xe=t[95],t[96]!==We||t[97]!==qe||t[98]!==Ge||t[99]!==Ye||t[100]!==Ue||t[101]!==Xe?(Je=(0,A.jsx)(El,{className:"micromag-viewer-partials-playback-controls-muteButton",style:We,onClick:qe,focusable:Ge,icon:Ye,"aria-pressed":Ue,"aria-label":Xe,withoutBootstrapStyles:!0}),t[96]=We,t[97]=qe,t[98]=Ge,t[99]=Ye,t[100]=Ue,t[101]=Xe,t[102]=Je):Je=t[102],t[103]!==Re||t[104]!==ze||t[105]!==_e||t[106]!==Ze||t[107]!==Je?(Ke=(0,A.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 Hc="micromag-viewer-partials-web-view-opened";function Zc(e){const t=(0,i.c)(51),{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=ft();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}=pt(),{playing:C,setPlaying:w,hideControls:j,showControls:k}=Qe(),M=cl(),N=(0,n.useRef)(C),[$,F]=(0,n.useState)(b),{title:T}=Pe(),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 I,P,B,E,V;t[10]!==x||t[11]!==S||t[12]!==j||t[13]!==h||t[14]!==C||t[15]!==w||t[16]!==k?(I=()=>{h?(x(),j(),N.current=C,C&&w(!1)):(S(),k(),N.current&&!C&&(N.current=!1,w(!0)))},t[10]=x,t[11]=S,t[12]=j,t[13]=h,t[14]=C,t[15]=w,t[16]=k,t[17]=I):I=t[17],t[18]!==h?(P=[h],t[18]=h,t[19]=P):P=t[19],(0,n.useEffect)(I,P),t[20]!==$||t[21]!==h||t[22]!==v||t[23]!==M||t[24]!==c?(B=()=>{c&&null!==$&&M("viewer_webview",h?"open":"close",$,{source:v})},t[20]=$,t[21]=h,t[22]=v,t[23]=M,t[24]=c,t[25]=B):B=t[25],t[26]!==$||t[27]!==h||t[28]!==c?(E=[c,$,h],t[26]=$,t[27]=h,t[28]=c,t[29]=E):E=t[29],(0,n.useEffect)(B,E),t[30]!==g?(V={escape:()=>{g()}},t[30]=g,t[31]=V):V=t[31],Nr(V);const D=b||$;let _;if(t[32]!==v||t[33]!==T||t[34]!==b||t[35]!==D){const e=Da.A.parse(null!==D&&-1!==D.indexOf("?")?D.split("?")[1]:"");_=null!==D?`${D.split("?")[0]}?${Da.A.stringify({utm_source:"Micromag",utm_medium:v||"webview",utm_campaign:T,...e})}`:b,t[32]=v,t[33]=T,t[34]=b,t[35]=D,t[36]=_}else _=t[36];const O=_;let H,Z,W;return t[37]!==d||t[38]!==h?(H=$t(["micromag-viewer-partials-web-view-container",d,{[Hc]:h}]),t[37]=d,t[38]=h,t[39]=H):H=t[39],t[40]!==g||t[41]!==O||t[42]!==h||t[43]!==v||t[44]!==f?(Z=(0,A.jsx)(kr,{url:O,source:v,...f,closeable:h,focusable:h,className:"micromag-viewer-partials-web-view-webView",onClose:g}),t[40]=g,t[41]=O,t[42]=h,t[43]=v,t[44]=f,t[45]=Z):Z=t[45],t[46]!==L||t[47]!==u||t[48]!==H||t[49]!==Z?(W=(0,A.jsx)("div",{className:H,style:u,onTransitionEnd:L,ref:R,children:Z}),t[46]=L,t[47]=u,t[48]=H,t[49]=Z,t[50]=W):W=t[50],W}const Wc={tension:300,friction:35},qc=je("micromag:viewer"),Gc=["share","main"],Yc=[{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 Uc(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:C,neighborPreloadBackward:w,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,pe=void 0===s?null:s,fe=void 0===r?null:r,be=void 0===c?null:c,ve=void 0===d?null:d,Se=void 0===u?null:u,je=void 0===m?Yc: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,ze=void 0===x?105:x,Ae=void 0===S?.8:S,Ie=void 0===C?2e3:C,Pe=void 0===w||w,Ee=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?Gc: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,Xe=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,dt=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,vt=void 0===ie?null:ie,xt=void 0===oe?null:oe,St=void 0===se?null:se,Ct=void 0===re?null:re,wt=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,I.tz)(),Tt=((e,{disabled:t=!1,withTheme:l=!0,withMedias:a=!0,withFonts:i=!0,withMigrations:o=!0}={})=>{const s=Le(),r=(0,n.use)(Re),[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:Lt,metadata:It,fonts:Pt}=Tt,_t=void 0===Rt?[]:Rt,Ht=void 0===Lt?null:Lt,Zt=void 0===It?null:It,Wt=void 0===Pt?null:Pt,qt=_t.length,[Gt]=(0,n.useState)(ad);let Yt;t[0]!==ve?(Yt=e=>`${e.id}`==`${ve}`,t[0]=ve,t[1]=Yt):Yt=t[1];const Ut=Math.max(0,_t.findIndex(Yt)),Qt=_t[Ut]||null,{parameters:Xt}=Qt||{},{metadata:Jt}=Xt||{},{title:Kt,description:el}=Jt||{},tl=void 0===Kt?null:Kt,il=void 0===el?null:el,sl=null!==tl?tl:Ht,rl=null!==il?{...Zt,description:il}: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)(wt,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,_t,Ut]);const{textStyles:hl,colors:yl}=pe||{},{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||{},Cl=[...Wt||[],void 0===Sl?null:Sl].filter(nd);(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!==Ot.loading.indexOf(e))(n)||(e=>-1!==Ot.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,Ot.active=Ot.active.filter(e=>e!==t),void(Ot.loading=[...Ot.loading,t]);var t},fontactive:e=>{return t=e,Ot.loading=Ot.loading.filter(e=>e!==t),void(Ot.active=[...Ot.active,t]);var t},fontinactive:e=>{return t=e,void(Ot.loading=Ot.loading.filter(e=>e!==t));var t}})):a(!0)},[e,a])})(Cl);const wl="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:Al}=Qe(),Il=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===Al?null:Al,_l=Il&&Pl,{ref:Ol,height:Hl}=Dt(),Zl=void 0===Hl?0:Hl,Wl=(()=>{const e=(0,i.c)(2),t=ct();let l;return e[0]!==t?(l=(e,l)=>{const n=void 0===e?null:e,a=void 0===l?null:l;ol(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]!==je||t[8]!==be||t[9]!==kt||t[10]!==fe?(Gl={width:fe,height:be,screens:je,...kt},t[7]=je,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}=Dt(),g=void 0===u?0:u,h=void 0===m?0:m,y=ll(),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:C,menuAlwaysOverScreen:w,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?nl:j)||$);let T=p,R=f,z=!F;if(F&&(void 0===S||!S)){let e;f<(void 0===C?600:C)||void 0===w||w?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,A=N||null===L?T:M,I=N||null===L?R:R/L,P=N?null:L;let B;t[11]!==F||t[12]!==z||t[13]!==a||t[14]!==A||t[15]!==I||t[16]!==P?(B={width:A,height:I,landscape:F,menuOverScreen:z,scale:P,...a},t[11]=F,t[12]=z,t[13]=a,t[14]=A,t[15]=I,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=ll();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,zt.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(al),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 C=null!==b?b*v:v,w=null!==b?Math.max(b,v):v;let j;return t[14]!==m||t[15]!==g||t[16]!==h||t[17]!==x||t[18]!==C||t[19]!==w||t[20]!==S||t[21]!==u?(j={screen:S,screens:x,width:u,height:m,landscape:g,menuOverScreen:h,resolution:C,imageResolution:w},t[14]=m,t[15]=g,t[16]=h,t[17]=x,t[18]=C,t[19]=w,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:ln,menuOverScreen:nn}=Xl||{},on=void 0===Kl?null:Kl,sn=void 0===en?null:en,rn=void 0!==ln&&ln,cn=void 0!==nn&&nn,dn=null!==Jl&&null!==on?on*Jl:on,un=null!==Jl&&null!==sn?sn*Jl:sn,mn=on>0&&sn>0||Ke,gn=wl;(0,n.useEffect)(()=>{gn&&null!==Qt&&Wl(Qt,Ut)},[Qt,Ut,Wl,gn]),(0,n.useEffect)(()=>{mn&&null!==St&&St({landscape:rn,menuOverScreen:cn})},[mn,rn,cn,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=rn&&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&&!xe(e)&&(null!==t&&(qc("Pause media: %s",we(Ce(t))),t.dataset.forcePlaying="false",t.pause()),qc("Force playing media: %s",we(Ce(e))),e.play().catch(()=>{}),e.dataset.forcePlaying="true")}(l,t,Ml),fn.current=l,null!==xt&&xt(_t[e],e)},vn=e=>{const{index:t,newIndex:l,end:n,direction:a}=e;n&&null!==vt&&vt(),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(_t.length-1,Ut+1))},[Cn,wn]=(0,n.useState)(!1),[jn,kn]=(0,n.useState)(!1);let Mn;t[12]!==Cn||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(),Cn||wn(!0),yt||jn||null===Dl||null!==l&&$r(l)||(Dl(!1),kn(!0))},t[12]=Cn,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)(29),{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(Fr,{}),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,C=!S||(b[S]??!0),w=(0,n.useRef)(S);let j,k,M;t[5]!==S?(j=()=>{w.current=S},k=[S],t[5]=S,t[6]=j,t[7]=k):(j=t[6],k=t[7]),(0,n.useEffect)(j,k),t[8]!==l?(M=e=>{v(t=>(t?.[w.current]??!0)===e?t:l.reduce((l,n)=>{const{id:a}=n;return w.current===a?{...l,[a]:e}:{...l,[a]:t?.[a]??!0}},{}))},t[8]=l,t[9]=M):M=t[9];const N=M;let $;t[10]!==N?($=()=>{N(!0)},t[10]=N,t[11]=$):$=t[11];const F=$;let T;t[12]!==N?(T=()=>{N(!1)},t[12]=N,t[13]=T):T=t[13];const R=T;let z;t[14]!==g||t[15]!==C||t[16]!==m||t[17]!==h||t[18]!==y||t[19]!==p||t[20]!==a||t[21]!==o||t[22]!==l.length?(z=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||$r(n)||u&&!C)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[14]=g,t[15]=C,t[16]=m,t[17]=h,t[18]=y,t[19]=p,t[20]=a,t[21]=o,t[22]=l.length,t[23]=z):z=t[23];const L=z;let A;return t[24]!==C||t[25]!==R||t[26]!==F||t[27]!==L?(A={interact:L,currentScreenInteractionEnabled:C,enableInteraction:F,disableInteraction:R},t[24]=C,t[25]=R,t[26]=F,t[27]=L,t[28]=A):A=t[28],A}({screens:_t,screenIndex:Ut,screenWidth:dn,disableCurrentScreenNavigation:!wl,nextScreenWidthPercent:Me,onInteract:Nn,onNavigate:vn}),[zn,Ln]=(0,n.useState)(null),[An,In]=(0,n.useState)(!1),[Pn,Bn]=(0,n.useState)(Ut);let En,Vn,Dn;Ut===Pn||!An&&null===zn?An&&null!==zn&&Ln(null):(In(!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 ld;const t=setTimeout(()=>{Nl(!1),In(!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=>{$r(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),In(!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}=Bt({progress:Ut,disabled:!wl||dt,dragDisabled:lt||!Fn,computeProgress:e=>{const{active:t,movement:l,velocity:n}=e,[a]=l,[i]=n,o=a/dn,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),In(!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:Wc},dragOptions:{filterTaps:!0,axis:"x",pointer:{keys:!1}}});let Xn;t[33]!==Un||t[34]!==An||t[35]!==Ml?(Xn=Un({playing:Ml,longPressPaused:An}),t[33]=Un,t[34]=An,t[35]=Ml,t[36]=Xn):Xn=t[36];const Jn=Xn;let Kn;t[37]!==Jn?(Kn={onClickCapture:e=>$r(e.target)?null:Jn?.onClickCapture?.(e),onLostPointerCapture:e=>$r(e.target)?null:Jn?.onLostPointerCapture?.(e),onPointerCancel:e=>$r(e.target)?null:Jn?.onPointerCancel?.(e),onPointerDown:e=>$r(e.target)?null:Jn?.onPointerDown?.(e),onPointerMove:e=>$r(e.target)?null:Jn?.onPointerMove?.(e),onPointerUp:e=>$r(e.target)?null:Jn?.onPointerUp?.(e),onScroll:e=>$r(e.target)?null:Jn?.onScroll?.(e)},t[37]=Jn,t[38]=Kn):Kn=t[38];const ea=Kn;let ta;t[39]!==ze||t[40]!==Ae||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*ze}%) scale(${1-(1-Ae)*n})`}),zIndex:qt-e},t[39]=ze,t[40]=Ae,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)(Et),[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;Ft.isEnabled&&(null!==l?Ft.request(l):Ft.request())},e[0]=r):r=e[0];const c=r,d=Vt;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(Ft.isEnabled);const e=()=>{s(Ft.isFullscreen)};return Ft.isEnabled&&Ft.on("change",e),()=>{Ft.isEnabled&&Ft.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}=Dt(),ca=void 0===ra?0:ra,da=e=>!!rn||(e.preventDefault(),!1);let ua;t[45]===Symbol.for("react.memo_cache_sentinel")?(ua=(0,A.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],Nr({f:ga,arrowleft:()=>{Tr(document.activeElement)||xn()},arrowright:()=>{Tr(document.activeElement)||Sn()}},ya);const pa=ed,[fa,ba]=(0,n.useState)(null),[va,xa]=(0,n.useState)(!1),{header:Sa}=Qt||{},Ca=void 0===Sa?null:Sa,{shareIncentive:wa}=Ca||{},ja=void 0===wa?null:wa,{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 Aa,Ia,Pa,Ba;Na&&za!==(void 0===La?null:La)&&(ba(ja),xa(!0)),t[50]!==wl||t[51]!==va?(Aa=()=>{if(!va||!wl)return Kc;const e=setTimeout(()=>{xa(!1)},6e3);return()=>{clearTimeout(e)}},Ia=[va,wl],t[50]=wl,t[51]=va,t[52]=Aa,t[53]=Ia):(Aa=t[52],Ia=t[53]),(0,n.useEffect)(Aa,Ia),t[54]!==Ie||t[55]!==hn?(Pa=()=>{if(hn)return Jc;const e=setTimeout(()=>{yn(!0)},Ie);return()=>{clearTimeout(e)}},Ba=[hn,Ie],t[54]=Ie,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:cn&&Fn&&(Ea=ca/Jl);let Va=0;null!==De?Va=De/Jl:Il&&(Pl||!Ml)&&Fn&&(Va=Zl/Jl);const Da="hand"===gt?jc:Sc,_a=!wl;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&&wl&&qt>1&&0!==Ut&&(!(null!==Bl&&!Vl)||El)&&!qn&&!Za;(0,n.useEffect)(()=>{if(!Wa)return Xc;const e=setTimeout(()=>{bn(0)},Ue);return()=>{clearTimeout(e)}},[Wa,Ue,bn]);const qa=Be,Ga=rt,Ya=bt,Ua=Ea,Qa=Va,Xa=!Pl&&Ml&&null===Bl||!Fn?0:60/Jl,Ja=et?(0,A.jsx)(an,{title:sl,metadata:rl,children:ma}):ma;let Ka;t[60]!==Cl?(Ka=(0,A.jsx)(tn,{fonts:Cl}),t[60]=Cl,t[61]=Ka):Ka=t[61];const ei=$t([gc.container,Xl.screens.map(Qc),Mt,{[gc.landscape]:rn,[gc.withoutGestures]:lt,[gc.hideMenu]:!Zn,[gc.disableMenu]:Wn,[gc.fadeMenu]:Ml&&Il&&!Pl,[gc.ready]:mn||kl,[gc.hasInteracted]:Cn,[gc.isDragging]:qn}]);let ti;t[62]!==Ha||t[63]!==ql||t[64]!==na||t[65]!==Yl?(ti=ye(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]!==_t||t[68]!==li?(ni=(0,A.jsx)("div",{className:gc.ariaAnnouncement,id:"announce","aria-live":"polite",children:(0,A.jsx)(I.sA,{id:"AIr8rM",defaultMessage:"Screen {current} of {length}",values:{current:li,length:_t.length}})}),t[67]=_t,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,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(Lr,{onClick:pa,"aria-disabled":ht||!Pl,"aria-describedby":"disabledReason",className:$t([gc.accessibilityButton,{[gc.disabled]:ht||!Pl}]),children:(0,A.jsx)(I.sA,{id:"CnVj9r",defaultMessage:"Skip to controls"})}),ht||!Pl?(0,A.jsx)("div",{role:"tooltip",className:gc.tooltipBox,id:"disabledReason",children:(0,A.jsx)("span",{className:gc.tooltip,children:(0,A.jsx)(I.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,A.jsx)("nav",{"aria-label":ai,className:gc.accessibilityLinks,children:ii}),t[76]=ai,t[77]=ii,t[78]=oi):oi=t[78];const si=nt?null:(0,A.jsx)(yc,{story:Tt,currentScreenIndex:Ut,withShadow:cn&&!ot,toggleFullscreen:aa,fullscreenActive:ia,fullscreenEnabled:oa,menuDotsButtons:Xe,closeable:Je,shareBasePath:We||he,shareOptions:qe,screenSize:Xl,menuWidth:_e?dn:null,theme:pe,previewHeader:Oe,previewFooter:He,trackingEnabled:gn,onClickScreen:e=>{const{screenId:t}=e;Nn();const l=_t.findIndex(e=>{const{id:l}=e;return l===t});bn(l)},onClickCloseViewer:pt,onChange:Ct,withDotItemClick:dn>400,withoutScreensMenu:at,withoutShareMenu:it,menuItems:Ze,afterShareMenuButton:Ge,beforeScreensMenuButton:Ye,withMicromagBranding:tt,refDots:sa}),ri=mn||kl?(0,A.jsxs)("div",{className:gc.content,...ea,children:[!st&&!ut&&!Wn&&Ut>0&&_t.length>1?(0,A.jsx)(vc,{direction:"previous",className:$t([gc.navButton,gc.previous]),onClick:xn,ariaLabel:Nt.formatMessage({id:"zYH/31",defaultMessage:"Go to previous screen"})}):null,(0,A.jsx)("div",{className:gc.screensFrame,style:{width:dn,height:un,overflow:ut?null:"hidden"},children:_t.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!==Ee?Ee: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,A.jsx)(Tl.CS.div,{id:l?"content":null,"aria-hidden":!l,style:m,tabIndex:l?0:-1,className:$t([gc.screenContainer,{[gc.visible]:g,[gc.preload]:u,[gc.current]:l&&!Gn}]),children:null!==e?(0,A.jsx)(fc,{className:gc.screen,screen:e,screenState:l?Se:null,index:t,current:l,active:d||l,ready:l&&!Gn,preload:u||l,mediaRef:e=>{dl.current[t]=e},renderContext:ke,width:on,height:sn,scale:Jl}):null},`screen-viewer-${e.id||""}-${t+1}`)})}),!st&&!ut&&!Wn&&Ut<_t.length-1?(0,A.jsx)(vc,{direction:"next",className:$t([gc.navButton,gc.next]),onClick:Sn,ariaLabel:Nt.formatMessage({id:"v9bqYj",defaultMessage:"Go to next screen"})}):null,ht?null:(0,A.jsx)("div",{className:gc.playbackControls,id:"controls",ref:Ol,...Rr,children:(0,A.jsx)(Oc,{className:gc.controls,withoutShadow:ot})}),!1===gt||ut||Wn||0!==Ut||Cn?null:(0,A.jsx)(Da,{className:gc.navigationHint,withoutShadow:ot})]}):null,ci=$t([gc.shareIncentiveContainer,{[gc.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,A.jsx)(wr,{className:gc.shareIncentive,...fa}),t[81]=fa,t[82]=mi):mi=t[82],t[83]!==ci||t[84]!==ui||t[85]!==mi?(gi=(0,A.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(dn,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,A.jsx)(Zc,{className:gc.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,A.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]!==cn||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,A.jsxs)(Ya,{events:Gt,menuVisible:Zn,menuOverScreen:cn,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]=cn,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,A.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]!==Tt||t[126]!==vi?(xi=(0,A.jsx)(qa,{story:Tt,children:vi}),t[124]=qa,t[125]=Tt,t[126]=vi,t[127]=xi):xi=t[127],xi}function Qc(e){return`story-screen-${e}`}function Xc(){}function Jc(){}function Kc(){}function ed(){const e=document.getElementById("controls");if(e){const t=e.querySelectorAll("button[tabindex]"),l=Array.from(t).find(td)||null;null!==l&&l.focus({preventScroll:!0})}}function td(e){return e.tabIndex>=0}function ld(){}function nd(e){return null!==e}function ad(){return new h}function id(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,C,w,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,A.jsx)(Uc,{...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?(C=(0,A.jsx)(c.qh,{path:m.screen,children:S}),t[21]=m.screen,t[22]=S,t[23]=C):C=t[23],t[24]!==x||t[25]!==l||t[26]!==r?(w=(0,A.jsx)(c.qh,{children:(0,A.jsx)(Uc,{...l,story:r,onScreenChange:x})}),t[24]=x,t[25]=l,t[26]=r,t[27]=w):w=t[27],t[28]!==w||t[29]!==C?(j=(0,A.jsxs)(c.dO,{children:[C,w]}),t[28]=w,t[29]=C,t[30]=j):j=t[30],j}var od={home:"/",screen:"/:screen"};const sd={},rd=["fr","en"];function cd(e){const t=(0,i.c)(70);let l,a,s,u,m,g,h,y,p,f,b,v,x,S,C,w,j,k,M;t[0]!==e?(({story:s,paused:v,muted:x,screenComponents:S,memoryRouter:C,basePath:l,routes:w,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]=C,t[16]=w,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],C=t[15],w=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!==C&&C,z=void 0===w?od:w,L=void 0!==j&&j,I=void 0===k?null:k,P=void 0===M?null:M,B=void 0===u?"en":u,E=void 0===m?rd: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(ud).map(dd);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||sd;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,A.jsx)(Uc,{story:N,basePath:l,...a}):(0,A.jsx)(id,{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,A.jsx)(dt,{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,A.jsx)(et,{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,A.jsx)(kt,{visitor:P,children:ne}),t[44]=ne,t[45]=P,t[46]=ae):ae=t[46],t[47]!==ee||t[48]!==ae?(ie=(0,A.jsx)(Sr,{children:(0,A.jsx)(Fe,{namespace:ke,components:ee,children:ae})}),t[47]=ee,t[48]=ae,t[49]=ie):ie=t[49],t[50]!==W||t[51]!==ie?(oe=(0,A.jsx)(Ge,{locale:W,children:ie}),t[50]=W,t[51]=ie,t[52]=oe):oe=t[52],t[53]!==I||t[54]!==oe?(se=(0,A.jsx)(Ze,{apiKey:I,children:oe}),t[53]=I,t[54]=oe,t[55]=se):se=t[55],t[56]!==W||t[57]!==E||t[58]!==se||t[59]!==V?(re=(0,A.jsx)(gl,{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,A.jsx)(_e,{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,A.jsx)(c.Ix,{hook:R?J:void 0,searchHook:R?K:void 0,base:R||null===l?void 0:l,children:(0,A.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 dd(e){const{id:t}=e;return t}function ud(e){const{type:t,id:l}=e||{};return"ga4"===t&&!s(l)}function md(e){return md="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},md(e)}function gd(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 hd(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?gd(Object(l),!0).forEach(function(t){yd(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):gd(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}function yd(e,t,l){return(t=function(e){var t=function(e){if("object"!=md(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var l=t.call(e,"string");if("object"!=md(l))return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==md(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 pd=void 0!==window.MICROMAG_STORY?window.MICROMAG_STORY:null,fd=void 0!==window.MICROMAG_VIEWER_PROPS?window.MICROMAG_VIEWER_PROPS:null,bd=void 0!==window.MICROMAG_ROOT_ELEMENT_ID?window.MICROMAG_ROOT_ELEMENT_ID:"root",vd=void 0!==window.MICROMAG_ROOT_ELEMENT?window.MICROMAG_ROOT_ELEMENT:document.getElementById(bd),xd=void 0!==window.MICROMAG_RENDER_STORY_FNC?window.MICROMAG_RENDER_STORY_FNC:"renderStory",Sd=new WeakMap,Cd=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:vd,i=Sd.get(l);i||(i=(0,a.createRoot)(l),Sd.set(l,i)),i.render(n.createElement(cd,hd(hd({},t),{},{story:e})))};null!==pd&&Cd(pd,fd),null!==xd&&(window[xd]=Cd)},2185:function(e,t,l){l.p=void 0!==window.MICROMAG_PUBLIC_PATH?window.MICROMAG_PUBLIC_PATH:"/"}},function(e){e.O(0,[656],function(){return e(e.s=9675)}),e.O()}]);