{ "version": 3, "sources": ["src/app/scripts/chat-bot/chat-bot.component.ts", "src/app/scripts/chat-bot/chat-bot.component.html", "src/app/store/user/user.state.ts"], "sourcesContent": ["import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { animate, state, style, transition, trigger } from '@angular/animations';\nimport { RefundComponent } from '../../pages/refund/refund.component';\nimport { Button } from 'primeng/button';\nimport { TranslocoPipe } from '@jsverse/transloco';\n\n@Component({\n selector: 'b2b-portal-chat-bot',\n imports: [RefundComponent, Button, TranslocoPipe],\n templateUrl: './chat-bot.component.html',\n styleUrl: './chat-bot.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n animations: [\n trigger('slideInOut', [\n state(\n 'in',\n style({\n height: '*',\n opacity: 1,\n transform: 'translateY(0)',\n }),\n ),\n state(\n 'out',\n style({\n height: '0px',\n opacity: 0,\n transform: 'translateY(100%)',\n }),\n ),\n transition('out => in', [animate('300ms ease-in')]),\n transition('in => out', [animate('300ms ease-out')]),\n ]),\n ],\n})\nexport class ChatBotComponent {\n isOpenChatBot: boolean = false;\n}\n", "
\n
\n {{ 'CHAT_BOT.HEADER_TITLE' | transloco }}\n \n
\n
\n
\n \n
\n
\n
\n", "import { GetMeResponse, LanguageItem, RegionalInfo } from '@shared/interfaces/users/users.interface';\nimport { Maybe } from '@shared/types';\nimport { BalanceInfoFull } from '@shared/interfaces/users/balance-info-full';\nimport { OrderHistoryViewId, OrderHistoryViewType } from '../../modules/orders/models/order-models';\n\nexport interface UserState {\n user: GetMeResponse | null;\n isUserLoading: boolean;\n balanceInfo: Maybe;\n isBalanceInfoLoading: boolean;\n language: LanguageItem;\n regionalInfo: RegionalInfo;\n orderHistoryViewType: OrderHistoryViewId;\n}\n\nexport const initialState: UserState = {\n user: null,\n isUserLoading: false,\n balanceInfo: null,\n isBalanceInfoLoading: false,\n language: {\n id: 0,\n name: 'English',\n description: 'en-US',\n },\n regionalInfo: {\n culture: 'en-US',\n currency: 'USD',\n phonePattern: '^((\\\\+7|8)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Q,aAAc,CACpBC,EACE,KACAC,EAAM,CACJC,OAAQ,IACRC,QAAS,EACTC,UAAW,gBACZ,CAAC,EAEJJ,EACE,MACAC,EAAM,CACJC,OAAQ,MACRC,QAAS,EACTC,UAAW,mBACZ,CAAC,EAEJC,EAAW,YAAa,CAACC,EAAQ,eAAe,CAAC,CAAC,EAClDD,EAAW,YAAa,CAACC,EAAQ,gBAAgB,CAAC,CAAC,CAAC,CACrD,CAAC,CACH,EAAAC,gBAAA,CAAA,CAAA,CAAA,SAEUjC,CAAgB,GAAA,EEpBtB,IAAMkC,EAA0B,CACrCC,KAAM,KACNC,cAAe,GACfC,YAAa,KACbC,qBAAsB,GACtBC,SAAU,CACRC,GAAI,EACJC,KAAM,UACNC,YAAa,SAEfC,aAAc,CACZC,QAAS,QACTC,SAAU,MACVC,aAAc,4BAEhBC,qBAAsB,CACpBP,GAAIQ,EAAqBC", "names": ["ChatBotComponent", "constructor", "isOpenChatBot", "selectors", "decls", "vars", "consts", "template", "rf", "ctx", "\u0275\u0275elementStart", "\u0275\u0275listener", "\u0275\u0275text", "\u0275\u0275elementEnd", "\u0275\u0275element", "\u0275\u0275advance", "\u0275\u0275textInterpolate", "\u0275\u0275pipeBind1", "\u0275\u0275property", "RefundComponent", "Button", "TranslocoPipe", "styles", "data", "animation", "trigger", "state", "style", "height", "opacity", "transform", "transition", "animate", "changeDetection", "initialState", "user", "isUserLoading", "balanceInfo", "isBalanceInfoLoading", "language", "id", "name", "description", "regionalInfo", "culture", "currency", "phonePattern", "orderHistoryViewType", "OrderHistoryViewType", "Collapsed"] }