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+D,CAAC,CAACkB,QAAQ,CAAC,cAAc,CAAC;EAC7F;AACF;AAEA,SAASsG,2BAA2BA,CAAA,EAAG;EACrC,IAAIsF,WAAW,GAAGvM,QAAQ,CAAC+E,aAAa,CAAC,mEAAmE,CAAC;EAC7G,IAAIwH,WAAW,IAAIA,WAAW,CAAClH,WAAW,EAAE;IAC1CrF,QAAQ,CAAC+E,aAAa,CAAC,gFAAgF,CAAC,EAAEyH,kBAAkB,CAAC,YAAY,EAAG;AAChJ;AACA;AACA,wBAAwBD,WAAW,CAAClH,WAAY;AAChD;AACA,KAAK,CAAC;EACJ;AACF,C;;;;;;;;;;AC9/CA","sources":["webpack://vmlyrtalking-1/webpack/bootstrap","webpack://vmlyrtalking-1/webpack/runtime/make namespace object","webpack://vmlyrtalking-1/./src/scripts/global.js","webpack://vmlyrtalking-1/./src/styles/main.scss"],"sourcesContent":["// The require scope\nvar __webpack_require__ = {};\n\n","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","/**\n * @file\n * Global utilities.\n *\n */\n(function ($, Drupal) {\n if ($('.node--type-article').length > 0) {\n $('p [data-src]').each(function () {\n var dataSrcValue = $(this).attr('data-src');\n $(this).attr('src', dataSrcValue);\n $(this).removeAttr('data-src');\n });\n document.addEventListener('aos:in', (event) => {\n const animatedElement = event.detail;\n if (!animatedElement.classList.contains('aos-item-visible')) {\n // Si la clase no existe, agrégasela\n animatedElement.classList.add('aos-item-visible');\n // Realiza cualquier acción adicional que desees aquí después de agregar la clase\n console.log(`Se agregó la clase 'aos-item-visible' al elemento con la etiqueta: ${animatedElement.tagName}`);\n }\n });\n if ($('.paragraph #section-video > div').length > 2) {\n $('.paragraph--type--video .field--name-field-video').addClass('verification')\n } else {\n $('.paragraph--type--video .field--name-field-video').removeClass('verification')\n }\n $('.container-title-description-comentary section.field--name-comment .comment').remove()\n $('.container-info .field--type-comment .form-actions').appendTo('.container-info .field--type-comment .field--type-string-long')\n const holi = true\n $(window).on(\"load\", function () {\n var contador_comentary = 0\n jQuery('section#node-article-comment').prependTo('.block-views-blockfiltros-comenterios-filter-coments')\n $('.block-views.block-views-blockfiltros-comenterios-filter-coments .js-form-type-textfield input').attr('placeholder', 'Agregue su nombre')\n $('.block-views.block-views-blockfiltros-comenterios-filter-coments .field--type-string-long textarea').attr('placeholder', 'Agregar un comentario ...')\n $('.block-views.block-views-blockfiltros-comenterios-filter-coments button').html(\"Publicar\")\n $('.block-views-blockfiltros-comenterios-filter-coments article.js-comment .card-body > nav .comment-reply a').html('Reply')\n var verification_ajax_comentary = false\n var contadorcito = 0\n $('.block-views-blockfiltros-comenterios-filter-coments > .content .views-row .form-actions, .block-views-blockfiltros-comenterios-filter-coments > section .comment-comment-form .form-actions ').on('click', function () {\n $('.block-views-blockfiltros-comenterios-filter-coments').attr('data-once', false)\n $('button[id*=\"edit-submit-filtros-comenterios\"]').trigger('click')\n $.ajax({\n url: '\\/ajax_comments\\/add\\/node\\/93\\/comment', \n type: 'POST',\n dataType: 'text',\n success: function() {\n console.log('Éxito en el AJAX');\n verification_ajax_comentary= true\n contadorcito=contadorcito+1\n },\n error: function() {\n console.log('Error en el AJAX');\n }\n });\n \n })\n $(document).on(\"ajaxComplete\", function () {\n $('.block-views-blockfiltros-comenterios-filter-coments > .content .views-row .form-actions, .block-views-blockfiltros-comenterios-filter-coments > section .comment-comment-form .form-actions ').on('click', function () {\n $('.block-views-blockfiltros-comenterios-filter-coments').attr('data-once', false)\n $('button[id*=\"edit-submit-filtros-comenterios\"]').trigger('click')\n $.ajax({\n url: '\\/ajax_comments\\/add\\/node\\/93\\/comment', \n type: 'POST',\n dataType: 'text',\n success: function() {\n console.log('Éxito en el AJAX');\n verification_ajax_comentary= true\n contadorcito=contadorcito+1\n },\n error: function() {\n console.log('Error en el AJAX');\n }\n });\n \n })\n if(verification_ajax_comentary==true){\n Drupal.behaviors.mesagge_ajax = {\n attach: (context, settings) => {\n $(once(\"mesagge-ajax\", \".block-views-blockfiltros-comenterios-filter-coments\", context)).each(function () {\n var menssage = $('
Tu mensaje ha sido enviado y está en proceso de revisión antes de ser publicado.
');\n menssage.appendTo('.block-views-blockfiltros-comenterios-filter-coments');\n setTimeout(function() {\n menssage.fadeOut('slow', function() {\n menssage.remove();\n });\n }, 4000);\n setTimeout(function() { \n $.ajax({\n url: '\\/ajax_comments\\/add\\/node\\/93\\/comment',\n type: 'GET',\n dataType: 'text',\n success: function() {\n $('.view-id-filtros_comenterios view-display-id-filter_coments .view-content').css('display','none')\n },\n complete: function(){\n console.log('Entra a la comprobacion del ajax de reply')\n viewmore_comentary($); \n var scroll_comentary = $(\".block-views-blockfiltros-comenterios-filter-coments \").offset().top\n jQuery(\"html, body\").scrollTop(scroll_comentary)\n },\n error: function() {\n console.log('Error en el AJAX');\n }\n });\n \n }, 1);\n count=count+1\n })\n }\n }\n }\n\n })\n\n var number_comentary = $('.block-views-blockfiltros-comenterios-filter-coments > .content .views-row').length\n if (number_comentary > 3) {\n $(`
Cargar ${number_comentary - 3} comentarios más
`).appendTo('.block-views-blockfiltros-comenterios-filter-coments')\n }\n\n $('.block-views-blockfiltros-comenterios-filter-coments > .content .views-row').each(function(){ \n var text = $(this).find('small.comment__author span[property*=\"schema:name\"]').text()\n var nuevotexto = text.replace('(no verificado)','')\n $(this).find('small.comment__author span[property*=\"schema:name\"]').text(nuevotexto)\n //---------------- Verification the reply comentary -----------------------\n $(document).on(\"ajaxComplete\", function () {\n $(this).find('article nav a').click(function(){\n if($('.block-views-blockfiltros-comenterios-filter-coments > .content .views-row .comment-comment-form').length > 0){\n $('.block-views-blockfiltros-comenterios-filter-coments > .content .views-row .comment-comment-form:not(:first-child)').remove()\n console.log('REMOVE')\n }\n })\n })\n })\n\n viewmore_comentary($);\n\n \n $(document).on(\"ajaxComplete\", function () {\n\n $('.block-views-blockfiltros-comenterios-filter-coments > .content .views-row ').each(function(){\n var text = $(this).find('small.comment__author span[property*=\"schema:name\"]').text()\n var nuevotexto = text.replace('(no verificado)','')\n $(this).find('small.comment__author span[property*=\"schema:name\"]').text(nuevotexto)\n })\n $('.block-views-blockfiltros-comenterios-filter-coments article.js-comment .card-body > nav .comment-reply a').html('Reply')\n $('.block-views.block-views-blockfiltros-comenterios-filter-coments button').html(\"Publicar\")\n $('.block-views.block-views-blockfiltros-comenterios-filter-coments .js-form-type-textfield input').attr('placeholder', 'Agregue su nombre')\n $('.block-views.block-views-blockfiltros-comenterios-filter-coments .field--type-string-long textarea').attr('placeholder', 'Agregar un comentario ...')\n\n })\n $(document).ajaxComplete(function (event, xhr, settings) {\n if (settings.url.indexOf(\"/views/ajax?_wrapper_format=drupal_ajax\") !== -1) {\n contador_comentary = contador_comentary + 1\n if (contador_comentary === 1) {\n if ($('.view-more-comentary').length == 0) {\n $(`
Cargar ${number_comentary - 3} comentarios más
`).appendTo('.block-views-blockfiltros-comenterios-filter-coments')\n }\n } else if (contador_comentary > 1) {\n if ($('.view-more-comentary').length == 0) {\n $(`
Cargar ${number_comentary - 3} comentarios más
`).appendTo('.block-views-blockfiltros-comenterios-filter-coments')\n }\n }\n }\n });\n\n })\n }\n\n if($('.node--type-page').length > 0 || $('.node--type-work-cases').length > 0){\n document.addEventListener('aos:in', (event) => {\n const animatedElement = event.detail;\n if (!animatedElement.classList.contains('aos-item-visible')) {\n // Si la clase no existe, agrégasela\n animatedElement.classList.add('aos-item-visible');\n // Realiza cualquier acción adicional que desees aquí después de agregar la clase\n console.log(`Se agregó la clase 'aos-item-visible' al elemento con la etiqueta: ${animatedElement.tagName}`);\n }\n });\n }\n\n if ($('.page-view-articles-editor').length > 0) {\n let title_page = $('.page-view-articles-editor .title-principal-banner');\n $(title_page.prop(\"outerHTML\")).appendTo('.page-view-articles-editor .view-id-banner_articulos.view-display-id-block_1 .view-content .views-row');\n title_page.remove()\n }\n //\n $('.webform-button--submit').click(function () {\n $(document).on(\"ajaxComplete\", function (event, xhr, settings) {\n if ($('div.toast').attr('role') === \"status\") {\n $('.field--name-field-newsletter .form-actions').prepend('Te has suscrito de manera exitosa')\n $('.webform-button--submit').css({ 'display': 'none' })\n $('.toast-container').css({ 'display': 'none' })\n } else {\n $('.toast-container').css({ 'display': 'none' })\n }\n });\n })\n\n if ($('.page-node-93.node--type-article .paragraph--type--only-text').length > 0) {\n $('.paragraph--type--only-text').each(function (i) {\n $(this).removeClass('paragraph--type--only-text').addClass(`paragraph--type--only-text-${i}`)\n })\n }\n\n //Modal the video banner\n let counter = 0\n var elemento = $(\".field.field--name-field-video.field--type-entity-reference.field--label-hidden.field__item.quickedit-field\");\n var nuevoDiv = $(\"
\");\n elemento.append(nuevoDiv);\n jQuery('.button-play-video').click(function () {\n let distanceTop = $(\".containes-banner-article\").offset().top\n jQuery(\"html, body\").scrollTop(distanceTop)\n if ($('.containes-banner-article .field--name-field-media-oembed-video .field__item').text()) {\n let urlYoutube = jQuery('.containes-banner-article .field--name-field-media-oembed-video .field__item').text()\n let expr_regular = /(?:youtube(?:-nocookie)?\\.com\\/(?:[^\\/\\n\\s]+\\/\\S+\\/|(?:v|e(?:mbed)?)\\/|\\S*?[?&]v=)|youtu\\.be\\/)([a-zA-Z0-9_-]{11})/;\n let result = `https://www.youtube.com/embed/${urlYoutube.match(expr_regular)[1]}`;\n jQuery(`
`).appendTo('.field--name-field-content-home-banner')\n jQuery('
').appendTo('.containes-banner-article .field.field--name-field-video.field--type-entity-reference.field--label-hidden.field__item.quickedit-field')\n jQuery('.exit-modal').on(\"click\", function () {\n jQuery('.containes-banner-article .field.field--name-field-video.field--type-entity-reference.field--label-hidden.field__item.quickedit-field').remove()\n jQuery('body').css('overflow', 'scroll')\n\n })\n\n } else if ($('.containes-banner-article .field--name-field-media-video-file .field__item').text()) {\n let url = $('.containes-banner-article .field--name-field-media-video-file .field__item').text()\n var urlRegex = /\\/sites\\/default\\/files\\/[^\\s]+/;\n var extractedUrl = url.match(urlRegex)[0];\n console.log(extractedUrl[0])\n j(`
`).appendTo('.field--name-field-content-home-banner')\n jQuery('
').appendTo('.field--name-field-content-home-banner .content-video')\n jQuery('.exit-modal').on(\"click\", function () {\n jQuery('.containes-banner-article .field.field--name-field-video.field--type-entity-reference.field--label-hidden.field__item.quickedit-field').remove()\n $('body').css('overflow', 'scroll')\n })\n }\n $('body').css('overflow', 'hidden')\n })\n\n //Loading inkreible\n $(window).on(\"load\", function () {\n $('#block-loadinginkcreible').remove('')\n })\n\n shareButton()\n initInkcreibleHome($);\n initAuthorPage($);\n $(document).ready(function() {\n viewmore($)\n $(document).on(\"ajaxComplete\", function () {\n viewmore($)\n })\n });\n\n let newsletterWapper = document.querySelector('#block-newsletter');\n document.querySelector('#block-newsletter h2')?.addEventListener('click', () => {\n if (newsletterWapper) newsletterWapper.classList.toggle('active-newsletter');\n });\n\n let searchButton = document.querySelector('[data-drupal-selector=\"edit-buscar\"]');\n if (searchButton) searchButton.setAttribute('placeholder', 'Buscar')\n\n let count = document.querySelector('.count-results');\n let articles = document.querySelector('#block-views-block-articles-editor-block-1 .view-display-id-block_1 .view-content');\n if (count) {\n let totalArticles = count.textContent.split(' ')[0] || 0;\n articles?.classList.add(`view-content--${totalArticles > 2 ? 'max' : `${totalArticles}`}`)\n\n }\n\n\n //changes_content_description()\n\n\n let authorArticle = document.querySelectorAll('.conteiner-header-article .field--name-field-display-title')\n if (authorArticle) {\n authorArticle.forEach(item => {\n item.innerHTML = `Por: ${item.innerHTML}`\n })\n }\n\n let cardAuthors = document.querySelectorAll('.card-authors .date-create');\n if (cardAuthors) {\n let current = new Date();\n cardAuthors.forEach(item => {\n let created = new Date(item.getAttribute('data-created'))\n let diff = current - created;\n let days = diff / (1000 * 60 * 60 * 24)\n if (days < 7) item.classList.remove('hidden');\n })\n }\n\n const updateEditorCard = () => {\n let articleCards = document.querySelectorAll('.container-text-card .editor')\n if (articleCards) {\n articleCards.forEach(item => {\n item.classList.add(`editor--${item.childElementCount - 1}`)\n })\n }\n }\n\n loader();\n function loader() {\n var x = document.createElement(\"DIV\");\n var htmlRanking = \"\";\n htmlRanking += \"
\";\n x.innerHTML = htmlRanking;\n x.classList.add(\"ajax-close\");\n document.body.appendChild(x);\n }\n window.onload = function () {\n $(\".ajax-close\").remove();\n };\n function initIframe() {\n var vidDefer = document.getElementsByTagName('iframe');\n for (var i = 0; i < vidDefer.length; i++) {\n if (vidDefer[i].getAttribute('d-src')) {\n vidDefer[i].setAttribute('src', vidDefer[i].getAttribute('d-src'));\n }\n }\n }\n window.onload = initIframe;\n Drupal.behaviors.narrativa = {\n attach: function (context, settings) {\n if ($('.node--type-editors').length > 0) {\n $(once(\"description\", \".view-id-articles_editor.view-display-id-block_1\", context)).each(function () {\n changes_content_description()\n })\n $(document).on(\"ajaxComplete\", function () {\n $(once(\"description\", \".view-id-articles_editor.view-display-id-block_1\", context)).each(function () {\n changes_content_description()\n })\n });\n }\n\n if ($(\".field--name-field-option\").length > 0) {\n setTimeout(function () {\n AOS.init();\n }, 2000);\n if ($(\".field--name-field-option .field__item\").length > 4) {\n // $('.field--name-field-option > .field__item:nth-child(2)').find('.paragraph--type--only-text').attr({ 'data-aos': 'slide-rigth', 'data-aos-duration': 800, 'data-aos-delay': 1000 })\n if (\n $(\n \".field--name-field-option > .field__item:nth-child(2) .container-images-top\"\n ).length == 0\n ) {\n $(\n \".field--name-field-option > .field__item:nth-child(2) .paragraph--type--only-text\"\n ).prepend('
');\n $(\n \".field--name-field-option > .field__item:nth-child(2) .container-images-top \"\n ).prepend(\n \"\" +\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n '
'\n );\n $(\n \".field--name-field-option > .field__item:nth-child(2) .paragraph--type--only-text\"\n ).append('
');\n $(\n \".field--name-field-option > .field__item:nth-child(2) .container-images-bottom \"\n ).prepend(\n \"\" +\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n '
'\n );\n }\n\n // $(\".field--name-field-option > .field__item:nth-child(3)\")\n // .find(\".paragraph--type--only-text\")\n // .attr({\n // \"data-aos\": \"slide-left\",\n // \"data-aos-duration\": 800,\n // \"data-aos-delay\": 500,\n // });\n if (\n $(\n \".field--name-field-option > .field__item:nth-child(3) .container-bgs\"\n ).length == 0\n ) {\n $(\n \".field--name-field-option > .field__item:nth-child(3) .paragraph--type--only-text\"\n ).append(\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n \"
\"\n );\n }\n $(\".field--name-field-option > .field__item:nth-child(4)\")\n .find(\".paragraph--type--only-text\")\n .attr({\n \"data-aos\": \"slide-bottom\",\n \"data-aos-duration\": 800,\n \"data-aos-delay\": 1000,\n });\n if (\n $(\n \".field--name-field-option > .field__item:nth-child(4) .container-bgs\"\n ).length == 0\n ) {\n $(\n \".field--name-field-option > .field__item:nth-child(4) .paragraph--type--only-text\"\n ).append(\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n '
' +\n \"
\"\n );\n }\n $(\".field--name-field-option > .field__item:nth-child(5)\")\n .find(\".paragraph--type--only-text\")\n .attr({\n \"data-aos\": \"fade-up\",\n \"data-aos-duration\": 800,\n \"data-aos-delay\": 1000,\n });\n }\n }\n if ($(\".node__content\").find(\".field__item\").length > 0) {\n var counter = 0;\n $(\".node__content\")\n .find(\".d-flex\")\n .each(function () {\n counter = counter + 1;\n $(this)\n .parents(\".field__item\")\n .addClass(\"section\" + counter);\n });\n }\n\n if ($(\".node__content\").length > 0) {\n $(window).on(\"scroll touchmove\", function () {\n var counter = 0;\n $(\".node__content\").find(\".d-flex\").each(function () {\n counter = counter + 1;\n if ($(document).scrollTop() > $(\".section\" + counter).position().top) {\n $(\".navbar-brand\").find(\"img\").attr(\"/themes/custom/tbwacolombia/src/img/logo_\" + $(this).attr(\"class\").split(\" \")[1] + \".svg\");\n $(\".btn-menu svg\").css(\"fill\", \"\" + $(this).attr(\"class\").split(\" \")[1] + \"\");\n }\n });\n });\n }\n\n if ($(\".video-workcases\").length > 0) {\n // $(window).on(\"scroll touchmove\", function () {\n // $(\".video-workcases .video embed\").each(function (index) {\n // $(this).attr(\"src\", $(this).attr(\"src\"));\n // return false;\n // });\n // });\n }\n if ($(\".video-workcases\").length > 0 && $('.video-workcases .img').length > 0 && $('.video-workcases .video').length > 0) {\n $('.video-workcases .img').on('click', function () {\n $(this).addClass('d-none');\n $(this).parents('.video-workcases').find('.video').removeClass('d-none')\n })\n $(window).on(\"scroll touchmove\", function () {\n jQuery(\".video-workcases .video \").not('.d-none').find('embed').each(function (index) {\n $(this).attr(\"src\", $(this).attr(\"src\").replace('autoplay=1', 'autoplay=0'));\n return false;\n });\n });\n }\n if ($(\"#header-basic-page\").length > 0) {\n if ($(window).width() < 992) {\n $(\".section1 .aos-init\").removeAttr(\"data-aos\");\n } else {\n AOS.init();\n }\n }\n\n // if($('.view-banner-work-cases').length > 0){\n // var heightPage = $(document).height();\n // $(window).on(\"scroll touchmove\", function () {\n // console.log('SCROLLING....');\n // if(($(window).scrollTop() + $(window).height()) == heightPage) {\n // console.log('Final');\n // $('iframe').each(function(index) {\n // console.log(index);\n // $(this).attr('src', $(this).attr('src'));\n // return false;\n // });\n // }\n // });\n // }\n if ($(\"#section-video\").length > 0) {\n var logo = $(\"#section-video\").attr(\"class\");\n var colorBtn;\n if (logo === \"white-yellow\") {\n colorBtn = \"white\";\n } else if (logo === \"yellow\") {\n colorBtn = \"#ffcb00\";\n } else {\n colorBtn = logo;\n }\n $(\".navbar-brand\").find(\"img\").attr(\"src\",\"/themes/custom/tbwacolombia/src/img/logo_\" + logo + \".svg\");\n $(\".btn-menu svg\").css(\"fill\", \"\" + colorBtn + \"\");\n }\n if ($(\"body.node--type-editors\").length > 0) {\n var logo = $(\".banner-editor-container\").attr('class').split(' ')[1];\n var colorBtn;\n if (logo === \"white-yellow\") {\n colorBtn = \"white\";\n } else if (logo === \"yellow\") {\n colorBtn = \"#ffcb00\";\n } else {\n colorBtn = logo;\n }\n $(\".navbar-brand\")\n .find(\"img\")\n .attr(\n \"src\",\n \"/themes/custom/tbwacolombia/src/img/logo_\" + logo + \".svg\"\n );\n\n $(\".btn-menu svg\").css(\"fill\", \"\" + colorBtn + \"\");\n }\n if ($(\"body.page-view-articles-editor, body.node--type-article\").length > 0) {\n AOS.init({\n once: true, // Esta opción asegura que las animaciones solo se ejecuten una vez\n });\n var logo = $(\".view-id-banner_articulos.view-display-id-block_1\");\n var colorBtn;\n if (logo.hasClass('white-yellow')) {\n colorBtn = \"white\";\n logo = \"white-yellow\";\n } else if (logo.hasClass('yellow')) {\n colorBtn = \"#ffcb00\";\n logo = \"yellow\";\n } else if (logo.hasClass('black')) {\n colorBtn = \"black\";\n logo = \"black\";\n } else if (logo.hasClass('white')) {\n colorBtn = \"white\";\n logo = \"white\";\n }\n if (logo != undefined) {\n $(\".navbar-brand\")\n .find(\"img\")\n .attr(\n \"src\",\n\n \"/themes/custom/tbwacolombia/src/img/logo_\" + logo + \".svg\"\n );\n\n $(\".btn-menu svg\").css(\"fill\", \"\" + colorBtn + \"\");\n }\n }\n if ($(\"body.node--type-article\").length > 0) {\n var logo = $(\".containes-banner-article\");\n AOS.init({\n once: true, // Esta opción asegura que las animaciones solo se ejecuten una vez\n });\n var colorBtn;\n if (logo.hasClass('white-yellow')) {\n colorBtn = \"white\";\n logo = \"white-yellow\";\n } else if (logo.hasClass('yellow')) {\n colorBtn = \"#ffcb00\";\n logo = \"yellow\";\n } else if (logo.hasClass('black-white')) {\n colorBtn = \"black\";\n logo = \"black-white\";\n } else if (logo.hasClass('white')) {\n colorBtn = \"white\";\n logo = \"white\";\n } else if (logo.hasClass('black')){\n colorBtn = \"black\";\n logo = \"black\";\n }\n if (logo != undefined) {\n $(\".navbar-brand\")\n .find(\"img\")\n .attr(\n \"src\",\n\n \"/themes/custom/tbwacolombia/src/img/logo_\" + logo + \".svg\"\n );\n\n $(\".btn-menu svg\").css(\"fill\", \"\" + colorBtn + \"\");\n }\n\n }\n if ($(\"#header-basic-page\").length > 0) {\n var logo = $(\"#header-basic-page\").attr(\"class\");\n var colorBtn;\n if (logo === \"white-yellow\") {\n colorBtn = \"white\";\n } else if (logo === \"yellow\") {\n colorBtn = \"#ffcb00\";\n } else {\n colorBtn = logo;\n }\n // $(window).scroll(function() {\n // $(\".navbar-brand\").find(\"img\").attr(\"src\",\"/themes/custom/tbwacolombia/src/img/logo_\" + logo + \".svg\");\n // })\n $(\".navbar-brand\").find(\"img\").attr(\"src\", \"/themes/custom/tbwacolombia/src/img/logo_\" + logo +\".svg\");\n $(\".btn-menu svg\").css(\"fill\", \"\" + colorBtn + \"\");\n }\n\n if ($(\"#work-cases-internal\").length > 0) {\n var logo = $(\"#work-cases-internal\").attr(\"class\");\n var colorBtn;\n if (logo === \"white-yellow\") {\n colorBtn = \"white\";\n } else if (logo === \"yellow\") {\n colorBtn = \"#ffcb00\";\n\n } else {\n colorBtn = logo;\n }\n $(\".navbar-brand\")\n .find(\"img\")\n .attr(\n \"src\",\n \"/themes/custom/tbwacolombia/src/img/logo_\" + logo + \".svg\"\n );\n $(\".btn-menu svg\").css(\"fill\", \"\" + colorBtn + \"\");\n }\n\n $(\"#block-tbwacolombia-content\").prepend(\n '
'\n );\n if ($(\".view-clients\").length > 0) {\n $(\".navbar-brand\")\n .find(\"img\")\n .attr(\"src\", \"/themes/custom/tbwacolombia/src/img/logo_clients.svg\");\n }\n $(\".view-clients\").find(\"a\").hover(function () {\n $(\"#block-tbwacolombia-content\").css(\"background-image\", \"url(\" + $(this).attr(\"data-hover-image\") + \")\");\n $(\".logo-clients\").html('');\n });\n\n $(\".view-clients\").find(\"a\").hover(function () {\n $(\".view-clients\").addClass(\"clients-active\");\n });\n $(\".view-clients\").find(\"a\").mouseout(function () {\n $(\".view-clients\").removeClass(\"clients-active\");\n });\n\n var pushbar = new Pushbar({\n blur: true,\n overly: true,\n });\n\n $(document).ready(function () {\n if ($(\".page-vocabulary-clients .view-taxonomy-term .view-content\").length > 0) {\n $(\".page-vocabulary-clients .view-taxonomy-term .view-content\").append(' Cerrar ');\n } else {\n $(\".page-vocabulary-clients .view-taxonomy-term .view-header .content\").append(' Cerrar ');\n }\n $(\".taxonomy-close\").slice(1).remove();\n if ($(window).width() < 992) {\n var urlLogoImage;\n $(\".btn-menu\").on(\"click\", function () {\n urlLogoImage = $(\"#navbar-main .navbar-brand img\").attr(\"src\");\n $(\"header\").find(\"nav\").find(\".navbar-brand\").css(\"visibility\", \"visible\");\n $(\".btn-cerrar\").addClass(\"opened-menu-pushbar\");\n $(\"#navbar-main .navbar-brand\").css(\"z-index\", \"9999\");\n $(\"#navbar-main .navbar-brand img\").attr(\"src\",\"/themes/custom/tbwacolombia/assets/img/Logo_line_white.svg\");\n });\n $(\".btn-cerrar\").on(\"click\", function () {\n if ($(\".active-pirate\").length > 0) {\n $(\"header\")\n .find(\"nav\")\n .find(\".navbar-brand\")\n .css(\"visibility\", \"hidden\");\n }\n console.log(urlLogoImage);\n $(\".btn-cerrar\").removeClass(\"opened-menu-pushbar\");\n $(\"#navbar-main .navbar-brand\").css(\"z-index\", \"1\");\n $(\"#navbar-main .navbar-brand img\").attr(\"src\", urlLogoImage);\n });\n }\n if ($(window).width() < 992 && $(\".page-vocabulary-clients .view-taxonomy-term\").length > 0) {\n $(\"header\").find(\"nav\").find(\".navbar-brand\").css(\"visibility\", \"hidden\");\n var urlLogoImage;\n $(\".btn-menu\").on(\"click\", function () {\n urlLogoImage = $(\"#navbar-main .navbar-brand img\").attr(\"src\");\n $(\"header\").find(\"nav\").find(\".navbar-brand\").css(\"visibility\", \"visible\");\n $(\".btn-cerrar\").addClass(\"opened-menu-pushbar\");\n $(\"#navbar-main .navbar-brand\").css(\"z-index\", \"9999\");\n $(\"#navbar-main .navbar-brand img\").attr(\"src\",\"/themes/custom/tbwacolombia/assets/img/Logo_line_white.svg\");\n });\n $(\".btn-cerrar\").on(\"click\", function () {\n $(\"header\").find(\"nav\").find(\".navbar-brand\").css(\"visibility\", \"hidden\");\n $(\".btn-cerrar\").removeClass(\"opened-menu-pushbar\");\n $(\"#navbar-main .navbar-brand\").css(\"z-index\", \"1\");\n $(\"#navbar-main .navbar-brand img\").attr(\"src\", urlLogoImage);\n });\n } else {\n $(\"header\").find(\"nav\").find(\".navbar-brand\").css(\"visibility\", \"visible\");\n }\n $(window).resize(function () {\n if ($(window).width() < 992) {\n var urlLogoImage;\n $(\".btn-menu\").on(\"click\", function () {\n urlLogoImage = $(\"#navbar-main .navbar-brand img\").attr(\"src\");\n $(\"header\").find(\"nav\").find(\".navbar-brand\").css(\"visibility\", \"visible\");\n $(\".btn-cerrar\").addClass(\"opened-menu-pushbar\");\n $(\"#navbar-main .navbar-brand\").css(\"z-index\", \"9999\");\n $(\"#navbar-main .navbar-brand img\").attr(\"src\",\"/themes/custom/tbwacolombia/assets/img/Logo_line_white.svg\");\n });\n $(\".btn-cerrar\").on(\"click\", function () {\n if ($(\".active-pirate\").length > 0) {\n $(\"header\").find(\"nav\").find(\".navbar-brand\").css(\"visibility\", \"hidden\");\n }\n $(\".btn-cerrar\").removeClass(\"opened-menu-pushbar\");\n $(\"#navbar-main .navbar-brand\").css(\"z-index\", \"1\");\n $(\"#navbar-main .navbar-brand img\").attr(\"src\", urlLogoImage);\n });\n }\n if (\n $(window).width() < 992 &&\n $(\".page-vocabulary-clients .view-taxonomy-term\").length > 0\n ) {\n $(\"header\")\n .find(\"nav\")\n .find(\".navbar-brand\")\n .css(\"visibility\", \"hidden\");\n } else {\n if ($(\".active-pirate\").length > 0) {\n $(\"header\")\n .find(\"nav\")\n .find(\".navbar-brand\")\n .css(\"visibility\", \"hidden\");\n } else {\n $(\"header\")\n .find(\"nav\")\n .find(\".navbar-brand\")\n .css(\"visibility\", \"visible\");\n }\n }\n });\n\n\n $(\".btn-menu\").on(\"click\", function () {\n $(\".bef-links\").hide();\n $(\".field--name-field-principal-banner\").addClass(\"arrow-hidden\");\n });\n $(\".btn-cerrar\").on(\"click\", function () {\n $(\".bef-links\").show();\n $(\".field--name-field-principal-banner\").removeClass(\"arrow-hidden\");\n });\n if ($(\".node__content\").find(\".field__item\").length > 0) {\n var counter = 0;\n $(\".node__content\")\n .find(\".d-flex\")\n .each(function () {\n counter = counter + 1;\n $(this)\n .parents(\".field__item\")\n .addClass(\"section\" + counter);\n });\n }\n var counter = 0;\n \n // $(\".node__content\").find(\".d-flex\").each(function (i) {\n // counter = counter + 1;\n // var holita = $(this).attr(\"class\").split(\" \")[1]\n // // var color_button = \n \n // $(window).scroll(function() {\n // if ($(document).scrollTop() > $(\".section\" + counter).position().top) {\n // console.log('IF') \n // $(\".navbar-brand\").find(\"img\").attr(\"src\",\"/themes/custom/tbwacolombia/src/img/logo_\" + holita + \".svg\");\n // $(\".btn-menu svg\").css(\"fill\", `${holita}`);\n // }else{\n \n // console.log('ELSE')\n // var logo = $(\".containes-banner-article, #header-basic-page\");\n // var colorBtn;\n // if (logo.hasClass('white-yellow')) {\n // colorBtn = \"white\";\n // logo = \"white-yellow\";\n // } else if (logo.hasClass('yellow')) {\n // colorBtn = \"#ffcb00\";\n // logo = \"yellow\";\n // } else if (logo.hasClass('black-white')) {\n // colorBtn = \"black\";\n // logo = \"black-white\";\n // } else if (logo.hasClass('white')) {\n // colorBtn = \"white\";\n // logo = \"white\";\n // } else if (logo.hasClass('black')){\n // colorBtn = \"black\";\n // logo = \"black\";\n // }\n // if (logo != undefined) {\n // $(\".navbar-brand\")\n // .find(\"img\")\n // .attr(\n // \"src\",\n \n // \"/themes/custom/tbwacolombia/src/img/logo_\" + logo + \".svg\"\n // );\n \n // $(\".btn-menu svg\").css(\"fill\", \"\" + colorBtn + \"\");\n // }\n // }\n\n // })\n // });\n\n setTimeout(() => {\n if($('.node--type-article').length > 0){\n jQuery(\".node__content\").find(\".d-flex\").each(function (i) {\n var counter = i + 1; // Inicializar counter para cada iteración\n var holita = jQuery(this).attr(\"class\").split(\" \")[1];\n var btn ;\n var prueba = $(\".containes-banner-article\").attr(\"class\").split(\" \")[1];\n if (prueba == 'white-yellow'){ \n btn = 'white'\n }else if (prueba == 'yellow'){\n btn = \"#ffcb00\"\n }else if (prueba == 'black-white'){\n btn = \"black\"\n }else if (prueba == 'white'){\n btn = \"white\"\n }else if (prueba == 'black'){\n btn = \"black\"\n }\n jQuery(window).scroll(function () {\n // Obtener la posición de la sección dentro del evento de desplazamiento\n var sectionPosition = jQuery(\".section\" + counter).position();\n var sectionPosition2 = jQuery(\".containes-banner-article\").height();\n \n // Verificar si la posición es válida\n if (holita == 'white-yellow'){ \n btn = 'white'\n }else if (holita == 'yellow'){\n btn = \"#ffcb00\"\n }else if (holita == 'black-white'){\n btn = \"black\"\n }else if (holita == 'white'){\n btn = \"white\"\n }else if (holita == 'black'){\n btn = \"black\"\n }\n if (sectionPosition) {\n if (jQuery(document).scrollTop() > sectionPosition.top) {\n jQuery(\".navbar-brand\").find(\"img\").attr(\"src\", \"/themes/custom/tbwacolombia/src/img/logo_\" + holita + \".svg\");\n jQuery(\".btn-menu svg\").css(\"fill\", btn);\n } \n else if(jQuery(document).scrollTop() < sectionPosition2 ){\n \n jQuery(\".navbar-brand\").find(\"img\").attr(\"src\", \"/themes/custom/tbwacolombia/src/img/logo_\" + prueba + \".svg\");\n jQuery(\".btn-menu svg\").css(\"fill\", btn);\n }\n \n \n }\n \n });\n });\n }\n if($('.node--type-page').length >0){\n jQuery(\".node__content\").find(\".d-flex\").each(function (i) {\n var counter = i + 1; // Inicializar counter para cada iteración\n var holita = jQuery(this).attr(\"class\").split(\" \")[1];\n var btn ;\n var prueba = $(\"#section-video\").attr(\"class\");\n if (prueba == 'white-yellow'){ \n btn = 'white'\n }else if (prueba == 'yellow'){\n btn = \"#ffcb00\"\n }else if (prueba == 'black-white'){\n btn = \"black\"\n }else if (prueba == 'white'){\n btn = \"white\"\n }else if (prueba == 'black'){\n btn = \"black\"\n }\n jQuery(window).scroll(function () {\n // Obtener la posición de la sección dentro del evento de desplazamiento\n var sectionPosition = jQuery(\".section\" + counter).position();\n var sectionPosition2 = jQuery(\"#section-video\").height();\n \n // Verificar si la posición es válida\n if (holita == 'white-yellow'){ \n btn = 'white'\n }else if (holita == 'yellow'){\n btn = \"#ffcb00\"\n }else if (holita == 'black-white'){\n btn = \"black\"\n }else if (holita == 'white'){\n btn = \"white\"\n }else if (holita == 'black'){\n btn = \"black\"\n }\n if (sectionPosition) {\n if (jQuery(document).scrollTop() > sectionPosition.top) {\n jQuery(\".navbar-brand\").find(\"img\").attr(\"src\", \"/themes/custom/tbwacolombia/src/img/logo_\" + holita + \".svg\");\n jQuery(\".btn-menu svg\").css(\"fill\", btn);\n } \n else if(jQuery(document).scrollTop() < sectionPosition2 ){\n jQuery(\".navbar-brand\").find(\"img\").attr(\"src\", \"/themes/custom/tbwacolombia/src/img/logo_\" + prueba + \".svg\");\n jQuery(\".btn-menu svg\").css(\"fill\", btn);\n }\n \n \n }\n \n });\n });\n }\n }, 490);\n \n \n \n if ($(\".view-work-cases\").length > 0 && $(window).width() < 768) {\n $(window).on(\"scroll touchmove\", function () {\n if (\n $(this).scrollTop() >=\n $(\".site-footer\").offset().top - $(this).height()\n ) {\n $(\n \".block-views-blockwork-cases-work-cases .view-filters .views-exposed-form\"\n ).removeClass(\"fixed_work-case-buttons\");\n $(\n \".block-views-blockwork-cases-work-cases .view-filters .views-exposed-form\"\n ).addClass(\"absolute_work-case-buttons\");\n } else {\n $(\n \".block-views-blockwork-cases-work-cases .view-filters .views-exposed-form\"\n ).removeClass(\"absolute_work-case-buttons\");\n $(\n \".block-views-blockwork-cases-work-cases .view-filters .views-exposed-form\"\n ).addClass(\"fixed_work-case-buttons\");\n }\n var counter = 0;\n $(\".node__content\")\n .find(\".d-flex\")\n .each(function () {\n counter = counter + 1;\n if (\n $(document).scrollTop() >\n $(\".section\" + counter).position().top\n ) {\n $(\".navbar-brand\")\n .find(\"img\")\n .attr(\n \"src\",\n \"/themes/custom/tbwacolombia/src/img/logo_\" +\n $(this).attr(\"class\").split(\" \")[1] +\n \".svg\"\n );\n $(\".btn-menu svg\").css(\n \"fill\",\n \"\" + $(this).attr(\"class\").split(\" \")[1] + \"\"\n );\n }\n });\n });\n }\n\n if ($(\".view-taxonomy-term \").length > 0) {\n setTimeout(function () {\n var elemento = $(\n \".page-vocabulary-clients .vocabulary-clients .field--name-field-logo img\"\n );\n var sizeLogo = $(elemento).width();\n if (sizeLogo > 400) {\n $(elemento).css(\"left\", \"calc(50rem - 34vw)\");\n } else if (sizeLogo > 190) {\n $(elemento).css(\"left\", \"calc(50rem - 29vw)\");\n }\n }, 1500);\n $(\"#navbar-main .btn-menu\").on(\"click\", function () {\n $(\".taxonomy-close\").css(\"z-index\", \"0\");\n });\n $(\".btn-cerrar\").on(\"click\", function () {\n $(\".taxonomy-close\").attr(\"style\", \"z-index : 999 \");\n });\n }\n if ($(\".view-work-cases\").length > 0) {\n if ($(window).width() < 768) {\n $(\".navbar-brand\")\n .find(\"img\")\n .attr(\n \"src\",\n \"/themes/custom/tbwacolombia/src/img/logo_white-yellow.svg\"\n );\n $(\".btn-menu svg\").css(\"fill\", \"white\");\n }\n if ($(\".slick--view--pirates--page-1\").length > 0) {\n var widthContenedorPadre = $(\n \".slick--view--pirates--page-1 .slick-dots\"\n ).width();\n var cantidadDeElementosHijos = $(\n \".slick--view--pirates--page-1 .slick-dots li\"\n ).length;\n var division = widthContenedorPadre / cantidadDeElementosHijos;\n $(\".slick-dots li\").each(function () {\n $(this).css(\"width\", division);\n });\n }\n }\n if ($(\".view-clients\").length > 0) {\n var colorBtn;\n $(\".navbar-brand\").find(\"img\").attr(\"src\",\"/themes/custom/tbwacolombia/src/img/logo_\" +$(\".view-clients\").attr(\"class\").split(\" \")[0] +\".svg\");\n if ($(\".view-clients\").attr(\"class\").split(\" \")[0] == 'yellow') {\n colorBtn = '#ffcb00';\n } else if ($(\".view-clients\").attr(\"class\").split(\" \")[0] == 'white-yellow') {\n colorBtn = \"white\";\n }\n else {\n colorBtn = $(\".view-clients\").attr(\"class\").split(\" \")[0];\n }\n\n $(\".btn-menu svg\").css(\"fill\", colorBtn);\n\n }\n if ($(\".page-vocabulary-clients .view-taxonomy-term .vocabulary-clients\").length > 0) {\n var colorBtn;\n $(\".navbar-brand\").find(\"img\").attr(\"src\",\"/themes/custom/tbwacolombia/src/img/logo_\" +$(\".view-taxonomy-term .vocabulary-clients .container-fluid\").attr(\"class\").split(\" \")[2] +\".svg\");\n if ($(\".view-taxonomy-term .vocabulary-clients .container-fluid\").attr(\"class\").split(\" \")[2] == 'yellow') {\n colorBtn = '#ffcb00';\n } else if ($(\".view-taxonomy-term .taxonomy-term.vocabulary-clients .container-fluid\").attr(\"class\").split(\" \")[2] == 'white-yellow') {\n colorBtn = \"white\";\n }\n else {\n colorBtn = $(\".view-taxonomy-term .taxonomy-term.vocabulary-clients .container-fluid\").attr(\"class\").split(\" \")[2];\n }\n\n $(\".btn-menu svg\").css(\"fill\", colorBtn);\n }\n if ($(\".view-pirates\").length > 0) {\n\n var colorBtn;\n if ($(window).width() > 768) {\n $(\n \".page-view-pirates .layout-main-wrapper .node--type-pirates .node__content .container-images\"\n ).hover(function () {\n $(\".slick-slider\").slick(\"slickPause\");\n });\n $(\n \".page-view-pirates .layout-main-wrapper .node--type-pirates .node__content .container-images\"\n ).mouseout(function () {\n $(\".slick-slider\").slick(\"slickPlay\");\n });\n }\n $(\".navbar-brand\").find(\"img\").attr(\"src\",\"/themes/custom/tbwacolombia/src/img/logo_\" +$(\".view-pirates\").attr(\"class\").split(\" \")[0] +\".svg\");\n if ($(\".view-pirates\").attr(\"class\").split(\" \")[0] == 'yellow') {\n colorBtn = '#ffcb00';\n } else if ($(\".view-pirates\").attr(\"class\").split(\" \")[0] == 'white-yellow') {\n colorBtn = \"white\";\n }\n else {\n colorBtn = $(\".view-pirates\").attr(\"class\").split(\" \")[0];\n }\n\n $(\".btn-menu svg\").css(\"fill\", colorBtn);\n\n $(\"#navbar-main .btn-menu\").on(\"click\", function () {\n $(\".taxonomy-close\").css(\"z-index\", \"0\");\n });\n $(\".btn-cerrar\").on(\"click\", function () {\n $(\".taxonomy-close\").attr(\"style\", \"z-index : 999 \");\n });\n if ($(\".slick--view--pirates--page-1\").length > 0) {\n var widthContenedorPadre = $(\n \".slick--view--pirates--page-1 .slick-dots\"\n ).width();\n var cantidadDeElementosHijos = $(\n \".slick--view--pirates--page-1 .slick-dots li\"\n ).length;\n var division = widthContenedorPadre / cantidadDeElementosHijos;\n $(\".slick-dots li\").each(function () {\n $(this).css(\"width\", division);\n });\n }\n if ($(window).width() < 768) {\n function viewMore(element) {\n $(\".btn-menu\").addClass(\"btn-menu-inactive\");\n $(\"body\").addClass(\"active-pirate\");\n\n $(\".slick-slider\").slick(\"slickPause\");\n $(\".slick-slider\").slick(\"slickSetOption\", \"swipe\", false);\n //$(\".btn-menu\").hide();\n\n\n $(\".closed-pirates\").remove();\n $(element)\n .closest(\".node__content\")\n .find(\".field--name-field-pirate-image\")\n .find(\"img\")\n .addClass(\"inactive-image\");\n\n $(element)\n .closest(\".node__content\")\n .find(\".field--name-field-hover-pirate\")\n .find(\"img\")\n .addClass(\"active-image\");\n\n $(\".content-pirate\").show();\n\n $(\".slick--view--pirates--page-1\").find(\".slick__arrow\").hide();\n $(\".slick--view--pirates--page-1\").find(\".slick-dots\").hide();\n\n $(\"header\")\n .find(\"nav\")\n .find(\".navbar-brand\")\n .css(\"visibility\", \"hidden\");\n\n $(\"header\")\n .find(\"#navbar-main\")\n .append('Cerrar');\n\n $(\".closed-pirates\").on(\"click\", function () {\n $(\".btn-menu\").removeClass(\"btn-menu-inactive\");\n $(\"body\").removeClass(\"active-pirate\");\n $(\".slick-slider\").slick(\"slickPlay\");\n $(\".slick-slider\").slick(\"slickSetOption\", \"swipe\", true);\n $(\".btn-menu\").show();\n $(\"header\")\n .find(\"nav\")\n .find(\".navbar-brand\")\n .css(\"visibility\", \"visible\");\n $(element)\n .closest(\".node__content\")\n .find(\".field--name-field-pirate-image\")\n .find(\"img\")\n .removeClass(\"inactive-image\");\n $(element)\n .closest(\".node__content\")\n .find(\".field--name-field-hover-pirate\")\n .find(\"img\")\n .removeClass(\"active-image\");\n $(this).hide();\n $(\".slick--view--pirates--page-1\").find(\".slick__arrow\").show();\n $(\".slick--view--pirates--page-1\").find(\".slick-dots\").show();\n $(\".content-pirate\").hide();\n $(\".button-view-more\").show();\n });\n $(\".button-view-more\").hide();\n }\n $(\"#slick-banner-gallery-slider .slick-slide\").each(function () {\n $(this)\n .find(\".node__content\")\n .append(\n ''\n );\n });\n $(\".button-view-more\").on(\"click\", function () {\n viewMore(this);\n });\n }\n }\n\n var MutationObserver =\n window.MutationObserver ||\n window.WebKitMutationObserver ||\n window.MozMutationObserver;\n\n $.fn.attrchange = function (callback) {\n if (MutationObserver) {\n var options = {\n subtree: false,\n attributes: true,\n };\n\n var observer = new MutationObserver(function (mutations) {\n mutations.forEach(function (e) {\n callback.call(e.target, e.attributeName);\n });\n });\n\n return this.each(function () {\n observer.observe(this, options);\n });\n }\n };\n\n $(window).resize(function () {\n if ($(\"#header-basic-page\").length > 0) {\n var dataAos = $(\".section1 .aos-init\").attr(\"data-aos\");\n if ($(window).width() < 992) {\n $(\".section1 .aos-init\").removeAttr(\"data-aos\");\n\n } else {\n $(\".section1 .aos-init\").attr(\"data-aos\", dataAos);\n }\n }\n if ($(window).width() < 992) {\n var urlLogoImage;\n $(\".btn-menu\").on(\"click\", function () {\n urlLogoImage = $(\"#navbar-main .navbar-brand img\").attr(\"src\");\n $(\"header\")\n .find(\"nav\")\n .find(\".navbar-brand\")\n .css(\"visibility\", \"visible\");\n $(\".btn-cerrar\").addClass(\"opened-menu-pushbar\");\n $(\"#navbar-main .navbar-brand\").css(\"z-index\", \"9999\");\n $(\"#navbar-main .navbar-brand img\").attr(\n \"src\",\n \"/themes/custom/tbwacolombia/assets/img/Logo_line_white.svg\"\n );\n });\n $(\".btn-cerrar\").on(\"click\", function () {\n if ($(\".active-pirate\").length > 0) {\n $(\"header\")\n .find(\"nav\")\n .find(\".navbar-brand\")\n .css(\"visibility\", \"hidden\");\n }\n $(\".btn-cerrar\").removeClass(\"opened-menu-pushbar\");\n $(\"#navbar-main .navbar-brand\").css(\"z-index\", \"1\");\n $(\"#navbar-main .navbar-brand img\").attr(\"src\", urlLogoImage);\n });\n }\n\n if ($(\".view-work-cases\").length > 0) {\n if ($(window).width() < 768) {\n $(\".navbar-brand\").find(\"img\").attr(\"src\",\"/themes/custom/tbwacolombia/src/img/logo_white-yellow.svg\");\n $(\".btn-menu svg\").css(\"fill\", \"white\");\n } else {\n if ($(\"#header-basic-page\").length > 0) {\n var logo = $(\"#header-basic-page\").attr(\"class\");\n var colorBtn;\n $(\".navbar-brand\").find(\"img\").attr(\"src\",\"/themes/custom/tbwacolombia/src/img/logo_\" + logo + \".svg\");\n if (logo === 'yellow') {\n colorBtn = '#ffcb00';\n } else if (logo = \"white-yellow\") {\n colorBtn = \"white\";\n } else {\n colorBtn = $(\".view-pirates\").attr(\"class\").split(\" \")[0];\n }\n $(\".btn-menu svg\").css(\"fill\", \"\" + colorBtn + \"\");\n }\n\n }\n }\n if (jQuery(window).width() > 768 && $(\".view-pirates\").length > 0) {\n $(\".content-pirate\").show();\n } else {\n if ($(\".active-pirate\").length > 0) {\n $(\".content-pirate\").show();\n } else {\n $(\".content-pirate\").hide();\n }\n }\n });\n\n if ($(\"#header-basic-page\").length > 0) {\n var logo = $(\"#header-basic-page\").attr(\"class\");\n var colorBtn;\n if (logo === 'yellow') {\n colorBtn = '#ffcb00';\n } else if (logo == \"white-yellow\") {\n colorBtn = \"white\";\n } else {\n colorBtn = $(\".view-pirates, #header-basic-page\").attr(\"class\").split(\" \")[0];\n }\n // $(window).scroll(function() {\n // $(\".navbar-brand\").find(\"img\").attr(\"src\",\"/themes/custom/tbwacolombia/src/img/logo_\" + logo + \".svg\");\n // })\n $(\".navbar-brand\").find(\"img\").attr(\"src\",\"/themes/custom/tbwacolombia/src/img/logo_\" + logo + \".svg\");\n $(\".btn-menu svg\").css(\"fill\", \"\" + colorBtn + \"\");\n\n }\n });\n },\n };\n\n Drupal.behaviors.popupFilters = {\n attach: function (context, settings) {\n if ($('edit-field-editor-target-id-entityreference-filter--wrapper, #edit-field-tags-target-id-entityreference-filter--wrapper')) {\n if (document.querySelector('.popup-filters') == null) filterPopup($)\n }\n }\n }\n\n Drupal.behaviors.articles = {\n attach: (context, settings) => {\n updateEditorCard();\n }\n }\n})(jQuery, Drupal);\n\nfunction filterPopup($) {\n\n $(\"#views-exposed-form-articles-editor-block-4 > div, #views-exposed-form-articles-editor-block-1 > div, #views-exposed-form-articles-editor-page-2 > div\").append(\"
Filtrar
\");\n $('select[name=\"sort_bef_combine\"]').on('change', function () { \n console.log(\"change\");\n $('button[id*=\"edit-submit-articles-editor\"]').trigger('click') \n $(document).ajaxComplete(function (event, xhr, settings) {\n if (settings.url.indexOf(\"/views/ajax?_wrapper_format=drupal_ajax\") !== -1) {\n viewmore_comentary($);\n }\n });\n })\n $(\"#filter-by\").on(\"click\", function () {\n $(\".popup-filters\").toggleClass('popup-filters--visible')\n });\n $(\"#views-exposed-form-articles-editor-block-4 > div > .fieldgroup, #views-exposed-form-articles-editor-block-1 > div > .fieldgroup, #views-exposed-form-articles-editor-page-2 > div > .fieldgroup\").wrapAll('
');\n $(\"#views-exposed-form-articles-editor-block-4 > div > div[id*=edit-actions], #views-exposed-form-articles-editor-block-1 > div > div[id*=edit-actions], #views-exposed-form-articles-editor-page-2 > div > div[id*=edit-actions]\").appendTo('.popup-filters');\n let initItems = 4;\n let activeInfinite = 0;\n\n function prueba() {\n $('html, body').stop();\n }\n prueba()\n var contador = 0\n $('ul.js-pager__items a').click(function () {\n contador = contador + 1\n $('html, body').off()\n if (contador >= 1) {\n $(\"html, body\").scrollTop(1000);\n }\n setTimeout(function () {\n $('html, body').stop();\n }, 5000);\n })\n\n // prueba()\n $(document).ajaxComplete(function (event, request, settings) {\n if (activeInfinite == 1) {\n if ($(window).width() > 1050) {\n initItems += 3;\n } else {\n initItems += 4;\n }\n //let rows = $(\".view-id-articles_editor.view-display-id-block_4 .view-content .views-row,.view-id-articles_editor.view-display-id-block_1 .view-content .views-row \");\n let rows = $(\"views-row,.view-id-articles_editor.view-display-id-block_1 .view-content .views-row \");\n rows.css(\"display\", \"\");\n let dataCount = rows.length;\n rows.slice(initItems, dataCount).each(function () {\n $(this).css(\"display\", \"none\");\n });\n activeInfinite = 0;\n }\n if ($(\".view-id-articles_editor.view-display-id-block_1 ul[class*=js-pager__items] a\").length == 0) {\n let rows = $(\"views-row,.view-id-articles_editor.view-display-id-block_1 .view-content .views-row \");\n rows.css(\"display\", \"\");\n }\n //$(\".view-id-articles_editor.view-display-id-block_4 ul[class*=js-pager__items] a , .view-id-articles_editor.view-display-id-block_1 ul[class*=js-pager__items] a\").on('click', function () {\n $(\".view-id-articles_editor.view-display-id-block_1 ul[class*=js-pager__items] a\").on('click', function () {\n activeInfinite = 1;\n });\n $('select[name=\"sort_bef_combine\"]').on('change', function () { console.log(\"change\"); ; $('button[id*=\"edit-submit-articles-editor\"]').trigger('click') })\n\n });\n //$(\".view-id-articles_editor.view-display-id-block_4 ul[class*=js-pager__items] a , .view-id-articles_editor.view-display-id-block_1 ul[class*=js-pager__items] a\").on('click', function () {\n $(\".view-id-articles_editor.view-display-id-block_1 ul[class*=js-pager__items] a\").on('click', function () {\n activeInfinite = 1;\n });\n}\n\nfunction initAuthorPage($) {\n $(\".view-id-articles_editor.view-display-id-block_2\").addClass(\"swiper\");\n $(\".view-id-articles_editor.view-display-id-block_2 .view-content\").addClass(\"swiper-wrapper\");\n $(\".view-id-articles_editor.view-display-id-block_2 .view-content .views-row\").addClass(\"swiper-slide\");\n}\n\nfunction viewmore($) {\n\n $(\".view-id-articles_editor.view-display-id-block_2\").removeClass(\"swiper\"); \n $(\".view-id-articles_editor.view-display-id-block_2 .view-content\").removeClass(\"swiper-wrapper\");\n $(\".view-id-articles_editor.view-display-id-block_2 .view-content .views-row\").removeClass(\"swiper-slide\");\n let widthChange = $(window).width();\n \n function toggleRows(startIndex, endIndex, displayValue) {\n jQuery(\".view-id-articles_editor.view-display-id-block_2 > .view-content .views-row\").slice(startIndex, endIndex).css(\"display\", displayValue);\n }\n\n function clickbutton(number) {\n let elementsToShow = number\n toggleRows(elementsToShow, Infinity, \"none\");\n $(\".view-id-articles_editor.view-display-id-block_2 .view-footer .button-less\").css({ display: \"none\" });\n\n $(document).on(\"click\", \".view-id-articles_editor.view-display-id-block_2 .view-footer .button-more\", function () {\n elementsToShow += number;\n toggleRows(0, elementsToShow, \"block\");\n if (elementsToShow >= $(\".view-id-articles_editor.view-display-id-block_2 .view-content .views-row\").length) {\n $(\".view-id-articles_editor.view-display-id-block_2 .view-footer .button-less\").css('display', 'inline-flex')\n $(this).css({ display: \"none\" })\n }\n })\n\n $(document).on(\"click\", \".view-id-articles_editor.view-display-id-block_2 .view-footer .button-less\", function () {\n elementsToShow = number\n $(\".view-id-articles_editor.view-display-id-block_2 .view-footer .button-more\").css({ display: \"inline-flex\" });\n $(\".view-id-articles_editor.view-display-id-block_2 .view-footer .button-less\").css({ display: \"none\" });\n let distanceBottom = $(\".view-id-articles_editor.view-display-id-block_2\").offset().top;\n $(\"html, body\").scrollTop(distanceBottom);\n toggleRows(elementsToShow, Infinity, \"none\");\n })\n }\n\n if (widthChange > 0 && widthChange < 905 ) {\n clickbutton(2)\n } else if (widthChange >= 905 && widthChange < 1150) {\n clickbutton(3)\n } else if (widthChange >= 1186) {\n clickbutton(4)\n }\n \n}\n\nfunction viewmore_comentary($) {\n function toggleRows(startIndex, endIndex, displayValue) {\n jQuery(\".block-views-blockfiltros-comenterios-filter-coments > .content .views-row\").slice(startIndex, endIndex).css(\"display\", displayValue);\n }\n function clickbutton_comentary() {\n toggleRows(3, Infinity, \"none\");\n $(document).on(\"click\", \".block-views-blockfiltros-comenterios-filter-coments .view-more-comentary\", function () {\n toggleRows(3, Infinity, \"block\");\n $('.block-views-blockfiltros-comenterios-filter-coments .view-more-comentary').remove()\n })\n }\n\n clickbutton_comentary()\n // $(document).on(\"ajaxComplete\", function () {\n // clickbutton_comentary()\n // })\n \n}\n\nfunction shareButton() {\n let shareButton = document.querySelector('.a2a_kit')\n let shareAnchor = document.querySelector('.a2a_kit a')\n\n if (shareAnchor) shareAnchor.insertAdjacentText('beforeend', shareButton.innerText)\n}\n\nfunction initInkcreibleHome($) {\n if (document.body.classList.contains('inkcreible-home')) {\n let articlesWrapper = document.querySelector('.view-display-id-block_6 .view-content')\n let phrase = document.querySelector(\".inkcreible-home .phrase\")\n if (phrase) articlesWrapper?.insertAdjacentElement(\"afterbegin\", phrase);\n\n $(\"#block-newsletter-2,#block-views-block-clients-block-3, #block-clientcomments\").wrapAll('
');\n\n // Client Swiper\n $(\"#block-views-block-clients-block-2 .view-display-id-block_2\").addClass(\"swiper\");\n $(\"#block-views-block-clients-block-2 .view-content\").addClass(\"swiper-wrapper\");\n $(\"#block-views-block-clients-block-2 .view-content .views-row\").addClass(\"swiper-slide\");\n\n // Articles Swiper\n $(\".view-display-id-block_8\").addClass(\"swiper\");\n $(\".view-display-id-block_8 .view-content\").addClass(\"swiper-wrapper\");\n $(\".view-display-id-block_8 .view-content .views-row\").addClass(\"swiper-slide\");\n\n // Phrases Swiper\n // let $phraseSwiper = $(\"#block-views-block-clients-block-3 .view-display-id-block_3\");\n // $phraseSwiper.addClass(\"swiper\");\n // $phraseSwiper.append(\"
\");\n // $(\"#block-views-block-clients-block-3 .view-content\").addClass(\"swiper-wrapper\");\n // $(\"#block-views-block-clients-block-3 .view-content .views-row\").addClass(\"swiper-slide\");\n\n // Phrases Swiper block\n let $bphraseSwiper = $(\"#block-clientcomments > .content\");\n $bphraseSwiper.addClass(\"swiper\");\n $bphraseSwiper.append(\"
\");\n $(\"#block-clientcomments .field--name-field-phrases\").addClass(\"swiper-wrapper\");\n $(\"#block-clientcomments .field--name-field-phrases .field__item\").addClass(\"swiper-slide\");\n }\n}\n\nfunction changes_content_description() {\n let description = document.querySelector('.node--type-editors #block-tbwacolombia-content .field--name-body');\n if (description && description.textContent) {\n document.querySelector('.view-articles-editor > .view-content > .views-infinite-scroll-content-wrapper')?.insertAdjacentHTML('afterbegin', `\n
\n

Recomendación

\n

${description.textContent}

\n
\n `);\n }\n}\n","// extracted by mini-css-extract-plugin\nexport {};"],"names":["$","Drupal","length","each","dataSrcValue","attr","removeAttr","document","addEventListener","event","animatedElement","detail","classList","contains","add","console","log","tagName","addClass","removeClass","remove","appendTo","holi","window","on","contador_comentary","jQuery","prependTo","html","verification_ajax_comentary","contadorcito","trigger","ajax","url","type","dataType","success","error","behaviors","mesagge_ajax","attach","context","settings","once","menssage","setTimeout","fadeOut","css","complete","viewmore_comentary","scroll_comentary","offset","top","scrollTop","count","number_comentary","text","find","nuevotexto","replace","click","ajaxComplete","xhr","indexOf","title_page","prop","prepend","i","counter","elemento","nuevoDiv","append","distanceTop","urlYoutube","expr_regular","result","match","urlRegex","extractedUrl","j","shareButton","initInkcreibleHome","initAuthorPage","ready","viewmore","newsletterWapper","querySelector","toggle","searchButton","setAttribute","articles","totalArticles","textContent","split","authorArticle","querySelectorAll","forEach","item","innerHTML","cardAuthors","current","Date","created","getAttribute","diff","days","updateEditorCard","articleCards","childElementCount","loader","x","createElement","htmlRanking","body","appendChild","onload","initIframe","vidDefer","getElementsByTagName","narrativa","changes_content_description","AOS","init","parents","position","not","index","width","logo","colorBtn","hasClass","undefined","hover","mouseout","pushbar","Pushbar","blur","overly","slice","urlLogoImage","resize","hide","show","holita","btn","prueba","scroll","sectionPosition","sectionPosition2","height","sizeLogo","widthContenedorPadre","cantidadDeElementosHijos","division","slick","viewMore","element","closest","MutationObserver","WebKitMutationObserver","MozMutationObserver","fn","attrchange","callback","options","subtree","attributes","observer","mutations","e","call","target","attributeName","observe","dataAos","popupFilters","filterPopup","toggleClass","wrapAll","initItems","activeInfinite","stop","contador","off","request","rows","dataCount","widthChange","toggleRows","startIndex","endIndex","displayValue","clickbutton","number","elementsToShow","Infinity","display","distanceBottom","clickbutton_comentary","shareAnchor","insertAdjacentText","innerText","articlesWrapper","phrase","insertAdjacentElement","$bphraseSwiper","description","insertAdjacentHTML"],"sourceRoot":""}