/** * @fileoverview This file is generated by the Angular template compiler. * Do not edit. * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride} */ /* tslint:disable */ import * as i0 from '@angular/core'; import * as i1 from './switch-button.component'; import * as i2 from '@angular/forms'; import * as i3 from '@angular/common'; const styles_SwitchButtonComponent:any[] = ['@charset "UTF-8";\n\n[_ngcontent-%COMP%]:root {\n --color-white: white;\n --color-success: #00afec;\n --color-warning: #ffb827;\n --color-error: #f35252;\n --color-disabled: #dbdbdb;\n --color-black: black;\n --color-span: #b5b5b5;\n --color-span-second: #212121;\n --color-bg: #f8f8f8;\n --color-bg-second: #f8f8f8;\n --color-bg-success: rgba(0, 175, 236, 0.1);\n --color-bg-warning: var(--color-warning);\n --color-bg-error: var(--color-error);\n --color-placeholder: #b5b5b5;\n --color-border: #dbdbdb;\n --color-radio-border: #d3d3d3;\n --font-roboto: \'Roboto\', sans-serif;\n --font-helvetica: \'Helvetica\', sans-serif; }\n\n\n\n.gp-switch-button[_ngcontent-%COMP%] {\n font: bold 1.4rem/1.6rem "Roboto", sans-serif;\n position: relative;\n padding: 1rem 3rem 0.9rem;\n cursor: pointer;\n -moz-transition: all 100ms ease;\n -o-transition: all 100ms ease;\n -webkit-transition: all 100ms ease;\n transition: all 100ms ease;\n text-align: center;\n border: 0.1rem solid rgba(0, 0, 0, 0.01);\n border-radius: 0.2rem; }\n .gp-switch-button[_ngcontent-%COMP%]:after {\n position: absolute;\n top: 0.2rem;\n right: 0.2rem;\n bottom: 0.2rem;\n left: 0.2rem;\n display: block;\n width: 1.3rem;\n margin-right: calc(100% - 1.7rem);\n content: \'\';\n -moz-transition: all 300ms ease;\n -o-transition: all 300ms ease;\n -webkit-transition: all 300ms ease;\n transition: all 300ms ease;\n border-radius: 0.1rem;\n background-color: var(--color-white);\n box-shadow: 0 0.2rem 0.4rem 0 rgba(0, 0, 0, 0.15); }\n .gp-switch-button[_ngcontent-%COMP%]:active:after, .gp-switch-button--active[_ngcontent-%COMP%]:after {\n margin-left: calc(100% - 1.7rem);\n border-color: rgba(0, 0, 0, 0.1); }\n .gp-switch-button[_ngcontent-%COMP%]:disabled, .gp-switch-button--disabled[_ngcontent-%COMP%] {\n cursor: not-allowed;\n background-color: #f8f8f8; }\n .gp-switch-button--small[_ngcontent-%COMP%] {\n padding: 0.7rem 2.5rem; }\n .gp-switch-button--success[_ngcontent-%COMP%] {\n background-color: var(--color-bg-success);\n color: #00afec; }\n .gp-switch-button--success[_ngcontent-%COMP%]:active, .gp-switch-button--success.gp-switch-button--active[_ngcontent-%COMP%] {\n background-color: #00afec;\n color: var(--color-white); }\n .gp-switch-button--error[_ngcontent-%COMP%] {\n background-color: rgba(243, 82, 82, 0.1);\n color: #f35252; }\n .gp-switch-button--error[_ngcontent-%COMP%]:active, .gp-switch-button--error.gp-switch-button--active[_ngcontent-%COMP%] {\n background-color: #f35252;\n color: var(--color-white); }\n .gp-switch-button--warning[_ngcontent-%COMP%] {\n background-color: rgba(255, 184, 39, 0.1);\n color: #ffb827; }\n .gp-switch-button--warning[_ngcontent-%COMP%]:active, .gp-switch-button--warning.gp-switch-button--active[_ngcontent-%COMP%] {\n background-color: #ffb827;\n color: var(--color-white); }\n .gp-switch-button--grey[_ngcontent-%COMP%] {\n background-color: #f8f8f8; }\n .gp-switch-button--grey[_ngcontent-%COMP%]:active, .gp-switch-button--grey.gp-switch-button--active[_ngcontent-%COMP%] {\n background-color: #f0f0f0; }\n .gp-switch-button--white[_ngcontent-%COMP%] {\n border-color: #f0f0f0;\n background-color: var(--color-white); }\n .gp-switch-button--white[_ngcontent-%COMP%]:disabled {\n color: #b5b5b5; }']; export const RenderType_SwitchButtonComponent:i0.RendererType2 = i0.ɵcrt({encapsulation:0, styles:styles_SwitchButtonComponent,data:{}}); export function View_SwitchButtonComponent_0(_l:any):i0.ɵViewDefinition { return i0.ɵvid(0,[(_l()(),i0.ɵted(-1,(null as any),['\n'])),(_l()(),i0.ɵeld(1,0, (null as any),(null as any),5,'button',[['ngDefaultControl','']],[[8,'disabled', 0]],[[(null as any),'click'],[(null as any),'input'],[(null as any),'blur'], [(null as any),'compositionstart'],[(null as any),'compositionend']],(_v, en,$event) => { var ad:boolean = true; var _co:i1.SwitchButtonComponent = _v.component; if (('input' === en)) { const pd_0:any = ((i0.ɵnov(_v,5)._handleInput($event.target.value)) !== false); ad = (pd_0 && ad); } if (('blur' === en)) { const pd_1:any = ((i0.ɵnov(_v,5).onTouched()) !== false); ad = (pd_1 && ad); } if (('compositionstart' === en)) { const pd_2:any = ((i0.ɵnov(_v,5)._compositionStart()) !== false); ad = (pd_2 && ad); } if (('compositionend' === en)) { const pd_3:any = ((i0.ɵnov(_v,5)._compositionEnd($event.target.value)) !== false); ad = (pd_3 && ad); } if (('click' === en)) { const pd_4:any = ((_co.toggleClass()) !== false); ad = (pd_4 && ad); } return ad; },(null as any),(null as any))),i0.ɵprd(5120,(null as any),i2.NG_VALUE_ACCESSOR, (p0_0:any) => { return [p0_0]; },[i2.DefaultValueAccessor]),i0.ɵdid(3,278528,(null as any),0,i3.NgClass,[i0.IterableDiffers, i0.KeyValueDiffers,i0.ElementRef,i0.Renderer],{klass:[0,'klass'],ngClass:[1, 'ngClass']},(null as any)),i0.ɵpad(4,4),i0.ɵdid(5,16384,(null as any),0,i2.DefaultValueAccessor, [i0.Renderer2,i0.ElementRef,[2,i2.COMPOSITION_BUFFER_MODE]],(null as any),(null as any)), (_l()(),i0.ɵted(6,(null as any),['',''])),(_l()(),i0.ɵted(-1,(null as any),['\n\n'])), (_l()(),i0.ɵted(-1,(null as any),['\n']))],(_ck,_v) => { var _co:i1.SwitchButtonComponent = _v.component; const currVal_1:any = i0.ɵinlineInterpolate(1,'gp-switch-button ',_co.extraClass, ''); const currVal_2:any = _ck(_v,4,0,(!!_co.state? ('gp-switch-button--' + _co.state): ''), (!!_co.size? ('gp-switch-button--' + _co.size): ''),(_co.disabled? 'gp-switch-button--disabled': ''), (_co.checked? 'gp-switch-button--active': '')); _ck(_v,3,0,currVal_1,currVal_2); },(_ck,_v) => { var _co:i1.SwitchButtonComponent = _v.component; const currVal_0:any = _co.disabled; _ck(_v,1,0,currVal_0); const currVal_3:any = _co.text; _ck(_v,6,0,currVal_3); }); } export function View_SwitchButtonComponent_Host_0(_l:any):i0.ɵViewDefinition { return i0.ɵvid(0,[(_l()(),i0.ɵeld(0,0,(null as any),(null as any),2,'gp-switch-button', ([] as any[]),(null as any),(null as any),(null as any),View_SwitchButtonComponent_0, RenderType_SwitchButtonComponent)),i0.ɵprd(5120,(null as any),i2.NG_VALUE_ACCESSOR, (p0_0:any) => { return [p0_0]; },[i1.SwitchButtonComponent]),i0.ɵdid(2,2146304,(null as any),0,i1.SwitchButtonComponent, [i0.ElementRef],(null as any),(null as any))],(null as any),(null as any)); } export const SwitchButtonComponentNgFactory:i0.ComponentFactory = i0.ɵccf('gp-switch-button', i1.SwitchButtonComponent,View_SwitchButtonComponent_Host_0,{text:'text',state:'state', size:'size',checked:'checked',disabled:'disabled'},{},([] as any[])); //# sourceMappingURL=data:application/json;base64,eyJmaWxlIjoiL1VzZXJzL2FsZXhpcy93b3Jrc3BhY2UvZ3JlZW5waWUvZ3AtYWRtaW4tdXgvLmJ1aWxkL3NyYy9jb21wb25lbnRzL3N3aXRjaC1idXR0b24vc3dpdGNoLWJ1dHRvbi5jb21wb25lbnQubmdmYWN0b3J5LnRzIiwidmVyc2lvbiI6Mywic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsibmc6Ly8vVXNlcnMvYWxleGlzL3dvcmtzcGFjZS9ncmVlbnBpZS9ncC1hZG1pbi11eC8uYnVpbGQvc3JjL2NvbXBvbmVudHMvc3dpdGNoLWJ1dHRvbi9zd2l0Y2gtYnV0dG9uLmNvbXBvbmVudC50cyIsIm5nOi8vL1VzZXJzL2FsZXhpcy93b3Jrc3BhY2UvZ3JlZW5waWUvZ3AtYWRtaW4tdXgvLmJ1aWxkL3NyYy9jb21wb25lbnRzL3N3aXRjaC1idXR0b24vc3dpdGNoLWJ1dHRvb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