/*! For license information please see 5830.app.bundle.js.LICENSE.txt */
"use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[4164,5830],{4164:function(e,a,t){t.r(a),t.d(a,{c:function(){return i}});var r,o={exports:{}};r=o,function(){var e={}.hasOwnProperty;function a(){for(var t=[],r=0;r<arguments.length;r++){var o=arguments[r];if(o){var i=typeof o;if("string"===i||"number"===i)t.push(o);else if(Array.isArray(o)){if(o.length){var n=a.apply(null,o);n&&t.push(n)}}else if("object"===i)if(o.toString===Object.prototype.toString)for(var c in o)e.call(o,c)&&o[c]&&t.push(c);else t.push(o.toString())}}return t.join(" ")}r.exports?(a.default=a,r.exports=a):window.classNames=a}();var i=o.exports},5830:function(e,a,t){t.r(a),t.d(a,{va_privacy_agreement:function(){return i}});var r=t(9213),o=t(4164),i=function(){function e(e){var a=this;(0,r.r)(this,e),this.componentLibraryAnalytics=(0,r.c)(this,"component-library-analytics",7),this.vaChange=(0,r.c)(this,"vaChange",7),this.handleCheckboxChange=function(e){a.checked=e.target.checked,a.vaChange.emit({checked:a.checked}),a.enableAnalytics&&a.componentLibraryAnalytics.emit({componentName:"va-privacy-agreement",action:"click",details:{checked:a.checked}})},this.checked=!1,this.showError=!1,this.enableAnalytics=!1}return e.prototype.errorMessage=function(){return this.showError&&!this.checked?"You must accept the privacy policy before continuing.":null},e.prototype.render=function(){var e=(0,o.c)({"usa-label--error":this.showError});return(0,r.h)(r.H,{key:"addee93a7c7cabac9016da6e40ff259b502ce823"},(0,r.h)("va-checkbox",{key:"4d1434e0166ebdb9ab7e09fcf9f2b3bd48079b3f",required:!0,error:this.errorMessage(),id:"checkbox",label:"I have read and accept the privacy policy.",checked:this.checked,onVaChange:this.handleCheckboxChange},(0,r.h)("span",{key:"a5fe33437ef915c0cdad4ea9cd0ffd807ba758a3",class:"".concat(e," description"),slot:"description"},"Please read and accept the ",(0,r.h)("va-link",{key:"8ae27a7e2ade8a43b1960bab9de0b69289168ac3",href:"/privacy-policy/",text:"privacy policy",external:!0}),".")))},e}();i.style='.sr-only{border:0;clip:rect(0, 0, 0, 0);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute !important;width:1px;word-wrap:normal !important}button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role=\'option\']:focus,*[tabindex]:focus,a.va-sidenav-submenu__link:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px}.usa-sr-only{position:absolute;left:-999em;right:auto}.usa-label{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3;display:block;font-weight:normal;margin-top:1.5rem;max-width:30rem}.usa-label--error{font-weight:700;margin-top:0}.usa-label--required{color:#b50909}:host{display:block}va-checkbox::part(checkbox){max-width:100%}a{color:var(--vads-color-link)}.privacy-policy-icon{margin-left:4px;vertical-align:text-top}'}}]);