inferyx-codegate 1.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. codegate/__init__.py +8 -0
  2. codegate/__main__.py +3 -0
  3. codegate/api/__init__.py +0 -0
  4. codegate/api/admin.py +457 -0
  5. codegate/api/deps.py +36 -0
  6. codegate/api/devproxy.py +132 -0
  7. codegate/api/public.py +371 -0
  8. codegate/app.py +115 -0
  9. codegate/auth/__init__.py +0 -0
  10. codegate/auth/csrf.py +43 -0
  11. codegate/auth/native.py +111 -0
  12. codegate/auth/passwords.py +88 -0
  13. codegate/auth/saml.py +222 -0
  14. codegate/auth/sessions.py +121 -0
  15. codegate/cli/__init__.py +0 -0
  16. codegate/cli/auth_cmd.py +168 -0
  17. codegate/cli/backup_cmd.py +114 -0
  18. codegate/cli/common.py +103 -0
  19. codegate/cli/doctor_cmd.py +136 -0
  20. codegate/cli/main.py +526 -0
  21. codegate/cli/nginx_setup.py +220 -0
  22. codegate/cli/setup_cmd.py +401 -0
  23. codegate/cli/ssh_setup.py +114 -0
  24. codegate/cli/upgrade_cmd.py +209 -0
  25. codegate/config.py +161 -0
  26. codegate/db.py +297 -0
  27. codegate/errors.py +122 -0
  28. codegate/jobs.py +133 -0
  29. codegate/pages.py +177 -0
  30. codegate/resources/__init__.py +20 -0
  31. codegate/resources/docker/Dockerfile +36 -0
  32. codegate/resources/nginx/codegate.conf.tmpl +51 -0
  33. codegate/resources/nginx/map.conf +5 -0
  34. codegate/resources/nginx/site.conf.tmpl +9 -0
  35. codegate/resources/nginx/user.conf.tmpl +19 -0
  36. codegate/resources/systemd/codegate-backup.service.tmpl +7 -0
  37. codegate/resources/systemd/codegate-backup.timer +10 -0
  38. codegate/resources/systemd/codegate.service.tmpl +20 -0
  39. codegate/static/admin/3rdpartylicenses.txt +614 -0
  40. codegate/static/admin/chunk-0r_p7pcB.js +672 -0
  41. codegate/static/admin/chunk-BoGqYCjO.js +1260 -0
  42. codegate/static/admin/chunk-BqiJ460N.js +1269 -0
  43. codegate/static/admin/chunk-BtoaIoDj.js +449 -0
  44. codegate/static/admin/chunk-CB4E-q63.js +255 -0
  45. codegate/static/admin/chunk-CMN75K3s.js +181 -0
  46. codegate/static/admin/chunk-CW_CPa20.js +106 -0
  47. codegate/static/admin/chunk-CcgsCK7w.js +393 -0
  48. codegate/static/admin/chunk-Cjwyuum6.js +375 -0
  49. codegate/static/admin/chunk-D6j6hnz3.js +1 -0
  50. codegate/static/admin/chunk-D9RytJgO.js +1 -0
  51. codegate/static/admin/chunk-DA6TldFU.js +35 -0
  52. codegate/static/admin/chunk-DFGdyoNb.js +1 -0
  53. codegate/static/admin/chunk-DXvCZ3pT.js +1 -0
  54. codegate/static/admin/chunk-DstgVdtz.js +27 -0
  55. codegate/static/admin/chunk-kPDFCwHP.js +102 -0
  56. codegate/static/admin/chunk-yikJ2ObQ.js +1 -0
  57. codegate/static/admin/favicon.ico +0 -0
  58. codegate/static/admin/index.html +14 -0
  59. codegate/static/admin/main-LWBML7JF.js +2347 -0
  60. codegate/static/admin/media/material-icons-JLIDJUWE.woff +0 -0
  61. codegate/static/admin/media/material-icons-LEZCGFVT.woff2 +0 -0
  62. codegate/static/admin/styles-YWRWGLKG.css +1 -0
  63. codegate/system/__init__.py +27 -0
  64. codegate/system/base.py +165 -0
  65. codegate/system/devdocker.py +90 -0
  66. codegate/system/fake.py +199 -0
  67. codegate/system/real.py +493 -0
  68. codegate/system/shell.py +40 -0
  69. codegate/users.py +262 -0
  70. codegate/workspace.py +355 -0
  71. inferyx_codegate-1.1.0.dist-info/METADATA +217 -0
  72. inferyx_codegate-1.1.0.dist-info/RECORD +74 -0
  73. inferyx_codegate-1.1.0.dist-info/WHEEL +4 -0
  74. inferyx_codegate-1.1.0.dist-info/entry_points.txt +2 -0
