{"version":3,"file":"components/chunks/chunk-num-13.94d6da88eb798e976249.js","mappings":"wFA2BGA,OA1BDC,OAAOC,IAAIC,OAAOC,cAAcC,UAAS,WACvC,IAAIC,EAAgBC,SAASC,cAAc,2BACvCC,EAAoBF,SAASC,cAAc,+BAC3CE,EAASH,SAASC,cAAc,wBAOhCG,EAAa,SAAoBC,GAChBA,EAAKC,iBAAiB,wCAC5BC,SAAQ,SAAUC,GAC7B,OATyB,SAAgCA,GAC3D,IAAIC,EAAOD,EAAGE,YACVC,EAAQX,SAASY,cAAc,SACnCD,EAAME,UAAYJ,EAClBD,EAAGM,WAAWC,aAAaJ,EAAOH,EACpC,CAIWQ,CAAuBR,EAChC,GACF,EACAJ,EAAWF,GAMXC,EAAOc,iBAAiB,SAAS,SAAUC,GACzC,OAN+B,SAAoCA,GACnEA,EAAEC,iBACFf,EAAWL,GACXA,EAAcqB,MAAMC,QAAU,OAChC,CAESC,CAA2BJ,EACpC,GACF,G","sources":["webpack://bernafon/./js/feature/component-comments.js"],"sourcesContent":["(function ($) {\n window.DGS.OnLoad.getInstance().register(function () {\n var anonymousForm = document.querySelector('.anonymous-comment-form');\n var authenticatedForm = document.querySelector('.authenticated-comment-form');\n var button = document.querySelector('.joinconv-linkbutton');\n var addLabelForFormElement = function addLabelForFormElement(el) {\n var text = el.placeholder;\n var label = document.createElement('label');\n label.innerText = text;\n el.parentNode.insertBefore(label, el);\n };\n var manageForm = function manageForm(form) {\n var formElements = form.querySelectorAll('input:not([type=\"submit\"]), textarea');\n formElements.forEach(function (el) {\n return addLabelForFormElement(el);\n });\n };\n manageForm(authenticatedForm);\n var showAndManageAnonymousForm = function showAndManageAnonymousForm(e) {\n e.preventDefault();\n manageForm(anonymousForm);\n anonymousForm.style.display = \"block\";\n };\n button.addEventListener('click', function (e) {\n return showAndManageAnonymousForm(e);\n });\n });\n})(jQuery);"],"names":["jQuery","window","DGS","OnLoad","getInstance","register","anonymousForm","document","querySelector","authenticatedForm","button","manageForm","form","querySelectorAll","forEach","el","text","placeholder","label","createElement","innerText","parentNode","insertBefore","addLabelForFormElement","addEventListener","e","preventDefault","style","display","showAndManageAnonymousForm"],"sourceRoot":""}