PageSourceSearch

https://www.infobip.com/wp-content/themes/infobip2024/public/58215-4f8ecaa170b56cc9.js

js infobip.com collected 2026-09-24 08:27:04 UTC 7,891 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkinfobip2024=self.webpackChunkinfobip2024||[]).push([[58215],{58215(e,t,n){var i=n(85880);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=function e(t){var n=this,o=t.accordionElement,a=t.accordionTriggers,l=t.closeAdjacent;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");r(this,"init",function(){n.accordionTriggers.forEach(function(e,t){var r=e.nextElementSibling;i.Ay.set(r,{height:0,overflow:"hidden",visibility:"hidden",y:-10}),n.timelines[t]=i.Ay.timeline(),e.addEventListener("click",function(){return n.toggleAccordion(e,r,t)}),e.addEventListener("keydown",function(i){("Enter"===i.key||" "===i.key)&&(i.preventDefault(),n.toggleAccordion(e,r,t))})})}),r(this,"openAccordion",function(e,t,i){var r=n.timelines[i];n.closeAdjacent&&(n.activeElement&&n.activeElementIndex>-1&&n.closeAccordion(n.activeElement,n.activeElement.nextElementSibling,n.activeElementIndex),n.activeElement=e,n.activeElementIndex=i),r.isActive()&&r.clear(),r.set(t,{hidden:!1}).call(function(){return e.setAttribute("aria-expanded",!0)}).to(t,{height:"auto",duration:.3,y:0,ease:"power3.inOut"}).set(t,{overflow:"visible",visibility:"visible"})}),r(this,"closeAccordion",function(e,t,i){var r=n.timelines[i];r.isActive()&&r.clear(),r.set(t,{overflow:"hidden"}).to(t,{height:0,duration:.2,y:-10,ease:"power3.out"}).set(t,{hidden:!0}).call(function(){return e.setAttribute("aria-expanded",!1)})}),r(this,"toggleAccordion",function(e,t,i){var r;(null!=(r=e.getAttribute("aria-expanded"))?r:"false")==="true"?n.closeAccordion(e,t,i):n.openAccordion(e,t,i)}),this.accordionElement=o,this.accordionTriggers=a,this.closeAdjacent=l,this.activeElement="",this.timelines=[],this.activeElementIndex=-1},a=function e(t){var n,i,r=this,o=t.containerElement,a=t.navigationElement,l=t.blockName;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");n="init",i=function(){if(r.navigationElement){var e,t,n=window.location.href.split("#")[1],i=r.containerElement.getAttribute("data-id");if(n&&i.length){var o=RegExp("".concat(r.blockName,"_.*_"),"g"),a=n.replace(o,"".concat(r.blockName,"_").concat(i,"_"));null==(t=r.navigationElement)||null==(e=t.querySelectorAll("a"))||e.forEach(function(e){e.getAttribute("href")==="#".concat(a)&&e.click()})}}},n in this?Object.defineProperty(this,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):this[n]=i,this.blockName=l,this.containerElement=o,this.navigationElement=a},l=n(81240);function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var s=function(){var e;function t(e){var n=e.element,i=e.searchInputSelector,r=e.itemSelector,o=e.itemTitleSelector,a=e.groupSelector,l=e.searchEmptySelector;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.element=n,this.searchInput=n.querySelector(i),this.items=n.querySelectorAll(r),this.itemSelector=r,this.itemTitleSelector=o,this.groups=n.querySelectorAll(a),this.searchEmpty=n.querySelector(l),this.CLASS_HIDDEN="hidden"}return e=[{key:"init",value:function(){var e=this;this.items.forEach(function(t){t.dataset.originalTitle=t.querySelector(e.itemTitleSelector).innerText}),this.searchInput.addEventListener("input",(0,l.t)(function(){return e.handleSearch()},500)),i.os.set(this.searchEmpty,{display:"none",y:40,opacity:0}),this.searchEmpty.classList.remove(this.CLASS_HIDDEN)}},{key:"handleSearch",value:function(){var e,t=this,n=this.searchInput.value.toLowerCase();if(0===n.length)return void this.resetItems(!0);if((null==(e=this.searchValue)?void 0:e.length)<3)return void this.resetItems();this.resetItems();var r=!1;this.groups.forEach(function(e){var o=!1,a=[];e.querySelectorAll(t.itemSelector).forEach(function(e){var i,l=e.querySelector(t.itemTitleSelector).innerHTML;l.includes(n)||l.toLowerCase().includes(n.toLowerCase())?(e.querySelector(t.itemTitleSelector).innerHTML=l.replaceAll(RegExp(n,"gi"),function(e){return'<mark class="bg-orange-900">'.concat(e,"</mark>")}),r=!0,o=!0):a=((function(e){if(Array.isArray(e))return c(e)})(i=a)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e){if(e){if("string"==typeof e)return c(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return c(e,void 0)}}(i)||function(){throw TypeError(`Invalid attempt to spread non-iterable instance.
2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()).concat([e])}),o?a.length>0&&i.os.timeline().to(a,{duration:.3,opacity:0,scale:.95,ease:"power3.out"}).set(a,{display:"none"}):i.os.timeline().to(e,{duration:.3,opacity:0,scale:.95,ease:"power3.out"}).set(e,{display:"none"})}),r||i.os.timeline().set(this.searchEmpty,{clearProps:"display"}).to(this.searchEmpty,{y:0,opacity:1})}},{key:"resetItems",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];t?i.os.timeline().set(this.items,{clearProps:"display"}).set(this.groups,{clearProps:"display"}).to(this.items,{opacity:1,scale:1,duration:.3,ease:"power3.out"}).to(this.groups,{opacity:1,scale:1,duration:.5,ease:"power3.out"}):(i.os.set(this.items,{clearProps:"all"}),i.os.set(this.groups,{clearProps:"all"}
2)),this.items.forEach(function(t){if("section"===t.nextElementSibling.tagName.toLowerCase()){var n;(null!=(n=t.getAttribute("aria-expanded"))?n:"false")==="true"&&(i.os.set(t.nextElementSibling,{height:0,overflow:"hidden",y:-10}),t.setAttribute("aria-expanded",!1))}t.querySelector(e.itemTitleSelector).innerText=t.dataset.originalTitle}),i.os.set(this.searchEmpty,{display:"none",y:40,opacity:0})}}],function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(t.prototype,e),t}(),u=n(93752),h=".".concat(u.blockJsClass),d=document.querySelectorAll(h),f=".".concat(u.blockJsClass,"-navigation"),m=".".concat(u.blockJsClass,"-accordion");d.length&&d.forEach(function(e){var t=e.querySelectorAll(m);(null==t?void 0:t.length)&&t.forEach(function(e){new o({accordionElement:e,accordionTriggers:e.querySelectorAll("[data-accordion-header]"),closeAdjacent:e.hasAttribute("data-close-adjacent")}).init()}),new a({blockName:u.blockName,containerElement:e,navigationElement:null==e?void 0:e.querySelector(":scope ".concat(f))}).init(),e.querySelector("".concat(h,"-search-input"))&&new s({element:e,searchInputSelector:"".concat(h,"-search-input"),itemSelector:"".concat(m,"-title"),itemTitleSelector:"".concat(m,"-title-text"),groupSelector:"".concat(h,"-group"),searchEmptySelector:"".concat(h,"-search-empty")}).init()})},81240(e,t,n){n.d(t,{n:()=>r,t:()=>i});var i=function(e){var t,n,i,r,o,a,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:250;return t=e,n=l,i=null,r=null,o=function(){i&&(clearTimeout(i),r=null,i=null)},(a=function(){if(!n)return t.apply(this,arguments);var e=this,a=arguments,l=void 0;if(o(),r=function(){t.apply(e,a)},i=setTimeout(function(){if(i=null,!l){var e=r;return r=null,e()}},n),l)return r()}).cancel=o,a.flush=function(){var e=r;o(),e&&e()},a},r=function(e){var t,n,i,r,o,a,l,c,s,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:250,h=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t=e,n=u,r=null,o=null,a=(i={leading:!h,trailing:h},i.leading),l=i&&i.trailing,null==a&&(a=!0),null==l&&(l=!a),!0==a&&(l=!1),c=function(){r&&(clearTimeout(r),r=null)},(s=function(){var e=a&&!r,i=this,c=arguments;if(o=function(){return t.apply(i,c)},r||(r=setTimeout(function(){if(r=null,l)return o()},n)),e)return e=!1,o()}).cancel=c,s.flush=function(){var e=o;c(),e&&e()},s}}}]);

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.