2026-05-11 13:36:06 +03:30
|
|
|
@if (showSplash()) {
|
|
|
|
|
<pos-splash (onComplete)="onSplashCompleted()" />
|
|
|
|
|
} @else {
|
|
|
|
|
@defer (when !showSplash()) {
|
2026-05-08 18:08:57 +03:30
|
|
|
<div
|
2026-05-11 13:36:06 +03:30
|
|
|
class="h-full relative"
|
|
|
|
|
(touchstart)="onTouchStart($event)"
|
|
|
|
|
(touchmove)="onTouchMove($event)"
|
|
|
|
|
(touchend)="onTouchEnd()"
|
2026-05-08 18:08:57 +03:30
|
|
|
>
|
2026-05-11 13:36:06 +03:30
|
|
|
@if (pullDistance() >= 0) {
|
|
|
|
|
<div
|
|
|
|
|
class="w-full flex justify-center items-center py-2 min-h-10 text-xs text-surface-500 overflow-hidden fixed top-0 inset-x-0 z-1000 translate-y-[-20px]"
|
|
|
|
|
[ngStyle]="{ height: pullDistance() + 'px' }"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="inline-flex p-3 rounded-full opacity-0 transition-opacity shadow-xl bg-surface-card"
|
|
|
|
|
[ngStyle]="{ opacity: pullDistance() / 100 }"
|
|
|
|
|
>
|
|
|
|
|
<i
|
|
|
|
|
class="pi pi-refresh text-[1.25rem] text-primary"
|
|
|
|
|
[ngStyle]="{ fontSize: `${1.25 + pullDistance() * 0.007}rem`, rotate: pullDistance() * 2 + 'deg' }"
|
|
|
|
|
></i>
|
2026-04-25 15:19:19 +03:30
|
|
|
</div>
|
2026-05-11 13:36:06 +03:30
|
|
|
<!-- [ngStyle]="{ transform: 'scale(1.' + pullDistance() * 10 + ')' }" -->
|
2026-03-29 18:07:10 +03:30
|
|
|
</div>
|
2026-05-11 13:36:06 +03:30
|
|
|
}
|
2026-05-11 15:59:57 +03:30
|
|
|
{{ isAuth() }}
|
2026-05-11 13:36:06 +03:30
|
|
|
@if (isAuth()) {
|
2026-05-11 15:59:57 +03:30
|
|
|
@defer (when isAuth()) {
|
|
|
|
|
<router-outlet></router-outlet>
|
|
|
|
|
}
|
2026-05-11 13:36:06 +03:30
|
|
|
} @else {
|
|
|
|
|
@defer (when !isAuth()) {
|
|
|
|
|
<pos-pages-layout />
|
2026-05-08 18:08:57 +03:30
|
|
|
}
|
2026-04-13 13:22:40 +03:30
|
|
|
}
|
2026-05-11 13:36:06 +03:30
|
|
|
</div>
|
2026-04-30 16:27:42 +03:30
|
|
|
}
|
2026-05-11 13:36:06 +03:30
|
|
|
}
|