PageSourceSearch

https://octopusenergy.es/_next/static/chunks/9219.c66ebb78a8c2d4da.js

js octopusenergy.es collected 2026-09-26 00:01:03 UTC 27,311 bytes, 210 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="9e286fb8-0664-43c0-9182-95bab71a41ba",e._sentryDebugIdIdentifier="sentry-dbid-9e286fb8-0664-43c0-9182-95bab71a41ba")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9219],{39219:(e,t,i)=>{i.r(t),i.d(t,{default:()=>g,editableAttributes:()=>A});let n=e=>!!e&&e.nodeType===Node.ELEMENT_NODE,o=e=>{let t=((e,t)=>{let i=e;for(;n(i);){if(i.hasAttribute(t))return i;i=i.parentNode}return null})(e,"data-blok-c");if(!t)return null;let i=t.getAttribute("data-blok-c");return null===i?null:JSON.parse(i)},s=e=>document.querySelector(`[data-blok-uid="${e}"]`),r=e=>{let t=e.getBoundingClientRect();return t.top<0&&t.top+t.height>=0||t.top>=0&&t.top<=(window.innerHeight||document.documentElement.clientHeight)},l=e=>{let t={};try{let i=e.replace(/\\/g,"");t=JSON.parse(i)}catch{console.error("Error parsing json",e)}return t},a=e=>e&&e.display_name?e.display_name:((e,t,i)=>"string"!=typeof e?"":e.toString().replace(/([A-Z])/g," $1").trim().toLowerCase().replace(/[_-]/g," ").replace(/(?:^|\s)\S/g,function(e,t){return e.toUpperCase()}))(e.name),d=e=>{let t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.setAttribute("viewBox",e.viewBox),t.setAttribute("class",e.svgClass);let i=document.createElementNS(t.namespaceURI,"path");return i.setAttribute("d",e.path),i.setAttribute("fill",e.pathFill),i.setAttribute("transform",e.pathTransform?e.pathTransform:"translate(0 0)"),t.appendChild(i),t},h=(e=>e)`
2  @keyframes smoke {
3    from {
4      background-color: rgba(89, 197, 198, 0);
5    }
6    to {
7      background-color: rgba(89, 197, 198, 0.5);
8    }
9  }
10
11  .storyblok--outlined .storyblok__outline,
12  .storyblok--outlined [data-blok-c] {
13    outline: 1px dashed rgba(182, 186, 191, 0.5);
14  }
15
16  .storyblok--outlined .storyblok__outline[data-blok-focused='true'],
17  .storyblok--outlined [data-blok-c][data-blok-focused='true'] {
18    outline: 0;
19  }
20
21  .storyblok__hint {
22    box-sizing: border-box;
23    outline: 1px solid #05807f;
24    pointer-events: none;
25    position: absolute;
26    transition: opacity 0.2s ease;
27    z-index: 16777272;
28  }
29
30  .storyblok__highlight {
31    background: rgba(89, 197, 198, 0.2);
32    outline: 1px solid #05807f;
33    pointer-events: none;
34    position: absolute;
35    transition: opacity 0.2s ease;
36    z-index: 16777270;
37  }
38
39  .storyblok__overlay {
40    box-shadow: 0 0 8px 2px rgba(34, 42, 69, 0.07);
41    box-sizing: border-box;
42    outline: 1px solid #05807f;
43    pointer-events: none;
44    position: absolute;
45    z-index: 16777273;
46  }
47
48  .storyblok__overlay-menu {
49    background-color: #05807f;
50    border-radius: 5px;
51    display: inline-flex;
52    font-family:
53      -apple-system, blinkmacsystemfont, 'Segoe UI', roboto, helvetica, arial,
54      sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
55    height: 30px;
56    left: -1px;
57    pointer-events: auto;
58    position: absolute;
59    top: -40px;
60  }
61
62  .storyblok__overlay-menu--simple .storyblok__overlay-menu-btn {
63    border-bottom-right-radius: 5px;
64    border-top-right-radius: 5px;
65  }
66
67  .storyblok__overlay-menu-label {
68    color: #fff;
69    font-size: 14px;
70    line-height: 30px;
71    margin-right: 20px;
72    max-width: 200px;
73    overflow-x: hidden;
74    text-overflow: ellipsis;
75    white-space: nowrap;
76  }
77
78  .storyblok__overlay-menu-label:first-child {
79    margin-left: 20px;
80  }
81
82  .storyblok__overlay-menu-btn {
83    align-items: center;
84    background-color: transparent;
85    border: 0;
86    display: flex;
87    justify-content: center;
88    outline: none;
89    padding: 0;
90  }
91
92  .storyblok__overlay-menu-btn:hover {
93    background-color: #0d5454;
94  }
95
96  .storyblok__overlay-menu-btn-action {
97    border-bottom-right-radius: 5px;
98    border-left: 1px solid #fff;
99    border-top-right-radius: 5px;
100    height: inherit;
101    margin: auto;
102    margin-right: 0;
103  }
104
105  .storyblok__overlay-menu-btn-parent {
106    border-bottom-left-radius: 5px;
107    border-top-left-radius: 5px;
108    cursor: pointer;
109    margin: 0;
110    width: auto;
111  }
112
113  .storyblok__overlay-menu-svg {
114    box-sizing: border-box;
115    cursor: pointer;
116    height: 24px;
117    margin: 0 3px;
118    width: 24px;
119  }
120
121  .storyblok__overlay--bottom .storyblok__overlay-menu {
122    bottom: -40px;
123    top: auto;
124  }
125
126  .storyblok__overlay--clicked {
127    animation-duration: 0.2s;
128    animation-iteration-count: 1;
129    animation-name: smoke;
130  }
131
132  .storyblok__actions-menu,
133  .storyblok__breadcrumbs-menu {
134    background-color: #fff;
135    border: 1px solid #dfe3e8;
136    border-radius: 5px;
137    box-shadow: 0 2px 17px 3px rgba(34, 42, 69, 0.07);
138    box-sizing: content-box;
139    display: none;
140    height: fit-content;
141    min-width: 156px;
142    overflow: hidden;
143    padding: 11px 0;
144    position: absolute;
145    top: 25px;
146    z-index: 2;
147  }
148
149  .storyblok__actions-menu hr,
150  .storyblok__breadcrumbs-menu hr {
151    background-color: #dfe3e8;
152    border: 0;
153    height: 1px;
154    margin: 11px 0 11px 20px;
155  }
156
157  .storyblok__actions-menu__menu-item,
158  .storyblok__breadcrumbs-menu__menu-item {
159    align-items: center;
160    appearance: none;
161    background: #fff;
162    border: 0;
163    color: #1b243f;
164    cursor: pointer;
165    display: flex;
166    font-family:
167      -apple-system, blinkmacsystemfont, 'Segoe UI', roboto, helvetica, arial,
168      sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
169    font-size: 14px;
170    padding: 8px 20px;
171    text-align: left;
172    width: 100%;
173  }
174
175  .storyblok__actions-menu__menu-item--delete,
176  .storyblok__breadcrumbs-menu__menu-item--delete {
177    color: #c11c14;
178    margin-bottom: 0;
179  }
180
181  .storyblok__actions-menu__menu-item--selected,
182  .storyblok__breadcrumbs-menu__menu-item--selected {
183    color: #05807f;
184    cursor: default;
185    margin-bottom: 0;
186  }
187
188  .storyblok__actions-menu__menu-item--selected:hover,
189  .storyblok__breadcrumbs-menu__menu-item--selected:hover {
190    background: transparent;
191  }
192
193  .storyblok__actions-menu__menu-item:hover,
194  .storyblok__breadcrumbs-menu__menu-item:hover {
195    background: #eff1f3;
196  }
197
198  .storyblok__actions-menu__menu-item:focus,
199  .storyblok__breadcrumbs-menu__menu-item:focus {
200    outline: none;
201  }
202
203  .storyblok__actions-menu {
204    left: calc(100% - 20px);
205  }
206
207  .storyblok__breadcrumbs-menu {
208    left: -10px;
209  }
210`,c={OUTLINE:"storyblok--outlined",STYLESHEET:"storyblok-bridge-stylesheet",HINT:"storyblok__hint",HIGHLIGHTER:"storyblok__highlight",OVERLAY:"storyblok__overlay",COMPONENT_BASE:"storyblok__overlay-menu",ACTIONS_MENU:"storyblok__actions-menu",BREADCRUMBS_MENU:"storyblok__breadcrumbs-menu"},u=0;class m{constructor(e){this.appVersion="v1",this.inEditor=!0,this.initialized=!1,this.currentUid=null,this.storyId="",this.componentNames={},this.outlineOnMoveInterval=null,this.calcInterval=null,this.canAddBlocks=!1,this.canMoveForward=!1,this.canMoveBackward=!1,this.canDeleteBlocks=!1,this.navigationBreadcrumbs=[],this.focusState=!1,this.actionsEnabled=!1,this.hinter=null,this.highlighter=null,this.overlay=null,this.componentBase=null,this.componentLabel=null,this.breadcrumbsButtonMenu=null,this.breadcrumbsMenu=null,this.actionsMenu=null,this.actionsMenuButton=null,this.actionsMenuItems=null,this._decoratedElements=[],this._onMessage=null,this._onMouseMove=null,this._onWindowClick=null,this.events={input:[],change:[],published:[],unpublished:[],viewLiveVersion:[],enterEditmode:[],enterComponent:[],hoverComponent:[],highlightComponent:[],customEvent:[],pingBack:[],sessionReceived:[],editedBlok:[],deselectBlok:[],addedBlock:[],deletedBlock:[],movedBlock:[],duplicatedBlock:[]},this.config={customParent:null,resolveRelations:null,resolveLinks:null,preventClicks:!1,initOnlyOnce:!0,fallbackLang:null,...e},this.init()}get isInIframe(){return window.top!==window.self}get csProtocol(){let e=location.protocol.replace(":","");return"http"!==e&&"https"!==e&&(e="https"),e}get targetOrigin(){let e;return this.config.customParent?this.config.customParent:"stage"===(e="",location.search.substr(1).split("&").forEach(t=>{let i=t.split("=");"_storyblok_env"===i[0]&&(e=decodeURIComponent(i[1]))}),e)?`${this.csProtocol}://app-beta.storyblok.com`:`${this.csProtocol}://app.storyblok.com`}get lastBreadcrumbItem(){return this.navigationBreadcrumbs[this.navigationBreadcrumbs.length-1]||{}}isInEditor(){return this.inEditor}init(){if(null===document.body)return void console.error("Body tag not found. Please install the Storyblok bridge script inside the body tag");this.config.initOnlyOnce&&document.querySelectorAll(`.${c.HINT}`).length>0||this.isInIframe&&(this.resetAllEvents(),this.addMessageListener(),this.outlineOnMove(),this.buildBridgeStyles(),this.on("enterEditmode",this.enterEditmode),this.isInIframe&&this.sendDataToEditor({action:"initialized",config:this.config}),this.initialized=!0,u+=1)}sendDataToEditor(e){window.parent.postMessage(e,this.targetOrigin)}buildBridgeStyles(){document.getElementById(c.STYLESHEET)?(this.hinter=document.querySelector(`.${c.HINT}`),this.highlighter=document.querySelector(`.${c.HIGHLIGHTER}`),this.overlay=document.querySelector(`.${c.OVERLAY}`),this.componentBase=document.querySelector(`.${c.COMPONENT_BASE}`),this.breadcrumbsButtonMenu=document.querySelector(`.${c.COMPONENT_BASE}-btn-parent`),this.breadcrumbsMenu=document.querySelector(`.${c.BREADCRUMBS_MENU}`),this.actionsMenuButton=document.querySelector(`.${c.COMPONENT_BASE}-btn-action`),this.actionsMenu=document.querySelector(`.${c.ACTIONS_MENU}`),this.componentLabel=document.querySelector(`.${c.COMPONENT_BASE} > .${c.COMPONENT_BASE}-label`),this.createActionsMenuItems()):(this.createBridgeStylesheet(),this.createHinter(),this.createHighlighter(),this.createOverlay(),this.createComponentContext())}createBridgeStylesheet(){let e=document.createElement("style");e.setAttribute("type","text/css"),e.id=c.STYLESHEET,"textContent"in e?e.textContent=h:e.styleSheet.cssText=h,document.getElementsByTagName("head")[0].appendChild(e)}createHinter(){this.hinter=document.createElement("div"),this.hinter.className=c.HINT,this.hideElement(this.hinter),document.body.appendChild(this.hinter)}createHighlighter(){this.highlighter=document.createElement("div"),this.highlighter.style.opacity=0,this.hideElement(this.highlighter),document.body.appendChild(this.highlighter)}createOverlay(){this.overlay=document.createElement("div"),this.overlay.setAttribute("class",c.OVERLAY),this.overlay.setAttribute("id",c.OVERLAY),this.hideElement(this.overlay),document.body.appendChild(this.overlay)}calculateElementPosition(e,t){if(!t)return this.hideElement(e),!1;let i=s(t);if(i){let{left:t,top:n,width:o,height:s}=this.getElementOffset(i);if(e===this.overlay){let t=i.getBoundingClientRect().top;e.classList.toggle(`${c.OVERLAY}--bottom`,t<=30)}return e.style.top=`${n}px`,e.style.left=`${t}px`,e.style.width=`${o}px`,e.style.height=`${s}
210px`,e.style.minHeight="5px",!0}return this.hideElement(e),!1}getElementOffset(e){let t=e.getBoundingClientRect(),i=window.pageXOffset||document.documentElement.scrollLeft,n=window.pageYOffset||document.documentElement.scrollTop;return{top:t.top+n,left:t.left+i,width:t.width,height:t.height}}resetAllEvents(){for(let e in this.events)this.events[e]=[]}addMessageListener(){window.addEventListener&&(this._onMessage&&window.removeEventListener("message",this._onMessage),this._onMessage=this.receiveMessageFromApp.bind(this),window.addEventListener("message",this._onMessage))}receiveMessageFromApp(e){e&&e.data&&e.data.action&&this.emit(e.data.action,e.data)}emit(e,...t){let i=this.events[e];if(!(!e||!i||!i.length))for(let e=0;e<i.length;e++)i[e].apply(this,t)}outlineOnMoveHandler(){document.body.classList.add(c.OUTLINE);let e=()=>{document.body.classList.remove(c.OUTLINE),this.hinter&&(this.hinter.style.opacity=0)};this.outlineOnMoveInterval&&clearTimeout(this.outlineOnMoveInterval),this.outlineOnMoveInterval=setTimeout(e,800)}outlineOnMove(){this._onMouseMove&&document.removeEventListener("mousemove",this._onMouseMove),this._onMouseMove=this.outlineOnMoveHandler.bind(this),document.addEventListener("mousemove",this._onMouseMove)}on(e,t){if(e.constructor===Array){for(let i of e)this.subscribeEvent(i,t);return}this.subscribeEvent(e,t)}subscribeEvent(e,t){"input"===e&&(this.actionsEnabled=!0),-1===this.events[e].indexOf(t)&&this.events[e].push(t)}pingEditor(e){this.isInIframe?this.sendDataToEditor({action:"ping"}):(this.inEditor=!1,e(this)),this.on("pingBack",this.handlePingBack(e))}handlePingBack(e){return()=>{this.inEditor=!0,e(this)}}handleEditedBlok(e){this.initialized&&(this.navigationBreadcrumbs=e.breadcrumbs,this.canAddBlocks=e.canAddBlocks||!1,this.canMoveForward=e.canMoveForward||!1,this.canMoveBackward=e.canMoveBackward||!1,this.canDeleteBlocks=e.canDeleteBlocks||!1,this.updateComponentBase(e.blok))}handleAddMoveBlok(e){if(!this.initialized)return;let t=s(`${this.storyId}-${e.blockId}`);t&&this.handleOpenBlok(t)}handleDeselectBlock(){this.initialized&&(document.querySelectorAll("[data-blok-focused]").forEach(e=>e.removeAttribute("data-blok-focused")),this.hideElement(this.overlay))}handleDuplicatedBlok(e){this.initialized&&(this.handleDeselectBlock(),setTimeout(()=>{if(!this.initialized)return;let t=s(`${this.storyId}-${e.blockId}`);t&&this.handleOpenBlok(t)},500))}handleWindowClick(e){this.initialized&&(this.config.preventClicks&&(e.preventDefault(),e.stopPropagation()),this.handleOpenBlok(e.target,e))}handleOpenBlok(e,t){let i=o(e);if(i){t&&i.uid!==this.currentUid&&(t.preventDefault(),t.stopPropagation()),this.currentUid=i.uid,this.storyId=i.id,this.openBlok(i);return}t&&this.toggleFocusElement(e,!0)}enterEditmode(e){let t=(e=>{let t=[],i=document.createNodeIterator(e,NodeFilter.SHOW_COMMENT,()=>NodeFilter.FILTER_ACCEPT),n=null;for(;n=i.nextNode();)if(n.nodeValue&&n.nodeValue.indexOf("#storyblok#")>-1){let e=n.nodeValue.replace("#storyblok#",""),i=n,o=i.nextElementSibling||i.nextSibling,s=l(e);s&&t.push({options:s,el:o})}return t})(document.body);e&&e.appVersion&&(this.appVersion=e.appVersion),e&&e.componentNames&&(this.componentNames=e.componentNames),this._decoratedElements=[];for(let e=0;e<t.length;e++){let i=t[e].el,n=t[e].options;if(!i||i.nodeType!==Node.ELEMENT_NODE)continue;n.name=this.componentNames[n.name]||n.name,i.setAttribute("data-blok-c",JSON.stringify(n)),i.setAttribute("data-blok-uid",`${n.id}-${n.uid}`);let o=null;i.offsetHeight<5&&(o=i.style.getPropertyValue("min-height"),i.style["min-height"]="5px"),i.classList.add("storyblok__outline"),this._decoratedElements.push({el:i,previousMinHeight:o})}if(this.on("addedBlock",this.handleAddMoveBlok),this.on("duplicatedBlock",this.handleDuplicatedBlok),this.on("movedBlock",this.handleAddMoveBlok),this.on("enterComponent",this.enterComponent),this.on("highlightComponent",this.highlightComponent),this.on("hoverComponent",this.hoverComponent),this.on("editedBlok",this.handleEditedBlok),this.on("deselectBlok",this.handleDeselectBlock),e&&e.blockId&&this.config.setActiveBlock){let t=s(`${e.storyId}-${e.blockId}`);this.handleOpenBlok(t)}this._onWindowClick||(this._onWindowClick=this.handleWindowClick.bind(this)),window.addEventListener("click",this._onWindowClick),null!==this.calcInterval&&window.clearInterval(this.calcInterval),this.calcInterval=window.setInterval(()=>{this.calculateElementPosition(this.overlay,`${this.storyId}-${this.currentUid}`)},300)}highlightComponent(e){if(!this.initialized||!this.highlighter)return;this.highlighter.innerHTML="";let t=!1;for(let i=0;i<e.componentIds.length;i++){let n=`${e.storyId}-${e.componentIds[i]}`,o=s(n);if(o){let s=document.createElement("div");s.setAttribute("class",c.HIGHLIGHTER),this.highlighter.appendChild(s),this.calculateElementPosition(s,n),t=!0,e.componentId===e.componentIds[i]&&!r(o)&&"u">typeof o.scrollIntoView&&o.scrollIntoView()}}this.highlighter.style.display=t?"block":"none",this.highlighter.style.opacity=+!!t}hoverComponent(e){this.initialized&&this.calculateElementPosition(this.hinter,`${e.storyId}-${e.componentId}`)&&(this.hinter.style.opacity=1,this.hinter.style.display="block")}
210toggleFocusElement(e,t=!1){let i;if(i=this.overlay,!i.contains(e)){if(this.handleDeselectBlock(),!t){e.setAttribute("data-blok-focused",!0),this.showFocusedElement(this.overlay),this.focusState=!1;return}this.focusState||this.sendDataToEditor({action:"noFocus"})}}showFocusedElement(e){if(!this.currentUid)return void this.hideElement(e);this.showElement(e),this.calculateElementPosition(e,`${this.storyId}-${this.currentUid}`)}handleBlokActions(e){this.sendDataToEditor({action:e,blok:this.lastBreadcrumbItem}),"addBlockBefore"===e||"addBlockAfter"===e||"copy"===e?this.hideElement(this.actionsMenu):this.hideElement(this.overlay),("moveForward"===e||"moveBackward"===e)&&(this.focusState=!0)}hideElement(e){e.style.display="none"}showElement(e){e.style.display="block"}toggleElement(e){if("block"===e.style.display)return void this.hideElement(e);this.showElement(e)}enterComponent(e){if(!this.initialized)return;let t=s(`${e.storyId}-${e.componentId}`),i=o(t);i&&(this.hinter.style.opacity=0,this.hinter.style.display="none",this.currentUid=i.uid,this.storyId=i.id,this.scrollIntoView(t),this.handleEditedBlok(e))}scrollIntoView(e){e&&!r(e)&&"u">typeof e.scrollIntoView&&setTimeout(()=>{this.initialized&&e.scrollIntoView({behavior:"smooth",block:"start"})},100)}openBlok(e){this.sendDataToEditor({action:"edit",dataC:e,config:this.config})}createComponentContext(){this.createComponentBase(),this.createActionsMenu(),this.createActionsMenuItems(),this.createBreadcrumbsMenu(),this.createActionsMenuButton(),this.createBreadcrumbsMenuButton(),this.createComponentLabel(),this.createComponentButtonLabel()}createComponentBase(){this.componentBase=document.createElement("div"),this.componentBase.setAttribute("class",c.COMPONENT_BASE),this.componentBase.setAttribute("id",c.COMPONENT_BASE),this.overlay.append(this.componentBase)}createComponentLabel(){this.componentLabel=document.createElement("span"),this.componentLabel.setAttribute("class",`${c.COMPONENT_BASE}-label`),this.componentBase.prepend(this.componentLabel)}createComponentButtonLabel(){let e=document.createElement("span");e.setAttribute("class",`${c.COMPONENT_BASE}-label`),this.breadcrumbsButtonMenu.appendChild(e)}updateComponentLabel(e){document.querySelectorAll(`.${c.COMPONENT_BASE}-label`).forEach(t=>t.innerText=this.componentNames[e.name]||a(e))}updateComponentBase(e){this.hideElement(this.actionsMenu),this.hideElement(this.breadcrumbsMenu),this.overlay.classList.add(`${c.OVERLAY}--clicked`),setTimeout(()=>{this.initialized&&this.overlay.classList.remove(`${c.OVERLAY}--clicked`)},400),this.navigationBreadcrumbs.length>1?(this.updateBreadcrumbsMenu(this.navigationBreadcrumbs),this.actionsEnabled?this.updateActionsMenu():(this.componentBase.setAttribute("class",`${c.COMPONENT_BASE} ${c.COMPONENT_BASE}--simple`),this.hideElement(this.actionsMenuButton)),this.hideElement(this.componentLabel)):(this.hideElement(this.breadcrumbsButtonMenu),this.hideElement(this.actionsMenuButton),this.showElement(this.componentLabel)),this.updateComponentLabel(e);let t=s(`${this.storyId}-${e.uid}`);t&&this.toggleFocusElement(t)}createBreadcrumbsMenuButton(){this.breadcrumbsButtonMenu=document.createElement("button"),this.breadcrumbsButtonMenu.setAttribute("class",`${c.COMPONENT_BASE}-btn ${c.COMPONENT_BASE}-btn-parent`),this.breadcrumbsButtonMenu.prepend(d({viewBox:"0 0 24 24",svgClass:`${c.COMPONENT_BASE}-svg`,path:"M13.73 14.284l-2.197-2.216 2.197-2.217a1.051 1.051 0 000-1.477 1.03 1.03 0 00-1.465 0l-2.93 2.955a1.043 1.043 0 00-.287.554l-.014.123v.123c.014.247.115.489.301.677l2.93 2.956a1.03 1.03 0 001.465 0 1.051 1.051 0 000-1.478z",pathFill:"#ffffff"})),this.breadcrumbsButtonMenu.addEventListener("click",()=>{this.toggleElement(this.breadcrumbsMenu),this.hideElement(this.actionsMenu)}),this.componentBase.prepend(this.breadcrumbsButtonMenu)}createBreadcrumbsMenu(){this.breadcrumbsMenu=document.createElement("div"),this.breadcrumbsMenu.setAttribute("class",c.BREADCRUMBS_MENU),this.breadcrumbsMenu.setAttribute("id",c.BREADCRUMBS_MENU),this.componentBase.append(this.breadcrumbsMenu)}updateBreadcrumbsMenu(e){this.breadcrumbsMenu.innerHTML="";let t=[];for(let i=0;i<e.length;i++){t[i]=document.createElement("button"),t[i].innerHTML=a({display_name:this.componentNames[e[i].component],name:e[i].component});let n=e[i];t[i].addEventListener("click",e=>{e.stopPropagation(),this.currentUid=n._uid,this.openBlok({id:this.storyId,uid:n._uid,name:n.component})}),t[i].classList.add(`${c.BREADCRUMBS_MENU}__menu-item`),e[i]._uid===this.currentUid&&(t[i].classList.add(`${c.BREADCRUMBS_MENU}__menu-item--selected`),t[i].setAttribute("disabled",!0)),this.breadcrumbsMenu.appendChild(t[i]),this.breadcrumbsButtonMenu.style.display="flex"}}createActionsMenuButton(){this.actionsMenuButton=document.createElement("button"),this.actionsMenuButton.setAttribute("class",`${c.COMPONENT_BASE}-btn ${c.COMPONENT_BASE}-btn-action`),this.actionsMenuButton.prepend(d({viewBox:"0 0 24 24",svgClass:`${c.COMPONENT_BASE}-svg`,path:"M7.5 11a1.5 1.5 0 110 3 1.5 1.5 0 010-3zm10 0a1.5 1.5 0 110 3 1.5 1.5 0 010-3zm-5 0a1.5 1.5 0 110 3 1.5 1.5 0 010-3z",pathFill:"#ffffff"})),this.actionsMenuButton.addEventListener("click",()=>{this.toggleElement(this.actionsMenu),this.breadcrumbsMenu&&this.hideElement(this.breadcrumbsMenu)}),this.componentBase.append(this.actionsMenuButton)}createActionsMenuItems(){this.actionsMenuItems=[{eventFunction:()=>this.handleBlokActions.bind(this,"addBlockBefore"),innerHTML:"Add Block Before",order:0,show:()=>this.canAddBlocks},{eventFunction:()=>this.handleBlokActions.bind(this,"addBlockAfter"),innerHTML:"Add Block After",order:1,show:()=>this.canAddBlocks},{eventFunction:()=>this.handleBlokActions.bind(this,"duplicateBlock"),innerHTML:"Duplicate",order:2,show:()=>this.canAddBlocks},{eventFunction:()=>this.handleBlokActions.bind(this,"copy"),innerHTML:"Copy",order:3,show:()=>"v2"===this.appVersion},{separator:!0,order:4,show:()=>this.canAddBlocks&&this.canMoveForward||!!(this.canMoveBackward&&this.lastBreadcrumbItem._parentindex)},{eventFunction:()=>this.handleBlokActions.bind(this,"moveForward"),innerHTML:"Move Forward",order:5,show:()=>this.canMoveForward},{eventFunction:()=>this.handleBlokActions.bind(this,"moveBackward"),innerHTML:"Move Backward",order:6,show:()=>this.canMoveBackward&&this.lastBreadcrumbItem._parentindex},{separator:!0,order:7,show:()=>this.canAddBlocks&&this.canDeleteBlocks},{eventFunction:()=>this.handleBlokActions.bind(this,"deleteBlock"),className:`${c.ACTIONS_MENU}__menu-item--delete`,innerHTML:"Delete",order:8,show:()=>this.canDeleteBlocks}]}createActionsMenu(){this.actionsMenu=document.createElement("div"),this.actionsMenu.setAttribute("class",c.ACTIONS_MENU),this.actionsMenu.setAttribute("id",c.ACTIONS_MENU),this.componentBase.append(this.actionsMenu)}updateActionsMenu(){this.actionsMenu.innerHTML="";let e=`${c.ACTIONS_MENU}__menu-item`;this.actionsMenuItems.sort((e,t)=>
210e.order>t.order?1:t.order>e.order?-1:0).forEach(t=>{if(t.separator&&t.show())return void this.actionsMenu.appendChild(document.createElement("hr"));let i=document.createElement(t.element?t.element:"button");i.classList.add(e),t.className&&i.classList.add(t.className),i.innerHTML=t.innerHTML,t.eventFunction&&i.addEventListener(t.event?t.event:"click",t.eventFunction()),t.show()&&this.actionsMenu.appendChild(i)}),this.actionsMenuButton.style.display="flex"}destroy(){if(this._onMessage&&(window.removeEventListener("message",this._onMessage),this._onMessage=null),this._onMouseMove&&(document.removeEventListener("mousemove",this._onMouseMove),this._onMouseMove=null),this._onWindowClick&&(window.removeEventListener("click",this._onWindowClick),this._onWindowClick=null),this.outlineOnMoveInterval&&(clearTimeout(this.outlineOnMoveInterval),this.outlineOnMoveInterval=null),null!==this.calcInterval&&(clearInterval(this.calcInterval),this.calcInterval=null),this.initialized&&(u=Math.max(0,u-1)),this.initialized&&0===u){document&&document.body&&document.body.classList.remove(c.OUTLINE);try{document.querySelectorAll("[data-blok-focused]").forEach(e=>e.removeAttribute("data-blok-focused"))}catch(e){console.error(e)}this._decoratedElements.forEach(({el:e,previousMinHeight:t})=>{e.removeAttribute("data-blok-c"),e.removeAttribute("data-blok-uid"),e.classList.remove("storyblok__outline"),null!==t&&(""===t?e.style.removeProperty("min-height"):e.style.setProperty("min-height",t),""===e.getAttribute("style")&&e.removeAttribute("style"))});let e=e=>{e&&e.parentNode&&e.parentNode.removeChild(e)};e(this.overlay),e(this.hinter),e(this.highlighter),e(document.getElementById(c.STYLESHEET))}this._decoratedElements=[],this.resetAllEvents(),this.hinter=null,this.highlighter=null,this.overlay=null,this.componentBase=null,this.componentLabel=null,this.breadcrumbsButtonMenu=null,this.breadcrumbsMenu=null,this.actionsMenu=null,this.actionsMenuButton=null,this.actionsMenuItems=null,this.currentUid=null,this.storyId="",this.navigationBreadcrumbs=[],this.canAddBlocks=!1,this.canMoveForward=!1,this.canMoveBackward=!1,this.canDeleteBlocks=!1,this.focusState=!1,this.actionsEnabled=!1,this.initialized=!1}}var b=Object.defineProperty,p=(e,t,i)=>((e,t,i)=>t in e?b(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i)(e,"symbol"!=typeof t?t+"":t,i);class g{constructor(e){p(this,"isInEditor"),p(this,"enterEditmode"),p(this,"pingEditor"),p(this,"on"),p(this,"destroy");let t=new m(e);this.isInEditor=()=>t.isInEditor(),this.enterEditmode=e=>{t.enterEditmode(e)},this.pingEditor=e=>{t.pingEditor(e)},this.on=(e,i)=>{t.on(e,i)},this.destroy=()=>{t.destroy()}}}let y=e=>({tag:"success",value:e}),v=e=>({tag:"failure",error:e,path:[]}),E=(e,t)=>({tag:"failure",error:e.error,path:[t,...e.path]}),f=Symbol("propertyAbsent"),k=Symbol("omitProperty"),_=e=>E(v("Property is missing"),{tag:"object",key:e}),B=e=>"string"==typeof e?y(e):v("Not a string"),M=(e=>{let t=Object.entries(e);return e=>{if(!(e=>"object"==typeof e&&null!==e)(e))return v("Not an object");let i={};for(let n=0;n<t.length;n++){let[o,s]=t[n],r=e[o];if(void 0!==r||e.hasOwnProperty(o)){let e=s(r);if("failure"===e.tag)return E(e,{tag:"object",key:o});i[o]=e.value}else{let e=s(f);if("failure"===e.tag||e.value===f)return _(o);e.value!==k&&(i[o]=e.value)}}return y(i)}})({name:B,space:((...e)=>t=>{for(let i of e){let e=i(t);if("success"===e.tag)return y(e.value)}return v("No parser in the union matched")})(e=>e===f?y(k):v("not optional"),e=>typeof e>"u"?y(e):v("Not undefined"),B),uid:B,id:B}),A=e=>{let t=(e=>{var t;if("string"!=typeof e)return v("Invalid _editable format: a string is expected");let i=null==(t=e.match(/^<!--#storyblok#(.*?)-->/))?void 0:t[1];if(!i)return v('Invalid `_editable` format: a JSON is expected between "\x3c!--#storyblok#" and "--\x3e"');let n=(e=>{if("string"!=typeof e)return v("Invalid JSON: expected a string");try{return y(JSON.parse(e))}catch{return v("Invalid JSON")}})(i);if("failure"===n.tag)return v("Invalid JSON");let o=M(n.value);return"failure"===o.tag?o:y(o.value)})(e._editable);return"success"===t.tag?{"data-blok-c":JSON.stringify(t.value),"data-blok-uid":`${t.value.id}-${t.value.uid}`}:{}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.