"use strict";(self.webpackChunkporta_frontend_starter_kit=self.webpackChunkporta_frontend_starter_kit||[]).push([[717],{717:function(t,e,n){n.r(e),n.d(e,{initTogglers:function(){return o}});const o=()=>{const t=document.querySelectorAll(".sh-trig");for(const e of t)i(e,{slide:!0});const e=document.querySelectorAll(".show-more");for(const t of e)i(t,{hideTrigger:!0})},i=(t,e)=>{const n=Object.assign({hideTrigger:!1,slide:!1,scrollToContent:!1},e),o=document.querySelector("#"+t.getAttribute("data-content")),i=t.getAttribute("data-less"),s=t.getAttribute("data-more");t.addEventListener("click",(e=>(e.preventDefault(),o.classList.contains("sh-content--active")?(o.animOut(),n.scrollToContent&&function(t){t.scrollIntoView()}(t),t.classList.remove("sh-trig--active"),s&&(t.innerHtml=s),n.hideTrigger&&t.show(n.hideSpeed)):(o.animIn(),n.scrollToContent&&function(t){t.scrollIntoView()}(o),t.classList.add("sh-trig--active"),i&&(t.innerHtml=i),n.hideTrigger&&t.hide()),!1)))};HTMLElement.prototype.hide=function(){this.style.display="none"},HTMLElement.prototype.show=function(){this.style.display=""},HTMLElement.prototype.animIn=function(){console.log(this),this.classList.add("sh-content--active")},HTMLElement.prototype.animOut=function(){this.classList.remove("sh-content--active")}}}]);