@@ -0,0 +1,449 @@
1
+ import{t as g}from"./chunk-DA6TldFU.js";import{l as Vt}from"./chunk-BoGqYCjO.js";import{$n as eC,An as Yo,Ar as oe,Cn as Wn,Cr as ma,Dn as Xs,Dt as Hw,En as Xi,Et as Hg,Ft as Ko,Gt as Nt,Hn as ae$1,Ir as qr,Nt as Ke,On as Y,Qn as db,Rt as Lg,Sr as m,St as Gn,Tr as me,Xn as ct,bn as Wd,bt as Fa,dt as Cb,f as de,hn as Uw,hr as jg,ii as zw,ir as g$1,jn as Ys,kn as Ye,kr as od,l as _,mn as Ug,nn as Pp,pn as Te,ri as zo,rt as $r,sn as Qo,tr as fe,wt as Gy,xt as Gg,yt as F3}from"./main-LWBML7JF.js";var ae=new g$1(`mat-slide-toggle-default-options`,{providedIn:`root`,factory:()=>({disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1})});var u=class{source;checked;constructor(K,t){this.source=K,this.checked=t}};var ie=(()=>{class a{_elementRef=m(oe);_focusMonitor=m(Fa);_changeDetectorRef=m(eC);defaults=m(ae);_injector=m(Y);_signalFormField=null;_onChange=t=>{};_onTouched=()=>{};_validatorOnChange=()=>{};_uniqueId;_checked=!1;_createChangeEvent(t){return new u(this,t)}_labelId;get buttonId(){return`${this.id||this._uniqueId}-button`}_switchElement;focus(){this._switchElement.nativeElement.focus()}_noopAnimations=qr();_focused=!1;name=null;id;labelPosition=`after`;ariaLabel=null;ariaLabelledby=null;ariaDescribedby;required=!1;color;disabled=!1;fullWidth=!1;disableRipple=!1;tabIndex=0;get checked(){return this._checked}set checked(t){this._checked=t,this._changeDetectorRef.markForCheck()}hideIcon;disabledInteractive;change=new me;toggleChange=new me;get inputId(){return`${this.id||this._uniqueId}-input`}constructor(){m(Nt).load(Gy);let t=m(new ma(`tabindex`),{optional:!0}),i=this.defaults;this.tabIndex=t==null?0:parseInt(t)||0,this.color=i.color||`accent`,this.id=this._uniqueId=m(Wd).getId(`mat-mdc-slide-toggle-`),this.hideIcon=i.hideIcon??!1,this.disabledInteractive=i.disabledInteractive??!1,this._labelId=this._uniqueId+`-label`}ngOnInit(){this._signalFormField=this._injector.get(Vt,void 0,{optional:!0,self:!0})}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{t===`keyboard`||t===`program`?(this._focused=!0,this._changeDetectorRef.markForCheck()):t||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnChanges(t){t.required&&this._validatorOnChange()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(t){this.checked=!!t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}validate(t){return this.required&&t.value!==!0&&!this._signalFormField?{required:!0}:null}registerOnValidatorChange(t){this._validatorOnChange=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}_handleClick(){this.disabled||(this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new u(this,this.checked))))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static ɵfac=function(i){return new(i||a)};static ɵcmp=(function(){let t=[`switch`],i=[`*`];function ee(l,c){l&1&&(Ys(0,`span`,11),Pp(),Ys(1,`svg`,13),jg(2,`path`,14),od(),Ys(3,`svg`,15),jg(4,`path`,16),od()())}return Te({type:a,selectors:[[`mat-slide-toggle`]],viewQuery:function(c,e){if(c&1&&Gg(t,5),c&2){let o;Hw(o=Uw())&&(e._switchElement=o.first)}},hostAttrs:[1,`mat-mdc-slide-toggle`],hostVars:15,hostBindings:function(c,e){c&2&&(Hg(`id`,e.id),Wn(`tabindex`,null)(`aria-label`,null)(`name`,null)(`aria-labelledby`,null),Qo(e.color?`mat-`+e.color:``),ct(`mat-mdc-slide-toggle-focused`,e._focused)(`mat-mdc-slide-toggle-checked`,e.checked)(`mat-slide-toggle-full-width`,e.fullWidth)(`_mat-animation-noopable`,e._noopAnimations))},inputs:{name:`name`,id:`id`,labelPosition:`labelPosition`,ariaLabel:[0,`aria-label`,`ariaLabel`],ariaLabelledby:[0,`aria-labelledby`,`ariaLabelledby`],ariaDescribedby:[0,`aria-describedby`,`ariaDescribedby`],required:[2,`required`,`required`,Ke],color:`color`,disabled:[2,`disabled`,`disabled`,Ke],fullWidth:[2,`fullWidth`,`fullWidth`,Ke],disableRipple:[2,`disableRipple`,`disableRipple`,Ke],tabIndex:[2,`tabIndex`,`tabIndex`,l=>l==null?0:Cb(l)],checked:[2,`checked`,`checked`,Ke],hideIcon:[2,`hideIcon`,`hideIcon`,Ke],disabledInteractive:[2,`disabledInteractive`,`disabledInteractive`,Ke]},outputs:{change:`change`,toggleChange:`toggleChange`},exportAs:[`matSlideToggle`],features:[db([{provide:de,useExisting:Xi(()=>a),multi:!0},{provide:_,useExisting:a,multi:!0}]),Xs],ngContentSelectors:i,decls:14,vars:27,consts:[[`switch`,``],[`mat-internal-form-field`,``,3,`labelPosition`],[`role`,`switch`,`type`,`button`,1,`mdc-switch`,3,`click`,`tabIndex`,`disabled`],[1,`mat-mdc-slide-toggle-touch-target`],[1,`mdc-switch__track`],[1,`mdc-switch__handle-track`],[1,`mdc-switch__handle`],[1,`mdc-switch__shadow`],[1,`mdc-elevation-overlay`],[1,`mdc-switch__ripple`],[`mat-ripple`,``,1,`mat-mdc-slide-toggle-ripple`,`mat-focus-indicator`,3,`matRippleTrigger`,`matRippleDisabled`,`matRippleCentered`],[1,`mdc-switch__icons`],[1,`mdc-label`,3,`click`,`for`],[`viewBox`,`0 0 24 24`,`aria-hidden`,`true`,1,`mdc-switch__icon`,`mdc-switch__icon--on`],[`d`,`M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z`],[`viewBox`,`0 0 24 24`,`aria-hidden`,`true`,1,`mdc-switch__icon`,`mdc-switch__icon--off`],[`d`,`M20 13H4v-2h16v2z`]],template:function(c,e){if(c&1&&(Gn(),Ys(0,`div`,1)(1,`button`,2,0),Ug(`click`,function(){return e._handleClick()}),jg(3,`div`,3)(4,`span`,4),Ys(5,`span`,5)(6,`span`,6)(7,`span`,7),jg(8,`span`,8),od(),Ys(9,`span`,9),jg(10,`span`,10),od(),Yo(11,ee,5,0,`span`,11),od()()(),Ys(12,`label`,12),Ug(`click`,function(te){return te.stopPropagation()}),Ye(13),od()()),c&2){let o=zw(2);Lg(`labelPosition`,e.labelPosition),zo(),ct(`mdc-switch--selected`,e.checked)(`mdc-switch--unselected`,!e.checked)(`mdc-switch--checked`,e.checked)(`mdc-switch--disabled`,e.disabled)(`mat-mdc-slide-toggle-disabled-interactive`,e.disabledInteractive),Lg(`tabIndex`,e.disabled&&!e.disabledInteractive?-1:e.tabIndex)(`disabled`,e.disabled&&!e.disabledInteractive),Wn(`id`,e.buttonId)(`name`,e.name)(`aria-label`,e.ariaLabel)(`aria-labelledby`,e._getAriaLabelledBy())(`aria-describedby`,e.ariaDescribedby)(`aria-required`,e.required||null)(`aria-checked`,e.checked)(`aria-disabled`,e.disabled&&e.disabledInteractive?`true`:null),zo(9),Lg(`matRippleTrigger`,o)(`matRippleDisabled`,e.disableRipple||e.disabled)(`matRippleCentered`,!0),zo(),Ko(e.hideIcon?-1:11),zo(),Lg(`for`,e.buttonId),Wn(`id`,e._labelId)}},dependencies:[F3,g],styles:[`.mdc-switch {
2
+ align-items: center;
3
+ background: none;
4
+ border: none;
5
+ cursor: pointer;
6
+ display: inline-flex;
7
+ flex-shrink: 0;
8
+ margin: 0;
9
+ outline: none;
10
+ overflow: visible;
11
+ padding: 0;
12
+ position: relative;
13
+ width: var(--%NS%mat-slide-toggle-track-width, 52px);
14
+ }
15
+ .mdc-switch.mdc-switch--disabled {
16
+ cursor: default;
17
+ pointer-events: none;
18
+ }
19
+ .mdc-switch.mat-mdc-slide-toggle-disabled-interactive {
20
+ pointer-events: auto;
21
+ }
22
+
23
+ .mdc-switch__track {
24
+ overflow: hidden;
25
+ position: relative;
26
+ width: 100%;
27
+ height: var(--%NS%mat-slide-toggle-track-height, 32px);
28
+ border-radius: var(--%NS%mat-slide-toggle-track-shape, var(--%NS%mat-sys-corner-full));
29
+ }
30
+ .mdc-switch--disabled.mdc-switch .mdc-switch__track {
31
+ opacity: var(--%NS%mat-slide-toggle-disabled-track-opacity, 0.12);
32
+ }
33
+ .mdc-switch__track::before, .mdc-switch__track::after {
34
+ border: 1px solid transparent;
35
+ border-radius: inherit;
36
+ box-sizing: border-box;
37
+ content: "";
38
+ height: 100%;
39
+ left: 0;
40
+ position: absolute;
41
+ width: 100%;
42
+ border-width: var(--%NS%mat-slide-toggle-track-outline-width, 2px);
43
+ border-color: var(--%NS%mat-slide-toggle-track-outline-color, var(--%NS%mat-sys-outline));
44
+ }
45
+ .mdc-switch--selected .mdc-switch__track::before, .mdc-switch--selected .mdc-switch__track::after {
46
+ border-width: var(--%NS%mat-slide-toggle-selected-track-outline-width, 2px);
47
+ border-color: var(--%NS%mat-slide-toggle-selected-track-outline-color, transparent);
48
+ }
49
+ .mdc-switch--disabled .mdc-switch__track::before, .mdc-switch--disabled .mdc-switch__track::after {
50
+ border-width: var(--%NS%mat-slide-toggle-disabled-unselected-track-outline-width, 2px);
51
+ border-color: var(--%NS%mat-slide-toggle-disabled-unselected-track-outline-color, var(--%NS%mat-sys-on-surface));
52
+ }
53
+ @media (forced-colors: active) {
54
+ .mdc-switch__track {
55
+ border-color: currentColor;
56
+ }
57
+ }
58
+ .mdc-switch__track::before {
59
+ transition: transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);
60
+ transform: translateX(0);
61
+ background: var(--%NS%mat-slide-toggle-unselected-track-color, var(--%NS%mat-sys-surface-variant));
62
+ }
63
+ .mdc-switch--selected .mdc-switch__track::before {
64
+ transition: transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);
65
+ transform: translateX(100%);
66
+ }
67
+ [dir=rtl] .mdc-switch--selected .mdc-switch--selected .mdc-switch__track::before {
68
+ transform: translateX(-100%);
69
+ }
70
+ .mdc-switch--selected .mdc-switch__track::before {
71
+ opacity: var(--%NS%mat-slide-toggle-hidden-track-opacity, 0);
72
+ transition: var(--%NS%mat-slide-toggle-hidden-track-transition, opacity 75ms);
73
+ }
74
+ .mdc-switch--unselected .mdc-switch__track::before {
75
+ opacity: var(--%NS%mat-slide-toggle-visible-track-opacity, 1);
76
+ transition: var(--%NS%mat-slide-toggle-visible-track-transition, opacity 75ms);
77
+ }
78
+ .mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before {
79
+ background: var(--%NS%mat-slide-toggle-unselected-hover-track-color, var(--%NS%mat-sys-surface-variant));
80
+ }
81
+ .mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before {
82
+ background: var(--%NS%mat-slide-toggle-unselected-focus-track-color, var(--%NS%mat-sys-surface-variant));
83
+ }
84
+ .mdc-switch:enabled:active .mdc-switch__track::before {
85
+ background: var(--%NS%mat-slide-toggle-unselected-pressed-track-color, var(--%NS%mat-sys-surface-variant));
86
+ }
87
+ .mat-mdc-slide-toggle-disabled-interactive.mdc-switch--%NS%disabled:hover:not(:focus):not(:active) .mdc-switch__track::before, .mat-mdc-slide-toggle-disabled-interactive.mdc-switch--%NS%disabled:focus:not(:active) .mdc-switch__track::before, .mat-mdc-slide-toggle-disabled-interactive.mdc-switch--%NS%disabled:active .mdc-switch__track::before, .mdc-switch.mdc-switch--disabled .mdc-switch__track::before {
88
+ background: var(--%NS%mat-slide-toggle-disabled-unselected-track-color, var(--%NS%mat-sys-surface-variant));
89
+ }
90
+ .mdc-switch__track::after {
91
+ transform: translateX(-100%);
92
+ background: var(--%NS%mat-slide-toggle-selected-track-color, var(--%NS%mat-sys-primary));
93
+ }
94
+ [dir=rtl] .mdc-switch__track::after {
95
+ transform: translateX(100%);
96
+ }
97
+ .mdc-switch--selected .mdc-switch__track::after {
98
+ transform: translateX(0);
99
+ }
100
+ .mdc-switch--selected .mdc-switch__track::after {
101
+ opacity: var(--%NS%mat-slide-toggle-visible-track-opacity, 1);
102
+ transition: var(--%NS%mat-slide-toggle-visible-track-transition, opacity 75ms);
103
+ }
104
+ .mdc-switch--unselected .mdc-switch__track::after {
105
+ opacity: var(--%NS%mat-slide-toggle-hidden-track-opacity, 0);
106
+ transition: var(--%NS%mat-slide-toggle-hidden-track-transition, opacity 75ms);
107
+ }
108
+ .mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after {
109
+ background: var(--%NS%mat-slide-toggle-selected-hover-track-color, var(--%NS%mat-sys-primary));
110
+ }
111
+ .mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after {
112
+ background: var(--%NS%mat-slide-toggle-selected-focus-track-color, var(--%NS%mat-sys-primary));
113
+ }
114
+ .mdc-switch:enabled:active .mdc-switch__track::after {
115
+ background: var(--%NS%mat-slide-toggle-selected-pressed-track-color, var(--%NS%mat-sys-primary));
116
+ }
117
+ .mat-mdc-slide-toggle-disabled-interactive.mdc-switch--%NS%disabled:hover:not(:focus):not(:active) .mdc-switch__track::after, .mat-mdc-slide-toggle-disabled-interactive.mdc-switch--%NS%disabled:focus:not(:active) .mdc-switch__track::after, .mat-mdc-slide-toggle-disabled-interactive.mdc-switch--%NS%disabled:active .mdc-switch__track::after, .mdc-switch.mdc-switch--disabled .mdc-switch__track::after {
118
+ background: var(--%NS%mat-slide-toggle-disabled-selected-track-color, var(--%NS%mat-sys-on-surface));
119
+ }
120
+
121
+ .mdc-switch__handle-track {
122
+ height: 100%;
123
+ pointer-events: none;
124
+ position: absolute;
125
+ top: 0;
126
+ transition: transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);
127
+ left: 0;
128
+ right: auto;
129
+ transform: translateX(0);
130
+ width: calc(100% - var(--%NS%mat-slide-toggle-handle-width));
131
+ }
132
+ [dir=rtl] .mdc-switch__handle-track {
133
+ left: auto;
134
+ right: 0;
135
+ }
136
+ .mdc-switch--selected .mdc-switch__handle-track {
137
+ transform: translateX(100%);
138
+ }
139
+ [dir=rtl] .mdc-switch--selected .mdc-switch__handle-track {
140
+ transform: translateX(-100%);
141
+ }
142
+
143
+ .mdc-switch__handle {
144
+ display: flex;
145
+ pointer-events: auto;
146
+ position: absolute;
147
+ top: 50%;
148
+ transform: translateY(-50%);
149
+ left: 0;
150
+ right: auto;
151
+ transition: width 75ms cubic-bezier(0.4, 0, 0.2, 1), height 75ms cubic-bezier(0.4, 0, 0.2, 1), margin 75ms cubic-bezier(0.4, 0, 0.2, 1);
152
+ width: var(--%NS%mat-slide-toggle-handle-width);
153
+ height: var(--%NS%mat-slide-toggle-handle-height);
154
+ border-radius: var(--%NS%mat-slide-toggle-handle-shape, var(--%NS%mat-sys-corner-full));
155
+ }
156
+ [dir=rtl] .mdc-switch__handle {
157
+ left: auto;
158
+ right: 0;
159
+ }
160
+ .mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle {
161
+ width: var(--%NS%mat-slide-toggle-unselected-handle-size, 16px);
162
+ height: var(--%NS%mat-slide-toggle-unselected-handle-size, 16px);
163
+ margin: var(--%NS%mat-slide-toggle-unselected-handle-horizontal-margin, 0 8px);
164
+ }
165
+ .mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle:has(.mdc-switch__icons) {
166
+ margin: var(--%NS%mat-slide-toggle-unselected-with-icon-handle-horizontal-margin, 0 4px);
167
+ }
168
+ .mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle {
169
+ width: var(--%NS%mat-slide-toggle-selected-handle-size, 24px);
170
+ height: var(--%NS%mat-slide-toggle-selected-handle-size, 24px);
171
+ margin: var(--%NS%mat-slide-toggle-selected-handle-horizontal-margin, 0 24px);
172
+ }
173
+ .mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle:has(.mdc-switch__icons) {
174
+ margin: var(--%NS%mat-slide-toggle-selected-with-icon-handle-horizontal-margin, 0 24px);
175
+ }
176
+ .mat-mdc-slide-toggle .mdc-switch__handle:has(.mdc-switch__icons) {
177
+ width: var(--%NS%mat-slide-toggle-with-icon-handle-size, 24px);
178
+ height: var(--%NS%mat-slide-toggle-with-icon-handle-size, 24px);
179
+ }
180
+ .mat-mdc-slide-toggle .mdc-switch:active:not(.mdc-switch--disabled) .mdc-switch__handle {
181
+ width: var(--%NS%mat-slide-toggle-pressed-handle-size, 28px);
182
+ height: var(--%NS%mat-slide-toggle-pressed-handle-size, 28px);
183
+ }
184
+ .mat-mdc-slide-toggle .mdc-switch--%NS%selected:active:not(.mdc-switch--disabled) .mdc-switch__handle {
185
+ margin: var(--%NS%mat-slide-toggle-selected-pressed-handle-horizontal-margin, 0 22px);
186
+ }
187
+ .mat-mdc-slide-toggle .mdc-switch--%NS%unselected:active:not(.mdc-switch--disabled) .mdc-switch__handle {
188
+ margin: var(--%NS%mat-slide-toggle-unselected-pressed-handle-horizontal-margin, 0 2px);
189
+ }
190
+ .mdc-switch--disabled.mdc-switch--selected .mdc-switch__handle::after {
191
+ opacity: var(--%NS%mat-slide-toggle-disabled-selected-handle-opacity, 1);
192
+ }
193
+ .mdc-switch--disabled.mdc-switch--unselected .mdc-switch__handle::after {
194
+ opacity: var(--%NS%mat-slide-toggle-disabled-unselected-handle-opacity, 0.38);
195
+ }
196
+ .mdc-switch__handle::before, .mdc-switch__handle::after {
197
+ border: 1px solid transparent;
198
+ border-radius: inherit;
199
+ box-sizing: border-box;
200
+ content: "";
201
+ width: 100%;
202
+ height: 100%;
203
+ left: 0;
204
+ position: absolute;
205
+ top: 0;
206
+ transition: background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1), border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);
207
+ z-index: -1;
208
+ }
209
+ @media (forced-colors: active) {
210
+ .mdc-switch__handle::before, .mdc-switch__handle::after {
211
+ border-color: currentColor;
212
+ }
213
+ }
214
+ .mdc-switch--%NS%selected:enabled .mdc-switch__handle::after {
215
+ background: var(--%NS%mat-slide-toggle-selected-handle-color, var(--%NS%mat-sys-on-primary));
216
+ }
217
+ .mdc-switch--%NS%selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after {
218
+ background: var(--%NS%mat-slide-toggle-selected-hover-handle-color, var(--%NS%mat-sys-primary-container));
219
+ }
220
+ .mdc-switch--%NS%selected:enabled:focus:not(:active) .mdc-switch__handle::after {
221
+ background: var(--%NS%mat-slide-toggle-selected-focus-handle-color, var(--%NS%mat-sys-primary-container));
222
+ }
223
+ .mdc-switch--%NS%selected:enabled:active .mdc-switch__handle::after {
224
+ background: var(--%NS%mat-slide-toggle-selected-pressed-handle-color, var(--%NS%mat-sys-primary-container));
225
+ }
226
+ .mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--%NS%selected:hover:not(:focus):not(:active) .mdc-switch__handle::after, .mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--%NS%selected:focus:not(:active) .mdc-switch__handle::after, .mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--%NS%selected:active .mdc-switch__handle::after, .mdc-switch--selected.mdc-switch--disabled .mdc-switch__handle::after {
227
+ background: var(--%NS%mat-slide-toggle-disabled-selected-handle-color, var(--%NS%mat-sys-surface));
228
+ }
229
+ .mdc-switch--%NS%unselected:enabled .mdc-switch__handle::after {
230
+ background: var(--%NS%mat-slide-toggle-unselected-handle-color, var(--%NS%mat-sys-outline));
231
+ }
232
+ .mdc-switch--%NS%unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after {
233
+ background: var(--%NS%mat-slide-toggle-unselected-hover-handle-color, var(--%NS%mat-sys-on-surface-variant));
234
+ }
235
+ .mdc-switch--%NS%unselected:enabled:focus:not(:active) .mdc-switch__handle::after {
236
+ background: var(--%NS%mat-slide-toggle-unselected-focus-handle-color, var(--%NS%mat-sys-on-surface-variant));
237
+ }
238
+ .mdc-switch--%NS%unselected:enabled:active .mdc-switch__handle::after {
239
+ background: var(--%NS%mat-slide-toggle-unselected-pressed-handle-color, var(--%NS%mat-sys-on-surface-variant));
240
+ }
241
+ .mdc-switch--unselected.mdc-switch--disabled .mdc-switch__handle::after {
242
+ background: var(--%NS%mat-slide-toggle-disabled-unselected-handle-color, var(--%NS%mat-sys-on-surface));
243
+ }
244
+ .mdc-switch__handle::before {
245
+ background: var(--%NS%mat-slide-toggle-handle-surface-color);
246
+ }
247
+
248
+ .mdc-switch__shadow {
249
+ border-radius: inherit;
250
+ bottom: 0;
251
+ left: 0;
252
+ position: absolute;
253
+ right: 0;
254
+ top: 0;
255
+ }
256
+ .mdc-switch:enabled .mdc-switch__shadow {
257
+ box-shadow: var(--%NS%mat-slide-toggle-handle-elevation-shadow);
258
+ }
259
+ .mat-mdc-slide-toggle-disabled-interactive.mdc-switch--%NS%disabled:hover:not(:focus):not(:active) .mdc-switch__shadow, .mat-mdc-slide-toggle-disabled-interactive.mdc-switch--%NS%disabled:focus:not(:active) .mdc-switch__shadow, .mat-mdc-slide-toggle-disabled-interactive.mdc-switch--%NS%disabled:active .mdc-switch__shadow, .mdc-switch.mdc-switch--disabled .mdc-switch__shadow {
260
+ box-shadow: var(--%NS%mat-slide-toggle-disabled-handle-elevation-shadow);
261
+ }
262
+
263
+ .mdc-switch__ripple {
264
+ left: 50%;
265
+ position: absolute;
266
+ top: 50%;
267
+ transform: translate(-50%, -50%);
268
+ z-index: -1;
269
+ width: var(--%NS%mat-slide-toggle-state-layer-size, 40px);
270
+ height: var(--%NS%mat-slide-toggle-state-layer-size, 40px);
271
+ }
272
+ .mdc-switch__ripple::after {
273
+ content: "";
274
+ opacity: 0;
275
+ }
276
+ .mdc-switch--disabled .mdc-switch__ripple::after {
277
+ display: none;
278
+ }
279
+ .mat-mdc-slide-toggle-disabled-interactive .mdc-switch__ripple::after {
280
+ display: block;
281
+ }
282
+ .mdc-switch:hover .mdc-switch__ripple::after {
283
+ transition: 75ms opacity cubic-bezier(0, 0, 0.2, 1);
284
+ }
285
+ .mat-mdc-slide-toggle-disabled-interactive.mdc-switch--%NS%disabled:enabled:focus .mdc-switch__ripple::after, .mat-mdc-slide-toggle-disabled-interactive.mdc-switch--%NS%disabled:enabled:active .mdc-switch__ripple::after, .mat-mdc-slide-toggle-disabled-interactive.mdc-switch--%NS%disabled:enabled:hover:not(:focus) .mdc-switch__ripple::after, .mdc-switch--%NS%unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after {
286
+ background: var(--%NS%mat-slide-toggle-unselected-hover-state-layer-color, var(--%NS%mat-sys-on-surface));
287
+ opacity: var(--%NS%mat-slide-toggle-unselected-hover-state-layer-opacity, var(--%NS%mat-sys-hover-state-layer-opacity));
288
+ }
289
+ .mdc-switch--%NS%unselected:enabled:focus .mdc-switch__ripple::after {
290
+ background: var(--%NS%mat-slide-toggle-unselected-focus-state-layer-color, var(--%NS%mat-sys-on-surface));
291
+ opacity: var(--%NS%mat-slide-toggle-unselected-focus-state-layer-opacity, var(--%NS%mat-sys-focus-state-layer-opacity));
292
+ }
293
+ .mdc-switch--%NS%unselected:enabled:active .mdc-switch__ripple::after {
294
+ background: var(--%NS%mat-slide-toggle-unselected-pressed-state-layer-color, var(--%NS%mat-sys-on-surface));
295
+ opacity: var(--%NS%mat-slide-toggle-unselected-pressed-state-layer-opacity, var(--%NS%mat-sys-pressed-state-layer-opacity));
296
+ transition: opacity 75ms linear;
297
+ }
298
+ .mdc-switch--%NS%selected:enabled:hover:not(:focus) .mdc-switch__ripple::after {
299
+ background: var(--%NS%mat-slide-toggle-selected-hover-state-layer-color, var(--%NS%mat-sys-primary));
300
+ opacity: var(--%NS%mat-slide-toggle-selected-hover-state-layer-opacity, var(--%NS%mat-sys-hover-state-layer-opacity));
301
+ }
302
+ .mdc-switch--%NS%selected:enabled:focus .mdc-switch__ripple::after {
303
+ background: var(--%NS%mat-slide-toggle-selected-focus-state-layer-color, var(--%NS%mat-sys-primary));
304
+ opacity: var(--%NS%mat-slide-toggle-selected-focus-state-layer-opacity, var(--%NS%mat-sys-focus-state-layer-opacity));
305
+ }
306
+ .mdc-switch--%NS%selected:enabled:active .mdc-switch__ripple::after {
307
+ background: var(--%NS%mat-slide-toggle-selected-pressed-state-layer-color, var(--%NS%mat-sys-primary));
308
+ opacity: var(--%NS%mat-slide-toggle-selected-pressed-state-layer-opacity, var(--%NS%mat-sys-pressed-state-layer-opacity));
309
+ transition: opacity 75ms linear;
310
+ }
311
+
312
+ .mdc-switch__icons {
313
+ position: relative;
314
+ height: 100%;
315
+ width: 100%;
316
+ z-index: 1;
317
+ transform: translateZ(0);
318
+ }
319
+ .mdc-switch--disabled.mdc-switch--unselected .mdc-switch__icons {
320
+ opacity: var(--%NS%mat-slide-toggle-disabled-unselected-icon-opacity, 0.38);
321
+ }
322
+ .mdc-switch--disabled.mdc-switch--selected .mdc-switch__icons {
323
+ opacity: var(--%NS%mat-slide-toggle-disabled-selected-icon-opacity, 0.38);
324
+ }
325
+
326
+ .mdc-switch__icon {
327
+ bottom: 0;
328
+ left: 0;
329
+ margin: auto;
330
+ position: absolute;
331
+ right: 0;
332
+ top: 0;
333
+ opacity: 0;
334
+ transition: opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1);
335
+ }
336
+ .mdc-switch--unselected .mdc-switch__icon {
337
+ width: var(--%NS%mat-slide-toggle-unselected-icon-size, 16px);
338
+ height: var(--%NS%mat-slide-toggle-unselected-icon-size, 16px);
339
+ fill: var(--%NS%mat-slide-toggle-unselected-icon-color, var(--%NS%mat-sys-surface-variant));
340
+ }
341
+ .mdc-switch--unselected.mdc-switch--disabled .mdc-switch__icon {
342
+ fill: var(--%NS%mat-slide-toggle-disabled-unselected-icon-color, var(--%NS%mat-sys-surface-variant));
343
+ }
344
+ .mdc-switch--selected .mdc-switch__icon {
345
+ width: var(--%NS%mat-slide-toggle-selected-icon-size, 16px);
346
+ height: var(--%NS%mat-slide-toggle-selected-icon-size, 16px);
347
+ fill: var(--%NS%mat-slide-toggle-selected-icon-color, var(--%NS%mat-sys-on-primary-container));
348
+ }
349
+ .mdc-switch--selected.mdc-switch--disabled .mdc-switch__icon {
350
+ fill: var(--%NS%mat-slide-toggle-disabled-selected-icon-color, var(--%NS%mat-sys-on-surface));
351
+ }
352
+
353
+ .mdc-switch--selected .mdc-switch__icon--on,
354
+ .mdc-switch--unselected .mdc-switch__icon--off {
355
+ opacity: 1;
356
+ transition: opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1);
357
+ }
358
+
359
+ .mat-mdc-slide-toggle {
360
+ -webkit-user-select: none;
361
+ user-select: none;
362
+ display: inline-block;
363
+ -webkit-tap-highlight-color: transparent;
364
+ outline: 0;
365
+ }
366
+ .mat-mdc-slide-toggle .mat-icon {
367
+ min-height: fit-content;
368
+ flex-shrink: 0;
369
+ }
370
+ .mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,
371
+ .mat-mdc-slide-toggle .mdc-switch__ripple::after {
372
+ top: 0;
373
+ left: 0;
374
+ right: 0;
375
+ bottom: 0;
376
+ position: absolute;
377
+ border-radius: 50%;
378
+ pointer-events: none;
379
+ }
380
+ .mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),
381
+ .mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty) {
382
+ transform: translateZ(0);
383
+ }
384
+ .mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-focus-indicator::before {
385
+ content: "";
386
+ }
387
+ .mat-mdc-slide-toggle .mat-internal-form-field {
388
+ color: var(--%NS%mat-slide-toggle-label-text-color, var(--%NS%mat-sys-on-surface));
389
+ font-family: var(--%NS%mat-slide-toggle-label-text-font, var(--%NS%mat-sys-body-medium-font));
390
+ line-height: var(--%NS%mat-slide-toggle-label-text-line-height, var(--%NS%mat-sys-body-medium-line-height));
391
+ font-size: var(--%NS%mat-slide-toggle-label-text-size, var(--%NS%mat-sys-body-medium-size));
392
+ letter-spacing: var(--%NS%mat-slide-toggle-label-text-tracking, var(--%NS%mat-sys-body-medium-tracking));
393
+ font-weight: var(--%NS%mat-slide-toggle-label-text-weight, var(--%NS%mat-sys-body-medium-weight));
394
+ }
395
+ .mat-mdc-slide-toggle .mat-ripple-element {
396
+ opacity: 0.12;
397
+ }
398
+ .mat-mdc-slide-toggle .mat-focus-indicator::before {
399
+ border-radius: 50%;
400
+ }
401
+ .mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,
402
+ .mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,
403
+ .mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,
404
+ .mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,
405
+ .mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,
406
+ .mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after {
407
+ transition: none;
408
+ }
409
+ .mat-mdc-slide-toggle .mdc-switch:enabled + .mdc-label {
410
+ cursor: pointer;
411
+ }
412
+ .mat-mdc-slide-toggle .mdc-switch--disabled + label {
413
+ color: var(--%NS%mat-slide-toggle-disabled-label-text-color, var(--%NS%mat-sys-on-surface));
414
+ }
415
+ .mat-mdc-slide-toggle label:empty {
416
+ display: none;
417
+ }
418
+
419
+ .mat-slide-toggle-full-width {
420
+ width: 100%;
421
+ }
422
+ .mat-slide-toggle-full-width .mat-internal-form-field {
423
+ width: 100%;
424
+ justify-content: space-between;
425
+ }
426
+ .mat-slide-toggle-full-width .mat-internal-form-field label {
427
+ margin: 0;
428
+ flex-grow: 1;
429
+ text-align: end;
430
+ }
431
+ .mat-slide-toggle-full-width .mdc-form-field--align-end label {
432
+ text-align: start;
433
+ }
434
+
435
+ .mat-mdc-slide-toggle-touch-target {
436
+ position: absolute;
437
+ top: 50%;
438
+ left: 50%;
439
+ height: var(--%NS%mat-slide-toggle-touch-target-size, 48px);
440
+ width: 100%;
441
+ transform: translate(-50%, -50%);
442
+ display: var(--%NS%mat-slide-toggle-touch-target-display, block);
443
+ }
444
+ [dir=rtl] .mat-mdc-slide-toggle-touch-target {
445
+ left: auto;
446
+ right: 50%;
447
+ transform: translate(50%, -50%);
448
+ }
449
+ `],encapsulation:2})})()}return a})();var ke=(()=>{class a{static ɵfac=function(i){return new(i||a)};static ɵmod=fe({type:a});static ɵinj=ae$1({imports:[ie,$r]})}return a})();export{ke as n,ie as t};