{"version":3,"sources":["webpack:///./LeLab.Web/src/js/inputmask.entry.js"],"names":["BarbaInputmask","PageHooks","afterLeave","current","node","this","getNodes","Inputmask","remove","beforeEnter","next","mask","container","querySelectorAll"],"mappings":"4FAAA,mCAOA,MAAMA,UAAuBC,IACzBC,YAAW,QAAEC,IACT,IAAK,IAAIC,KAAQC,KAAKC,SAASH,GAC3BI,IAAUC,OAAOJ,GAGzBK,aAAY,KAAEC,IACV,IAAK,IAAIN,KAAQC,KAAKC,SAASI,GAC3BH,MAAYI,KAAKP,GAGzBE,UAAS,UAAEM,IACP,OAAOA,EAAUC,iBAAiB,0BAG1C,IAAIb,I","file":"inputmask.js","sourcesContent":["import { PageHooks } from \"barba\"\r\nimport Inputmask from \"inputmask\"\r\n\r\n// Documentation :\r\n// https://github.com/RobinHerbots/Inputmask\r\n\r\n// Via data-inputmask\r\nclass BarbaInputmask extends PageHooks {\r\n afterLeave({ current }) {\r\n for (let node of this.getNodes(current)) {\r\n Inputmask.remove(node)\r\n }\r\n }\r\n beforeEnter({ next }) {\r\n for (let node of this.getNodes(next)) {\r\n Inputmask().mask(node);\r\n }\r\n }\r\n getNodes({ container }) {\r\n return container.querySelectorAll(\"input[data-inputmask]\")\r\n }\r\n}\r\nnew BarbaInputmask()"],"sourceRoot":""}