1"use strict";(self.webpackChunklocalheroes=self.webpackChunklocalheroes||[]).push([[567],{9567:function(e,t,n){n.r(t),n.d(t,{phoneCodeMask:function(){return l},postCodeMask:function(){return c}});var o=n(3871);const c=e=>{const t=document.querySelectorAll('select[name="country_code"], select[name="invoice_country_code"]');if(0!==t.length)for(let n=0;n<t.length;n++){let c=t[n].closest("form");const l="PL"===t[n].value,r=c.querySelectorAll(e);let a;if(t[n].addEventListener("change",()=>{const e=c.querySelector('input[name="postal_code"], input[name="invoice_postal_code"]');void 0!==a&&"PL"!==t[n].value?(e.value="",a.destroy()):a=(0,o.Ay)(e,{mask:"00-000",lazy:!1})}),!l||0===r.length)return;const u=c.querySelector('input[name="with_invoice"]');u&&u.addEventListener("change",e=>{const t=c.querySelector('input[name="invoice_postal_code"]');e.target.checked?a=(0,o.Ay)(t,{mask:"00-000",lazy:!1}):t.value=null});const s=c.querySelector('input[name="other_delivery_address"]');s&&s.addEventListener("change",e=>{const t=c.querySelector('input[name="delivery_postal_code"]');e.target.checked?a=(0,o.Ay)(t,{mask:"00-000",lazy:!1}):t.value=null});const i=c.querySelector('input[name="postal_code"], input[name="invoice_postal_code"]');a=(0,o.Ay)(i,{mask:"00-000",lazy:!1})}},l=e=>{const t=document.querySelector('select[name="country_code"]');if(!t)return;const n="PL"===t.value,c=document.querySelectorAll(e);if(!n||0===c.length)return;document.querySelector('input[name="other_delivery_address"]').addEventListener("change",e=>{const t=document.querySelector('input[name="delivery_phone"]');e.target.checked?(0,o.Ay)(t,{mask:"000 000 000",lazy:!1,autofix:!0}):t.value=null});const l=document.querySelector('input[name="phone"]');(0,o.Ay)(l,{mask:"000 000 000",lazy:!1,autofix:!0})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.