Commit 9e6f3abc authored by Simon's avatar Simon

release 1.33.1

parent c649d94f
...@@ -20,9 +20,9 @@ ...@@ -20,9 +20,9 @@
## Production ## Production
- build CSS & JS assets - `C:\web\dev.biuro\ npm run build` - build CSS & JS assets - `C:\web\dev.biuro\ npm run build`
- build new image `docker build -t biuro/web:1.33.0 .` (update version number) - build new image `docker build -t biuro/web:1.33.1 .` (update version number)
- login to biuro docker account `docker login --username=biuro --password=9Ndtjd2vKsLvGuFOeFq1KdJs` - login to biuro docker account `docker login --username=biuro --password=9Ndtjd2vKsLvGuFOeFq1KdJs`
- push image to docker repository - `docker push biuro/web:1.33.0` - push image to docker repository - `docker push biuro/web:1.33.1`
## Production ## Production
- update biuro/web image version in .env file (staging or www) - update biuro/web image version in .env file (staging or www)
......
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
<div class="l-map--cities" id="js-map--cities" data-source="plunge"></div> <div class="l-map--cities" id="js-map--cities" data-source="plunge"></div>
</div> </div>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDe9Z7EJMROLUEYOUe05zUnRFwxDrH56k0" async defer></script> <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBQjPQnLGLeICbpTTu8kLjVRrLUYYCTS2M" async defer></script>
<?php <?php
if ( is_active_sidebar( 'front_page_feedbacks' ) ) : if ( is_active_sidebar( 'front_page_feedbacks' ) ) :
......
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
</div> </div>
</div> </div>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDe9Z7EJMROLUEYOUe05zUnRFwxDrH56k0" async defer></script> <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBQjPQnLGLeICbpTTu8kLjVRrLUYYCTS2M" async defer></script>
<?php <?php
if ( is_active_sidebar( 'front_page_feedbacks' ) ) : if ( is_active_sidebar( 'front_page_feedbacks' ) ) :
......
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
<div class="l-map--cities" id="js-map--cities" data-source="kazlu-ruda"></div> <div class="l-map--cities" id="js-map--cities" data-source="kazlu-ruda"></div>
</div> </div>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDe9Z7EJMROLUEYOUe05zUnRFwxDrH56k0" async defer></script> <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBQjPQnLGLeICbpTTu8kLjVRrLUYYCTS2M" async defer></script>
<?php <?php
if ( is_active_sidebar( 'front_page_feedbacks' ) ) : if ( is_active_sidebar( 'front_page_feedbacks' ) ) :
......
...@@ -152,7 +152,7 @@ ...@@ -152,7 +152,7 @@
?> ?>
<script src="/wp-content/themes/biuro/js/main-54c15b04.min.js" async defer></script> <script src="/wp-content/themes/biuro/js/main-476e514c.min.js" async defer></script>
<script src="/wp-content/themes/biuro/js/vendor/modernizr-custom.js" async defer></script> <script src="/wp-content/themes/biuro/js/vendor/modernizr-custom.js" async defer></script>
......
(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{11:function(e,t,n){"use strict";n.r(t);var o,i=n(0);function s(e,t){const n=function(){function e(e,t,n="top"){this.position=e;var o=document.createElement("div");o.innerHTML=t||"",o.classList.add("popup-bubble"),o.classList.add("popup-bubble--"+n);var i=document.createElement("div");i.classList.add("popup-bubble-anchor"),i.appendChild(o),this.containerDiv=document.createElement("div"),this.containerDiv.classList.add("popup-container"),this.containerDiv.appendChild(i),window.google.maps.OverlayView.preventMapHitsAndGesturesFrom(this.containerDiv)}return e.prototype=Object.create(window.google.maps.OverlayView.prototype),e.prototype.onAdd=function(){this.getPanes().floatPane.appendChild(this.containerDiv)},e.prototype.onRemove=function(){this.containerDiv.parentElement&&this.containerDiv.parentElement.removeChild(this.containerDiv)},e.prototype.draw=function(){var e=this.getProjection().fromLatLngToDivPixel(this.position),t=Math.abs(e.x)<4e3&&Math.abs(e.y)<4e3?"block":"none";"block"===t&&(this.containerDiv.style.left=e.x+"px",this.containerDiv.style.top=e.y+"px"),this.containerDiv.style.display!==t&&(this.containerDiv.style.display=t)},e}(),o=new window.google.maps.LatLngBounds;let i;for(var s=0;s<t.length;s++){const a=t[s],l=new window.google.maps.LatLng(a.lat,a.lng);i=new n(l,a.title,a.pos),i.setMap(e),o.extend(l)}e.fitBounds(o)}function a(e,t,n){for(var i=new window.google.maps.LatLngBounds,s=0;s<t.length;s++){const l=t[s],d=new window.google.maps.LatLng(l.lat,l.lng);var a=new window.google.maps.Marker({position:d,map:e,icon:"/wp-content/themes/biuro/i/ico--map-pin.svg",title:l.title||""});o&&o.close(),i.extend(d),l.content&&(a.content=l.content,window.google.maps.event.addListener(a,"click",(function(){o&&o.close(),(o=new window.google.maps.InfoWindow({content:this.content})).open(e,this)}))),n&&(window.innerWidth<960&&window.scrollTo(0,0),new google.maps.event.trigger(a,"click"))}e.fitBounds(i),window.innerWidth>1020?e.panBy(250,0):window.innerWidth>959&&e.panBy(180,0)}function l(e){var t=new window.google.maps.Map(e,{}),n=new window.google.maps.StyledMapType([{featureType:"all",elementType:"all",stylers:[{saturation:-92},{lightness:-8},{hue:"#004ed4"}]},{featureType:"water",elementType:"all",stylers:[{saturation:-95},{lightness:-25},{hue:"#004ed4"}]}],{name:"Biuro"});return t.mapTypes.set("biuro",n),t.setMapTypeId("biuro"),window.google.maps.event.addListenerOnce(t,"bounds_changed",(function(){this.getZoom()>15&&this.setZoom(14)})),t}t.default=()=>{const e=document.getElementById("js-map--divisions");e&&fetch("/wp-json/api/v1/divisions?langID="+e.dataset.id).then(e=>e.json()).then(t=>{!function(e,t){Object(i.a)("https://maps.googleapis.com/maps/api/js?key=AIzaSyDe9Z7EJMROLUEYOUe05zUnRFwxDrH56k0").then(()=>{window.google&&setTimeout(()=>{var n=l(e);let o=[];Object.keys(t).forEach(e=>{const n=t[e];"city"===e.substr(0,4)&&(o=o.concat(n))}),document.querySelectorAll(".js-division").forEach(e=>{e.addEventListener("click",()=>{const i=e&&e.dataset.id?e.dataset.id:"";t[i]?a(n,t[i].filter(e=>e.lat&&e.lng),!0):a(n,o.filter(e=>e.lat&&e.lng))})}),a(n,o.filter(e=>e.lat&&e.lng))},50)})}(e,t)});const t=document.getElementById("js-map--cities");t&&fetch("/wp-content/themes/biuro/json/"+t.dataset.source+".json").then(e=>e.json()).then(e=>{!function e(t,n){if(window.google){var o=l(t);s(o,n),window.innerWidth>1020?o.panBy(-230,0):window.innerWidth>959&&o.panBy(-150,0)}else setTimeout(()=>{e(t,n)},250)}(t,e)});const n=document.getElementById("js-map--regions");n&&function e(t){if(!window.google)return void setTimeout(()=>{e(t)},250);a(l(t),[{title:"Vilnius",lat:54.687157,lng:25.279652},{title:"Rīga",lat:56.946285,lng:24.105078},{title:"Tallinn",lat:59.436962,lng:24.753574}])}(n)}}}]); (window.webpackJsonp=window.webpackJsonp||[]).push([[5],{11:function(e,t,n){"use strict";n.r(t);var o,i=n(0);function s(e,t){const n=function(){function e(e,t,n="top"){this.position=e;var o=document.createElement("div");o.innerHTML=t||"",o.classList.add("popup-bubble"),o.classList.add("popup-bubble--"+n);var i=document.createElement("div");i.classList.add("popup-bubble-anchor"),i.appendChild(o),this.containerDiv=document.createElement("div"),this.containerDiv.classList.add("popup-container"),this.containerDiv.appendChild(i),window.google.maps.OverlayView.preventMapHitsAndGesturesFrom(this.containerDiv)}return e.prototype=Object.create(window.google.maps.OverlayView.prototype),e.prototype.onAdd=function(){this.getPanes().floatPane.appendChild(this.containerDiv)},e.prototype.onRemove=function(){this.containerDiv.parentElement&&this.containerDiv.parentElement.removeChild(this.containerDiv)},e.prototype.draw=function(){var e=this.getProjection().fromLatLngToDivPixel(this.position),t=Math.abs(e.x)<4e3&&Math.abs(e.y)<4e3?"block":"none";"block"===t&&(this.containerDiv.style.left=e.x+"px",this.containerDiv.style.top=e.y+"px"),this.containerDiv.style.display!==t&&(this.containerDiv.style.display=t)},e}(),o=new window.google.maps.LatLngBounds;let i;for(var s=0;s<t.length;s++){const a=t[s],l=new window.google.maps.LatLng(a.lat,a.lng);i=new n(l,a.title,a.pos),i.setMap(e),o.extend(l)}e.fitBounds(o)}function a(e,t,n){for(var i=new window.google.maps.LatLngBounds,s=0;s<t.length;s++){const l=t[s],d=new window.google.maps.LatLng(l.lat,l.lng);var a=new window.google.maps.Marker({position:d,map:e,icon:"/wp-content/themes/biuro/i/ico--map-pin.svg",title:l.title||""});o&&o.close(),i.extend(d),l.content&&(a.content=l.content,window.google.maps.event.addListener(a,"click",(function(){o&&o.close(),(o=new window.google.maps.InfoWindow({content:this.content})).open(e,this)}))),n&&(window.innerWidth<960&&window.scrollTo(0,0),new google.maps.event.trigger(a,"click"))}e.fitBounds(i),window.innerWidth>1020?e.panBy(250,0):window.innerWidth>959&&e.panBy(180,0)}function l(e){var t=new window.google.maps.Map(e,{}),n=new window.google.maps.StyledMapType([{featureType:"all",elementType:"all",stylers:[{saturation:-92},{lightness:-8},{hue:"#004ed4"}]},{featureType:"water",elementType:"all",stylers:[{saturation:-95},{lightness:-25},{hue:"#004ed4"}]}],{name:"Biuro"});return t.mapTypes.set("biuro",n),t.setMapTypeId("biuro"),window.google.maps.event.addListenerOnce(t,"bounds_changed",(function(){this.getZoom()>15&&this.setZoom(14)})),t}t.default=()=>{const e=document.getElementById("js-map--divisions");e&&fetch("/wp-json/api/v1/divisions?langID="+e.dataset.id).then(e=>e.json()).then(t=>{!function(e,t){Object(i.a)("https://maps.googleapis.com/maps/api/js?key=AIzaSyBQjPQnLGLeICbpTTu8kLjVRrLUYYCTS2M").then(()=>{window.google&&setTimeout(()=>{var n=l(e);let o=[];Object.keys(t).forEach(e=>{const n=t[e];"city"===e.substr(0,4)&&(o=o.concat(n))}),document.querySelectorAll(".js-division").forEach(e=>{e.addEventListener("click",()=>{const i=e&&e.dataset.id?e.dataset.id:"";t[i]?a(n,t[i].filter(e=>e.lat&&e.lng),!0):a(n,o.filter(e=>e.lat&&e.lng))})}),a(n,o.filter(e=>e.lat&&e.lng))},50)})}(e,t)});const t=document.getElementById("js-map--cities");t&&fetch("/wp-content/themes/biuro/json/"+t.dataset.source+".json").then(e=>e.json()).then(e=>{!function e(t,n){if(window.google){var o=l(t);s(o,n),window.innerWidth>1020?o.panBy(-230,0):window.innerWidth>959&&o.panBy(-150,0)}else setTimeout(()=>{e(t,n)},250)}(t,e)});const n=document.getElementById("js-map--regions");n&&function e(t){if(!window.google)return void setTimeout(()=>{e(t)},250);a(l(t),[{title:"Vilnius",lat:54.687157,lng:25.279652},{title:"Rīga",lat:56.946285,lng:24.105078},{title:"Tallinn",lat:59.436962,lng:24.753574}])}(n)}}}]);
\ No newline at end of file \ No newline at end of file
...@@ -199,7 +199,7 @@ function initRegionsMap (node) { ...@@ -199,7 +199,7 @@ function initRegionsMap (node) {
} }
function initDivisionsMap (node, data) { function initDivisionsMap (node, data) {
loadJS('https://maps.googleapis.com/maps/api/js?key=AIzaSyDe9Z7EJMROLUEYOUe05zUnRFwxDrH56k0').then(() => { loadJS('https://maps.googleapis.com/maps/api/js?key=AIzaSyBQjPQnLGLeICbpTTu8kLjVRrLUYYCTS2M').then(() => {
if (!window.google) { if (!window.google) {
return; return;
} }
...@@ -235,7 +235,7 @@ function initDivisionsMap (node, data) { ...@@ -235,7 +235,7 @@ function initDivisionsMap (node, data) {
} }
const inititateMap = () => { const inititateMap = () => {
// <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDe9Z7EJMROLUEYOUe05zUnRFwxDrH56k0" async defer></script> // <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBQjPQnLGLeICbpTTu8kLjVRrLUYYCTS2M" async defer></script>
const division = document.getElementById('js-map--divisions'); const division = document.getElementById('js-map--divisions');
......
!function(e){function t(t){for(var o,r,c=t[0],s=t[1],a=0,d=[];a<c.length;a++)r=c[a],Object.prototype.hasOwnProperty.call(n,r)&&n[r]&&d.push(n[r][0]),n[r]=0;for(o in s)Object.prototype.hasOwnProperty.call(s,o)&&(e[o]=s[o]);for(i&&i(t);d.length;)d.shift()()}var o={},n={4:0};function r(t){if(o[t])return o[t].exports;var n=o[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.e=function(e){var t=[],o=n[e];if(0!==o)if(o)t.push(o[2]);else{var c=new Promise((function(t,r){o=n[e]=[t,r]}));t.push(o[2]=c);var s,a=document.createElement("script");a.charset="utf-8",a.timeout=120,r.nc&&a.setAttribute("nonce",r.nc),a.src=function(e){return r.p+"wp-content/themes/biuro/js/components/"+({0:"accordion",1:"autocomplete",2:"feedback",3:"job-share",5:"map",6:"popup",7:"tabs"}[e]||e)+"-"+{0:"2f69296d",1:"df0794bc",2:"3d1a4d26",3:"cf7870c2",5:"39b4e269",6:"e893a8e4",7:"ab19a1f2"}[e]+".min.js"}(e);var i=new Error;s=function(t){a.onerror=a.onload=null,clearTimeout(d);var o=n[e];if(0!==o){if(o){var r=t&&("load"===t.type?"missing":t.type),c=t&&t.target&&t.target.src;i.message="Loading chunk "+e+" failed.\n("+r+": "+c+")",i.name="ChunkLoadError",i.type=r,i.request=c,o[1](i)}n[e]=void 0}};var d=setTimeout((function(){s({type:"timeout",target:a})}),12e4);a.onerror=a.onload=s,document.head.appendChild(a)}return Promise.all(t)},r.m=e,r.c=o,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(o,n,function(t){return e[t]}.bind(null,n));return o},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r.oe=function(e){throw console.error(e),e};var c=window.webpackJsonp=window.webpackJsonp||[],s=c.push.bind(c);c.push=t,c=c.slice();for(var a=0;a<c.length;a++)t(c[a]);var i=s;r(r.s=1)}([function(e,t,o){"use strict";function n(e){return new Promise((t,o)=>{const n=document.createElement("script");n.src=e,n.async=!0,n.onload=t,n.onerror=o,document.head.appendChild(n)})}o.d(t,"a",(function(){return n}))},function(e,t,o){e.exports=o(3)},function(e,t){window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach((function(e){e.hasOwnProperty("remove")||Object.defineProperty(e,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){null!==this.parentNode&&this.parentNode.removeChild(this)}})}))},function(e,t,o){"use strict";o.r(t);o(2);var n=o(0);const r="6Lc76qoUAAAAALk0aYR500zOZVG1BicNl3GTb-Hu";let c;const s=(e,t)=>{const o=Math.floor(999999*Math.random())+1e5;window.grecaptcha.execute(r,{action:t+o}).then(t=>{e.value=t}),c||(c=setInterval(()=>{s(e,t)},9e4))},a=e=>{if(c)return;const t=e.dataset.action||"";Object(n.a)("https://www.google.com/recaptcha/api.js?render="+r).then(()=>{window.grecaptcha&&window.grecaptcha.ready((function(){s(e,t)}))})};(e=>{const t=document.getElementById("cookie-warning"),o=document.getElementById("cookie-agree"),n=document.getElementById("cookie-close"),r=!!c()&&localStorage.getItem("biuro-agree");function c(){try{return localStorage.setItem("a","a"),localStorage.removeItem("a"),!0}catch(e){return!1}}t&&o&&n&&!r&&(t.style.display="block",o.addEventListener("click",()=>{c()&&localStorage.setItem("biuro-agree","true"),t.style.display="none"}),n.addEventListener("click",()=>{t.style.display="none"}))})(window),(e=>{const t=document.querySelector(".c-nav--lang");t&&t.addEventListener("click",e=>{e.currentTarget.classList.toggle("c-nav--lang--is-open")})})(window),window,document.querySelectorAll(".js-toggle--nav").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault(),document.body.classList.toggle("is-nav--open")})}),document.querySelectorAll(".js-toggle--aside").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault(),document.body.classList.remove("is-aside--open"),document.body.classList.remove("is-aside--open-additional"),document.body.classList.remove("is-aside--open-city")})}),document.querySelectorAll(".js-toggle--aside-city").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault(),document.body.classList.add("is-aside--open"),document.body.classList.remove("is-aside--open-additional"),document.body.classList.add("is-aside--open-city")})}),document.querySelectorAll(".js-toggle--aside--additional").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault(),document.body.classList.toggle("is-aside--open"),document.body.classList.remove("is-aside--open-city"),document.body.classList.add("is-aside--open-additional")})}),document.querySelectorAll(".js-form--input-file").forEach(e=>{e.addEventListener("change",()=>{const t=e.parentNode,o=e.value.split(/\\|\//).pop(),n=t.querySelector(".js-form--input-file-text");n&&o&&(n.innerHTML=o)})}),document.querySelectorAll(".js-toggle--services").forEach(e=>{e.addEventListener("click",()=>{e.parentNode.classList.toggle("c-services--is-open")})}),document.querySelectorAll(".js-toggle--sections").forEach(e=>{e.addEventListener("click",()=>{const t=e.parentNode;t.classList.contains("c-sections--is-open")||document.querySelectorAll(".c-sections--is-open").forEach(e=>{e.classList.remove("c-sections--is-open")}),t.classList.toggle("c-sections--is-open")})}),document.querySelectorAll(".js-expand-jobs-section").forEach(e=>{e.addEventListener("click",t=>{t.preventDefault(),e.parentNode.classList.remove("c-jobs-section--is-closed"),e.remove()})});const i=()=>{const e=document.querySelector('[name="s"][value="1"]');if(e)return void e.click();const t=document.querySelector('[name="name"]');t&&t.focus()};document.querySelector(".js-inititate-position-form")&&document.querySelector(".js-inititate-position-form").addEventListener("click",i),document.querySelector(".js-focus-form")&&document.querySelector(".js-focus-form").addEventListener("click",()=>{const e=document.querySelector(".c-form input:first-of-type");e&&e.focus()}),document.querySelector(".js-modal--close")&&document.querySelector(".js-modal--close").addEventListener("click",()=>{const e=document.querySelector(".c-modal");e&&e.remove();const t=document.querySelector(".c-form [autofocus]");t&&t.focus()}),(e=>{const t=document.querySelector(".c-form [autofocus]");if(t&&t.focus(),location.hash){const e=document.querySelector(".c-form--input-wrap--error input")||document.querySelector(".c-form--checkbox--error");if(e)return void e.focus();const t=document.querySelector('.c-form [name="name"]');t&&t.focus()}})(window),(e=>{window.dataLayer=window.dataLayer||[];const t=()=>{const e=document.querySelector('meta[itemprop="occupationalCategory"]');return e&&e.getAttribute("content")||""};document.querySelectorAll(".gtm-share-click").forEach(e=>{e.addEventListener("click",t=>{const o=e.dataset||{};window.dataLayer.push({event:"shareClick",shareLabel:o.label||""})})}),document.querySelectorAll(".gtm-click").forEach(e=>{e.addEventListener("click",t=>{const o=e.dataset||{};window.dataLayer.push({event:o.event||"",label:o.label||""})})});const o=window.sessionStorage,n=document.querySelector('[name="gtm-position-opened"]'),r=document.querySelector('[name="gtm-application-started"]'),c=document.querySelector('[name="gtm-application-submitted"]'),s=(()=>{const e=(document.querySelector('input[name="job_id"]')||{}).value;return e?parseInt(e):""})(),a=()=>{window.dataLayer.push({event:"applicationStarted",job_id:s,category:t()}),o.setItem("position-"+s,"started")},i=e=>{e.target.value&&(a(),e.target.removeEventListener("input",i))};if(n&&(o.getItem("position-"+s)||(window.dataLayer.push({event:"offerOpened",job_id:s,category:t()}),o.setItem("position-"+s,"opened"))),r&&"opened"===o.getItem("position-"+s)){const e=document.querySelector('[name="form-position"] #form-name')||{};e&&(e.value?a():e.addEventListener("input",i))}c&&"started"===o.getItem("position-"+s)&&(window.dataLayer.push({event:"applicationSuccess",job_id:s,category:t()}),o.setItem("position-"+s,"submitted"))})(window);document.querySelectorAll('[name="form-position"], [name="form-employees"], [name="form-employers"], [name="form-recommend"], [name="form-newsletter"]').forEach(e=>{e.addEventListener("submit",()=>{(e=>{e.querySelector('[type="submit"]')&&(e.querySelector('[type="submit"]').classList.add("c-btn--disabled"),e.querySelector('[type="submit"]').classList.add("c-btn--loading"))})(e)})}),document.querySelector("#submit-recommend")&&document.querySelector("#submit-recommend").addEventListener("click",e=>{e.preventDefault();const t=document.querySelector('[name="form-recommend"] [type="submit"]');t&&(e.currentTarget.classList.add("c-btn--disabled"),e.currentTarget.classList.add("c-btn--loading"),t.click())}),document.querySelector(".js-submit-employees-form")&&document.querySelector(".js-submit-employees-form").addEventListener("click",e=>{const t=document.querySelector('[name="form-employees"] [type="submit"]');t&&(e.preventDefault(),e.currentTarget.classList.add("c-btn--disabled"),e.currentTarget.classList.add("c-btn--loading"),t.click())}),document.querySelector(".js-accordion--header")&&async function(){const{default:e}=await o.e(0).then(o.bind(null,7));return e}().then(e=>{e()}),document.querySelector(".js-tabs")&&async function(){const{default:e}=await o.e(7).then(o.bind(null,8));return e}().then(e=>{e()});(e=>{if(!e)return;const t=()=>{(async function(){const{default:e}=await o.e(2).then(o.bind(null,9));return e})().then(e=>{e()})};if(!window.IntersectionObserver)return void t();const n=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&(t(),n.unobserve(e.target))})},{});n.observe(e)})(document.querySelector(".c-feedbacks--inner"));const d=()=>{const e=()=>{(async function(){const{default:e}=await o.e(1).then(o.bind(null,10));return e})().then(e=>{e()})};window.requestIdleCallback?window.requestIdleCallback(e):e()};(document.getElementById("search")||document.getElementById("form-city")||document.getElementById("recommend-form-city"))&&d(),(document.getElementById("js-map--divisions")||document.getElementById("js-map--cities")||document.getElementById("js-map--regions"))&&async function(){const{default:e}=await o.e(5).then(o.bind(null,11));return e}().then(e=>{e()}),(document.querySelector(".js-copy-to-clipboard")||document.querySelector(".js-share-messenger")||document.querySelector(".js-share-whatsapp")||document.querySelector(".js-biuro-facebook"))&&async function(){const{default:e}=await o.e(3).then(o.bind(null,12));return e}().then(e=>{e()}),async function(){const{default:e}=await o.e(6).then(o.bind(null,13));e()}(),document.querySelector(".js-collapse-row--toggle")&&document.querySelector(".js-collapse-row--toggle").addEventListener("click",e=>{e.currentTarget.parentNode.classList.toggle("c-form--row--collapsed")});const l=document.getElementById("g-recaptcha-response");l&&async function(e){if("IntersectionObserver"in window){const t=e.closest("form"),o=new IntersectionObserver(t=>{t.forEach(t=>{t.isIntersecting&&(a(e),o.unobserve(t.target))})},{});o.observe(t)}else window.requestIdleCallback?window.requestIdleCallback(()=>{a(e)}):a(e)}(l),(e=>{const t=document.getElementById("search");t&&document.querySelectorAll(".js-search--focus").forEach(e=>{e.addEventListener("focus",()=>{window.innerWidth<960&&t.getBoundingClientRect().top>80&&window.scroll(0,210)})})})(window),(e=>{const t="is-header--hidden",o=document.querySelector(".l-header");if(!o)return!0;let n=0,r=0,c=0,s=0,a=0;window.addEventListener("scroll",function(e,t){var o,n;return function(){const r=this,c=arguments,s=new Date;o&&s<o+e?(clearTimeout(n),n=setTimeout(()=>{o=s,t.apply(r,c)},e)):(o=s,t.apply(r,c))}}(250,(function(){n=document.body.offsetHeight,r=window.innerHeight,c=window.pageYOffset,a=s-c,c<=0||a>0&&o.classList.contains(t)?o.classList.remove(t):a<0&&(c+r>=n&&o.classList.contains(t)?o.classList.remove(t):document.body.classList.contains("is-nav--open")||o.classList.add(t)),s=c})))})(window)}]); !function(e){function t(t){for(var o,r,c=t[0],s=t[1],a=0,d=[];a<c.length;a++)r=c[a],Object.prototype.hasOwnProperty.call(n,r)&&n[r]&&d.push(n[r][0]),n[r]=0;for(o in s)Object.prototype.hasOwnProperty.call(s,o)&&(e[o]=s[o]);for(i&&i(t);d.length;)d.shift()()}var o={},n={4:0};function r(t){if(o[t])return o[t].exports;var n=o[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.e=function(e){var t=[],o=n[e];if(0!==o)if(o)t.push(o[2]);else{var c=new Promise((function(t,r){o=n[e]=[t,r]}));t.push(o[2]=c);var s,a=document.createElement("script");a.charset="utf-8",a.timeout=120,r.nc&&a.setAttribute("nonce",r.nc),a.src=function(e){return r.p+"wp-content/themes/biuro/js/components/"+({0:"accordion",1:"autocomplete",2:"feedback",3:"job-share",5:"map",6:"popup",7:"tabs"}[e]||e)+"-"+{0:"2f69296d",1:"df0794bc",2:"3d1a4d26",3:"cf7870c2",5:"c443fad5",6:"e893a8e4",7:"ab19a1f2"}[e]+".min.js"}(e);var i=new Error;s=function(t){a.onerror=a.onload=null,clearTimeout(d);var o=n[e];if(0!==o){if(o){var r=t&&("load"===t.type?"missing":t.type),c=t&&t.target&&t.target.src;i.message="Loading chunk "+e+" failed.\n("+r+": "+c+")",i.name="ChunkLoadError",i.type=r,i.request=c,o[1](i)}n[e]=void 0}};var d=setTimeout((function(){s({type:"timeout",target:a})}),12e4);a.onerror=a.onload=s,document.head.appendChild(a)}return Promise.all(t)},r.m=e,r.c=o,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(o,n,function(t){return e[t]}.bind(null,n));return o},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r.oe=function(e){throw console.error(e),e};var c=window.webpackJsonp=window.webpackJsonp||[],s=c.push.bind(c);c.push=t,c=c.slice();for(var a=0;a<c.length;a++)t(c[a]);var i=s;r(r.s=1)}([function(e,t,o){"use strict";function n(e){return new Promise((t,o)=>{const n=document.createElement("script");n.src=e,n.async=!0,n.onload=t,n.onerror=o,document.head.appendChild(n)})}o.d(t,"a",(function(){return n}))},function(e,t,o){e.exports=o(3)},function(e,t){window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach((function(e){e.hasOwnProperty("remove")||Object.defineProperty(e,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){null!==this.parentNode&&this.parentNode.removeChild(this)}})}))},function(e,t,o){"use strict";o.r(t);o(2);var n=o(0);const r="6Lc76qoUAAAAALk0aYR500zOZVG1BicNl3GTb-Hu";let c;const s=(e,t)=>{const o=Math.floor(999999*Math.random())+1e5;window.grecaptcha.execute(r,{action:t+o}).then(t=>{e.value=t}),c||(c=setInterval(()=>{s(e,t)},9e4))},a=e=>{if(c)return;const t=e.dataset.action||"";Object(n.a)("https://www.google.com/recaptcha/api.js?render="+r).then(()=>{window.grecaptcha&&window.grecaptcha.ready((function(){s(e,t)}))})};(e=>{const t=document.getElementById("cookie-warning"),o=document.getElementById("cookie-agree"),n=document.getElementById("cookie-close"),r=!!c()&&localStorage.getItem("biuro-agree");function c(){try{return localStorage.setItem("a","a"),localStorage.removeItem("a"),!0}catch(e){return!1}}t&&o&&n&&!r&&(t.style.display="block",o.addEventListener("click",()=>{c()&&localStorage.setItem("biuro-agree","true"),t.style.display="none"}),n.addEventListener("click",()=>{t.style.display="none"}))})(window),(e=>{const t=document.querySelector(".c-nav--lang");t&&t.addEventListener("click",e=>{e.currentTarget.classList.toggle("c-nav--lang--is-open")})})(window),window,document.querySelectorAll(".js-toggle--nav").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault(),document.body.classList.toggle("is-nav--open")})}),document.querySelectorAll(".js-toggle--aside").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault(),document.body.classList.remove("is-aside--open"),document.body.classList.remove("is-aside--open-additional"),document.body.classList.remove("is-aside--open-city")})}),document.querySelectorAll(".js-toggle--aside-city").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault(),document.body.classList.add("is-aside--open"),document.body.classList.remove("is-aside--open-additional"),document.body.classList.add("is-aside--open-city")})}),document.querySelectorAll(".js-toggle--aside--additional").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault(),document.body.classList.toggle("is-aside--open"),document.body.classList.remove("is-aside--open-city"),document.body.classList.add("is-aside--open-additional")})}),document.querySelectorAll(".js-form--input-file").forEach(e=>{e.addEventListener("change",()=>{const t=e.parentNode,o=e.value.split(/\\|\//).pop(),n=t.querySelector(".js-form--input-file-text");n&&o&&(n.innerHTML=o)})}),document.querySelectorAll(".js-toggle--services").forEach(e=>{e.addEventListener("click",()=>{e.parentNode.classList.toggle("c-services--is-open")})}),document.querySelectorAll(".js-toggle--sections").forEach(e=>{e.addEventListener("click",()=>{const t=e.parentNode;t.classList.contains("c-sections--is-open")||document.querySelectorAll(".c-sections--is-open").forEach(e=>{e.classList.remove("c-sections--is-open")}),t.classList.toggle("c-sections--is-open")})}),document.querySelectorAll(".js-expand-jobs-section").forEach(e=>{e.addEventListener("click",t=>{t.preventDefault(),e.parentNode.classList.remove("c-jobs-section--is-closed"),e.remove()})});const i=()=>{const e=document.querySelector('[name="s"][value="1"]');if(e)return void e.click();const t=document.querySelector('[name="name"]');t&&t.focus()};document.querySelector(".js-inititate-position-form")&&document.querySelector(".js-inititate-position-form").addEventListener("click",i),document.querySelector(".js-focus-form")&&document.querySelector(".js-focus-form").addEventListener("click",()=>{const e=document.querySelector(".c-form input:first-of-type");e&&e.focus()}),document.querySelector(".js-modal--close")&&document.querySelector(".js-modal--close").addEventListener("click",()=>{const e=document.querySelector(".c-modal");e&&e.remove();const t=document.querySelector(".c-form [autofocus]");t&&t.focus()}),(e=>{const t=document.querySelector(".c-form [autofocus]");if(t&&t.focus(),location.hash){const e=document.querySelector(".c-form--input-wrap--error input")||document.querySelector(".c-form--checkbox--error");if(e)return void e.focus();const t=document.querySelector('.c-form [name="name"]');t&&t.focus()}})(window),(e=>{window.dataLayer=window.dataLayer||[];const t=()=>{const e=document.querySelector('meta[itemprop="occupationalCategory"]');return e&&e.getAttribute("content")||""};document.querySelectorAll(".gtm-share-click").forEach(e=>{e.addEventListener("click",t=>{const o=e.dataset||{};window.dataLayer.push({event:"shareClick",shareLabel:o.label||""})})}),document.querySelectorAll(".gtm-click").forEach(e=>{e.addEventListener("click",t=>{const o=e.dataset||{};window.dataLayer.push({event:o.event||"",label:o.label||""})})});const o=window.sessionStorage,n=document.querySelector('[name="gtm-position-opened"]'),r=document.querySelector('[name="gtm-application-started"]'),c=document.querySelector('[name="gtm-application-submitted"]'),s=(()=>{const e=(document.querySelector('input[name="job_id"]')||{}).value;return e?parseInt(e):""})(),a=()=>{window.dataLayer.push({event:"applicationStarted",job_id:s,category:t()}),o.setItem("position-"+s,"started")},i=e=>{e.target.value&&(a(),e.target.removeEventListener("input",i))};if(n&&(o.getItem("position-"+s)||(window.dataLayer.push({event:"offerOpened",job_id:s,category:t()}),o.setItem("position-"+s,"opened"))),r&&"opened"===o.getItem("position-"+s)){const e=document.querySelector('[name="form-position"] #form-name')||{};e&&(e.value?a():e.addEventListener("input",i))}c&&"started"===o.getItem("position-"+s)&&(window.dataLayer.push({event:"applicationSuccess",job_id:s,category:t()}),o.setItem("position-"+s,"submitted"))})(window);document.querySelectorAll('[name="form-position"], [name="form-employees"], [name="form-employers"], [name="form-recommend"], [name="form-newsletter"]').forEach(e=>{e.addEventListener("submit",()=>{(e=>{e.querySelector('[type="submit"]')&&(e.querySelector('[type="submit"]').classList.add("c-btn--disabled"),e.querySelector('[type="submit"]').classList.add("c-btn--loading"))})(e)})}),document.querySelector("#submit-recommend")&&document.querySelector("#submit-recommend").addEventListener("click",e=>{e.preventDefault();const t=document.querySelector('[name="form-recommend"] [type="submit"]');t&&(e.currentTarget.classList.add("c-btn--disabled"),e.currentTarget.classList.add("c-btn--loading"),t.click())}),document.querySelector(".js-submit-employees-form")&&document.querySelector(".js-submit-employees-form").addEventListener("click",e=>{const t=document.querySelector('[name="form-employees"] [type="submit"]');t&&(e.preventDefault(),e.currentTarget.classList.add("c-btn--disabled"),e.currentTarget.classList.add("c-btn--loading"),t.click())}),document.querySelector(".js-accordion--header")&&async function(){const{default:e}=await o.e(0).then(o.bind(null,7));return e}().then(e=>{e()}),document.querySelector(".js-tabs")&&async function(){const{default:e}=await o.e(7).then(o.bind(null,8));return e}().then(e=>{e()});(e=>{if(!e)return;const t=()=>{(async function(){const{default:e}=await o.e(2).then(o.bind(null,9));return e})().then(e=>{e()})};if(!window.IntersectionObserver)return void t();const n=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&(t(),n.unobserve(e.target))})},{});n.observe(e)})(document.querySelector(".c-feedbacks--inner"));const d=()=>{const e=()=>{(async function(){const{default:e}=await o.e(1).then(o.bind(null,10));return e})().then(e=>{e()})};window.requestIdleCallback?window.requestIdleCallback(e):e()};(document.getElementById("search")||document.getElementById("form-city")||document.getElementById("recommend-form-city"))&&d(),(document.getElementById("js-map--divisions")||document.getElementById("js-map--cities")||document.getElementById("js-map--regions"))&&async function(){const{default:e}=await o.e(5).then(o.bind(null,11));return e}().then(e=>{e()}),(document.querySelector(".js-copy-to-clipboard")||document.querySelector(".js-share-messenger")||document.querySelector(".js-share-whatsapp")||document.querySelector(".js-biuro-facebook"))&&async function(){const{default:e}=await o.e(3).then(o.bind(null,12));return e}().then(e=>{e()}),async function(){const{default:e}=await o.e(6).then(o.bind(null,13));e()}(),document.querySelector(".js-collapse-row--toggle")&&document.querySelector(".js-collapse-row--toggle").addEventListener("click",e=>{e.currentTarget.parentNode.classList.toggle("c-form--row--collapsed")});const l=document.getElementById("g-recaptcha-response");l&&async function(e){if("IntersectionObserver"in window){const t=e.closest("form"),o=new IntersectionObserver(t=>{t.forEach(t=>{t.isIntersecting&&(a(e),o.unobserve(t.target))})},{});o.observe(t)}else window.requestIdleCallback?window.requestIdleCallback(()=>{a(e)}):a(e)}(l),(e=>{const t=document.getElementById("search");t&&document.querySelectorAll(".js-search--focus").forEach(e=>{e.addEventListener("focus",()=>{window.innerWidth<960&&t.getBoundingClientRect().top>80&&window.scroll(0,210)})})})(window),(e=>{const t="is-header--hidden",o=document.querySelector(".l-header");if(!o)return!0;let n=0,r=0,c=0,s=0,a=0;window.addEventListener("scroll",function(e,t){var o,n;return function(){const r=this,c=arguments,s=new Date;o&&s<o+e?(clearTimeout(n),n=setTimeout(()=>{o=s,t.apply(r,c)},e)):(o=s,t.apply(r,c))}}(250,(function(){n=document.body.offsetHeight,r=window.innerHeight,c=window.pageYOffset,a=s-c,c<=0||a>0&&o.classList.contains(t)?o.classList.remove(t):a<0&&(c+r>=n&&o.classList.contains(t)?o.classList.remove(t):document.body.classList.contains("is-nav--open")||o.classList.add(t)),s=c})))})(window)}]);
\ No newline at end of file \ No newline at end of file
...@@ -40,6 +40,6 @@ get_header(); ?> ...@@ -40,6 +40,6 @@ get_header(); ?>
</div><!-- #content --> </div><!-- #content -->
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDe9Z7EJMROLUEYOUe05zUnRFwxDrH56k0" async defer></script> <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBQjPQnLGLeICbpTTu8kLjVRrLUYYCTS2M" async defer></script>
<?php get_footer(); <?php get_footer();
...@@ -3,6 +3,6 @@ Theme Name: Biuro ...@@ -3,6 +3,6 @@ Theme Name: Biuro
Author: Biuro Author: Biuro
Author URI: https://www.biuro.lt/ Author URI: https://www.biuro.lt/
Description: Biuro multiregion theme Description: Biuro multiregion theme
Version: 1.33.0 Version: 1.33.1
Text Domain: biuro Text Domain: biuro
*/ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment