{"version":3,"sources":["20250307VanTour_functions.js"],"names":["$","click","location","pathname","replace","this","hostname","offsetValue","target","hash","length","slice","window","innerWidth","animate","scrollTop","offset","top","observerForm","form","document","getElementById","console","log","MutationObserver","event","observe","attributes","attributeFilter","childList","characterData"],"mappings":"AAQAA,EAAE,qBAAqBC,MAAM,WAC3B,GAAIC,SAASC,SAASC,QAAQ,MAAM,KAAOC,KAAKF,SAASC,QAAQ,MAAM,KAAOF,SAASI,UAAYD,KAAKC,SAAU,CAChH,IAGMC,EAHFC,EAASR,EAAEK,KAAKI,MAEpB,IAAID,EADKA,EAAOE,OAASF,EAASR,EAAE,SAAWK,KAAKI,KAAKE,MAAM,GAAI,MACxDD,OAaT,OAZIH,EAAc,EACbK,OAAOC,YAAc,MAIxBN,EAAc,IAIhBP,EAAE,aAAac,QAAQ,CACrBC,UAAWP,EAAOQ,SAASC,IAAMV,GAChC,MACI,KAUb,IAIMW,aAJFC,KAAOC,SAASC,eAAe,uBAE/BF,OACFG,QAAQC,IAAI,iBACRL,aAAe,IAAIM,iBAAiB,SAAUC,GAChDH,QAAQC,IAAIE,GACZzB,EAAE,cAAcc,QAAQ,CACpBC,UAAWf,EAAE,wBAAwBgB,SAASC,IAAM,IACnD,KACLK,QAAQC,IAAI,yBAGDG,QAAQP,KAAM,CACzBQ,YAAY,EACZC,gBAAiB,CAAC,QAAS,cAC3BC,WAAW,EACXC,eAAe","file":"20250307VanTour_functions.min.js","sourcesContent":["// SCROLL-TO ANIMATION FOR ANCHOR LINKS\r\n// FORM SUCCESS SCROLL\r\n\r\n\r\n//\r\n// =SCROLL-TO ANIMATION FOR ANCHOR LINKS\r\n// --------------------------------------------------\r\n\r\n$('.msdw-page-scroll').click(function() {\r\n if (location.pathname.replace(/^\\//,'') == this.pathname.replace(/^\\//,'') && location.hostname == this.hostname) {\r\n var target = $(this.hash);\r\n target = target.length ? target : $('[name=' + this.hash.slice(1) +']');\r\n if (target.length) {\r\n var offsetValue = 0;\r\n if ( window.innerWidth <= 767 ) {\r\n offsetValue;\r\n // console.log(offsetValue);\r\n } else {\r\n offsetValue = 59;\r\n // console.log(offsetValue);\r\n }\r\n\r\n $('html,body').animate({\r\n scrollTop: target.offset().top - offsetValue\r\n }, 900);\r\n return false;\r\n }\r\n }\r\n});\r\n\r\n\r\n//\r\n// =FORM SUCCESS SCROLL\r\n// --------------------------------------------------\r\n\r\nvar form = document.getElementById('section_participate');\r\n\r\nif (form) {\r\n console.log('form is here');\r\n var observerForm = new MutationObserver(function (event) {\r\n console.log(event);\r\n $(\"html, body\").animate({\r\n scrollTop: $('#section_participate').offset().top - 64,\r\n }, 500);\r\n console.log('form after animate');\r\n });\r\n\r\n observerForm.observe(form, {\r\n attributes: true,\r\n attributeFilter: ['class', 'data-state'],\r\n childList: false,\r\n characterData: false\r\n });\r\n}\r\n"]}