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3BD,cAAe,YAEbsE,EAAS,CAAC,EAKhB,OAJAN,EAAcO,SAAQ,SAACL,GACnB,IAAMM,EAAQJ,EAAQF,GACtBI,EAAOJ,GAAYM,EAAMC,KAAKvC,EAClC,IACOoC,CACX,CACO,SAAS9C,EAAmBU,EAAUd,GACzC,IAAMsD,EAAmBhD,EAA2BQ,EAAUd,GAAa,GAC3E,OAAQ0B,OAAO6B,OAAOD,GAAkBE,UAAS,EACrD,C","sources":["webpack://@pb/react/./node_modules/@pb/components/dist/esm/ui/Fields/PasswordInput/PasswordInput.module.scss","webpack://@pb/react/./node_modules/@pb/components/dist/esm/ui/Fields/PasswordInput/PasswordInput.module.scss?709d","webpack://@pb/react/./node_modules/@hm-group/fabric-icons/dist/esm/icons/brand/monki/InputValidIcon/InputValidIconSmall.js","webpack://@pb/react/./node_modules/@hm-group/fabric-icons/dist/esm/icons/brand-switches/InputValidIcon.js","webpack://@pb/react/./node_modules/@pb/components/dist/esm/ui/Fields/PasswordInput/PasswordInput.js","webpack://@pb/react/./node_modules/@pb/components/dist/esm/ui/Fields/PasswordInput/validate.js"],"sourcesContent":["// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../../../css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(true);\n// Module\nexports.push([module.id, \".PasswordInput-module--inputWrapper__wM7nS{position:relative}.PasswordInput-module--checkIcon__IFbvk{display:inline-block;height:18px;width:18px}.PasswordInput-module--checkIcon__IFbvk path{fill:#1f313a}.PasswordInput-module--crossIcon__1uPiC{display:inline-block;height:12px;width:12px}.PasswordInput-module--crossIcon__1uPiC path{fill:#f20074}.PasswordInput-module--safetyCheckExplicit__3Cp35{color:#f20074;display:flex;align-items:center}.PasswordInput-module--safetyCheck__3XFuP{color:#1f313a;display:flex;align-items:center}.PasswordInput-module--safetyCheckPass__-i1uC{color:#1f313a}.PasswordInput-module--showHidePasswordButton__3NUbA{position:absolute;right:8px;top:50%;transform:translateY(-50%);background:none;border:0;font:inherit;text-transform:uppercase;cursor:pointer;padding:0}.PasswordInput-module--error__2i1Wh{color:#f20074}.PasswordInput-module--passwordMeter__2alR8{display:flex;align-items:center}.PasswordInput-module--passwordMeterBar__2oP0l{height:16px;margin:0 5px;display:inline-flex}.PasswordInput-module--safetyCheckWrapper__2Y7v3{display:flex;flex-wrap:wrap;gap:0 8px}.PasswordInput-module--passwordMeterBar__2oP0l[data-password-strength-score=\\\"0\\\"]{background-blend-mode:multiply;background-color:#fdcbe3;background-image:linear-gradient(135deg, #FDCBE3 25%, transparent 25%, transparent 50%, #FDCBE3 50%, #FDCBE3 75%, transparent 75%, transparent 100%);background-size:5px 5px;width:50px}.PasswordInput-module--passwordMeterBar__2oP0l[data-password-strength-score=\\\"1\\\"]{background-blend-mode:multiply;background-color:#fdcbe3;background-image:linear-gradient(135deg, #FDCBE3 25%, transparent 25%, transparent 50%, #FDCBE3 50%, #FDCBE3 75%, transparent 75%, transparent 100%);background-size:5px 5px;width:50px}.PasswordInput-module--passwordMeterBar__2oP0l[data-password-strength-score=\\\"2\\\"]{background:#FFD4CD;width:100px}.PasswordInput-module--passwordMeterBar__2oP0l[data-password-strength-score=\\\"3\\\"]{background:#FFD4CD;width:100px}.PasswordInput-module--passwordMeterBar__2oP0l[data-password-strength-score=\\\"4\\\"]{background:#1F313A;width:150px}.PasswordInput-module--passwordMeterBar__2oP0l[data-password-strength-score=\\\"4\\\"]{color:#1f313a}.PasswordInput-module--passwordStrengthText__18eDy[data-password-strength-score=\\\"4\\\"]{color:#1f313a}html[dir=rtl] .PasswordInput-module--showHidePasswordButton__3NUbA{right:auto;left:4px}.PasswordInput-module--safetyCheckFC__8BJF2:last-of-type .PasswordInput-module--checkIconFC__2WSLi,.PasswordInput-module--safetyCheckFC__8BJF2:last-of-type .PasswordInput-module--crossIconFC__1ha97{margin-right:0}.PasswordInput-module--safetyCheckFC__8BJF2 .PasswordInput-module--checkIconFC__2WSLi path{fill:#1f313a}.PasswordInput-module--safetyCheckFC__8BJF2 .PasswordInput-module--crossIconFC__1ha97 path{fill:#f20074}.PasswordInput-module--safetyCheckFC__8BJF2 .PasswordInput-module--checkIconFC__2WSLi,.PasswordInput-module--safetyCheckFC__8BJF2 .PasswordInput-module--crossIconFC__1ha97{display:inline-block;margin:0 2px 0 4px}\", \"\",{\"version\":3,\"sources\":[\"/home/vsts/work/1/s/packages/hm-react/node_modules/@pb/components/dist/esm/ui/Fields/PasswordInput/PasswordInput.module.scss\"],\"names\":[],\"mappings\":\"AAGA,2CACE,iBAAA,CAGF,wCACE,oBAAA,CACA,WAAA,CACA,UAAA,CAEA,6CACE,YAb20C,CAiB/0C,wCACE,oBAAA,CACA,WAAA,CACA,UAAA,CAEA,6CACE,YAvB22C,CA2B/2C,kDACE,aA5B62C,CA6B72C,YAAA,CACA,kBAAA,CAGF,0CACE,aAlC6b,CAmC7b,YAAA,CACA,kBAAA,CAGF,8CACE,aAxC60C,CA2C/0C,qDACE,iBAAA,CACA,SAAA,CACA,OAAA,CACA,0BAAA,CACA,eAAA,CACA,QAAA,CACA,YAAA,CACA,wBAAA,CACA,cAAA,CACA,SAAA,CAGF,oCACE,aAzD62C,CA4D/2C,4CACE,YAAA,CACA,kBAAA,CAGF,+CACE,WAAA,CACA,YAAA,CACA,mBAAA,CAGF,iDACE,YAAA,CACA,cAAA,CACA,SAAA,CAmBA,iFAEI,8BAAA,CACA,wBAhGkT,CAiGlT,oJApBI,CAqBJ,uBAAA,CAIF,UAAA,CATF,iFAEI,8BAAA,CACA,wBAhGkT,CAiGlT,oJApBI,CAqBJ,uBAAA,CAIF,UAAA,CATF,iFAOI,kBAAA,CAEF,WAAA,CATF,iFAOI,kBAAA,CAEF,WAAA,CATF,iFAOI,kBAAA,CAEF,WAAA,CAIJ,iFACE,aA3G60C,CA8G/0C,qFACE,aA/G60C,CAoH70C,mEACE,UAAA,CACA,QAtHm5Z,CA6Hn5Z,sMAEE,cAAA,CAKF,2FACE,YArIy0C,CA0I30C,2FACE,YA3Iy2C,CA+I72C,4KAEE,oBAAA,CACA,kBAAA\",\"file\":\"PasswordInput.module.scss\",\"sourcesContent\":[\"$base-background-default: #FFF;$base-background-card: #FFF;$base-background-overlay: rgba(255, 255, 255, 0.7);$base-background-footer: #FECDD3;$base-background-row-alternate: #E6E6E6;$base-background-row-hover: #F4F4F4;$base-background-success: #BDDDB6;$base-background-selected: #F4F4F4;$base-background-error: #FDCBE3;$base-background-warning: #FFD4CD;$base-background-info: #DEDBED;$base-favourite: #E50010;$base-text: #1F313A;$base-text-meta: #1F313A;$base-text-placeholder: #1F313A;$base-text-disabled: #C6C6C6;$base-primary-interactive: #1F313A;$base-primary-interactive-active: rgba(31, 49, 58, 0.5);$base-primary-interactive-hover: rgba(31, 49, 58, 0.75);$base-primary-interactive-visited: #1F313A;$base-secondary-interactive: #1F313A;$base-secondary-interactive-active: #1F313A;$base-secondary-interactive-hover: #C6C6C6;$base-tertiary-interactive: #1F313A;$base-tertiary-interactive-active: #1F313A;$base-tertiary-interactive-hover: #1F313A;$base-tertiary-interactive-disabled: #8C9599;$base-quaternary-interactive: #1F313A;$base-quaternary-interactive-active: #1F313A;$base-quaternary-interactive-hover: #1F313A;$base-quaternary-interactive-disabled: #8C9599;$base-primary-reverse: #FFF;$base-primary-reverse-interactive-active: #D9D9D9;$base-primary-reverse-interactive-hover: #E6E6E6;$base-interactive-disabled: #C6C6C6;$base-validation-success: #1F313A;$base-validation-error: #F20074;$base-notification: #F20074;$base-background-skeleton: #F4F4F4;$base-z-axis-shadow: rgba(31, 49, 58, 0.2);$product-sale: #E71D18;$product-sustainability: #FFF;$product-new: #FECDD3;$product-offer-product-marker: #E71D18;$product-membership: #FECDD3;$product-online-exclusive: #1F313A;$product-scarcity: #A50AFF;$base-brand-logo: #1F313A;$base-decoration-primary: #1F313A;$base-decoration-secondary: #C6C6C6;$responsive-width-xsmall: 320px !default;$responsive-width-small: 420px !default;$responsive-width-medium: 768px !default;$responsive-width-large: 1024px !default;$responsive-width-xlarge: 1280px !default;$responsive-width-xxl: 2560px !default;$energy-class-app: #27974F;$energy-class-ap: #59AD4F;$energy-class-a: #BBCE4C;$energy-class-b: #FFED42;$energy-class-c: #F0B041;$energy-class-d: #DE6637;$energy-class-e: #D22531;$color-paypal-blue: #223954;$color-paypal-blue-light: #169BD7;$color-kakao-yellow: #FEE500;$color-kakao-yellow-active: #F0D700;$color-kakao-text: rgba(0, 0, 0, 0.85);$color-kakao-icon: #000;$color-facebook: #39579B;$color-twitter: #1EA9E3;$color-pinterest: #CD1D1E;$color-instagram: #125688;$color-spotify: #00E461;$color-snapchat: #FFFC00;$color-tumblr: #35465C;$color-google-plus: #D34836;$color-youtube: #F00;$color-linkedin: #0077B7;$tag-swatch-beige: #ECCC9B;$tag-swatch-black: #000000;$tag-swatch-blue: #0000FF;$tag-swatch-bronze: #CD7F32;$tag-swatch-brown: #A52A2A;$tag-swatch-gold: #D89A00;$tag-swatch-green: #008000;$tag-swatch-grey: #808080;$tag-swatch-orange: #FFA500;$tag-swatch-pink: #FFC0CB;$tag-swatch-purple: #800080;$tag-swatch-red: #FF0000;$tag-swatch-silver: #C0C0C0;$tag-swatch-turquoise: #40E0D0;$tag-swatch-white: #FFFFFF;$tag-swatch-yellow: #FFDA00;$focus-fallback: #0091FF;$high-contrast-dark: #000000;$high-contrast-light: #FFFFFF;$editorial-fonts: ('display-quote': ('font-family': (\\\"InterTight\\\", \\\"Circular-Book-S\\\", \\\"Helvetica Neue-Light\\\", \\\"Helvetica Neue\\\", \\\"Helvetica\\\", Arial, sans-serif),'font-weight': 700,'text-transform': none,'default-size': ('line-height': 1.25,'font-size': 2.5rem,),'breakpoint-medium': ('line-height': 1.09375,'font-size': 4rem,),),'preamble': ('font-family': (\\\"InterTight\\\", \\\"Circular-Book-S\\\", \\\"Helvetica Neue-Light\\\", \\\"Helvetica Neue\\\", \\\"Helvetica\\\", Arial, sans-serif),'font-weight': 400,'text-transform': none,'default-size': ('line-height': 1.5,'font-size': 1rem,),),'body-text': ('font-family': (\\\"InterTight\\\", \\\"Circular-Book-S\\\", \\\"Helvetica Neue-Light\\\", \\\"Helvetica Neue\\\", \\\"Helvetica\\\", Arial, sans-serif),'font-weight': 400,'text-transform': none,'default-size': ('line-height': 1.5,'font-size': 1rem,),),'text-link': ('font-family': (\\\"InterTight\\\", \\\"Circular-Book-S\\\", \\\"Helvetica Neue-Light\\\", \\\"Helvetica Neue\\\", \\\"Helvetica\\\", Arial, sans-serif),'font-weight': 400,'text-transform': none,'text-decoration': underline,'default-size': ('line-height': 1.5,'font-size': 1rem,),),);$body-text-fonts: ('default': ('font-family': (\\\"InterTight\\\", \\\"Circular-Book-S\\\", \\\"Helvetica Neue-Light\\\", \\\"Helvetica Neue\\\", \\\"Helvetica\\\", Arial, sans-serif),'font-weight': 400,'text-transform': none,'default-size': ('line-height': 1.5,'font-size': 1rem,),),'meta': ('font-family': (\\\"InterTight\\\", \\\"Circular-Book-S\\\", \\\"Helvetica Neue-Light\\\", \\\"Helvetica Neue\\\", \\\"Helvetica\\\", Arial, sans-serif),'font-weight': 400,'text-transform': none,'default-size': ('line-height': 1.538461538,'font-size': 0.8125rem,),),'paragraph': ('font-family': (\\\"InterTight\\\", \\\"Circular-Book-S\\\", \\\"Helvetica Neue-Light\\\", \\\"Helvetica Neue\\\", \\\"Helvetica\\\", Arial, sans-serif),'font-weight': 400,'text-transform': none,'default-size': ('line-height': 1.5,'font-size': 1rem,),),'preamble': ('font-family': (\\\"InterTight\\\", \\\"Circular-Book-S\\\", \\\"Helvetica Neue-Light\\\", \\\"Helvetica Neue\\\", \\\"Helvetica\\\", Arial, sans-serif),'font-weight': 400,'text-transform': none,'default-size': ('line-height': 1.5,'font-size': 1rem,),),);$button-fonts: ('s': ('font-family': (\\\"InterTight\\\", \\\"Circular-Book-S\\\", \\\"Helvetica Neue-Light\\\", \\\"Helvetica Neue\\\", \\\"Helvetica\\\", Arial, sans-serif),'font-weight': 700,'text-transform': none,'default-size': ('line-height': 1.4,'font-size': 1.25rem,),),);$heading-fonts: ('xs': ('font-family': (\\\"InterTight\\\", \\\"Circular-Book-S\\\", \\\"Helvetica Neue-Light\\\", \\\"Helvetica Neue\\\", \\\"Helvetica\\\", Arial, sans-serif),'font-weight': 400,'text-transform': none,'default-size': ('line-height': 1.538461538,'font-size': 0.8125rem,),),'s': ('font-family': (\\\"InterTight\\\", \\\"Circular-Book-S\\\", \\\"Helvetica Neue-Light\\\", \\\"Helvetica Neue\\\", \\\"Helvetica\\\", Arial, sans-serif),'font-weight': 700,'text-transform': none,'default-size': ('line-height': 1.5,'font-size': 1rem,),),'m': ('font-family': (\\\"InterTight\\\", \\\"Circular-Book-S\\\", \\\"Helvetica Neue-Light\\\", \\\"Helvetica Neue\\\", \\\"Helvetica\\\", Arial, sans-serif),'font-weight': 700,'text-transform': none,'default-size': ('line-height': 1.3333,'font-size': 1.125rem,),),'l': ('font-family': (\\\"InterTight\\\", \\\"Circular-Book-S\\\", \\\"Helvetica Neue-Light\\\", \\\"Helvetica Neue\\\", \\\"Helvetica\\\", Arial, sans-serif),'font-weight': 700,'text-transform': none,'default-size': ('line-height': 1.4,'font-size': 1.25rem,),'breakpoint-medium': ('line-height': 1.25,'font-size': 1.5rem,),),'xl': ('font-family': (\\\"InterTight\\\", \\\"Circular-Book-S\\\", \\\"Helvetica Neue-Light\\\", \\\"Helvetica Neue\\\", \\\"Helvetica\\\", Arial, sans-serif),'font-weight': 700,'text-transform': none,'default-size': ('line-height': 1.25,'font-size': 1.5rem,),'breakpoint-medium': ('line-height': 1.25,'font-size': 2rem,),),'pre-heading': ('font-family': (\\\"InterTight\\\", \\\"Circular-Book-S\\\", \\\"Helvetica Neue-Light\\\", \\\"Helvetica Neue\\\", \\\"Helvetica\\\", Arial, sans-serif),'font-weight': 400,'text-transform': none,'default-size': ('line-height': 1.5,'font-size': 1rem,),),);$display-fonts: ('default': ('font-family': (\\\"InterTight\\\", \\\"Circular-Book-S\\\", \\\"Helvetica Neue-Light\\\", \\\"Helvetica Neue\\\", \\\"Helvetica\\\", Arial, sans-serif),'font-weight': 700,'text-transform': none,'default-size': ('line-height': 1.25,'font-size': 2.125rem,),'breakpoint-medium': ('line-height': 1.09375,'font-size': 4rem,),),'quote': ('font-family': (\\\"InterTight\\\", \\\"Circular-Book-S\\\", \\\"Helvetica Neue-Light\\\", \\\"Helvetica Neue\\\", \\\"Helvetica\\\", Arial, sans-serif),'font-weight': 700,'text-transform': none,'font-style': italic,'default-size': ('line-height': 1.5,'font-size': 3rem,),'breakpoint-medium': ('line-height': 1.09375,'font-size': 4rem,),),);$price-fonts: ('original-default': ('font-family': (\\\"InterTight\\\", \\\"Circular-Book-S\\\", \\\"Helvetica Neue-Light\\\", \\\"Helvetica Neue\\\", \\\"Helvetica\\\", Arial, sans-serif),'font-weight': 400,'text-transform': none,'text-decoration': line-through,'default-size': ('line-height': 1.5,'font-size': 1rem,),),'original-large': ('font-family': (\\\"InterTight\\\", \\\"Circular-Book-S\\\", \\\"Helvetica Neue-Light\\\", \\\"Helvetica Neue\\\", \\\"Helvetica\\\", Arial, sans-serif),'font-weight': 400,'text-transform': none,'text-decoration': line-through,'default-size': ('line-height': 1.5,'font-size': 1rem,),),'black-default': ('font-family': (\\\"InterTight\\\", \\\"Circular-Book-S\\\", \\\"Helvetica Neue-Light\\\", \\\"Helvetica Neue\\\", \\\"Helvetica\\\", Arial, sans-serif),'font-weight': 400,'text-transform': none,'default-size': ('line-height': 1.5,'font-size': 1rem,),),'black-large': ('font-family': (\\\"InterTight\\\", \\\"Circular-Book-S\\\", \\\"Helvetica Neue-Light\\\", \\\"Helvetica Neue\\\", \\\"Helvetica\\\", Arial, sans-serif),'font-weight': 400,'text-transform': none,'default-size': ('line-height': 1.5,'font-size': 1rem,),),'previous-meta': ('font-family': (\\\"InterTight\\\", \\\"Circular-Book-S\\\", \\\"Helvetica Neue-Light\\\", \\\"Helvetica Neue\\\", \\\"Helvetica\\\", Arial, sans-serif),'font-weight': 400,'text-transform': none,'text-decoration': line-through,'default-size': ('line-height': 1.538461538,'font-size': 0.8125rem,),),);$label-fonts: ('form-label': ('font-family': (\\\"InterTight\\\", \\\"Circular-Book-S\\\", \\\"Helvetica Neue-Light\\\", \\\"Helvetica Neue\\\", \\\"Helvetica\\\", Arial, sans-serif),'font-weight': 400,'text-transform': none,'default-size': ('line-height': 1.5,'font-size': 1rem,),),);$interactive-fonts: ('navigation-parent': ('font-family': (\\\"InterTight\\\", \\\"Circular-Book-S\\\", \\\"Helvetica Neue-Light\\\", \\\"Helvetica Neue\\\", \\\"Helvetica\\\", Arial, sans-serif),'font-weight': 400,'text-transform': none,'text-decoration': none,'default-size': ('line-height': 1.2857,'font-size': 1.75rem,),'breakpoint-medium': ('line-height': 1.5,'font-size': 1rem,),),'navigation-child': ('font-family': (\\\"InterTight\\\", \\\"Circular-Book-S\\\", \\\"Helvetica Neue-Light\\\", \\\"Helvetica Neue\\\", \\\"Helvetica\\\", Arial, sans-serif),'font-weight': 400,'text-transform': none,'text-decoration': none,'default-size': ('line-height': 1.5,'font-size': 1rem,),),'navigation-large': ('font-family': (\\\"InterTight\\\", \\\"Circular-Book-S\\\", \\\"Helvetica Neue-Light\\\", \\\"Helvetica Neue\\\", \\\"Helvetica\\\", Arial, sans-serif),'font-weight': 400,'text-transform': none,'text-decoration': none,'default-size': ('line-height': 1.2857,'font-size': 1.75rem,),'breakpoint-medium': ('line-height': 1.5,'font-size': 1rem,),),'navigation-medium': ('font-family': (\\\"InterTight\\\", \\\"Circular-Book-S\\\", \\\"Helvetica Neue-Light\\\", \\\"Helvetica Neue\\\", \\\"Helvetica\\\", Arial, sans-serif),'font-weight': 400,'text-transform': none,'text-decoration': none,'default-size': ('line-height': 1.5,'font-size': 1rem,),),'navigation-small': ('font-family': (\\\"InterTight\\\", \\\"Circular-Book-S\\\", \\\"Helvetica Neue-Light\\\", \\\"Helvetica Neue\\\", \\\"Helvetica\\\", Arial, sans-serif),'font-weight': 400,'text-transform': none,'text-decoration': none,'default-size': ('line-height': 1.2307,'font-size': 0.8125rem,),),'inline-link-default': ('font-family': (\\\"InterTight\\\", \\\"Circular-Book-S\\\", \\\"Helvetica Neue-Light\\\", \\\"Helvetica Neue\\\", \\\"Helvetica\\\", Arial, sans-serif),'font-weight': 400,'text-transform': none,'text-decoration': underline,'default-size': ('line-height': 1.5,'font-size': 1rem,),),'inline-link-meta': ('font-family': (\\\"InterTight\\\", \\\"Circular-Book-S\\\", \\\"Helvetica Neue-Light\\\", \\\"Helvetica Neue\\\", \\\"Helvetica\\\", Arial, sans-serif),'font-weight': 400,'text-transform': none,'text-decoration': underline,'default-size': ('line-height': 1.538461538,'font-size': 0.8125rem,),),'inline-link-paragraph': ('font-family': (\\\"InterTight\\\", \\\"Circular-Book-S\\\", \\\"Helvetica Neue-Light\\\", \\\"Helvetica Neue\\\", \\\"Helvetica\\\", Arial, sans-serif),'font-weight': 400,'text-transform': none,'text-decoration': underline,'default-size': ('line-height': 1.5,'font-size': 1rem,),),'inline-link-preamble': ('font-family': (\\\"InterTight\\\", \\\"Circular-Book-S\\\", \\\"Helvetica Neue-Light\\\", \\\"Helvetica Neue\\\", \\\"Helvetica\\\", Arial, sans-serif),'font-weight': 400,'text-transform': none,'text-decoration': underline,'default-size': ('line-height': 1.5,'font-size': 1rem,),),'standalone-link': ('font-family': (\\\"InterTight\\\", \\\"Circular-Book-S\\\", \\\"Helvetica Neue-Light\\\", \\\"Helvetica Neue\\\", \\\"Helvetica\\\", Arial, sans-serif),'font-weight': 700,'text-transform': none,'default-size': ('line-height': 1.5,'font-size': 1rem,),),'standalone-link-default': ('font-family': (\\\"InterTight\\\", \\\"Circular-Book-S\\\", \\\"Helvetica Neue-Light\\\", \\\"Helvetica Neue\\\", \\\"Helvetica\\\", Arial, sans-serif),'font-weight': 400,'text-transform': none,'text-decoration': none,'default-size': ('line-height': 1.52,'font-size': 1rem,),),'standalone-link-underline': ('font-family': (\\\"InterTight\\\", \\\"Circular-Book-S\\\", \\\"Helvetica Neue-Light\\\", \\\"Helvetica Neue\\\", \\\"Helvetica\\\", Arial, sans-serif),'font-weight': 400,'text-decoration': underline,'text-transform': none,'default-size': ('line-height': 1.52,'font-size': 1rem,),),'input-text': ('font-family': (\\\"InterTight\\\", \\\"Circular-Book-S\\\", \\\"Helvetica Neue-Light\\\", \\\"Helvetica Neue\\\", \\\"Helvetica\\\", Arial, sans-serif),'font-weight': 400,'text-transform': none,'default-size': ('line-height': 1.3333,'font-size': 1.125rem,),),'element': ('font-family': (\\\"InterTight\\\", \\\"Circular-Book-S\\\", \\\"Helvetica Neue-Light\\\", \\\"Helvetica Neue\\\", \\\"Helvetica\\\", Arial, sans-serif),'font-weight': 700,'text-transform': none,'default-size': ('line-height': 1.4,'font-size': 1.25rem,),),);$spacing-xxxs: 2px;$spacing-xxs: 4px;$spacing-xs: 8px;$spacing-s: 16px;$spacing-m: 24px;$spacing-l: 32px;$spacing-xl: 40px;$spacing-xxl: 48px;$spacing-xxxl: 64px;$spacing-xxxxl: 96px;$spacing-xxxxxl: 128px;$spacing-xxxxxxl: 160px;$spacing-xs-deprecated: 12px;$is-development: true;$is-staging: false;$is-production: false;$interactive-border: ('radius': 0,'width': 1px,);$card-border: ('radius': 0,'width': 0px,);$section-border: ('radius': 0,'width': 0px,);$available-palettes: ();$default-palette: ('background': $base-background-default,'text': $base-text,'headline': $base-text,'logo': $base-brand-logo,'interactive': $base-decoration-secondary,'interactive-hover': $base-primary-interactive,'interactive-active': $base-primary-interactive-hover,'interactive-reverse': $base-primary-interactive-active,);$theme: 'monki';\\n@import \\\"../../../assets/scss/variables\\\";\\n\\n.inputWrapper {\\n position: relative;\\n}\\n\\n.checkIcon {\\n display: inline-block;\\n height: 18px;\\n width: 18px;\\n\\n path {\\n fill: $base-validation-success;\\n }\\n}\\n\\n.crossIcon {\\n display: inline-block;\\n height: 12px;\\n width: 12px;\\n\\n path {\\n fill: $base-validation-error;\\n }\\n}\\n\\n.safetyCheckExplicit {\\n color: $base-validation-error;\\n display: flex;\\n align-items: center;\\n}\\n\\n.safetyCheck {\\n color: $base-text-meta;\\n display: flex;\\n align-items: center;\\n}\\n\\n.safetyCheckPass {\\n color: $base-validation-success;\\n}\\n\\n.showHidePasswordButton {\\n position: absolute;\\n right: 8px;\\n top: 50%;\\n transform: translateY(-50%);\\n background: none;\\n border: 0;\\n font: inherit;\\n text-transform: uppercase;\\n cursor: pointer;\\n padding: 0;\\n}\\n\\n.error {\\n color: $base-validation-error;\\n}\\n\\n.passwordMeter {\\n display: flex;\\n align-items: center;\\n}\\n\\n.passwordMeterBar {\\n height: 16px;\\n margin: 0 5px;\\n display: inline-flex;\\n}\\n\\n.safetyCheckWrapper {\\n display: flex;\\n flex-wrap: wrap;\\n gap: 0 $spacing-xs;\\n}\\n\\n$weak-bg: linear-gradient(\\n 135deg,\\n $base-background-error 25%,\\n transparent 25%,\\n transparent 50%,\\n $base-background-error 50%,\\n $base-background-error 75%,\\n transparent 75%,\\n transparent 100%\\n);\\n\\n$strength: (0, $base-background-error, 50), (1, $base-background-error, 50),\\n (2, $base-background-warning, 100), (3, $base-background-warning, 100),\\n (4, $base-validation-success, 150);\\n\\n@each $score, $color, $width in $strength {\\n .passwordMeterBar[data-password-strength-score='#{$score}'] {\\n @if $score < 2 {\\n background-blend-mode: multiply;\\n background-color: $base-background-error;\\n background-image: $weak-bg;\\n background-size: 5px 5px;\\n } @else {\\n background: #{$color};\\n }\\n width: #{$width}px;\\n }\\n}\\n\\n.passwordMeterBar[data-password-strength-score='4'] {\\n color: $base-validation-success;\\n}\\n\\n.passwordStrengthText[data-password-strength-score='4'] {\\n color: $base-validation-success;\\n}\\n\\n//rtl\\nhtml[dir='rtl'] {\\n .showHidePasswordButton {\\n right: auto;\\n left: $spacing-xxs;\\n }\\n}\\n\\n/* START Fabric Component/Icons alignments */\\n.safetyCheckFC {\\n &:last-of-type {\\n .checkIconFC,\\n .crossIconFC {\\n margin-right: 0;\\n }\\n }\\n\\n .checkIconFC {\\n path {\\n fill: $base-validation-success;\\n }\\n }\\n\\n .crossIconFC {\\n path {\\n fill: $base-validation-error;\\n }\\n }\\n\\n .checkIconFC,\\n .crossIconFC {\\n display: inline-block;\\n margin: 0 $spacing-xxxs 0 $spacing-xxs;\\n }\\n}\\n/* END Fabric Component/Icons alignments */\\n\"]}]);\n// Exports\nexports.locals = {\n\t\"inputWrapper\": \"PasswordInput-module--inputWrapper__wM7nS\",\n\t\"checkIcon\": \"PasswordInput-module--checkIcon__IFbvk\",\n\t\"crossIcon\": \"PasswordInput-module--crossIcon__1uPiC\",\n\t\"safetyCheckExplicit\": \"PasswordInput-module--safetyCheckExplicit__3Cp35\",\n\t\"safetyCheck\": \"PasswordInput-module--safetyCheck__3XFuP\",\n\t\"safetyCheckPass\": \"PasswordInput-module--safetyCheckPass__-i1uC\",\n\t\"showHidePasswordButton\": \"PasswordInput-module--showHidePasswordButton__3NUbA\",\n\t\"error\": \"PasswordInput-module--error__2i1Wh\",\n\t\"passwordMeter\": \"PasswordInput-module--passwordMeter__2alR8\",\n\t\"passwordMeterBar\": \"PasswordInput-module--passwordMeterBar__2oP0l\",\n\t\"safetyCheckWrapper\": \"PasswordInput-module--safetyCheckWrapper__2Y7v3\",\n\t\"passwordStrengthText\": \"PasswordInput-module--passwordStrengthText__18eDy\",\n\t\"safetyCheckFC\": \"PasswordInput-module--safetyCheckFC__8BJF2\",\n\t\"checkIconFC\": \"PasswordInput-module--checkIconFC__2WSLi\",\n\t\"crossIconFC\": \"PasswordInput-module--crossIconFC__1ha97\"\n};\nmodule.exports = exports;\n","import api from \"!../../../../../../../style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import content from \"!!../../../../../../../css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!../../../../../../../postcss-loader/dist/cjs.js!../../../../../../../sass-loader/dist/cjs.js??ruleSet[1].rules[0].use[3]!./PasswordInput.module.scss\";\n\nvar options = {};\n\noptions.insert = \"head\";\noptions.singleton = false;\n\nvar update = api(content, options);\n\n\n\nexport default content.locals || {};","import React from 'react';\nimport IconWrapper from '../../../IconWrapper';\nconst InputValidIconSmall = (props) => (React.createElement(IconWrapper, { size: \"small\", ...props },\n React.createElement(\"path\", { d: \"m14.703 4.71-9.19 9.097-4.216-4.172 1.406-1.422 2.81 2.78 7.784-7.704 1.406 1.422Z\" })));\nexport default InputValidIconSmall;\n//# sourceMappingURL=InputValidIconSmall.js.map","import React from 'react';\nimport { InputValidIconSmall as HmIconSmall, InputValidIconMedium as HmIconMedium, InputValidIcon as HmIcon, } from '../brand/hm/InputValidIcon';\nimport { InputValidIconSmall as HmGroupIconSmall, InputValidIconMedium as HmGroupIconMedium, InputValidIcon as HmGroupIcon, } from '../brand/hmGroup/InputValidIcon';\nimport { InputValidIconSmall as MonkiIconSmall, InputValidIconMedium as MonkiIconMedium, InputValidIcon as MonkiIcon, } from '../brand/monki/InputValidIcon';\nimport { InputValidIconSmall as NorthstarIconSmall, InputValidIconMedium as NorthstarIconMedium, InputValidIcon as NorthstarIcon, } from '../brand/northstar/InputValidIcon';\nimport { InputValidIconSmall as OSIconSmall, InputValidIconMedium as OSIconMedium, InputValidIcon as OSIcon, } from '../brand/otherStories/InputValidIcon';\nexport const InputValidIconSmall = (props) => {\n switch (process.env.BRAND) {\n case 'hmGroup':\n return React.createElement(HmGroupIconSmall, { ...props });\n case 'monki':\n return React.createElement(MonkiIconSmall, { ...props });\n case 'northstar':\n return React.createElement(NorthstarIconSmall, { ...props });\n case 'otherStories':\n return React.createElement(OSIconSmall, { ...props });\n case 'hm':\n default:\n return React.createElement(HmIconSmall, { ...props });\n }\n};\nexport const InputValidIconMedium = (props) => {\n switch (process.env.BRAND) {\n case 'hmGroup':\n return React.createElement(HmGroupIconMedium, { ...props });\n case 'monki':\n return React.createElement(MonkiIconMedium, { ...props });\n case 'northstar':\n return React.createElement(NorthstarIconMedium, { ...props });\n case 'otherStories':\n return React.createElement(OSIconMedium, { ...props });\n case 'hm':\n default:\n return React.createElement(HmIconMedium, { ...props });\n }\n};\nexport const InputValidIcon = (props) => {\n switch (process.env.BRAND) {\n case 'hmGroup':\n return React.createElement(HmGroupIcon, { ...props });\n case 'monki':\n return React.createElement(MonkiIcon, { ...props });\n case 'northstar':\n return React.createElement(NorthstarIcon, { ...props });\n case 'otherStories':\n return React.createElement(OSIcon, { ...props });\n case 'hm':\n default:\n return React.createElement(HmIcon, { ...props });\n }\n};\nexport default InputValidIcon;\n//# sourceMappingURL=InputValidIcon.js.map","import { __rest } from \"tslib\";\nimport React, { useState, lazy, Suspense } from 'react';\nimport { CloseIconSmall } from \"@hm-group/fabric-icons/icons/CloseIcon\";\nimport { InputValidIconSmall } from \"@hm-group/fabric-icons/icons/InputValidIcon\";\nimport cn from 'classnames';\nimport { CheckmarkerIcon, CrossIcon } from \"../../Icon\";\nimport BodyText from \"../../Typography/texts/BodyText\";\nimport ScreenReaderOnlyText from '../../../helpers/ScreenReaderOnlyText';\nimport BaseInput from '../BaseInput';\nimport Field from '../Field';\nimport styles from './PasswordInput.module.scss';\nimport { REGEXES_ORDER, getValidationResultsByRule, getIsValidPassword } from './validate';\nconst PasswordMeter = lazy(() => import(/* webpackChunkName: \"password-meter\" */ './PasswordMeter'));\nconst SafetyCheck = ({ name, passed, shouldUseExplicitValidation, isFCSolution = false, }) => {\n return (React.createElement(\"span\", { \"aria-live\": \"polite\", className: cn(shouldUseExplicitValidation ? styles.safetyCheckExplicit : styles.safetyCheck, passed && styles.safetyCheckPass, isFCSolution && styles.safetyCheckFC) },\n name,\n passed && (React.createElement(React.Fragment, null,\n isFCSolution ? (React.createElement(InputValidIconSmall, { \"data-testid\": \"checkmarkIcon\", className: styles.checkIconFC })) : (React.createElement(CheckmarkerIcon, { \"data-testid\": \"checkmarkIcon\", className: styles.checkIcon })),\n React.createElement(ScreenReaderOnlyText, null, `${name} passed`))),\n !passed && shouldUseExplicitValidation && (React.createElement(React.Fragment, null,\n isFCSolution ? (React.createElement(CloseIconSmall, { \"data-testid\": \"crossIcon\", className: styles.crossIconFC })) : (React.createElement(CrossIcon, { \"data-testid\": \"crossIcon\", className: styles.crossIcon })),\n React.createElement(ScreenReaderOnlyText, null, `${name} not passed`)))));\n};\nconst DEFAULT_LABELS = {\n enoughCharacters: '8 characters',\n enoughNumbers: '1 number',\n enoughUppercaseCharacters: '1 uppercase',\n enoughLowercaseCharacters: '1 lowercase',\n showPassword: 'show',\n hidePassword: 'hide',\n passwordStrength: 'Password strength',\n passwordStrengthMeterText: {},\n};\nconst PasswordInput = (_a) => {\n var { value, required = false, name, hint, label, onChange, copyLabels = DEFAULT_LABELS, shouldDisableValidation, disableSecureCheck, disableLabel, error, className, shouldHideTextAfterInput, disablePasswordMeter = false, isFCSolution = false, minLength = 8 } = _a, restProps = __rest(_a, [\"value\", \"required\", \"name\", \"hint\", \"label\", \"onChange\", \"copyLabels\", \"shouldDisableValidation\", \"disableSecureCheck\", \"disableLabel\", \"error\", \"className\", \"shouldHideTextAfterInput\", \"disablePasswordMeter\", \"isFCSolution\", \"minLength\"]);\n DEFAULT_LABELS.enoughCharacters = `${minLength} characters`;\n const allChecksPassed = getIsValidPassword(value, minLength);\n const validationResults = getValidationResultsByRule(value, minLength);\n const [isFieldFocused, setIsFieldFocused] = useState(false);\n const [isFieldBlurred, setIsFieldBlurred] = useState(false);\n const renderSecureCheck = () => {\n if (disableSecureCheck) {\n return null;\n }\n return (React.createElement(\"div\", null,\n React.createElement(Suspense, { fallback: null },\n React.createElement(PasswordMeter, { isVisible: allChecksPassed && !disablePasswordMeter && !isFCSolution, value: value, label: copyLabels.passwordStrength, text: copyLabels.passwordStrengthMeterText })),\n React.createElement(\"div\", { className: cn(styles.safetyCheckWrapper, isFCSolution && styles.safetyCheckWrapperFC) }, REGEXES_ORDER.map((regexKey) => (React.createElement(SafetyCheck, { key: regexKey, name: copyLabels[regexKey], passed: validationResults[regexKey], shouldUseExplicitValidation: isFieldFocused || isFieldBlurred, isFCSolution: isFCSolution }))))));\n };\n const handleChange = (event) => {\n if (!onChange) {\n return;\n }\n const password = event.target.value;\n onChange(password, getIsValidPassword(password, minLength));\n };\n const [shouldShowPassword, setShouldShowPassword] = useState(false);\n const renderShowHidePasswordButton = () => {\n return (React.createElement(\"button\", { role: \"switch\", \"aria-checked\": shouldShowPassword, \"data-testid\": \"showHideButton\", className: styles.showHidePasswordButton, type: \"button\", onClick: () => setShouldShowPassword(!shouldShowPassword) },\n React.createElement(BodyText, { Tag: \"span\", className: cn(error && styles.error) }, shouldShowPassword ? copyLabels.hidePassword : copyLabels.showPassword)));\n };\n return (React.createElement(Field, { isPassword: true, shouldDisableValidation: shouldDisableValidation, shouldShowValidationIcon: false, disableLabel: disableLabel, required: required, name: name, inputID: name, hint: hint, label: label, error: error, value: value, className: className, shouldHideTextAfterInput: !disableSecureCheck, render: ({ validationStatus }) => {\n return (React.createElement(React.Fragment, null,\n React.createElement(\"div\", { className: styles.inputWrapper },\n React.createElement(BaseInput, Object.assign({}, restProps, { \"aria-required\": required, required: required, type: shouldShowPassword ? 'text' : 'password', id: name, isInvalid: validationStatus === 'invalid', value: value, name: name, onChange: handleChange, autoComplete: \"current-password\", isFCSolution: isFCSolution, onFocus: () => {\n setIsFieldFocused(true);\n }, onBlur: (event) => {\n setIsFieldFocused(false);\n setIsFieldBlurred(true);\n if (restProps === null || restProps === void 0 ? void 0 : restProps.onBlur) {\n restProps.onBlur(event);\n }\n } })),\n renderShowHidePasswordButton()),\n renderSecureCheck()));\n } }));\n};\nexport default PasswordInput;\n//# sourceMappingURL=PasswordInput.js.map","export const REGEXES_ORDER = [\n 'enoughCharacters',\n 'enoughLowercaseCharacters',\n 'enoughUppercaseCharacters',\n 'enoughNumbers',\n];\nexport function getValidationResultsByRule(password, minLength) {\n const minLengthRegex = new RegExp(`^.{${minLength},}$`);\n const REGEXES = {\n enoughCharacters: minLengthRegex,\n enoughLowercaseCharacters: /(?=.*[a-z])/,\n enoughUppercaseCharacters: /(?=.*[A-Z])/,\n enoughNumbers: /(?=.*\\d)/,\n };\n const result = {};\n REGEXES_ORDER.forEach((regexKey) => {\n const regex = REGEXES[regexKey];\n result[regexKey] = regex.test(password);\n });\n return result;\n}\nexport function getIsValidPassword(password, minLength) {\n const validationResult = getValidationResultsByRule(password, minLength || 8);\n return !Object.values(validationResult).includes(false);\n}\n//# sourceMappingURL=validate.js.map"],"names":["exports","___CSS_LOADER_API_IMPORT___","push","module","id","locals","options","props","React","IconWrapper","size","d","InputValidIconSmall","MonkiIconSmall","PasswordMeter","lazy","SafetyCheck","name","passed","shouldUseExplicitValidation","isFCSolution","className","cn","styles","safetyCheckExplicit","safetyCheck","safetyCheckPass","safetyCheckFC","checkIconFC","CheckmarkerIcon","checkIcon","ScreenReaderOnlyText","CloseIconSmall","crossIconFC","CrossIcon","crossIcon","DEFAULT_LABELS","enoughCharacters","enoughNumbers","enoughUppercaseCharacters","enoughLowercaseCharacters","showPassword","hidePassword","passwordStrength","passwordStrengthMeterText","_a","value","required","hint","label","onChange","copyLabels","shouldDisableValidation","disableSecureCheck","disableLabel","error","shouldHideTextAfterInput","disablePasswordMeter","minLength","restProps","__rest","allChecksPassed","getIsValidPassword","validationResults","getValidationResultsByRule","useState","isFieldFocused","setIsFieldFocused","isFieldBlurred","setIsFieldBlurred","handleChange","event","password","target","shouldShowPassword","setShouldShowPassword","Field","isPassword","shouldShowValidationIcon","inputID","render","validationStatus","inputWrapper","BaseInput","Object","assign","type","isInvalid","autoComplete","onFocus","onBlur","role","showHidePasswordButton","onClick","BodyText","Tag","Suspense","fallback","isVisible","text","safetyCheckWrapper","safetyCheckWrapperFC","REGEXES_ORDER","map","regexKey","key","REGEXES","RegExp","result","forEach","regex","test","validationResult","values","includes"],"sourceRoot":""}