text: !function(e){var a={};function t(n){if(a[n])return a[n].exports;var r=a[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,t),r.l=!0,r.exports}t.m=e,t.c=a,t.d=function(e,a,n){t.o(e,a)||Object.defineProperty(e,a,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,a){if(1&a&&(e=t(e)),8&a)return e;if(4&a&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&a&&"string"!=typeof e)for(var r in e)t.d(n,r,function(a){return e[a]}.bind(null,r));return n},t.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(a,"a",a),a},t.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},t.p="",t(t.s=2)}([function(e,a){e.exports=React},function(e,a){e.exports=ReactDOM},function(e,a,t){"use strict";t.r(a);var n=t(0),r=t.n(n),d=t(1),i=t.n(d),o={autoComplete:{Off:"off",On:"on",Name:"name","Honorific: Prefix":"honorific-prefix","Given Name":"given-name","Additional Name":"additional-name","Family Name":"family-name","Honorific: Suffix":"honorific-suffix",Nickname:"nickname",Email:"email",Username:"username","New Password":"new-password","Current Password":"current-password","Organization Title":"organization-title",Organization:"organization","Street Address":"street-address","Address Line 1":"address-line1","Address Line 2":"address-line2","Address Line 3":"address-line3","Address Level 4":"address-level4","Address Level 3":"address-level3","Address Level 2":"address-level2","Address Level 1":"address-level1",Country:"country","Country Name":"country-name","Postal Code":"postal-code","Credit Card: Name":"cc-name","Credit Card: Given Name":"cc-given-name","Credit Card: Additional Name":"cc-additional-name","Credit Card: Family Name":"cc-family-name","Credit Card: Number":"cc-number","Credit Card: Expiry":"cc-exp","Credit Card: Expiry Month":"cc-exp-month","Credit Card: Expiry Year":"cc-exp-year","Credit Card: CSC":"cc-csc","Credit Card: Type":"cc-type","Transaction: Currency":"transaction-currency","Transaction: Amount":"transaction-amount",Language:"language",Birthday:"bday","Birthday: Day":"bday-day","Birthday: Month":"bday-month","Birthday: Year":"bday-year",Sex:"sex",Telephone:"tel","Telephone: Country Code":"tel-country-code","Telephone: National":"tel-national","Telephone: Area Code":"tel-area-code","Telephone: Local":"tel-local","Telephone: Extension":"tel-extension",IMPP:"impp",URL:"url",Photo:"photo"},autoComplete2:{Off:"off",On:"on",Name:"name","Honorific: Prefix":"honorific-prefix","Given Name":"given-name","Additional Name":"additional-name","Family Name":"family-name","Honorific: Suffix":"honorific-suffix",Nickname:"nickname",Email:"email",Username:"username","New Password":"new-password","Current Password":"current-password","Organization Title":"organization-title",Organization:"organization","Street Address":"street-address","Address Line 1":"address-line1","Address Line 2":"address-line2","Address Line 3":"address-line3","Address Level 4":"address-level4","Address Level 3":"address-level3","Address Level 2":"address-level2","Address Level 1":"address-level1",Country:"country","Country Name":"country-name","Postal Code":"postal-code","Credit Card: Name":"cc-name","Credit Card: Given Name":"cc-given-name","Credit Card: Additional Name":"cc-additional-name","Credit Card: Family Name":"cc-family-name","Credit Card: Number":"cc-number","Credit Card: Expiry":"cc-exp","Credit Card: Expiry Month":"cc-exp-month","Credit Card: Expiry Year":"cc-exp-year","Credit Card: CSC":"cc-csc","Credit Card: Type":"cc-type","Transaction: Currency":"transaction-currency","Transaction: Amount":"transaction-amount",Language:"language",Birthday:"bday","Birthday: Day":"bday-day","Birthday: Month":"bday-month","Birthday: Year":"bday-year",Sex:"sex",Telephone:"tel","Telephone: Country Code":"tel-country-code","Telephone: National":"tel-national","Telephone: Area Code":"tel-area-code","Telephone: Local":"tel-local","Telephone: Extension":"tel-extension",IMPP:"impp",URL:"url",Photo:"photo"},autoComplete3:{Off:"off",On:"on",Name:"name","Honorific: Prefix":"honorific-prefix","Given Name":"given-name","Additional Name":"additional-name","Family Name":"family-name","Honorific: Suffix":"honorific-suffix",Nickname:"nickname",Email:"email",Username:"username","New Password":"new-password","Current Password":"current-password","Organization Title":"organization-title",Organization:"organization","Street Address":"street-address","Address Line 1":"address-line1","Address Line 2":"address-line2","Address Line 3":"address-line3","Address Level 4":"address-level4","Address Level 3":"address-level3","Address Level 2":"address-level2","Address Level 1":"address-level1",Country:"country","Country Name":"country-name","Postal Code":"postal-code","Credit Card: Name":"cc-name","Credit Card: Given Name":"cc-given-name","Credit Card: Additional Name":"cc-additional-name","Credit Card: Family Name":"cc-family-name","Credit Card: Number":"cc-number","Credit Card: Expiry":"cc-exp","Credit Card: Expiry Month":"cc-exp-month","Credit Card: Expiry Year":"cc-exp-year","Credit Card: CSC":"cc-csc","Credit Card: Type":"cc-type","Transaction: Currency":"transaction-currency","Transaction: Amount":"transaction-amount",Language:"language",Birthday:"bday","Birthday: Day":"bday-day","Birthday: Month":"bday-month","Birthday: Year":"bday-year",Sex:"sex",Telephone:"tel","Telephone: Country Code":"tel-country-code","Telephone: National":"tel-national","Telephone: Area Code":"tel-area-code","Telephone: Local":"tel-local","Telephone: Extension":"tel-extension",IMPP:"impp",URL:"url",Photo:"photo"}},l=function(e){var a=e.error,t=e.hintId,r=e.errorId,d=e.label,i=e.hint,l=e.id,s=e.dayId,c=e.name,u=e.disabled,m=e.readOnly,p=e.autoFocus,y=e.value,g=e.spellCheck,C=e.autoComplete,h=e.onChange,f=e.monthId,v=e.name2,x=e.disabled2,b=e.readOnly2,N=e.autoFocus2,E=e.value2,I=e.spellCheck2,A=e.autoComplete2,L=e.onChange2,O=e.yearId,T=e.name3,w=e.disabled3,_=e.readOnly3,P=e.autoFocus3,S=e.value3,F=e.spellCheck3,z=e.autoComplete3,M=e.onChange3;return n.createElement("div",{className:"g-dateInput-form-group".concat(a?" g-dateInput-form-group--error":"")},n.createElement("fieldset",{"aria-describedby":void 0!==t||void 0!==r?"".concat(t||"").concat(r?" "+r:""):void 0,className:"g-dateInput-fieldset",role:"group"},n.createElement("legend",{className:"g-dateInput-fieldset__legend g-dateInput-fieldset__legend--xl"},void 0!==d?d:n.createElement(n.Fragment,null,"Example label")),n.createElement("span",{className:"g-dateInput-hint",id:t},void 0!==i?i:n.createElement(n.Fragment,null,"Example hint")),void 0!==a?n.createElement(n.Fragment,null,n.createElement("span",{className:"g-dateInput-error-message",id:r},n.createElement("span",{className:"g-dateInput-visually-hidden"},"Error: "),void 0!==a?a:n.createElement(n.Fragment,null,"Example error"))):"",n.createElement("div",{className:"g-dateInput-date-input",id:l},n.createElement("div",{className:"g-dateInput-date-input__item"},n.createElement("div",{className:"g-dateInput-form-group"},n.createElement("label",{className:"g-dateInput-label g-dateInput-date-input__label",htmlFor:s},"Day"),n.createElement("input",{className:"g-dateInput-input g-dateInput-date-input__input g-dateInput-input--width-2".concat(a?" g-dateInput-input--error":""),id:s,maxLength:2,name:c,pattern:"[0-9]*",type:"text",disabled:u,readOnly:m,autoFocus:p,value:y,spellCheck:g,autoComplete:o.autoComplete[C],onChange:h}))),n.createElement("div",{className:"g-dateInput-date-input__item"},n.createElement("div",{className:"g-dateInput-form-group"},n.createElement("label",{className:"g-dateInput-label g-dateInput-date-input__label",htmlFor:f},"Month"),n.createElement("input",{className:"g-dateInput-input g-dateInput-date-input__input g-dateInput-input--width-2".concat(a?" g-dateInput-input--error":""),id:f,maxLength:2,name:v,pattern:"[0-9]*",type:"text",disabled:x,readOnly:b,autoFocus:N,value:E,spellCheck:I,autoComplete:o.autoComplete2[A],onChange:L}))),n.createElement("div",{className:"g-dateInput-date-input__item"},n.createElement("div",{className:"g-dateInput-form-group"},n.createElement("label",{className:"g-dateInput-label govuk-date-input__label",htmlFor:O},"Year"),n.createElement("input",{className:"g-dateInput-input g-dateInput-date-input__input g-dateInput-input--width-4".concat(a?" g-dateInput-input--error":""),id:O,maxLength:4,name:T,pattern:"[0-9]*",type:"text",disabled:w,readOnly:_,autoFocus:P,value:S,spellCheck:F,autoComplete:o.autoComplete3[z],onChange:M}))))))},s={styleSize:{xlarge:"g-heading-xl",large:"g-heading-l",medium:"g-heading-m",small:"g-heading-s",xsmall:"g-heading-xs",xxsmall:"g-heading-xxs"}},c=function(e){var a=e.styleSize,t=e.marginBottom8,r=e.marginBottom0,d=e.id,i=e.children;return n.createElement("h1",{className:"".concat(void 0!==s.styleSize[a]?s.styleSize[a]:"").concat(t?" g-heading-mb-8":"").concat(r?" g-heading-mb-0":""),id:d},void 0!==i?i:n.createElement(n.Fragment,null,"Example text"))};function u(e,a){return function(e){if(Array.isArray(e))return e}(e)||function(e,a){var t=[],n=!0,r=!1,d=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done)&&(t.push(i.value),!a||t.length!==a);n=!0);}catch(e){r=!0,d=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw d}}return t}(e,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function m(){return(m=Object.assign||function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}var p=function(e){var a=e.children;return r.a.createElement(n.Fragment,null,a)},y=function(e){return r.a.createElement(p,m({title:"Example: Date input"},g({})),r.a.createElement(l,m({id:"passport-issued",hintId:"passport-issued-hint",dayId:"passport-issued-day",monthId:"passport-issued-month",yearId:"passport-issued-year",label:r.a.createElement(c,{styleSize:"large",marginBottom0:!0},"When was your passport issued?"),hint:"For example, 12 11 2007"},g({}))))},g=function(e){var a=u(Object(n.useState)(e&&e.value),2),t=a[0],r=a[1],d=u(Object(n.useState)(e&&e.value2),2),i=d[0],o=d[1],l=u(Object(n.useState)(e&&e.value3),2),s=l[0],c=l[1];return{value:t,value2:i,value3:s,onChange:function(e){return r(e.target.value)},onChange2:function(e){return o(e.target.value)},onChange3:function(e){return c(e.target.value)}}};document.addEventListener("DOMContentLoaded",function(){var e=document.querySelector("#root");e?i.a.hydrate(r.a.createElement(y,null),e,window.afterRender):console.error("Couldn't find app mount point ","#root")})}]);