1"use strict"; 2(self["webpackChunkoptica_boavista"] = self["webpackChunkoptica_boavista"] || []).push([["main"],{ 3 4/***/ 158: 5/*!***************************************!*\ 6 !*** ./src/app/app-routing.module.ts ***! 7 \***************************************/ 8/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 9 10__webpack_require__.r(__webpack_exports__); 11/* harmony export */ __webpack_require__.d(__webpack_exports__, { 12/* harmony export */ "AppRoutingModule": () => (/* binding */ AppRoutingModule) 13/* harmony export */ }); 14/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! @angular/router */ 124); 15/* harmony import */ var _pages_home_home_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pages/home/home.component */ 5245); 16/* harmony import */ var _pages_favorites_favorites_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @pages/favorites/favorites.component */ 3425); 17/* harmony import */ var _pages_about_about_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @pages/about/about.component */ 3794); 18/* harmony import */ var _pages_products_products_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @pages/products/products.component */ 7539); 19/* harmony import */ var _pages_product_product_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @pages/product/product.component */ 5109); 20/* harmony import */ var _pages_specialty_specialty_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @pages/specialty/specialty.component */ 7338); 21/* harmony import */ var _pages_info_info_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @pages/info/info.component */ 50); 22/* harmony import */ var _pages_profile_profile_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @pages/profile/profile.component */ 8220); 23/* harmony import */ var _pages_cart_cart_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @pages/cart/cart.component */ 6236); 24/* harmony import */ var _pages_orders_orders_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @pages/orders/orders.component */ 8159); 25/* harmony import */ var _pages_addresses_addresses_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @pages/addresses/addresses.component */ 751); 26/* harmony import */ var _pages_password_password_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @pages/password/password.component */ 5117); 27/* harmony import */ var _pages_order_order_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @pages/order/order.component */ 2785); 28/* harmony import */ var _pages_coupons_coupons_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @pages/coupons/coupons.component */ 3330); 29/* harmony import */ var _pages_contacts_contacts_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @pages/contacts/contacts.component */ 8506); 30/* harmony import */ var _pages_event_event_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @pages/event/event.component */ 2438); 31/* harmony import */ var _pages_login_login_component__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @pages/login/login.component */ 4902); 32/* harmony import */ var _pages_edit_user_edit_user_component__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @pages/edit-user/edit-user.component */ 9392); 33/* harmony import */ var _pages_family_family_component__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @pages/family/family.component */ 7210); 34/* harmony import */ var _pages_loyalty_loyalty_component__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @pages/loyalty/loyalty.component */ 4269); 35/* harmony import */ var _pages_about_item_about_item_component__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @pages/about-item/about-item.component */ 3978); 36/* harmony import */ var _pages_promotions_promotions_component__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @pages/promotions/promotions.component */ 6205); 37/* harmony import */ var _pages_highlights_highlights_component__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @pages/highlights/highlights.component */ 6665); 38/* harmony import */ var _pages_order_pay_order_pay_component__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! @pages/order-pay/order-pay.component */ 1173); 39/* harmony import */ var _pages_brands_brands_component__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! @pages/brands/brands.component */ 1775); 40/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! @angular/core */ 2560); 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69const routes = [ 70 { path: '', component: _pages_home_home_component__WEBPACK_IMPORTED_MODULE_0__.HomeComponent }, 71 { path: 'inicio', redirectTo: '' }, 72 { path: 'quem-somos', component: _pages_about_about_component__WEBPACK_IMPORTED_MODULE_2__.AboutComponent }, 73 { path: 'contactos', component: _pages_contacts_contacts_component__WEBPACK_IMPORTED_MODULE_14__.ContactsComponent },
74 { path: 'novidade/:id/:slug', component: _pages_event_event_component__WEBPACK_IMPORTED_MODULE_15__.EventComponent }, 75 { path: 'colecao/:collection/:slug', component: _pages_products_products_component__WEBPACK_IMPORTED_MODULE_3__.ProductsComponent }, 76 { path: 'categoria/:category/:slug', component: _pages_products_products_component__WEBPACK_IMPORTED_MODULE_3__.ProductsComponent }, 77 { path: 'categoria/:category/subcategoria/:subcategory/:slug', component: _pages_products_products_component__WEBPACK_IMPORTED_MODULE_3__.ProductsComponent }, 78 { path: 'marca/:brand/:slug', component: _pages_products_products_component__WEBPACK_IMPORTED_MODULE_3__.ProductsComponent }, 79 { path: 'produtos', component: _pages_products_products_component__WEBPACK_IMPORTED_MODULE_3__.ProductsComponent }, 80 { path: 'produtos/:term', component: _pages_products_products_component__WEBPACK_IMPORTED_MODULE_3__.ProductsComponent }, 81 { path: 'produto/:id/:slug', component: _pages_product_product_component__WEBPACK_IMPORTED_MODULE_4__.ProductComponent }, 82 { path: 'servico/:id/:slug', component: _pages_specialty_specialty_component__WEBPACK_IMPORTED_MODULE_5__.SpecialtyComponent }, 83 { path: 'favoritos', component: _pages_favorites_favorites_component__WEBPACK_IMPORTED_MODULE_1__.FavoritesComponent }, 84 { path: 'info/:id', component: _pages_info_info_component__WEBPACK_IMPORTED_MODULE_6__.InfoComponent }, 85 { path: 'perfil', component: _pages_profile_profile_component__WEBPACK_IMPORTED_MODULE_7__.ProfileComponent }, 86 { path: 'moradas', component: _pages_addresses_addresses_component__WEBPACK_IMPORTED_MODULE_10__.AddressesComponent }, 87 { path: 'encomendas', component: _pages_orders_orders_component__WEBPACK_IMPORTED_MODULE_9__.OrdersComponent }, 88 { path: 'encomenda/:id', component: _pages_order_order_component__WEBPACK_IMPORTED_MODULE_12__.OrderComponent }, 89 { path: 'pagar/:id', component: _pages_order_pay_order_pay_component__WEBPACK_IMPORTED_MODULE_23__.OrderPayComponent }, 90 { path: 'password', component: _pages_password_password_component__WEBPACK_IMPORTED_MODULE_11__.PasswordComponent }, 91 { path: 'carrinho', component: _pages_cart_cart_component__WEBPACK_IMPORTED_MODULE_8__.CartComponent }, 92 { path: 'cupoes', component: _pages_coupons_coupons_component__WEBPACK_IMPORTED_MODULE_13__.CouponsComponent }, 93 { path: 'login', component: _pages_login_login_component__WEBPACK_IMPORTED_MODULE_16__.LoginComponent }, 94 { path: 'editar-perfil', component: _pages_edit_user_edit_user_component__WEBPACK_IMPORTED_MODULE_17__.EditUserComponent }, 95 { path: 'familia', component: _pages_family_family_component__WEBPACK_IMPORTED_MODULE_18__.FamilyComponent }, 96 { path: 'fidelizacao', component: _pages_loyalty_loyalty_component__WEBPACK_IMPORTED_MODULE_19__.LoyaltyComponent }, 97 { path: 'quem-somos/:id', component: _pages_about_item_about_item_component__WEBPACK_IMPORTED_MODULE_20__.AboutItemComponent }, 98 { path: 'promocoes', component: _pages_promotions_promotions_component__WEBPACK_IMPORTED_MODULE_21__.PromotionsComponent }, 99 { path: 'destaques', component: _pages_highlights_highlights_component__WEBPACK_IMPORTED_MODULE_22__.HighlightsComponent }, 100 { path: 'marcas', component: _pages_brands_brands_component__WEBPACK_IMPORTED_MODULE_24__.BrandsComponent } 101]; 102class AppRoutingModule { 103} 104AppRoutingModule.ɵfac = function AppRoutingModule_Factory(t) { return new (t || AppRoutingModule)(); }; 105AppRoutingModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_25__["ɵɵdefineNgModule"]({ type: AppRoutingModule }); 106AppRoutingModule.ɵinj = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_25__["ɵɵdefineInjector"]({ imports: [_angular_router__WEBPACK_IMPORTED_MODULE_26__.RouterModule.forRoot(routes, { scrollPositionRestoration: 'enabled' }), _angular_router__WEBPACK_IMPORTED_MODULE_26__.RouterModule] }); 107(function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_25__["ɵɵsetNgModuleScope"](AppRoutingModule, { imports: [_angular_router__WEBPACK_IMPORTED_MODULE_26__.RouterModule], exports: [_angular_router__WEBPACK_IMPORTED_MODULE_26__.RouterModule] }); })(); 108 109 110/***/ }), 111 112/***/ 5041: 113/*!**********************************!*\ 114 !*** ./src/app/app.component.ts ***! 115 \**********************************/ 116/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 117 118__webpack_require__.r(__webpack_exports__); 119/* harmony export */ __webpack_require__.d(__webpack_exports__, { 120/* harmony export */ "AppComponent": () => (/* binding */ AppComponent) 121/* harmony export */ }); 122/* harmony import */ var _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pages/basic/basic.component */ 9689); 123/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ 124); 124/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 2560); 125/* harmony import */ var _services_services_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @services/services.service */ 6325); 126 127 128 129 130class AppComponent extends _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_0__.BasicComponent { 131 constructor(categoryService, specialtyService, merchantService) { 132 super(); 133 this.categoryService = categoryService; 134 this.specialtyService = specialtyService; 135 this.merchantService = merchantService; 136 this.categories = []; 137 this.specialties = []; 138 this.loadCategories(); 139 this.loadSpecialties(); 140 this.loadMerchant(); 141 this.router.events.subscribe((evt) => { 142 if (!(evt instanceof _angular_router__WEBPACK_IMPORTED_MODULE_2__.NavigationEnd)) { 143 return; 144 } 145 window.scrollTo(0, 0); 146 }); 147 } 148 loadCategories() { 149 this.categoryService.all().subscribe((resp) => { 150 if (resp.status == 'OK') { 151 this.categories = resp.data; 152 this.storageService.set('categories', this.categories); 153 } 154 }); 155 } 156 loadSpecialties() { 157 this.specialtyService.all().subscribe((resp) => { 158 if (resp.status == 'OK') { 159 this.specialties = resp.data; 160 this.storageService.set('specialties', this.specialties); 161 } 162 }); 163 } 164 loadMerchant() { 165 this.merchantService.url().subscribe((resp) => { 166 if (resp.status == 'OK') { 167 this.merchant = resp.data; 168 this.logo = this.merchant.logo; 169 this.storageService.set('merchant', this.merchant); 170 } 171 }); 172 } 173} 174AppComponent.ɵfac = function AppComponent_Factory(t) { return new (t || AppComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_services_services_service__WEBPACK_IMPORTED_MODULE_1__.CategoryService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_services_services_service__WEBPACK_IMPORTED_MODULE_1__.SpecialtyService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_services_services_service__WEBPACK_IMPORTED_MODULE_1__.MerchantService)); }; 175AppComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({ type: AppComponent, selectors: [["app-root"]], features: [_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵInheritDefinitionFeature"]], decls: 4, vars: 3, consts: [[1, "container"], [3, "merchant", "categories", "specialties"]
175], template: function AppComponent_Template(rf, ctx) { if (rf & 1) { 176 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 0); 177 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "app-navbar")(2, "router-outlet"); 178 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); 179 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](3, "app-footer", 1); 180 } if (rf & 2) { 181 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3); 182 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("merchant", ctx.merchant)("categories", ctx.categories)("specialties", ctx.specialties); 183 } }, styles: [".container[_ngcontent-%COMP%] {\n padding-top: 0;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFwcC5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNDLGNBQUE7QUFDRCIsImZpbGUiOiJhcHAuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuY29udGFpbmVyIHtcblx0cGFkZGluZy10b3A6IDA7XG59XG4iXX0= */"] }); 184 185 186/***/ }), 187 188/***/ 6747: 189/*!*******************************!*\ 190 !*** ./src/app/app.module.ts ***! 191 \*******************************/ 192/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 193 194__webpack_require__.r(__webpack_exports__); 195/* harmony export */ __webpack_require__.d(__webpack_exports__, { 196/* harmony export */ "AppModule": () => (/* binding */ AppModule), 197/* harmony export */ "ServiceLocator": () => (/* binding */ ServiceLocator) 198/* harmony export */ }); 199/* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! @angular/platform-browser */ 4497); 200/* harmony import */ var _app_routing_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./app-routing.module */ 158); 201/* harmony import */ var _app_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./app.component */ 5041); 202/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 4534); 203/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! @angular/common/http */ 8987); 204/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! @angular/forms */ 2508); 205/* harmony import */ var ngx_slick_carousel__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ngx-slick-carousel */ 5939); 206/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ngx-toastr */ 4817); 207/* harmony import */ var _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! @angular/platform-browser/animations */ 7146); 208/* harmony import */ var _videogular_ngx_videogular_core__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! @videogular/ngx-videogular/core */ 9197); 209/* harmony import */ var _videogular_ngx_videogular_controls__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! @videogular/ngx-videogular/controls */ 6836); 210/* harmony import */ var _videogular_ngx_videogular_overlay_play__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! @videogular/ngx-videogular/overlay-play */ 8399); 211/* harmony import */ var _videogular_ngx_videogular_buffering__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! @videogular/ngx-videogular/buffering */ 6131); 212/* harmony import */ var _abacritt_angularx_social_login__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! @abacritt/angularx-social-login */ 3218); 213/* harmony import */ var angularx_qrcode__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! angularx-qrcode */ 9180); 214/* harmony import */ var ngx_sharebuttons_buttons__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ngx-s
214harebuttons/buttons */ 7422); 215/* harmony import */ var ngx_sharebuttons_icons__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ngx-sharebuttons/icons */ 3592); 216/* harmony import */ var _components_navbar_navbar_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @components/navbar/navbar.component */ 3252); 217/* harmony import */ var _pages_home_home_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @pages/home/home.component */ 5245); 218/* harmony import */ var _pages_about_about_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @pages/about/about.component */ 3794); 219/* harmony import */ var _pages_favorites_favorites_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @pages/favorites/favorites.component */ 3425); 220/* harmony import */ var _pages_cart_cart_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @pages/cart/cart.component */ 6236); 221/* harmony import */ var _pages_orders_orders_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @pages/orders/orders.component */ 8159); 222/* harmony import */ var _components_footer_footer_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @components/footer/footer.component */ 4662); 223/* harmony import */ var _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @pages/basic/basic.component */ 9689); 224/* harmony import */ var _pages_login_login_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @pages/login/login.component */ 4902); 225/* harmony import */ var _pages_search_search_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @pages/search/search.component */ 1164); 226/* harmony import */ var _pages_products_products_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @pages/products/products.component */ 7539); 227/* harmony import */ var _pages_product_product_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @pages/product/product.component */ 5109); 228/* harmony import */ var _pages_specialty_specialty_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @pages/specialty/specialty.component */ 7338); 229/* harmony import */ var _pages_info_info_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @pages/info/info.component */ 50); 230/* harmony import */ var _components_container_products_container_products_component__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @components/container-products/container-products.component */ 7707); 231/* harmony import */ var _components_product_view_product_view_component__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @components/product-view/product-view.component */ 2977); 232/* harmony import */ var _pages_profile_profile_component__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @pages/profile/profile.component */ 8220); 233/* harmony import */ var _components_menu_profile_menu_profile_component__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @components/menu-profile/menu-profile.component */ 9051); 234/* harmony import */ var _pages_addresses_addresses_component__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @pages/addresses/addresses.component */ 751); 235/* harmony import */ var _pages_password_password_component__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @pages/password/password.component */ 5117); 236/* harmony import */ var _pages_order_order_component__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @pages/order/order.component */ 2785); 237/* harmony import */ var _pages_coupons_coupons_component__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! @pages/coupons/coupons.component */ 3330); 238/* harmony import */ var _pipes_schedules_pipe__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! @pipes/schedules.pipe */ 1514); 239/* harmony import */ var _pipes_quote_pipe__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! @pipes/quote.pipe */ 5683); 240/* harmony import */ var stripe_angular__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! stripe-angular */ 9332); 241/* harmony import */ var _env_environment__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! @env/environment */ 2340);
242/* harmony import */ var _components_appointment_container_appointment_container_component__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! @components/appointment-container/appointment-container.component */ 3437); 243/* harmony import */ var _pages_contacts_contacts_component__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! @pages/contacts/contacts.component */ 8506); 244/* harmony import */ var _components_contact_container_contact_container_component__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! @components/contact-container/contact-container.component */ 560); 245/* harmony import */ var _pages_event_event_component__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! @pages/event/event.component */ 2438); 246/* harmony import */ var _pages_edit_user_edit_user_component__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! @pages/edit-user/edit-user.component */ 9392); 247/* harmony import */ var _components_social_links_social_links_component__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! @components/social-links/social-links.component */ 1447); 248/* harmony import */ var _pages_loyalty_loyalty_component__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! @pages/loyalty/loyalty.component */ 4269); 249/* harmony import */ var _pages_family_family_component__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! @pages/family/family.component */ 7210); 250/* harmony import */ var _pages_about_item_about_item_component__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! @pages/about-item/about-item.component */ 3978); 251/* harmony import */ var _pages_promotions_promotions_component__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! @pages/promotions/promotions.component */ 6205); 252/* harmony import */ var _pages_highlights_highlights_component__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! @pages/highlights/highlights.component */ 6665); 253/* harmony import */ var _pages_order_pay_order_pay_component__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! @pages/order-pay/order-pay.component */ 1173); 254/* harmony import */ var _pages_brands_brands_component__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! @pages/brands/brands.component */ 1775); 255/* harmony import */ var _pipes_format_money_pipe__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./pipes/format-money.pipe */ 531); 256/* harmony import */ var _pipes_format_name_pipe__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! @pipes/format-name.pipe */ 4980); 257/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! @angular/core */ 2560); 258/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! @angular/router */ 124); 259/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! @angular/common */ 4666); 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278//Components 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329const googleLoginOptions = { 330 oneTapEnabled: false // default is true 331}; 332class ServiceLocator { 333} 334class AppModule { 335 constructor(injector) { 336 this.injector = injector; 337 ServiceLocator.injector = this.injector; 338 } 339} 340AppModule.ɵfac = function AppModule_Factory(t) { return new (t || AppModule)(_angular_core__WEBPACK_IMPORTED_MODULE_42__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_42__.Injector)); }; 341AppModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_42__["ɵɵdefineNgModule"]({ type: AppModule, bootstrap: [_app_component__WEBPACK_IMPORTED_MODULE_1__.AppComponent] }); 342AppModule.ɵinj = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_42__["ɵɵdefineInjector"]({ providers: [ 343 _angular_common_http__WEBPACK_IMPORTED_MODULE_43__.HttpClient, 344 { 345 provide: 'SocialAuthServiceConfig', 346 useValue: { 347 autoLogin: false, 348 providers: [ 349 { 350 id: _abacritt_angularx_social_login__WEBPACK_IMPORTED_MODULE_44__.FacebookLoginProvider.PROVIDER_ID, 351 provider: new _abacritt_angularx_social_login__WEBPACK_IMPORTED_MODULE_44__.FacebookLoginProvider(_env_environment__WEBPACK_IMPORTED_MODULE_26__.environment.facebookApiKey) 352 }, 353 { 354 id: _abacritt_angularx_social_login__WEBPACK_IMPORTED_MODULE_44__.GoogleLoginProvider.PROVIDER_ID, 355 provider: new _abacritt_angularx_social_login__WEBPACK_IMPORTED_MODULE_44__.GoogleLoginProvider(_env_environment__WEBPACK_IMPORTED_MODULE_26__.environment.googleApiKey, googleLoginOptions) 356 } 357 ] 358 } 359 } 360 ], imports: [_angular_platform_browser__WEBPACK_IMPORTED_MODULE_45__.BrowserModule, _app_routing_module__WEBPACK_IMPORTED_MODULE_0__.AppRoutingModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_46__.NgbModule, _angular_forms__WEBPACK_IMPORTED_MODULE_47__.ReactiveFormsModule, _angular_common_http__WEBPACK_IMPORTED_MODULE_43__.HttpClientModule, ngx_slick_carousel__WEBPACK_IMPORTED_MODULE_48__.SlickCarouselModule, ngx_toastr__WEBPACK_IMPORTED_MODULE_49__.ToastrModule.forRoot(), _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_50__.BrowserAnimationsModule, _videogular_ngx_videogular_core__WEBPACK_IMPORTED_MODULE_51__.VgCoreModule, _videogular_ngx_videogular_controls__WEBPACK_IMPORTED_MODULE_52__.VgControlsModule, _videogular_ngx_videogular_overlay_play__WEBPACK_IMPORTED_MODULE_53__.VgOverlayPlayModule, _videogular_ngx_videogular_buffering__WEBPACK_IMPORTED_MODULE_54__.VgBufferingModule, stripe_angular__WEBPACK_IMPORTED_MODULE_55__.StripeModule.forRoot(), _abacritt_angularx_social_login__WEBPACK_IMPORTED_MODULE_44__.SocialLoginModule, angularx_qrcode__WEBPACK_IMPORTED_MODULE_56__.QRCodeModule, ngx_sharebuttons_buttons__WEBPACK_IMPORTED_MODULE_57__.ShareButtonsModule, ngx_sharebuttons_icons__WEBPACK_IMPORTED_MODULE_58__.ShareIconsModule] }); 361(function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_42__["ɵɵsetNgModuleScope"](AppModule, { declarations: [_app_component__WEBPACK_IMPORTED_MODULE_1__.AppComponent, 362 _components_navbar_navbar_component__WEBPACK_IMPORTED_MODULE_2__.NavbarComponent, 363 _pages_home_home_component__WEBPACK_IMPORTED_MODULE_3__.HomeComponent, 364 _pages_about_about_component__WEBPACK_IMPORTED_MODULE_4__.AboutComponent, 365 _pages_favorites_favorites_component__WEBPACK_IMPORTED_MODULE_5__.FavoritesComponent, 366 _pages_cart_cart_component__WEBPACK_IMPORTED_MODULE_6__.CartComponent, 367 _pages_orders_orders_component__WEBPACK_IMPORTED_MODULE_7__.OrdersComponent, 368 _components_footer_footer_component__WEBPACK_IMPORTED_MODULE_8__.FooterComponent, 369 _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_9__.BasicComponent, 370 _pages_login_login_component__WEBPACK_IMPORTED_MODULE_10__.LoginComponent, 371 _pages_search_search_component__WEBPACK_IMPORTED_MODULE_11__.SearchComponent, 372 _pages_products_products_component__WEBPACK_IMPORTED_MODULE_12__.ProductsComponent, 373 _pages_product_product_component__WEBPACK_IMPORTED_MODULE_13__.ProductComponent, 374 _pages_specialty_specialty_component__WEBPACK_IMPORTED_MODULE_14__.SpecialtyComponent, 375 _pages_info_info_component__WEBPACK_IMPORTED_MODULE_15__.InfoComponent, 376 _components_container_products_container_products_component__WEBPACK_IMPORTED_MODULE_16__.ContainerProductsComponent, 377 _components_product_view_product_view_component__WEBPACK_IMPORTED_MODULE_17__.ProductViewComponent, 378 _pages_profile_profile_component__WEBPACK_IMPORTED_MODULE_18__.ProfileComponent, 379 _components_menu_profile_menu_profile_component__WEBPACK_IMPORTED_MODULE_19__.MenuProfileComponent, 380 _pages_addresses_addresses_component__WEBPACK_IMPORTED_MODULE_20__.AddressesComponent, 381 _pages_password_password_component__WEBPACK_IMPORTED_MODULE_21__.PasswordComponent, 382 _pages_order_order_component__WEBPACK_IMPORTED_MODULE_22__.OrderComponent, 383 _pages_order_pay_order_pay_component__WEBPACK_IMPORTED_MODULE_38__.OrderPayComponent, 384 _pages_coupons_coupons_component__WEBPACK_IMPORTED_MODULE_23__.CouponsComponent, 385 _pipes_schedules_pipe__WEBPACK_IMPORTED_MODULE_24__.SchedulesPipe, 386 _pipes_quote_pipe__WEBPACK_IMPORTED_MODULE_25__.QuotePipe,
387 _components_appointment_container_appointment_container_component__WEBPACK_IMPORTED_MODULE_27__.AppointmentContainerComponent, 388 _pages_contacts_contacts_component__WEBPACK_IMPORTED_MODULE_28__.ContactsComponent, 389 _components_contact_container_contact_container_component__WEBPACK_IMPORTED_MODULE_29__.ContactContainerComponent, 390 _pages_event_event_component__WEBPACK_IMPORTED_MODULE_30__.EventComponent, 391 _pages_edit_user_edit_user_component__WEBPACK_IMPORTED_MODULE_31__.EditUserComponent, 392 _components_social_links_social_links_component__WEBPACK_IMPORTED_MODULE_32__.SocialLinksComponent, 393 _pages_loyalty_loyalty_component__WEBPACK_IMPORTED_MODULE_33__.LoyaltyComponent, 394 _pages_family_family_component__WEBPACK_IMPORTED_MODULE_34__.FamilyComponent, 395 _pages_about_item_about_item_component__WEBPACK_IMPORTED_MODULE_35__.AboutItemComponent, 396 _pages_promotions_promotions_component__WEBPACK_IMPORTED_MODULE_36__.PromotionsComponent, 397 _pages_highlights_highlights_component__WEBPACK_IMPORTED_MODULE_37__.HighlightsComponent, 398 _pages_brands_brands_component__WEBPACK_IMPORTED_MODULE_39__.BrandsComponent, 399 _pipes_format_money_pipe__WEBPACK_IMPORTED_MODULE_40__.FormatMoneyPipe, 400 _pipes_format_name_pipe__WEBPACK_IMPORTED_MODULE_41__.FormatNamePipe 401 // StripPaymentComponent 402 ], imports: [_angular_platform_browser__WEBPACK_IMPORTED_MODULE_45__.BrowserModule, _app_routing_module__WEBPACK_IMPORTED_MODULE_0__.AppRoutingModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_46__.NgbModule, _angular_forms__WEBPACK_IMPORTED_MODULE_47__.ReactiveFormsModule, _angular_common_http__WEBPACK_IMPORTED_MODULE_43__.HttpClientModule, ngx_slick_carousel__WEBPACK_IMPORTED_MODULE_48__.SlickCarouselModule, ngx_toastr__WEBPACK_IMPORTED_MODULE_49__.ToastrModule, _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_50__.BrowserAnimationsModule, _videogular_ngx_videogular_core__WEBPACK_IMPORTED_MODULE_51__.VgCoreModule, _videogular_ngx_videogular_controls__WEBPACK_IMPORTED_MODULE_52__.VgControlsModule, _videogular_ngx_videogular_overlay_play__WEBPACK_IMPORTED_MODULE_53__.VgOverlayPlayModule, _videogular_ngx_videogular_buffering__WEBPACK_IMPORTED_MODULE_54__.VgBufferingModule, stripe_angular__WEBPACK_IMPORTED_MODULE_55__.StripeModule, _abacritt_angularx_social_login__WEBPACK_IMPORTED_MODULE_44__.SocialLoginModule, angularx_qrcode__WEBPACK_IMPORTED_MODULE_56__.QRCodeModule, ngx_sharebuttons_buttons__WEBPACK_IMPORTED_MODULE_57__.ShareButtonsModule, ngx_sharebuttons_icons__WEBPACK_IMPORTED_MODULE_58__.ShareIconsModule] }); })(); 403_angular_core__WEBPACK_IMPORTED_MODULE_42__["ɵɵsetComponentScope"](_app_component__WEBPACK_IMPORTED_MODULE_1__.AppComponent, function () { return [_angular_router__WEBPACK_IMPORTED_MODULE_59__.RouterOutlet, _components_navbar_navbar_component__WEBPACK_IMPORTED_MODULE_2__.NavbarComponent, 404 _components_footer_footer_component__WEBPACK_IMPORTED_MODULE_8__.FooterComponent]; }, []); 405_angular_core__WEBPACK_IMPORTED_MODULE_42__["ɵɵsetComponentScope"](_components_navbar_navbar_component__WEBPACK_IMPORTED_MODULE_2__.NavbarComponent, function () { return [_angular_common__WEBPACK_IMPORTED_MODULE_60__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_60__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_60__.NgIf, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_46__.NgbNavbar, _components_social_links_social_links_component__WEBPACK_IMPORTED_MODULE_32__.SocialLinksComponent]; }, []); 406_angular_core__WEBPACK_IMPORTED_MODULE_42__["ɵɵsetComponentScope"](_pages_home_home_component__WEBPACK_IMPORTED_MODULE_3__.HomeComponent, function () { return [_angular_common__WEBPACK_IMPORTED_MODULE_60__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_60__.NgIf, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_46__.NgbCarousel, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_46__.NgbSlide, ngx_slick_carousel__WEBPACK_IMPORTED_MODULE_48__.SlickCarouselComponent, ngx_slick_carousel__WEBPACK_IMPORTED_MODULE_48__.SlickItemDirective, _components_container_products_container_products_component__WEBPACK_IMPORTED_MODULE_16__.ContainerProductsComponent,
407 _components_appointment_container_appointment_container_component__WEBPACK_IMPORTED_MODULE_27__.AppointmentContainerComponent]; }, []); 408_angular_core__WEBPACK_IMPORTED_MODULE_42__["ɵɵsetComponentScope"](_pages_favorites_favorites_component__WEBPACK_IMPORTED_MODULE_5__.FavoritesComponent, function () { return [_angular_common__WEBPACK_IMPORTED_MODULE_60__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_60__.NgIf, _components_product_view_product_view_component__WEBPACK_IMPORTED_MODULE_17__.ProductViewComponent]; }, []); 409_angular_core__WEBPACK_IMPORTED_MODULE_42__["ɵɵsetComponentScope"](_pages_orders_orders_component__WEBPACK_IMPORTED_MODULE_7__.OrdersComponent, function () { return [_angular_common__WEBPACK_IMPORTED_MODULE_60__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_60__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_60__.NgIf, _components_menu_profile_menu_profile_component__WEBPACK_IMPORTED_MODULE_19__.MenuProfileComponent]; }, function () { return [_pipes_format_money_pipe__WEBPACK_IMPORTED_MODULE_40__.FormatMoneyPipe]; }); 410_angular_core__WEBPACK_IMPORTED_MODULE_42__["ɵɵsetComponentScope"](_components_footer_footer_component__WEBPACK_IMPORTED_MODULE_8__.FooterComponent, function () { return [_angular_common__WEBPACK_IMPORTED_MODULE_60__.NgIf, _components_social_links_social_links_component__WEBPACK_IMPORTED_MODULE_32__.SocialLinksComponent]; }, []); 411_angular_core__WEBPACK_IMPORTED_MODULE_42__["ɵɵsetComponentScope"](_pages_search_search_component__WEBPACK_IMPORTED_MODULE_11__.SearchComponent, function () { return [_angular_common__WEBPACK_IMPORTED_MODULE_60__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_47__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_47__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_47__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_47__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_47__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_47__.FormControlName, _components_container_products_container_products_component__WEBPACK_IMPORTED_MODULE_16__.ContainerProductsComponent]; }, []); 412_angular_core__WEBPACK_IMPORTED_MODULE_42__["ɵɵsetComponentScope"](_pages_products_products_component__WEBPACK_IMPORTED_MODULE_12__.ProductsComponent, function () { return [_angular_common__WEBPACK_IMPORTED_MODULE_60__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_60__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_60__.NgIf, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_46__.NgbCollapse, _angular_forms__WEBPACK_IMPORTED_MODULE_47__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_47__["ɵNgSelectMultipleOption"], _components_product_view_product_view_component__WEBPACK_IMPORTED_MODULE_17__.ProductViewComponent]; }, []); 413_angular_core__WEBPACK_IMPORTED_MODULE_42__["ɵɵsetComponentScope"](_pages_product_product_component__WEBPACK_IMPORTED_MODULE_13__.ProductComponent, function () { return [_angular_common__WEBPACK_IMPORTED_MODULE_60__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_60__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_60__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_47__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_47__["ɵNgSelectMultipleOption"], _components_container_products_container_products_component__WEBPACK_IMPORTED_MODULE_16__.ContainerProductsComponent]; }, function () { return [_pipes_format_money_pipe__WEBPACK_IMPORTED_MODULE_40__.FormatMoneyPipe, 414 _pipes_format_name_pipe__WEBPACK_IMPORTED_MODULE_41__.FormatNamePipe 415 // StripPaymentComponent 416]; }); 417_angular_core__WEBPACK_IMPORTED_MODULE_42__["ɵɵsetComponentScope"](_pages_specialty_specialty_component__WEBPACK_IMPORTED_MODULE_14__.SpecialtyComponent, function () { return [_angular_common__WEBPACK_IMPORTED_MODULE_60__.NgIf, _components_appointment_container_appointment_container_
417component__WEBPACK_IMPORTED_MODULE_27__.AppointmentContainerComponent]; }, []); 418_angular_core__WEBPACK_IMPORTED_MODULE_42__["ɵɵsetComponentScope"](_components_container_products_container_products_component__WEBPACK_IMPORTED_MODULE_16__.ContainerProductsComponent, function () { return [_angular_common__WEBPACK_IMPORTED_MODULE_60__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_60__.NgIf, ngx_slick_carousel__WEBPACK_IMPORTED_MODULE_48__.SlickCarouselComponent, ngx_slick_carousel__WEBPACK_IMPORTED_MODULE_48__.SlickItemDirective, _components_product_view_product_view_component__WEBPACK_IMPORTED_MODULE_17__.ProductViewComponent]; }, []); 419_angular_core__WEBPACK_IMPORTED_MODULE_42__["ɵɵsetComponentScope"](_pages_profile_profile_component__WEBPACK_IMPORTED_MODULE_18__.ProfileComponent, function () { return [_angular_common__WEBPACK_IMPORTED_MODULE_60__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_60__.NgIf, _components_menu_profile_menu_profile_component__WEBPACK_IMPORTED_MODULE_19__.MenuProfileComponent]; }, function () { return [_pipes_format_money_pipe__WEBPACK_IMPORTED_MODULE_40__.FormatMoneyPipe]; }); 420_angular_core__WEBPACK_IMPORTED_MODULE_42__["ɵɵsetComponentScope"](_pages_addresses_addresses_component__WEBPACK_IMPORTED_MODULE_20__.AddressesComponent, function () { return [_angular_common__WEBPACK_IMPORTED_MODULE_60__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_60__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_47__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_47__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_47__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_47__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_47__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_47__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_47__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_47__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_47__.FormControlName, _components_menu_profile_menu_profile_component__WEBPACK_IMPORTED_MODULE_19__.MenuProfileComponent]; }, []); 421_angular_core__WEBPACK_IMPORTED_MODULE_42__["ɵɵsetComponentScope"](_pages_password_password_component__WEBPACK_IMPORTED_MODULE_21__.PasswordComponent, function () { return [_angular_forms__WEBPACK_IMPORTED_MODULE_47__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_47__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_47__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_47__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_47__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_47__.FormControlName, _components_menu_profile_menu_profile_component__WEBPACK_IMPORTED_MODULE_19__.MenuProfileComponent]; }, []); 422_angular_core__WEBPACK_IMPORTED_MODULE_42__["ɵɵsetComponentScope"](_pages_coupons_coupons_component__WEBPACK_IMPORTED_MODULE_23__.CouponsComponent, function () { return [_angular_common__WEBPACK_IMPORTED_MODULE_60__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_60__.NgIf, _components_menu_profile_menu_profile_component__WEBPACK_IMPORTED_MODULE_19__.MenuProfileComponent]; }, []); 423_angular_core__WEBPACK_IMPORTED_MODULE_42__["ɵɵsetComponentScope"](_pages_contacts_contacts_component__WEBPACK_IMPORTED_MODULE_28__.ContactsComponent, function () { return [_components_contact_container_
423contact_container_component__WEBPACK_IMPORTED_MODULE_29__.ContactContainerComponent, 424 _components_social_links_social_links_component__WEBPACK_IMPORTED_MODULE_32__.SocialLinksComponent]; }, []); 425_angular_core__WEBPACK_IMPORTED_MODULE_42__["ɵɵsetComponentScope"](_pages_edit_user_edit_user_component__WEBPACK_IMPORTED_MODULE_31__.EditUserComponent, function () { return [_angular_forms__WEBPACK_IMPORTED_MODULE_47__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_47__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_47__.NumberValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_47__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_47__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_47__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_47__.FormControlName, _components_menu_profile_menu_profile_component__WEBPACK_IMPORTED_MODULE_19__.MenuProfileComponent]; }, []); 426_angular_core__WEBPACK_IMPORTED_MODULE_42__["ɵɵsetComponentScope"](_pages_loyalty_loyalty_component__WEBPACK_IMPORTED_MODULE_33__.LoyaltyComponent, function () { return [_angular_common__WEBPACK_IMPORTED_MODULE_60__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_60__.NgIf, _components_menu_profile_menu_profile_component__WEBPACK_IMPORTED_MODULE_19__.MenuProfileComponent]; }, function () { return [_pipes_format_money_pipe__WEBPACK_IMPORTED_MODULE_40__.FormatMoneyPipe]; }); 427_angular_core__WEBPACK_IMPORTED_MODULE_42__["ɵɵsetComponentScope"](_pages_family_family_component__WEBPACK_IMPORTED_MODULE_34__.FamilyComponent, function () { return [_angular_common__WEBPACK_IMPORTED_MODULE_60__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_60__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_47__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_47__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_47__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_47__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_47__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_47__.FormControlName, angularx_qrcode__WEBPACK_IMPORTED_MODULE_56__.QRCodeComponent, _components_menu_profile_menu_profile_component__WEBPACK_IMPORTED_MODULE_19__.MenuProfileComponent]; }, function () { return [_pipes_format_money_pipe__WEBPACK_IMPORTED_MODULE_40__.FormatMoneyPipe]; }); 428_angular_core__WEBPACK_IMPORTED_MODULE_42__["ɵɵsetComponentScope"](_pages_promotions_promotions_component__WEBPACK_IMPORTED_MODULE_36__.PromotionsComponent, function () { return [_angular_common__WEBPACK_IMPORTED_MODULE_60__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_60__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_60__.NgIf, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_46__.NgbCollapse, _angular_forms__WEBPACK_IMPORTED_MODULE_47__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_47__["ɵNgSelectMultipleOption"], _components_product_view_product_view_component__WEBPACK_IMPORTED_MODULE_17__.ProductViewComponent]; }, []); 429_angular_core__WEBPACK_IMPORTED_MODULE_42__["ɵɵsetComponentScope"](_pages_highlights_highlights_component__WEBPACK_IMPORTED_MODULE_37__.HighlightsComponent, function () { return [_angular_common__WEBPACK_IMPORTED_MODULE_60__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_60__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_60__.NgIf, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_46__.NgbCollapse, _angular_forms__WEBPACK_IMPORTED_MODULE_47__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_47__["ɵNgSelectMultipleOption"], _components_product_view_product_view_component__WEBPACK_IMPORTED_MODULE_17__.ProductViewComponent]; }, []); 430 431 432/***/ }), 433 434/***/ 3437: 435/*!*************************************************************************************!*\ 436 !*** ./src/app/components/appointment-container/appointment-container.component.ts ***! 437 \*************************************************************************************/ 438/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 439 440__webpack_require__.r(__webpack_exports__); 441/* harmony export */ __webpack_require__.d(__webpack_exports__, { 442/* harmony export */ "AppointmentContainerComponent": () => (/* binding */ AppointmentContainerComponent) 443/* harmony export */ }); 444/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/forms */ 2508); 445/* harmony import */ var _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pages/basic/basic.component */ 9689); 446/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 2560); 447/* harmony import */ var _services_services_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @services/services.service */ 6325); 448/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ 4666); 449 450 451 452 453 454 455function AppointmentContainerComponent_option_16_Template(rf, ctx) { if (rf & 1) { 456 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "option", 21); 457 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1); 458 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 459} if (rf & 2) { 460 const store_r4 = ctx.$implicit; 461 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", store_r4.id); 462 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); 463 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](store_r4.name); 464} } 465function AppointmentContainerComponent_option_21_Template(rf, ctx) { if (rf & 1) { 466 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "option", 21); 467 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1); 468 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 469} if (rf & 2) { 470 const specialty_r5 = ctx.$implicit; 471 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", specialty_r5.id); 472 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); 473 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](specialty_r5.name); 474} } 475function AppointmentContainerComponent_small_26_Template(rf, ctx) { if (rf & 1) { 476 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "small", 22); 477 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, "Data fora do horario de servi\u00E7o."); 478 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 479} } 480function AppointmentContainerComponent_small_29_Template(rf, ctx) { if (rf & 1) { 481 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "small", 22); 482 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, "Hora fora do horario de servi\u00E7o."); 483 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 484} } 485class AppointmentContainerComponent extends _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_0__.BasicComponent { 486 constructor(formBuilder, storeService, appointmentService) { 487 super(); 488 this.formBuilder = formBuilder; 489 this.storeService = storeService; 490 this.appointmentService = appointmentService; 491 this.stores = []; 492 this.specialties = []; 493 this.startDate = new Date(); 494 this.endDate = new Date(); 495 this.isDateOk = true; 496 this.isTimeOk = true; 497 this.appointmentForm = this.formBuilder.group({ 498 store_id: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_3__.Validators.required]], 499 specialty_id: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_3__.Validators.required]], 500 date: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_3__.Validators.required]], 501 time: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_3__.Validators.required]], 502 name: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_3__.Validators.required]], 503 phone: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_3__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.Validators.minLength(9), _angular_forms__WEBPACK_IMPORTED_MODULE_3__.Validators.maxLength(9)]], 504 email: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_3__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.Validators.email]] 505 }); 506 } 507 ngOnInit() { 508 let date = new Date(); 509 this.startDate.setDate(date.getDate() + 3); 510 this.endDate.setDate(date.getDate() + 90); 511 this.load(); 512 } 513 load() { 514 this.storeService.all().subscribe((resp) => { 515 if (resp.status == 'OK') { 516 this.stores = resp.data; 517 this.selectedStore = this.stores[0]; 518 this.specialties = this.selectedStore.specialties; 519 this.appointmentForm.controls['store_id'].setValue(this.selectedStore.id); 520 } 521 }); 522 } 523 changeStore(event) { 524 this.selectedStore = this.stores.find((store) => store.id == event.target.value); 525 this.specialties = this.selectedStore.specialties; 526 this.appointmentForm.controls['store_id'].setValue(this.selectedStore.id); 527 } 528 validateDate() { 529 let data = this.appointmentForm.value; 530 const today = new Date(); 531 const date = new Date(data.date); 532 if (date.getTime() < today.getTime()) { 533 this.isDateOk = false;
534 return; 535 } 536 const day = date.getDay(); 537 const schedule = this.selectedStore.schedules[day - 1]; 538 if (schedule == undefined) { 539 this.isDateOk = false; 540 } 541 else { 542 this.isDateOk = true; 543 } 544 } 545 validateTime() { 546 let data = this.appointmentForm.value; 547 const d = new Date(data.date); 548 const day = d.getDay(); 549 const schedule = this.selectedStore.schedules[day - 1]; 550 if (schedule == undefined) { 551 this.isTimeOk = false; 552 } 553 else { 554 this.isDateOk = true; 555 let sHour = schedule.start; 556 let eHour = schedule.end2 ? schedule.end2 : schedule.end; 557 if (data.time < sHour || data.time > eHour) { 558 this.isTimeOk = false; 559 } 560 else { 561 this.isTimeOk = true; 562 } 563 } 564 } 565 create() { 566 let data = this.appointmentForm.value; 567 data['status'] = '1'; 568 this.appointmentService.create(data).subscribe((resp) => { 569 if (resp.status == 'OK') { 570 this.appointmentForm.reset(); 571 this.toastService.showSuccess(resp.message); 572 } 573 else { 574 this.toastService.showError(resp.message); 575 } 576 }); 577 } 578} 579AppointmentContainerComponent.ɵfac = function AppointmentContainerComponent_Factory(t) { return new (t || AppointmentContainerComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_3__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_services_services_service__WEBPACK_IMPORTED_MODULE_1__.StoreService), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_services_services_service__WEBPACK_IMPORTED_MODULE_1__.AppointmentService)); }; 580AppointmentContainerComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({ type: AppointmentContainerComponent, selectors: [["app-appointment-container"]], features: [_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵInheritDefinitionFeature"]], decls: 37, vars: 16, consts: [[1, "ob-title"], [1, "row", "appointment-container"], [1, "col", "col-12", "col-md-6"], [1, "img-appointment"], [1, "form", 3, "formGroup", "submit"], [1, "row", "align-items-center"], [1, "col-12", "mt-3"], ["type", "text", "placeholder", "Nome", "formControlName", "name"], ["type", "text", "placeholder", "Email", "formControlName", "email"], ["type", "text", "placeholder", "Telem\u00F3vel", "formControlName", "phone"], [1, "col-12", "col-md-6", "mt-3"], ["aria-placeholder", "Loja", "formControlName", "store_id", 3, "change"], [3, "value", 4, "ngFor", "ngForOf"], ["formControlName", "specialty_id"], ["value", "null", "disabled", "", "hidden", ""], ["placeholder", "dd/mm/aaaa", "type", "date", "formControlName", "date", 3, "min", "max", "change"], ["class", "text-danger", 4, "ngIf"], ["placeholder", "--:--", "type", "time", "formControlName", "time", 3, "change"], [1, "text-white"], ["href", "/info/politica-de-privacidade"], ["type", "submit", 1, "btn", "mt-3", "w-50", "center", "btn-white", 3, "disabled"], [3, "value"], [1, "text-danger"]], template: function AppointmentContainerComponent_Template(rf, ctx) { if (rf & 1) { 581 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "h2", 0); 582 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, "Marcar Consulta"); 583 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 584 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 1)(3, "div", 2); 585 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](4, "div", 3); 586 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 587 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 2)(6, "form", 4); 588 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("submit", function AppointmentContainerComponent_Template_form_submit_6_listener() { return ctx.create(); }); 589 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "div", 5)(8, "div", 6); 590 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](9, "input", 7); 591 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 592 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "div", 6); 593 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](11, "input", 8); 594 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 595 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "div", 6); 596 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](13, "input", 9); 597 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 598 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](14, "div", 10)(15, "select", 11); 599 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function AppointmentContainerComponent_Template_select_change_15_listener($event) { return ctx.changeStore($event); }); 600 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](16, AppointmentContainerComponent_option_16_Template, 2, 2, "option", 12); 601 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); 602 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](17, "div", 10)(18, "select", 13)(19, "option", 14); 603 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](20, "Especialidade"); 604 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 605 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](21, AppointmentContainerComponent_option_21_Template, 2, 2, "option", 12); 606 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); 607 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](22, "div", 10)(23, "input",
60715); 608 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function AppointmentContainerComponent_Template_input_change_23_listener() { return ctx.validateDate(); }); 609 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](24, "date"); 610 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](25, "date"); 611 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 612 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](26, AppointmentContainerComponent_small_26_Template, 2, 0, "small", 16); 613 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 614 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](27, "div", 10)(28, "input", 17); 615 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function AppointmentContainerComponent_Template_input_change_28_listener() { return ctx.validateTime(); }); 616 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 617 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](29, AppointmentContainerComponent_small_29_Template, 2, 0, "small", 16); 618 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); 619 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](30, "p", 18)(31, "small"); 620 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](32, "N\u00E3o partilhamos, nem vendemos os seus dados. "); 621 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](33, "a", 19); 622 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](34, "(Pol\u00EDtica de privacidade)"); 623 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()(); 624 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](35, "button", 20); 625 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](36, "Marcar"); 626 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()(); 627 } if (rf & 2) { 628 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4); 629 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵstyleProp"]("background-image", "url(assets/images/appointment.png)"); 630 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); 631 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx.appointmentForm); 632 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](10); 633 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx.stores); 634 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5); 635 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx.specialties); 636 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); 637 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpropertyInterpolate"]("min", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind2"](24, 10, ctx.startDate, "yyyy-MM-dd")); 638 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpropertyInterpolate"]("max", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind2"](25, 13, ctx.endDate, "yyyy-MM-dd")); 639 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3); 640 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx.isDateOk); 641 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3); 642 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx.isTimeOk); 643 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6); 644 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", ctx.appointmentForm.invalid); 645 } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_4__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_4__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.Form
645ControlName, _angular_common__WEBPACK_IMPORTED_MODULE_4__.DatePipe], styles: [".appointment-container[_ngcontent-%COMP%] {\n background-color: var(--primary);\n}\n.appointment-container[_ngcontent-%COMP%] .col[_ngcontent-%COMP%] {\n padding: 0px;\n}\n.appointment-container[_ngcontent-%COMP%] .img-appointment[_ngcontent-%COMP%] {\n width: 100%;\n height: 51vh;\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n}\n.appointment-container[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] {\n padding: 60px 50px 60px 50px;\n}\nh2[_ngcontent-%COMP%] {\n font-size: 27px;\n text-align: center;\n margin-bottom: 56px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFwcG9pbnRtZW50LWNvbnRhaW5lci5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNDLGdDQUFBO0FBQ0Q7QUFDQztFQUNDLFlBQUE7QUFDRjtBQUVDO0VBQ0MsV0FBQTtFQUNBLFlBQUE7RUFDQSwyQkFBQTtFQUNBLDRCQUFBO0VBQ0Esc0JBQUE7QUFBRjtBQUdDO0VBQ0MsNEJBQUE7QUFERjtBQUtBO0VBQ0MsZUFBQTtFQUNBLGtCQUFBO0VBQ0EsbUJBQUE7QUFGRCIsImZpbGUiOiJhcHBvaW50bWVudC1jb250YWluZXIuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuYXBwb2ludG1lbnQtY29udGFpbmVyIHtcblx0YmFja2dyb3VuZC1jb2xvcjogdmFyKC0tcHJpbWFyeSk7XG5cblx0LmNvbCB7XG5cdFx0cGFkZGluZzogMHB4O1xuXHR9XG5cblx0LmltZy1hcHBvaW50bWVudCB7XG5cdFx0d2lkdGg6IDEwMCU7XG5cdFx0aGVpZ2h0OiA1MXZoO1xuXHRcdGJhY2tncm91bmQtcG9zaXRpb246IGNlbnRlcjtcblx0XHRiYWNrZ3JvdW5kLXJlcGVhdDogbm8tcmVwZWF0O1xuXHRcdGJhY2tncm91bmQtc2l6ZTogY292ZXI7XG5cdH1cblxuXHQuZm9ybSB7XG5cdFx0cGFkZGluZzogNjBweCA1MHB4IDYwcHggNTBweDtcblx0fVxufVxuXG5oMiB7XG5cdGZvbnQtc2l6ZTogMjdweDtcblx0dGV4dC1hbGlnbjogY2VudGVyO1xuXHRtYXJnaW4tYm90dG9tOiA1NnB4O1xufVxuIl19 */"] }); 646 647 648/***/ }), 649 650/***/ 560: 651/*!*****************************************************************************!*\ 652 !*** ./src/app/components/contact-container/contact-container.component.ts ***! 653 \*****************************************************************************/ 654/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 655 656__webpack_require__.r(__webpack_exports__); 657/* harmony export */ __webpack_require__.d(__webpack_exports__, { 658/* harmony export */ "ContactContainerComponent": () => (/* binding */ ContactContainerComponent) 659/* harmony export */ }); 660/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ 2508); 661/* harmony import */ var _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pages/basic/basic.component */ 9689); 662/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 2560); 663/* harmony import */ var _app_services_contact_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @app/services/contact.service */ 7293); 664 665 666 667 668 669class ContactContainerComponent extends _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_0__.BasicComponent { 670 constructor(formBuilder, contactService) { 671 super(); 672 this.formBuilder = formBuilder; 673 this.contactService = contactService; 674 this.contactForm = this.formBuilder.group({ 675 name: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_2__.Validators.required]], 676 email: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_2__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_2__.Validators.email]], 677 subject: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_2__.Validators.required]], 678 message: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_2__.Validators.required]] 679 }); 680 } 681 ngOnInit() { } 682 create() { 683 this.contactService.email(this.contactForm.value).subscribe((resp) => { 684 if (resp.status == 'OK') { 685 this.contactForm.reset(); 686 this.toastService.showSuccess(resp.message); 687 } 688 else { 689 this.toastService.showError(resp.message); 690 } 691 }); 692 } 693} 694ContactContainerComponent.ɵfac = function ContactContainerComponent_Factory(t) { return new (t || ContactContainerComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_2__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_app_services_contact_service__WEBPACK_IMPORTED_MODULE_1__.ContactService)); }; 695ContactContainerComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({ type: ContactContainerComponent, selectors: [["app-contact-container"]], features: [_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵInheritDefinitionFeature"]], decls: 22, vars: 4, consts: [[1, "ob-title"], [1, "row", "contact-container"], [1, "col", "col-12", "col-md-6"], [1, "img-contact"], [1, "form", 3, "formGroup", "submit"], [1, "mt-3"], ["type", "text", "placeholder", "Nome", "formControlName", "name"], ["type", "text", "placeholder", "Email", "formControlName", "email"], ["type", "text", "placeholder", "Assunto", "formControlName", "subject"], ["placeholder", "Mensagem", "formControlName", "message", "rows", "4"], [1, "text-white"], ["href", "/info/politica-de-privacidade"], ["type", "submit", 1, "btn", "mt-3", "w-50", "center", "btn-white", 3, "disabled"]], template: function ContactContainerComponent_Template(rf, ctx) { if (rf & 1) { 696 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "h2", 0); 697 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1, "Formul\u00E1rio de Contacto"); 698 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); 699 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](2, "div", 1)(3, "div", 2); 700 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](4, "div", 3); 701 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); 702 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](5, "div", 2)(6, "form", 4); 703 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("submit", function ContactContainerComponent_Template_form_submit_6_listener() { return ctx.create(); }); 704 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](7, "div", 5); 705 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](8, "input", 6); 706 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); 707 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](9, "div", 5); 708 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](10, "input", 7); 709 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); 710 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](11, "div", 5); 711 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](12, "input", 8); 712 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); 713 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](13, "div", 5); 714 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](14, "textarea", 9); 715 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); 716 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](15, "p", 10)(16, "small"); 717 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](17, "N\u00E3o partilhamos, nem vendemos os seus dados. "); 718 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](18, "a", 11); 719 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](19, "(Pol\u00EDtica de privacidade)"); 720 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()(); 721 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](20, "button", 12); 722 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](21, "Enviar"); 723 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()(); 724 } if (rf & 2) { 725 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4); 726 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵstyleProp"]("background-image", "url(assets/images/contact.jpeg)"); 727 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2); 728 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("formGroup", ctx.contactForm); 729 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](14); 730 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("disabled", ctx.contactForm.invali
730d); 731 } }, dependencies: [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_2__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_2__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_2__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_2__.FormControlName], styles: ["h2[_ngcontent-%COMP%] {\n margin-bottom: 38px;\n}\n\n.contact-container[_ngcontent-%COMP%] {\n background-color: var(--primary);\n margin-bottom: 105px;\n}\n\n.contact-container[_ngcontent-%COMP%] .col[_ngcontent-%COMP%] {\n padding: 0px;\n}\n\n.contact-container[_ngcontent-%COMP%] .img-contact[_ngcontent-%COMP%] {\n width: 100%;\n height: 51vh;\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n}\n\n.contact-container[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] {\n padding: 60px 50px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvbnRhY3QtY29udGFpbmVyLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0MsbUJBQUE7QUFDRDs7QUFFQTtFQUNDLGdDQUFBO0VBQ0Esb0JBQUE7QUFDRDs7QUFDQztFQUNDLFlBQUE7QUFDRjs7QUFFQztFQUNDLFdBQUE7RUFDQSxZQUFBO0VBQ0EsMkJBQUE7RUFDQSw0QkFBQTtFQUNBLHNCQUFBO0FBQUY7O0FBR0M7RUFDQyxrQkFBQTtBQURGIiwiZmlsZSI6ImNvbnRhY3QtY29udGFpbmVyLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiaDIge1xuXHRtYXJnaW4tYm90dG9tOiAzOHB4O1xufVxuXG4uY29udGFjdC1jb250YWluZXIge1xuXHRiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1wcmltYXJ5KTtcblx0bWFyZ2luLWJvdHRvbTogMTA1cHg7XG5cblx0LmNvbCB7XG5cdFx0cGFkZGluZzogMHB4O1xuXHR9XG5cblx0LmltZy1jb250YWN0IHtcblx0XHR3aWR0aDogMTAwJTtcblx0XHRoZWlnaHQ6IDUxdmg7XG5cdFx0YmFja2dyb3VuZC1wb3NpdGlvbjogY2VudGVyO1xuXHRcdGJhY2tncm91bmQtcmVwZWF0OiBuby1yZXBlYXQ7XG5cdFx0YmFja2dyb3VuZC1zaXplOiBjb3Zlcjtcblx0fVxuXG5cdC5mb3JtIHtcblx0XHRwYWRkaW5nOiA2MHB4IDUwcHg7XG5cdH1cbn1cbiJdfQ== */"] }); 732 733 734/***/ }), 735 736/***/ 7707: 737/*!*******************************************************************************!*\ 738 !*** ./src/app/components/container-products/container-products.component.ts ***! 739 \*******************************************************************************/ 740/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 741 742__webpack_require__.r(__webpack_exports__); 743/* harmony export */ __webpack_require__.d(__webpack_exports__, { 744/* harmony export */ "ContainerProductsComponent": () => (/* binding */ ContainerProductsComponent) 745/* harmony export */ }); 746/* harmony import */ var _home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 1670); 747/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 2560); 748/* harmony import */ var _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @pages/basic/basic.component */ 9689); 749/* harmony import */ var _services_brand_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @services/brand.service */ 7744); 750 751 752 753 754 755 756function ContainerProductsComponent_h2_0_Template(rf, ctx) { 757 if (rf & 1) { 758 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "h2", 8); 759 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1); 760 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); 761 } 762 763 if (rf & 2) { 764 const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](); 765 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1); 766 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx_r0.title); 767 } 768} 769 770function ContainerProductsComponent_div_4_Template(rf, ctx) { 771 if (rf & 1) { 772 const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetCurrentView"](); 773 774 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 9)(1, "app-product-view", 10); 775 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("onOpenProduct", function ContainerProductsComponent_div_4_Template_app_product_view_onOpenProduct_1_listener() { 776 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r8); 777 const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](); 778 return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetVie
778w"](ctx_r7.onOpenProduct()); 779 }); 780 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()(); 781 } 782 783 if (rf & 2) { 784 const product_r6 = ctx.$implicit; 785 const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](); 786 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1); 787 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("product", product_r6)("brand", ctx_r2.getBrandName(product_r6.brand_id)); 788 } 789} 790 791function ContainerProductsComponent_ng_container_5_Template(rf, ctx) { 792 if (rf & 1) { 793 const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetCurrentView"](); 794 795 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerStart"](0); 796 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](1, "button", 11); 797 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function ContainerProductsComponent_ng_container_5_Template_button_click_1_listener() { 798 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r10); 799 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](); 800 801 const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵreference"](3); 802 803 return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](_r1.slickPrev()); 804 }); 805 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](2, "i", 12); 806 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); 807 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](3, "button", 13); 808 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function ContainerProductsComponent_ng_container_5_Template_button_click_3_listener() { 809 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r10); 810 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](); 811 812 const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵreference"](3); 813 814 return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](_r1.slickNext()); 815 }); 816 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](4, "i", 14); 817 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); 818 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerEnd"](); 819 } 820} 821 822function ContainerProductsComponent_button_6_Template(rf, ctx) { 823 if (rf & 1) { 824 const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetCurrentView"](); 825 826 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "button", 15); 827 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function ContainerProductsComponent_button_6_Template_button_click_0_listener() { 828 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r13); 829 const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](); 830 return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r12.openProducts()); 831 }); 832 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1, "Ver Todos"); 833 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); 834 } 835} 836 837function ContainerProductsComponent_div_7_Template(rf, ctx) { 838 if (rf & 1) { 839 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 16); 840 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "br"); 841 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); 842 } 843} 844 845class ContainerProductsComponent extends _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_1__.BasicComponent { 846 constructor(brandService) { 847 super(); 848 this.brandService = brandService; 849 this.term = null; 850 this.products = []; 851 this.category = null; 852 this.link = null; 853 this.categoryName = null; 854 this.title = ''; 855 this.seeAllProduct = false; 856 this.openProduct = new _angular_core__WEBPACK_IMPORTED_MODULE_3__.EventEmitter(); 857 this.brands = []; 858 this.slideConfig = { 859 slidesToShow: 4, 860 arrows: false, 861 responsive: [{ 862 breakpoint: 1024, 863 settings: { 864 slidesToShow: 4 865 } 866 }, { 867 breakpoint: 775, 868 settings: { 869 slidesToShow: 2 870 } 871 }, { 872 breakpoint: 600, 873 settings: { 874 slidesToShow: 1 875 } 876 }] 877 }; 878 this.loadBrands(); 879 } 880 881 ngOnInit() {} 882 883 onOpenProduct() { 884 this.openProduct.emit(true); 885 } 886 887 openProducts() { 888 if (this.link) { 889 window.location.href = this.link; 890 } else if (this.category) { 891 window.location.href = `/categoria/${this.category}/${this.categoryName}`; 892 } else { 893 if (this.term) { 894 window.location.href = `/produtos/${this.term}`; 895 } else { 896 window.location.href = '/produtos'; 897 } 898 } 899 } 900 901 loadBrands() { 902 var _this = this; 903 904 this.brandService.all().subscribe( /*#__PURE__*/function () { 905 var _ref = (0,_home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (resp) { 906 if (resp.status == 'OK') { 907 _this.brands = yield resp.data; 908 } 909 }); 910 911 return function (_x) { 912 return _ref.apply(this, arguments); 913 }; 914 }()); 915 } 916 917 getBrandName(brand_id) { 918 let brand = this.brands.find(b => b.id == brand_id); 919 return brand ? brand.name : ''; 920 } 921 922} 923 924ContainerProductsComponent.ɵfac = function ContainerProductsComponent_Factory(t) { 925 return new (t || ContainerProductsComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_services_brand_service__WEBPACK_IMPORTED_MODULE_2__.BrandService)); 926}; 927 928ContainerProductsComponent.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({ 929 type: ContainerProductsComponent, 930 selectors: [["app-container-products"]], 931 inputs: { 932 term: "term", 933 products: "products", 934 category: "category", 935 link: "link", 936 categoryName: "categoryName", 937 title: "title", 938 seeAllProduct: "seeAllProduct" 939 }, 940 outputs: { 941 openProduct: "openProduct" 942 }, 943 features: [_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵInheritDefinitionFeature"]], 944 decls: 8, 945 vars: 6, 946 consts: [["class", "ob-title", 4, "ngIf"], [1, "products"], [1, "carousel", 3, "config"], ["slickModal", "slick-carousel"], ["ngxSlickItem", "", "class", "slide", 4, "ngFor", "ngForOf"], [4, "ngIf"], ["class", "btn btn-primary center", 3, "click", 4, "ngIf"], ["class", "mb-5", 4, "ngIf"], [1, "ob-title"], ["ngxSlickItem", "", 1, "slide"], [3, "product", "brand", "onOpenProduct"], [1, "btn-arrow", "arrow-left", 3, "click"], [1, "fas", "fa-angle-left", "fa-2x"], [1, "btn-arrow", "arrow-right", 3, "click"], [1, "fas", "fa-angle-right", "fa-2x"], [1, "btn", "btn-primary", "center", 3, "click"], [1, "mb-5"]], 947 template: function ContainerProductsComponent_Template(rf, ctx) { 948 if (rf & 1) { 949 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](0, ContainerProductsComponent_h2_0_Template, 2, 1, "h2", 0); 950 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](1, "div", 1)(2, "ngx-slick-carousel", 2, 3); 951 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](4, ContainerProductsComponent_div_4_Template, 2, 2, "div", 4); 952 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); 953 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](5, ContainerProductsComponent_ng_container_5_Template, 5, 0, "ng-container", 5); 954 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); 955 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](6,
955ContainerProductsComponent_button_6_Template, 2, 0, "button", 6); 956 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](7, ContainerProductsComponent_div_7_Template, 2, 0, "div", 7); 957 } 958 959 if (rf & 2) { 960 const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵreference"](3); 961 962 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.title); 963 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2); 964 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("config", ctx.slideConfig); 965 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2); 966 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngForOf", ctx.products); 967 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1); 968 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", _r1); 969 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1); 970 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.seeAllProduct); 971 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1); 972 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", !ctx.seeAllProduct); 973 } 974 }, 975 styles: [".products[_ngcontent-%COMP%] {\n position: relative;\n}\n.products[_ngcontent-%COMP%] .carousel[_ngcontent-%COMP%] {\n margin-left: 5vh;\n margin-right: 5vh;\n}\n.products[_ngcontent-%COMP%] .btn-arrow[_ngcontent-%COMP%] {\n background: transparent;\n border: none;\n color: var(--dark);\n}\n.products[_ngcontent-%COMP%] .arrow-left[_ngcontent-%COMP%] {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 25px;\n}\n.products[_ngcontent-%COMP%] .arrow-right[_ngcontent-%COMP%] {\n position: absolute;\n right: 25px;\n top: 0;\n bottom: 0;\n}\n.products[_ngcontent-%COMP%] .slide[_ngcontent-%COMP%] {\n padding: 20px;\n}\n.btn-outline[_ngcontent-%COMP%] {\n border-radius: 110px;\n}\n.btn-outline[_ngcontent-%COMP%]:hover {\n background: var(--dark);\n color: #fff;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvbnRhaW5lci1wcm9kdWN0cy5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNDLGtCQUFBO0FBQ0Q7QUFDQztFQUNDLGdCQUFBO0VBQ0EsaUJBQUE7QUFDRjtBQUVDO0VBQ0MsdUJBQUE7RUFDQSxZQUFBO0VBQ0Esa0JBQUE7QUFBRjtBQUdDO0VBQ0Msa0JBQUE7RUFDQSxNQUFBO0VBQ0EsU0FBQTtFQUNBLFVBQUE7QUFERjtBQUlDO0VBQ0Msa0JBQUE7RUFDQSxXQUFBO0VBQ0EsTUFBQTtFQUNBLFNBQUE7QUFGRjtBQUtDO0VBQ0MsYUFBQTtBQUhGO0FBTUE7RUFDQyxvQkFBQTtBQUhEO0FBTUE7RUFDQyx1QkFBQTtFQUNBLFdBQUE7QUFIRCIsImZpbGUiOiJjb250YWluZXItcHJvZHVjdHMuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIucHJvZHVjdHMge1xuXHRwb3NpdGlvbjogcmVsYXRpdmU7XG5cblx0LmNhcm91c2VsIHtcblx0XHRtYXJnaW4tbGVmdDogNXZoO1xuXHRcdG1hcmdpbi1yaWdodDogNXZoO1xuXHR9XG5cblx0LmJ0bi1hcnJvdyB7XG5cdFx0YmFja2dyb3VuZDogdHJhbnNwYXJlbnQ7XG5cdFx0Ym9yZGVyOiBub25lO1xuXHRcdGNvbG9yOiB2YXIoLS1kYXJrKTtcblx0fVxuXG5cdC5hcnJvdy1sZWZ0IHtcblx0XHRwb3NpdGlvbjogYWJzb2x1dGU7XG5cdFx0dG9wOiAwO1xuXHRcdGJvdHRvbTogMDtcblx0XHRsZWZ0OiAyNXB4O1xuXHR9XG5cblx0LmFycm93LXJpZ2h0IHtcblx0XHRwb3NpdGlvbjogYWJzb2x1dGU7XG5cdFx0cmlnaHQ6IDI1cHg7XG5cdFx0dG9wOiAwO1xuXHRcdGJvdHRvbTogMDtcblx0fVxuXG5cdC5zbGlkZSB7XG5cdFx0cGFkZGluZzogMjBweDtcblx0fVxufVxuLmJ0bi1vdXRsaW5lIHtcblx0Ym9yZGVyLXJhZGl1czogMTEwcHg7XG59XG5cbi5idG4tb3V0bGluZTpob3ZlciB7XG5cdGJhY2tncm91bmQ6IHZhcigtLWRhcmspO1xuXHRjb2xvcjogI2ZmZjtcbn1cbiJdfQ== */"] 976}); 977 978/***/ }), 979 980/***/ 4662: 981/*!*******************************************************!*\ 982 !*** ./src/app/components/footer/footer.component.ts ***! 983 \*******************************************************/ 984/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 985 986__webpack_require__.r(__webpack_exports__); 987/* harmony export */ __webpack_require__.d(__webpack_exports__, { 988/* harmony export */ "FooterComponent": () => (/* binding */ FooterComponent) 989/* harmony export */ }); 990/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/forms */ 2508); 991/* harmony import */ var _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pages/basic/basic.component */ 9689); 992/* harmony import */ var _pages_login_login_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @pages/login/login.component */ 4902); 993/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 2560); 994/* harmony import */ var _services_services_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @services/services.service */ 6325); 995 996 997 998 999 1000 1001function FooterComponent_p_36_Template(rf, ctx) { if (rf & 1) { 1002 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "p")(1, "a", 19); 1003 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "Pol\u00EDtica de devolu\u00E7\u00F5es"); 1004 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()(); 1005} } 1006function FooterComponent_p_37_Template(rf, ctx) { if (rf & 1) { 1007 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "p")(1, "a", 20); 1008 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "Pol\u00EDtica de cookies"); 1009 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()(); 1010} } 1011function FooterComponent_p_38_Template(rf, ctx) { if (rf & 1) { 1012 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "p")(1, "a", 21); 1013 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "Resolu\u
101300E7\u00E3o alternativa de lit\u00EDgios"); 1014 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()(); 1015} } 1016class FooterComponent extends _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_0__.BasicComponent { 1017 constructor(formBuilder, contactService) { 1018 super(); 1019 this.formBuilder = formBuilder; 1020 this.contactService = contactService; 1021 this.categories = []; 1022 this.specialties = []; 1023 this.contactSent = false; 1024 this.user = this.storageService.get('user'); 1025 this.contactForm = this.formBuilder.group({ 1026 name: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_4__.Validators.required]], 1027 email: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_4__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.Validators.email]], 1028 message: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_4__.Validators.required]], 1029 terms: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_4__.Validators.required]] 1030 }); 1031 } 1032 openLogin() { 1033 if (!this.user) { 1034 this.modalsService.openModal(_pages_login_login_component__WEBPACK_IMPORTED_MODULE_1__.LoginComponent, true, 'modal-container'); 1035 } 1036 else { 1037 this.router.navigate(['/profile']); 1038 } 1039 } 1040 contact() { 1041 this.contactService.email(this.contactForm.value).subscribe((resp) => { 1042 if (resp.status == 'OK') { 1043 this.toastService.showSuccess(resp.message); 1044 this.contactForm.reset(); 1045 this.contactSent = true; 1046 } 1047 }); 1048 } 1049} 1050FooterComponent.ɵfac = function FooterComponent_Factory(t) { return new (t || FooterComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_4__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_services_services_service__WEBPACK_IMPORTED_MODULE_2__.ContactService)); }; 1051FooterComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({ type: FooterComponent, selectors: [["app-footer"]], inputs: { categories: "categories", specialties: "specialties", merchant: "merchant" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵInheritDefinitionFeature"]], decls: 47, vars: 3, consts: [[1, "footer"], [1, "row"], [1, "col", "col-12", "col-md-4", "col-start"], [1, "mb-0"], ["href", "tel:+351220969940"], [1, "small-text"], ["href", "tel:+351912156666"], ["href", "mailto:[email protected]"], [1, "col", "col-12", "col-md-4"], ["href", "/info/condicoes-de-utilizacao", "role", "button"], ["href", "/info/politica-de-privacidade", "role", "button"], [4, "ngIf"], ["src", "assets/icons/visa.svg", "alt", "Visa", 1, "mx-1", "img-pay"], ["src", "assets/icons/mastercard.svg", "alt", "MasterCard", 1, "mx-1", "img-pay"], ["src", "assets/icons/mb-way.svg", "alt", "MBWay", 1, "mx-1", "img-pay"], ["src", "assets/icons/multibanco.svg", "alt", "Multibanco", 1, "mx-1", "img-pay"], [1, "row", "text-center"], ["href", "https://www.livroreclamacoes.pt/Pedido/Reclamacao", "target", "_blank"], ["src", "assets/images/lr-logo.png", "alt", "Livro de Reclama\u00E7\u00F5es", 1, "lrc"], ["role", "button", "href", "/info/politica-de-devolucoes"], ["role", "button", "href", "/info/politica-de-cookies"], ["role", "button", "href", "/info/ral"]], template: function FooterComponent_Template(rf, ctx) { if (rf & 1) { 1052 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "footer", 0)(1, "div", 1)(2, "div", 2)(3, "h5"); 1053 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](4, "Contactos"); 1054 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); 1055 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](5, "p"); 1056 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](6, "Suporte - Loja Online"); 1057 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); 1058 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](7, "p", 3)(8, "a", 4); 1059 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](9, "+351 220 969 940"); 1060 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()(); 1061 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](10, "p", 5); 1062 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](11, "(chamada para rede fixa)"); 1063 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); 1064 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](12, "p", 3)(13, "a", 6); 1065 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](14, "+351 912 156 666"); 1066 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()(); 1067 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](15, "p", 5); 1068 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](16, "(chamada para rede m\u00F3vel)"); 1069 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); 1070 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](17, "p")(18, "a", 7); 1071 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](19, "[email protected]"); 1072 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()(); 1073 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](20, "div", 8)(21, "h5"); 1074 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](22, "Newsletter"); 1075 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); 1076 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](23, "p"); 1077 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](24, "Subscreva a
1077nossa Newsletter e receba em primeira m\u00E3o todas as novidades"); 1078 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()(); 1079 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](25, "div", 8)(26, "p"); 1080 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](27, "Siga-nos nas redes sociais:"); 1081 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); 1082 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](28, "p"); 1083 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](29, "app-social-links"); 1084 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); 1085 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](30, "p")(31, "a", 9); 1086 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](32, "Condi\u00E7\u00F5es de utiliza\u00E7\u00E3o"); 1087 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()(); 1088 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](33, "p")(34, "a", 10); 1089 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](35, "Pol\u00EDtica de privacidade"); 1090 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()(); 1091 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](36, FooterComponent_p_36_Template, 3, 0, "p", 11); 1092 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](37, FooterComponent_p_37_Template, 3, 0, "p", 11); 1093 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](38, FooterComponent_p_38_Template, 3, 0, "p", 11); 1094 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](39, "div"); 1095 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](40, "img", 12)(41, "img", 13)(42, "img", 14)(43, "img", 15); 1096 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()(); 1097 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](44, "div", 16)(45, "a", 17); 1098 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](46, "img", 18); 1099 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()(); 1100 } if (rf & 2) { 1101 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](36); 1102 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.merchant == null ? null : ctx.merchant.use_devolution); 1103 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1); 1104 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.merchant == null ? null : ctx.merchant.use_cookies); 1105 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1); 1106 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.merchant == null ? null : ctx.merchant.ral_status); 1107 } }, styles: [".footer[_ngcontent-%COMP%] {\n margin: 0px 3%;\n padding: 45px 10%;\n background-color: var(--primary);\n}\n.footer[_ngcontent-%COMP%] .col[_ngcontent-%COMP%] {\n padding: 0px 50px;\n}\n.footer[_ngcontent-%COMP%] h5[_ngcontent-%COMP%] {\n color: var(--white);\n font-weight: bold;\n font-size: 16px;\n}\n.footer[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .footer[_ngcontent-%COMP%] a[_ngcontent-%COMP%] {\n color: var(--white);\n font-size: 14px;\n text-decoration: none;\n}\n.footer[_ngcontent-%COMP%] .small-text[_ngcontent-%COMP%] {\n font-size: 9px;\n}\n.footer[_ngcontent-%COMP%] .col-start[_ngcontent-%COMP%] {\n padding-left: 10%;\n}\n.footer[_ngcontent-%COMP%] .img-pay[_ngcontent-%COMP%] {\n background: #fff;\n padding: 0;\n border-radius: 4px;\n width: 40px;\n height: 30px;\n}\n.lrc[_ngcontent-%COMP%] {\n height: 50px;\n}\n@media (max-width: 767px) {\n .footer[_ngcontent-%COMP%] {\n text-align: center;\n }\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZvb3Rlci5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNDLGNBQUE7RUFDQSxpQkFBQTtFQUNBLGdDQUFBO0FBQ0Q7QUFDQztFQUNDLGlCQUFBO0FBQ0Y7QUFFQztFQUNDLG1CQUFBO0VBQ0EsaUJBQUE7RUFDQSxlQUFBO0FBQUY7QUFHQzs7RUFFQyxtQkFBQTtFQUNBLGVBQUE7RUFDQSxxQkFBQTtBQURGO0FBSUM7RUFDQyxjQUFBO0FBRkY7QUFLQztFQUNDLGlCQUFBO0FBSEY7QUFNQztFQUNDLGdCQUFBO0VBQ0EsVUFBQTtFQUNBLGtCQUFBO0VBQ0EsV0FBQTtFQUNBLFlBQUE7QUFKRjtBQVFBO0VBQ0MsWUFBQTtBQUxEO0FBUUE7RUFDQztJQUNDLGtCQUFBO0VBTEE7QUFDRiIsImZpbGUiOiJmb290ZXIuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuZm9vdGVyIHtcblx0bWFyZ2luOiAwcHggMyU7XG5cdHBhZGRpbmc6IDQ1cHggMTAlO1xuXHRiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1wcmltYXJ5KTtcblxuXHQuY29sIHtcblx0XHRwYWRkaW5nOiAwcHggNTBweDtcblx0fVxuXG5cdGg1IHtcblx0XHRjb2xvcjogdmFyKC0td2hpdGUpO1xuXHRcdGZvbnQtd2VpZ2h0OiBib2xkO1xuXHRcdGZvbnQtc2l6ZTogMTZweDtcblx0fVxuXG5cdHAsXG5cdGEge1xuXHRcdGNvbG9yOiB2YXIoLS13aGl0ZSk7XG5cdFx0Zm9udC1zaXplOiAxNHB4O1xuXHRcdHRleHQtZGVjb3JhdGlvbjogbm9uZTtcblx0fVxuXG5cdC5zbWFsbC10ZXh0IHtcblx0XHRmb250LXNpemU6IDlweDtcblx0fVxuXG5cdC5jb2wtc3RhcnQge1xuXHRcdHBhZGRpbmctbGVmdDogMTAlO1xuXHR9XG5cblx0LmltZy1wYXkge1xuXHRcdGJhY2tncm91bmQ6ICNmZmY7XG5cdFx0cGFkZGluZzogMDtcblx0XHRib3JkZXItcmFkaXVzOiA0cHg7XG5cdFx0d2lkdGg6IDQwcHg7XG5cdFx0aGVpZ2h0OiAzMHB4O1xuXHR9XG59XG5cbi5scmMge1xuXHRoZWlnaHQ6IDUwcHg7XG59XG5cbkBtZWRpYSAobWF4LXdpZHRoOiA3NjdweCkge1xuXHQuZm9vdGVyIHtcblx0XHR0ZXh0LWFsaWduOiBjZW50ZXI7XG5cdH1cbn1cbiJdfQ== */"] }); 1108 1109 1110/***/ }), 1111 1112/***/ 9051: 1113/*!*******************************************************************!*\
1114 !*** ./src/app/components/menu-profile/menu-profile.component.ts ***! 1115 \*******************************************************************/ 1116/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 1117 1118__webpack_require__.r(__webpack_exports__); 1119/* harmony export */ __webpack_require__.d(__webpack_exports__, { 1120/* harmony export */ "MenuProfileComponent": () => (/* binding */ MenuProfileComponent) 1121/* harmony export */ }); 1122/* harmony import */ var _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pages/basic/basic.component */ 9689); 1123/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 2560); 1124/* harmony import */ var _services_user_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @services/user.service */ 3071); 1125/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/common */ 4666); 1126 1127 1128 1129 1130const _c0 = function (a0) { return { active: a0 }; }; 1131function MenuProfileComponent_p_1_Template(rf, ctx) { if (rf & 1) { 1132 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "p", 3)(1, "a", 4); 1133 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2); 1134 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); 1135} if (rf & 2) { 1136 const link_r1 = ctx.$implicit; 1137 const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); 1138 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction1"](3, _c0, link_r1.url == ctx_r0.activeRoute)); 1139 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); 1140 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("href", link_r1.url, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]); 1141 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); 1142 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", link_r1.name, ""); 1143} } 1144class MenuProfileComponent extends _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_0__.BasicComponent { 1145 constructor(userService) { 1146 super(); 1147 this.userService = userService; 1148 this.activeRoute = ''; 1149 this.links = [ 1150 { url: '/perfil', name: 'Meu Perfil' }, 1151 { url: '/encomendas', name: 'Encomendas' }, 1152 { url: '/moradas', name: 'Moradas' }, 1153 { url: '/familia', name: 'FamÃlia' }, 1154 { url: '/fidelizacao', name: 'Fidelização' }, 1155 { url: '/editar-perfil', name: 'Alterar Dados Pessoais' }, 1156 { url: '/password', name: 'Alterar Palavra-passe' } 1157 ]; 1158 this.activeRoute = this.router.url; 1159 } 1160 ngOnInit() { } 1161 logout() { 1162 this.userService.logout().subscribe((resp) => { 1163 if (resp.status == 'OK') { 1164 this.storageService.remove('user'); 1165 this.navigateHome(); 1166 } 1167 }); 1168 } 1169} 1170MenuProfileComponent.ɵfac = function MenuProfileComponent_Factory(t) { return new (t || MenuProfileComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_services_user_service__WEBPACK_IMPORTED_MODULE_1__.UserService)); }; 1171MenuProfileComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({ type: MenuProfileComponent, selectors: [["app-menu-profile"]], features: [_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵInheritDefinitionFeature"]], decls: 5, vars: 1, consts: [[1, "menu-content"], [3, "ngClass", 4, "ngFor", "ngForOf"], ["role", "button", 3, "click"], [3, "ngClass"], [3, "href"]], template: function MenuProfileComponent_Template(rf, ctx) { if (rf & 1) { 1172 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 0); 1173 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, MenuProfileComponent_p_1_Template, 3, 5, "p", 1); 1174 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "p")(3, "a", 2); 1175 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function MenuProfileComponent_Template_a_click_3_listener() { return ctx.logout(); }); 1176 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, "Terminar Sess\u00E3o"); 1177 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()(); 1178 } if (rf & 2) { 1179 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); 1180 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx.links); 1181 } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_3__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_3__.NgForOf], styles: [".menu-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n border-radius: 10px;\n padding: 10px 30px;\n}\n.menu-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%] a[_ngcontent-%COMP%] {\n font-size: 16px;\n text-decoration: none;\n color: var(--dark);\n}\n.menu-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:hover, .menu-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:focus, .menu-content[_ngcontent-%COMP%] p.active[_ngcontent-%COMP%] {\n background-color: var(--primary);\n}\n.menu-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:hover a[_ngcontent-%COMP%], .menu-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:focus a[_ngcontent-%COMP%], .menu-content[_ngcontent-%COMP%] p.active[_ngcontent-%COMP%] a[_ngcontent-%COMP%] {\n color: var(--white) !important;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm1lbnUtcHJvZmlsZS5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQztFQUNDLG1CQUFBO0VBQ0Esa0JBQUE7QUFBRjtBQUVFO0VBQ0MsZUFBQTtFQUNBLHFCQUFBO0VBQ0Esa0JBQUE7QUFBSDtBQUdFO0VBR0MsZ0NBQUE7QUFISDtBQUtHO0VBQ0MsOEJBQUE7QUFISiIsImZpbGUiOiJtZW51LXByb2ZpbGUuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIubWVudS1jb250ZW50IHtcblx0cCB7XG5cdFx0Ym9yZGVyLXJhZGl1czogMTBweDtcblx0XHRwYWRkaW5nOiAxMHB4IDMwcHg7XG5cblx0XHRhIHtcblx0XHRcdGZvbnQtc2l6ZTogMTZweDtcblx0XHRcdHRleHQtZGVjb3JhdGlvbjogbm9uZTtcblx0XHRcdGNvbG9yOiB2YXIoLS1kYXJrKTtcblx0XHR9XG5cblx0XHQmOmhvdmVyLFxuXHRcdCY6Zm9jdXMsXG5cdFx0Ji5hY3RpdmUge1xuXHRcdFx0YmFja2dyb3VuZC1jb2xvcjogdmFyKC0tcHJpbWFyeSk7XG5cblx0XHRcdGEge1xuXHRcdFx0XHRjb2xvcjogdmFyKC0td2hpdGUpICFpbXBvcnRhbnQ7XG5cdFx0XHR9XG5cdFx0fVxuXHR9XG59XG4iXX0= */"] }); 1182 1183 1184/***/ }), 1185 1186/***/ 3252: 1187/*!*******************************************************!*\ 1188 !*** ./src/app/components/navbar/navbar.component.ts ***! 1189 \*******************************************************/ 1190/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 1191 1192__webpack_require__.r(__webpack_exports__); 1193/* harmony export */ __webpack_require__.d(__webpack_exports__, { 1194/* harmony export */ "NavbarComponent": () => (/* binding */ NavbarComponent) 1195/* harmony export */ }); 1196/* harmony import */ var _pages_login_login_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pages/login/login.component */ 4902); 1197/* harmony import */ var _pages_search_search_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @pages/search/search.component */ 1164); 1198/* harmony import */ var _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @pages/basic/basic.component */ 9689); 1199/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/router */ 124); 1200/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ 2560); 1201/* harmony import */ var _services_services_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @services/services.service */ 6325); 1202/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ 4666); 1203 1204 1205 1206 1207 1208 1209 1210const _c0 = function (a0) { return { active: a0 }; }; 1211function NavbarComponent_div_26_li_2_a_4_Template(rf, ctx) { if (rf & 1) { 1212 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "a", 34); 1213 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](1); 1214 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"](); 1215} if (rf & 2) { 1216 const subcategory_r11 = ctx.$implicit; 1217 const category_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]().$implicit; 1218 const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2); 1219 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("href", ctx_r10.getPathAsString2("/categoria", category_r9, "subcategoria", subcategory_r11), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵsanitizeUrl"])("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpureFunction1"](3, _c0, ctx_r10.selectedSubCategory == subcategory_r11.id)); 1220 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1); 1221 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](subcategory_r11.name); 1222} } 1223function NavbarComponent_div_26_li_2_Template(rf, ctx) { if (rf & 1) { 1224 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "li", 22)(1, "a", 34)(2, "b"); 1225 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](3); 1226 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()(); 1227 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](4, NavbarC
1227omponent_div_26_li_2_a_4_Template, 2, 5, "a", 35); 1228 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"](); 1229} if (rf & 2) { 1230 const category_r9 = ctx.$implicit; 1231 const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2); 1232 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1); 1233 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("href", ctx_r8.getPathAsString("/categoria", category_r9), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵsanitizeUrl"])("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpureFunction1"](4, _c0, ctx_r8.selectedCategory == category_r9.id)); 1234 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2); 1235 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](category_r9.name); 1236 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1); 1237 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngForOf", category_r9.subcategories); 1238} } 1239function NavbarComponent_div_26_Template(rf, ctx) { if (rf & 1) { 1240 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 31)(1, "ul", 32); 1241 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](2, NavbarC
1241omponent_div_26_li_2_Template, 5, 6, "li", 33); 1242 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()(); 1243} if (rf & 2) { 1244 const col_r7 = ctx.$implicit; 1245 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2); 1246 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngForOf", col_r7); 1247} } 1248function NavbarComponent_a_28_Template(rf, ctx) { if (rf & 1) { 1249 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "a", 24); 1250 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](1, "Marcas"); 1251 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"](); 1252} } 1253function NavbarComponent_a_29_Template(rf, ctx) { if (rf & 1) { 1254 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "a", 36); 1255 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](1, "Marcas"); 1256 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"](); 1257} } 1258function NavbarComponent_div_32_li_2_Template(rf, ctx) { if (rf & 1) { 1259 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "li", 22)(1, "a", 34); 1260 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](2); 1261 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()(); 1262} if (rf & 2) { 1263 const brand_r15 = ctx.$implicit; 1264 const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2); 1265 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1); 1266 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("href", ctx_r14.getPathAsString("/marca", brand_r15), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵsanitizeUrl"])("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpureFunction1"](3, _c0, ctx_r14.selectedBrand == brand_r15.id)); 1267 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1); 1268 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](brand_r15.name); 1269} } 1270function NavbarComponent_div_32_Template(rf, ctx) { if (rf & 1) { 1271 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 31)(1, "ul", 32); 1272 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](2, NavbarC
1272omponent_div_32_li_2_Template, 3, 5, "li", 33); 1273 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()(); 1274} if (rf & 2) { 1275 const col_r13 = ctx.$implicit; 1276 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2); 1277 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngForOf", col_r13); 1278} } 1279function NavbarComponent_div_43_Template(rf, ctx) { if (rf & 1) { 1280 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 37)(1, "a", 38); 1281 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](2); 1282 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()(); 1283} if (rf & 2) { 1284 const specialty_r16 = ctx.$implicit; 1285 const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](); 1286 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1); 1287 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("href", ctx_r4.getPathAsString("/servico", specialty_r16), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵsanitizeUrl"]); 1288 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1); 1289 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](specialty_r16.name); 1290} } 1291function NavbarComponent_div_50_li_7_Template(rf, ctx) { if (rf & 1) { 1292 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnamespaceSVG"](); 1293 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnamespaceHTML"](); 1294 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "li", 22)(1, "a", 50); 1295 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnamespaceSVG"](); 1296 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](2, "svg", 41)(3, "g"); 1297 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](4, "path", 51); 1298 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()(); 1299} if (rf & 2) { 1300 const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2); 1301 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1); 1302 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngClass", ctx_r17.activeRoute && ctx_r17.activeRoute.includes("/favoritos") ? "active" : ""); 1303} } 1304function NavbarComponent_div_50_Template(rf, ctx) { if (rf & 1) { 1305 const _r19 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"](); 1306 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 39)(1, "ul", 13)(2, "li", 22)(3, "a", 40); 1307 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function NavbarComponent_div_50_Template_a_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r19); const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r18.openModal("search")); }); 1308 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnamespaceSVG"](); 1309 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](4, "svg", 41)(5, "g"); 1310 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](6, "path", 42); 1311 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()(); 1312 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](7, NavbarComponent_div_50_li_7_Template, 5, 1, "li", 43); 1313 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnamespaceHTML"](); 1314 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](8, "li", 22)(9, "a", 44); 1315 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnamespaceSVG"](); 1316 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](10, "svg", 45)(11, "g"); 1317 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](12, "path", 46); 1318 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()(); 1319 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnamespaceHTML"](); 1320 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](13, "li", 22)(14, "a", 47); 1321 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnamespaceSVG"](); 1322 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](15, "svg", 48)(16, "g"); 1323 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](17, "path", 49); 1324 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()(); 1325 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](18); 1326 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()(); 1327} if (rf & 2) { 1328 const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](); 1329 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](7); 1330 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx_r5.user); 1331 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2); 1332 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("href", ctx_r5.user ? "/perfil" : "/login", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵsanitizeUrl"])("ngClass", ctx_r5.activeRoute && (ctx_r5.activeRoute.includes("/perfil") || ctx_r5.activeRoute.includes("/login")) ? "active" : ""); 1333 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](5); 1334 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngClass", ctx_r5.activeRoute && ctx_r5.activeRoute.includes("/carrinho") ? "active" : ""); 1335 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](4); 1336 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" ", ctx_r5.cartCount, " "); 1337} } 1338function NavbarComponent_div_51_div_6_Template(rf, ctx) { if (rf & 1) { 1339 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnamespaceSVG"](); 1340 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnamespaceHTML"](); 1341 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 53)(1, "a", 50); 1342 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnamespaceSVG"](); 1343 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](2, "svg", 41)(3, "g"); 1344 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](4, "path", 51); 1345 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()(); 1346} if (rf & 2) { 1347 const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2); 1348 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1); 1349 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngClass", ctx_r20.activeRoute && ctx_r20.activeRoute.includes("/favoritos") ? "active" : ""); 1350} } 1351function NavbarComponent_div_51_Template(rf, ctx) { if (rf & 1) { 1352 const _r22 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"](); 1353 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 52)(1, "div", 53)(2, "a", 40); 1354 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function NavbarComponent_div_51_Template_a_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r22); const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetVie
1354w"](ctx_r21.openModal("search")); }); 1355 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnamespaceSVG"](); 1356 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](3, "svg", 41)(4, "g"); 1357 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](5, "path", 42); 1358 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()(); 1359 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](6, NavbarComponent_div_51_div_6_Template, 5, 1, "div", 54); 1360 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnamespaceHTML"](); 1361 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](7, "div", 53)(8, "a", 44); 1362 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnamespaceSVG"](); 1363 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](9, "svg", 45)(10, "g"); 1364 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](11, "path", 46); 1365 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()(); 1366 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnamespaceHTML"](); 1367 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](12, "div", 53)(13, "a", 47); 1368 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnamespaceSVG"](); 1369 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](14, "svg", 48)(15, "g"); 1370 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](16, "path", 49); 1371 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()(); 1372 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](17); 1373 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()(); 1374} if (rf & 2) { 1375 const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](); 1376 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](6); 1377 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx_r6.user); 1378 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2); 1379 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("href", ctx_r6.user ? "/perfil" : "/login", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵsanitizeUrl"])("ngClass", ctx_r6.activeRoute && (ctx_r6.activeRoute.includes("/perfil") || ctx_r6.activeRoute.includes("/login")) ? "active" : ""); 1380 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](5); 1381 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngClass", ctx_r6.activeRoute && ctx_r6.activeRoute.includes("/carrinho") ? "active" : ""); 1382 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](4); 1383 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" ", ctx_r6.cartCount, " "); 1384} } 1385const _c1 = function (a0) { return { "disable-hover": a0 }; }; 1386const _c2 = function (a0) { return { collapse: a0, "navbar-collapse": true }; }; 1387class NavbarComponent extends _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_2__.BasicComponent { 1388 constructor(userService, location, categoryService, brandService, specialtyService) { 1389 super(); 1390 this.userService = userService; 1391 this.location = location; 1392 this.categoryService = categoryService; 1393 this.brandService = brandService; 1394 this.specialtyService = specialtyService; 1395 this.categories = []; 1396 this.collapsed = true; 1397 this.disableHover = false; 1398 this.selectedBrand = null; 1399 this.selectedCategory = null; 1400 this.selectedSubCategory = null; 1401 this.brands = [[], [], [], []]; 1402 this.specialties = []; 1403 this.cartCount = 0; 1404 this.router.events.subscribe((event) => { 1405 if (event instanceof _angular_router__WEBPACK_IMPORTED_MODULE_5__.NavigationStart) { 1406 // Show loading indicator 1407 this.collapsed = true; 1408 } 1409 if (event instanceof _angular_router__WEBPACK_IMPORTED_MODULE_5__.NavigationEnd) { 1410 // Hide loading indicator 1411 this.activeRoute = this.router.url; 1412 } 1413 if (event instanceof _angular_router__WEBPACK_IMPORTED_MODULE_5__.NavigationError) { 1414 this.navigateHome(); 1415 } 1416 }); 1417 this.user = this.storageService.get('user'); 1418 this.cart = this.storageService.get('cart'); 1419 if (this.cart) { 1420 this.cartCount = this.cart.quant; 1421 } 1422 this.eventsService.subscribe('update:cart', (cart) => { 1423 this.cart = cart; 1424 this.cartCount = this.cart.quant; 1425 this.openCloseCart(); 1426 }); 1427 } 1428 ngOnInit() { 1429 this.router.events.subscribe((event) => { 1430 this.disableHover = true; 1431 if (!(event instanceof _angular_router__WEBPACK_IMPORTED_MODULE_5__.NavigationEnd)) { 1432 setTimeout(() => { 1433 this.disableHover = false;
1434 }, 1000); 1435 return; 1436 } 1437 }); 1438 this.loadCategories(); 1439 this.loadBrands(); 1440 this.loadSpecialties(); 1441 } 1442 loadCategories() { 1443 this.categoryService.all().subscribe((resp) => { 1444 if (resp.status == 'OK') { 1445 this.categories = this.spliceInto(resp.data, resp.data.length); 1446 this.categories.forEach((category) => { 1447 category.forEach((cat) => { 1448 this.categoryService.subcategories(cat.id).subscribe((data) => { 1449 cat.subcategories = data.data; 1450 }); 1451 }); 1452 }); 1453 } 1454 }); 1455 } 1456 loadBrands() { 1457 this.brandService.all().subscribe((resp) => { 1458 if (resp.status == 'OK') { 1459 let aux = resp.data.splice(0, 28); 1460 this.brands = this.spliceInto(aux, 4); 1461 } 1462 }); 1463 } 1464 loadSpecialties() { 1465 this.specialtyService.all().subscribe((resp) => { 1466 if (resp.status == 'OK') { 1467 this.specialties = resp.data; 1468 } 1469 }); 1470 } 1471 toggleCollapsed() { 1472 this.collapsed = !this.collapsed; 1473 } 1474 openModal(page) { 1475 let component = null; 1476 let css = 'modal-container'; 1477 switch (page) { 1478 case 'login': 1479 component = _pages_login_login_component__WEBPACK_IMPORTED_MODULE_0__.LoginComponent; 1480 break; 1481 default: 1482 component = _pages_search_search_component__WEBPACK_IMPORTED_MODULE_1__.SearchComponent; 1483 break; 1484 } 1485 this.modalsService.openModal(component, true, css); 1486 } 1487 logout() { 1488 this.userService.logout().subscribe((resp) => { 1489 if (resp.status == 'OK') { 1490 this.storageService.remove('user'); 1491 this.navigateHome(); 1492 } 1493 }); 1494 } 1495 toggleCart() { 1496 this.showCart = !this.showCart; 1497 } 1498 openCart() { 1499 this.showCart = true; 1500 } 1501 closeCart() { 1502 this.showCart = false; 1503 } 1504 openCloseCart() { 1505 this.showCart = true; 1506 setTimeout(() => { 1507 this.showCart = false; 1508 }, 5000); 1509 } 1510 spliceInto(items, n) { 1511 let res = Array.from(Array(n), () => []); 1512 const wordsPerLine = Math.ceil(items.length / n); 1513 for (let line = 0; line < n; line++) { 1514 for (let i = 0; i < wordsPerLine; i++) { 1515 const value = items[i + line * wordsPerLine]; 1516 if (!value) 1517 continue; 1518 res[line].push(value); 1519 } 1520 } 1521 return res; 1522 } 1523} 1524NavbarComponent.ɵfac = function NavbarComponent_Factory(t) { return new (t || NavbarComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_services_services_service__WEBPACK_IMPORTED_MODULE_3__.UserService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_6__.Location), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_services_services_service__WEBPACK_IMPORTED_MODULE_3__.CategoryService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_services_services_service__WEBPACK_IMPORTED_MODULE_3__.BrandService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_services_services_service__WEBPACK_IMPORTED_MODULE_3__.SpecialtyService)); }; 1525NavbarComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineComponent"]({ type: NavbarComponent, selectors: [["app-navbar"]], features: [_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵInheritDefinitionFeature"]], decls: 52, vars: 15, consts: [[1, "row", "top-header", "d-none", "d-sm-flex"], [1, "col-5", "text-end"], [2, "margin-top", "8px"], [1, "col-2"], [1, "col-5", "text-start"], [1, "logo"], ["href", "/"], ["src", "assets/images/logo.jpg"], [1, "navbar", "navbar-expand-lg", "flex-column", 3, "ngClass"], [1, "container-fluid"], ["type", "button", "data-bs-toggle", "collapse", "aria-expanded", "false", "aria-label", "Toggle navigation", 1, "navbar-toggler", 3, "click"], [1, "navbar-toggler-icon"], [1, "w-100", "justify-content-center", 3, "ngClass"], [1, "navbar-nav"], ["onclick", "", 1, "nav-item", "menu-submenu"], ["type", "button", 1, "nav-link"], [1, "container-fluid", "submenu"], [1, "row", "justify-content-around"], ["class", "col", 4, "ngFor", "ngForOf"], ["class", "nav-link", "role", "button", 4, "ngIf"], ["class", "nav-link", 4, "ngIf"], ["href", "/marcas", 1, "nav-link", "text-center", "mt-2"], [1, "nav-item"], ["href", "/promocoes", 1, "nav-link"], ["role", "button", 1, "nav-link"], [1, "row"], ["class", "col
1525-12 col-md-4 col-lg-4 nav-item", 4, "ngFor", "ngForOf"], ["href", "/quem-somos", 1, "nav-link", 3, "ngClass"], ["href", "/contactos", 1, "nav-link", 3, "ngClass"], ["class", "menu-right", 4, "ngIf"], ["class", "menu-right row align-items-center m-2", 4, "ngIf"], [1, "col"], [1, "nav-list", 2, "padding-left", "0"], ["class", "nav-item", 4, "ngFor", "ngForOf"], ["role", "button", 1, "nav-link", 3, "href", "ngClass"], ["class", "nav-link", "role", "button", 3, "href", "ngClass", 4, "ngFor", "ngForOf"], [1, "nav-link"], [1, "col-12", "col-md-4", "col-lg-4", "nav-item"], ["role", "button", 1, "nav-link", 3, "href"], [1, "menu-right"], ["role", "button", 1, "nav-link", 3, "click"], ["version", "1.2", "xmlns", "http://www.w3.org/2000/svg", "overflow", "visible", "preserveAspectRatio", "none", "viewBox", "0 0 24 24", "width", "28", "height", "28"], ["d", "M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z", "vector-effect", "non-scaling-stroke"], ["class", "nav-item", 4, "ngIf"], [1, "nav-link", 3, "href", "ngClass"], ["version", "1.2", "xmlns", "http://www.w3.org/2000/svg", "overflow", "visible", "preserveAspectRatio", "none", "viewBox", "0 0 24 24", "width", "30", "height", "30"], ["id", "user", "d", "M18.58,15.57c-0.06-0.53-0.17-1.06-0.32-1.57c-0.14-0.48-0.34-0.94-0.61-1.36c-0.25-0.38-0.6-0.7-1-0.93 c-0.43-0.25-0.91-0.37-1.4-0.36c-0.86,0.86-2.03,1.34-3.24,1.32c-1.22,0.02-2.4-0.46-3.26-1.33c-0.49-0.01-0.97,0.11-1.4,0.36 c-0.4,0.23-0.75,0.55-1,0.93C6.09,13.06,5.89,13.52,5.76,14c-0.16,0.52-0.27,1.04-0.33,1.58c-0.06,0.55-0.09,1.11-0.09,1.67 c-0.01,0.7,0.23,1.38,0.67,1.93c0.36,0.5,0.93,0.8,1.55,0.82h8.89c0.62-0.02,1.19-0.32,1.56-0.82c0.44-0.55,0.67-1.24,0.65-1.95 C18.66,16.68,18.64,16.12,18.58,15.57z M14.84,5.18C14.1,4.41,13.08,3.98,12.01,4c-1.07-0.02-2.09,0.41-2.83,1.18 C8.42,5.92,7.99,6.94,8.01,8c-0.02,1.06,0.41,2.09,1.17,2.83c0.74,0.76,1.77,1.19,2.83,1.17c1.06,0.02,2.09-0.41,2.83-1.17 c0.76-0.74,1.19-1.77,1.17-2.83C16.02,6.94,15.6,5.92,14.84,5.18z", "vector-effect", "non-scaling-stroke"], ["href", "/carrinho", 1, "nav-link", 3, "ngClass"], ["version", "1.2", "xmlns", "http://www.w3.org/2000/svg", "overflow", "visible", "preserveAspectRatio", "none", "viewBox", "0 0 24 24", "width", "22", "height", "22"], ["d", "M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z", "vector-effect", "non-scaling-stroke"], ["href", "/favoritos", 1, "nav-link", 3, "ngClass"], ["id", "heart", "d", "M12,20c0.17,0,0.34-0.07,0.46-0.19l6.49-6.25c1.39-1.18,2.25-2.87,2.38-4.69C21.4,7.55,20.92,6.26,20,5.3 C19.01,4.4,17.69,3.93,16.35,4c-0.46,0-0.92,0.08-1.35,0.23c-0.44,0.14-0.86,0.35-1.25,0.6c-0.39,0.25-0.72,0.49-1,0.71 C12.47,5.77,12.21,6,11.96,6.25C11.71,6,11.45,5.77,11.17,5.54c-0.28-0.22-0.61-0.46-1-0.71C9.81,4.59,9.41,4.38,9,4.23 C8.57,4.08,8.11,4.01,7.65,4C6.31,3.93,4.99,4.4,4,5.3C3.08,6.26,2.6,7.56,2.67,8.88c0,0.49,0.08,0.98,0.24,1.44 c0.14,0.44,0.33,0.86,0.56,1.26c0.21,0.35,0.45,0.68,0.71,1c0.27,0.33,0.46,0.55,0.58,0.68c0.09,0.1,0.19,0.19,0.29,0.27l6.5,6.27 C11.67,19.93,11.83,20,12,20L12,20z", "vector-effect", "non-scaling-stroke"], [1, "menu-right", "row", "align-items-center", "m-2"], [1, "col-3"], ["class", "col-3", 4, "ngIf"]], template: function NavbarComponent_Template(rf, ctx) { if (rf & 1) { 1526 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "p", 2); 1527 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](3, " [email protected] "); 1528 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()(); 1529 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](4, "div", 3); 1530 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](5, "app-social-links"); 1531 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"](); 1532 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](6, "div", 4)(7, "p"); 1533 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](8, " \u00A0\u00A0\u00A0+351 220 969 940"); 1534 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](9, "br"); 1535 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](10, "small"); 1536 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](11, "(chamada para rede fixa)"); 1537 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()(); 1538 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](12, "div", 5)(13, "a", 6); 1539 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](14, "img", 7); 1540 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()(); 1541 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](15, "nav", 8)(16, "div", 9)(17, "button", 10); 1542 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function NavbarComponent_Template_button_click_17_listener() { return ctx.collapsed = !ctx.collapsed; }); 1543 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](18, "span", 11); 1544 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"](); 1545 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](19, "div", 12)(20, "ul", 13)(21, "li", 14)(22, "a", 15); 1546 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](23, "Produtos"); 1547 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"](); 1548 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](24, "div", 16)(25, "div", 17); 1549 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](26, NavbarC
1549omponent_div_26_Template, 3, 1, "div", 18); 1550 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()(); 1551 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](27, "li", 14); 1552 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](28, NavbarComponent_a_28_Template, 2, 0, "a", 19); 1553 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](29, NavbarComponent_a_29_Template, 2, 0, "a", 20); 1554 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](30, "div", 16)(31, "div", 17); 1555 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](32, NavbarComponent_div_32_Template, 3, 1, "div", 18); 1556 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"](); 1557 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](33, "a", 21); 1558 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](34, "VER TODAS"); 1559 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()(); 1560 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](35, "li", 22)(36, "a", 23); 1561 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](37, "Promo\u00E7\u00F5es"); 1562 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()(); 1563 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](38, "li", 14)(39, "a", 24); 1564 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](40, "Servi\u00E7os"); 1565 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"](); 1566 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](41, "div", 16)(42, "div", 25); 1567 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](43, NavbarComponent_div_43_Template, 3, 2, "div", 26); 1568 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()(); 1569 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](44, "li", 22)(45, "a", 27); 1570 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](46, "Sobre n\u00F3s"); 1571 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()(); 1572 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](47, "li", 22)(48, "a", 28); 1573 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](49, "Contactos"); 1574 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()(); 1575 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](50, NavbarComponent_div_50_Template, 19, 5, "div", 29); 1576 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](51, NavbarComponent_div_51_Template, 18, 5, "div", 30); 1577 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()(); 1578 } if (rf & 2) { 1579 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](15); 1580 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpureFunction1"](11, _c1, ctx.disableHover)); 1581 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](4); 1582 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpureFunction1"](13, _c2, ctx.collapsed)); 1583 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](7); 1584 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngForOf", ctx.categories); 1585 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2); 1586 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx.collapsed); 1587 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1); 1588 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", !ctx.collapsed); 1589 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3); 1590 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngForOf", ctx.brands); 1591 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](11); 1592 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngForOf", ctx.specialties); 1593 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2); 1594 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngClass", ctx.activeRoute && ctx.activeRoute.includes("/quem-somos") ? "active" : ""); 1595 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3); 1596 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngClass", ctx.activeRoute && ctx.activeRoute.includes("/contactos") ? "active" : ""); 1597 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2); 1598 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx.collapsed); 1599 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1); 1600 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", !ctx.collapsed); 1601 } }, styles: [".top-header[_ngcontent-%COMP%] {\n background-color: var(--primary);\n text-align: center;\n padding-top: 5px;\n padding-bottom: 5px;\n}\n.top-header[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n display: block;\n margin: 0px;\n font-size: 12px;\n color: var(--white);\n}\n.top-header[_ngcontent-%COMP%] app-social-links[_ngcontent-%COMP%] {\n padding-left: 42px;\n padding-right: 42px;\n}\n.logo[_ngcontent-%COMP%] {\n margin: 37px 0px;\n}\n.logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%] {\n display: block;\n margin: auto;\n height: 45px;\n}\n.disable-hover[_ngcontent-%COMP%] {\n pointer-events: none;\n}\n.navbar[_ngcontent-%COMP%] {\n width: 100%;\n font-size: 16px;\n}\n.navbar[_ngcontent-%COMP%] .navbar-nav[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] {\n color: #777;\n padding: 0px 15px;\n}\n.navbar[_ngcontent-%COMP%] .navbar-nav[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%], .navbar[_ngcontent-%COMP%] .navbar-nav[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover {\n
1601color: var(--dark);\n}\n.navbar[_ngcontent-%COMP%] .menu-submenu[_ngcontent-%COMP%] .submenu[_ngcontent-%COMP%] {\n display: none;\n background-color: var(--white);\n box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2);\n font-size: 16px;\n position: absolute;\n width: 70%;\n left: 50%;\n transform: translate(-50%, 0);\n padding: 27px 40px;\n z-index: 2;\n}\n.navbar[_ngcontent-%COMP%] .menu-submenu[_ngcontent-%COMP%] .submenu[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] {\n padding: 5px;\n}\n.navbar[_ngcontent-%COMP%] .menu-submenu[_ngcontent-%COMP%]:hover .submenu[_ngcontent-%COMP%] {\n display: block;\n min-width: 300px;\n}\n.navbar[_ngcontent-%COMP%] .menu-right[_ngcontent-%COMP%] {\n margin-left: 5%;\n}\n.navbar[_ngcontent-%COMP%] .menu-right[_ngcontent-%COMP%] .active[_ngcontent-%COMP%] svg[_ngcontent-%COMP%], .navbar[_ngcontent-%COMP%] .menu-right[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover svg[_ngcontent-%COMP%] {\n fill: var(--secondary);\n}\n.navbar[_ngcontent-%COMP%] .nav-list[_ngcontent-%COMP%] {\n list-style: none;\n}\n@media (max-width: 992px) {\n .top-header[_ngcontent-%COMP%] {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n }\n .top-header[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n display: none;\n }\n .top-header[_ngcontent-%COMP%] app-social-links[_ngcontent-%COMP%] {\n padding-left: 0px;\n padding-right: 0px;\n }\n .logo[_ngcontent-%COMP%] {\n margin: 37px 0 0 70px;\n }\n .logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%] {\n height: 30px;\n }\n .navbar-toggler[_ngcontent-%COMP%] {\n position: absolute !important;\n top: -35px !important;\n left: 10px !important;\n }\n .submenu[_ngcontent-%COMP%] {\n position: absolute !important;\n }\n .navbar-collapse[_ngcontent-%COMP%] {\n width: 100%;\n box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2);\n margin-top: 0;\n }\n .navbar-collapse[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%] {\n padding: 12px 0px;\n }\n .navbar-collapse[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] {\n text-align: center;\n }\n .navbar-collapse[_ngcontent-%COMP%] .menu-right[_ngcontent-%COMP%] a[_ngcontent-%COMP%] {\n text-align: center;\n }\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5hdmJhci5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNDLGdDQUFBO0VBQ0Esa0JBQUE7RUFDQSxnQkFBQTtFQUNBLG1CQUFBO0FBQ0Q7QUFDQztFQUNDLGNBQUE7RUFDQSxXQUFBO0VBQ0EsZUFBQTtFQUNBLG1CQUFBO0FBQ0Y7QUFFQztFQUNDLGtCQUFBO0VBQ0EsbUJBQUE7QUFBRjtBQUlBO0VBQ0MsZ0JBQUE7QUFERDtBQUdDO0VBQ0MsY0FBQTtFQUNBLFlBQUE7RUFDQSxZQUFBO0FBREY7QUFLQTtFQUNDLG9CQUFBO0FBRkQ7QUFLQTtFQUNDLFdBQUE7RUFDQSxlQUFBO0FBRkQ7QUFJQztFQUNDLFdBQUE7RUFDQSxpQkFBQTtBQUZGO0FBSUU7RUFFQyxrQkFBQTtBQUhIO0FBUUU7RUFDQyxhQUFBO0VBQ0EsOEJBQUE7RUFDQSwwQ0FBQTtFQUNBLGVBQUE7RUFDQSxrQkFBQTtFQUNBLFVBQUE7RUFDQSxTQUFBO0VBQ0EsNkJBQUE7RUFDQSxrQkFBQTtFQUNBLFVBQUE7QUFOSDtBQVFHO0VBQ0MsWUFBQTtBQU5KO0FBV0c7RUFDQyxjQUFBO0VBQ0EsZ0JBQUE7QUFUSjtBQWNDO0VBQ0MsZUFBQTtBQVpGO0FBZ0JHOztFQUNDLHNCQUFBO0FBYko7QUFrQkM7RUFDQyxnQkFBQTtBQWhCRjtBQW9CQTtFQUNDO0lBQ0Msa0JBQUE7SUFDQSxNQUFBO0lBQ0EsT0FBQTtJQUNBLFdBQUE7RUFqQkE7RUFtQkE7SUFDQyxhQUFBO0VBakJEO0VBbUJBO0lBQ0MsaUJBQUE7SUFDQSxrQkFBQTtFQWpCRDtFQXFCRDtJQUNHLHFCQUFBO0VBbkJGO0VBcUJFO0lBQ0QsWUFBQTtFQW5CRDtFQXVCQTtJQUNFLDZCQUFBO0lBQ0EscUJBQUE7SUFDQSxxQkFBQTtFQXJCRjtFQXdCRDtJQUNDLDZCQUFBO0VBdEJBO0VBeUJEO0lBQ0MsV0FBQTtJQUNBLDBDQUFBO0lBQ0UsYUFBQTtFQXZCRjtFQXdCQTtJQUNDLGlCQUFBO0VBdEJEO0VBd0JDO0lBQ0Msa0JBQUE7RUF0QkY7RUEwQkE7SUFDQyxrQkFBQTtFQXhCRDtBQUNGIiwiZmlsZSI6Im5hdmJhci5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi50b3AtaGVhZGVyIHtcblx0YmFja2dyb3VuZC1jb2xvcjogdmFyKC0tcHJpbWFyeSk7XG5cdHRleHQtYWxpZ246IGNlbnRlcjtcblx0cGFkZGluZy10b3A6IDVweDtcblx0cGFkZGluZy1ib3R0b206IDVweDtcblxuXHRwIHtcblx0XHRkaXNwbGF5OiBibG9jaztcblx0XHRtYXJnaW46IDBweDtcblx0XHRmb250LXNpemU6IDEycHg7XG5cdFx0Y29sb3I6IHZhcigtLXdoaXRlKTtcblx0fVxuXG5cdGFwcC1zb2NpYWwtbGlua3Mge1xuXHRcdHBhZGRpbmctbGVmdDogNDJweDtcblx0XHRwYWRkaW5nLXJpZ2h0OiA0MnB4O1xuXHR9XG59XG5cbi5sb2dvIHtcblx0bWFyZ2luOiAzN3B4IDBweDtcblxuXHRpbWcge1xuXHRcdGRpc3BsYXk6IGJsb2NrO1xuXHRcdG1hcmdpbjogYXV0bztcblx0XHRoZWlnaHQ6IDQ1cHg7XG5cdH1cbn1cblxuLmRpc2FibGUtaG92ZXIge1xuXHRwb2ludGVyLWV2ZW50czogbm9uZTtcbn1cblxuLm5hdmJhciB7XG5cdHdpZHRoOiAxMDAlO1xuXHRmb250LXNpemU6IDE2cHg7XG5cblx0Lm5hdmJhci1uYXYgLm5hdi1saW5rIHtcblx0XHRjb2xvcjogIzc3Nztcblx0XHRwYWRkaW5nOiAwcHggMTVweDtcblxuXHRcdCYuYWN0aXZlLFxuXHRcdCY6aG92ZXIge1xuXHRcdFx0Y29sb3I6IHZhcigtLWRhcmspO1xuXHRcdH1cblx0fVxuXG5cdC5tZW51LXN1Ym1lbnUge1xuXHRcdC5zdWJtZW51IHtcblx0XHRcdGRpc3BsYXk6IG5vbmU7XG5cdFx0XHRiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS13aGl0ZSk7XG5cdFx0XHRib3gtc2hhZG93OiAwcHggMHB4IDJweCByZ2JhKDAsIDAsIDAsIDAuMik7XG5cdFx0XHRmb250LXNpemU6IDE2cHg7XG5cdFx0XHRwb3NpdGlvbjogYWJzb2x1dGU7XG5cdFx0XHR3aWR0aDogNzAlO1xuXHRcdFx0bGVmdDogNTAlO1xuXHRcdFx0dHJhbnNmb3JtOiB0cmFuc2xhdGUoLTUwJSwgMCk7XG5cdFx0XHRwYWRkaW5nOiAyN3B4IDQwcHg7XG5cdFx0XHR6LWluZGV4OiAyO1xuXG5cdFx0XHQubmF2LWxpbmsge1xuXHRcdFx0XHRwYWRkaW5nOiA1cHg7XG5cdFx0XHR9XG5cdFx0fVxuXG5cdFx0Jjpob3ZlciB7XG5cdFx0XHQuc3VibWVudSB7XG5cdFx0XHRcdGRpc3BsYXk6IGJsb2NrO1xuXHRcdFx0XHRtaW4td2lkdGg6IDMwMHB4O1xuXHRcdFx0fVxuXHRcdH1cblx0fVxuXG5cdC5tZW51LXJpZ2h0IHtcblx0XHRtYXJnaW4tbGVmdDogNSU7XG5cblx0XHQuYWN0aXZlLFxuXHRcdC5uYXYtbGluazpob3ZlciB7XG5cdFx0XHRzdmcge1xuXHRcdFx0XHRmaWxsOiB2YXIoLS1zZWNvbmRhcnkpO1xuXHRcdFx0fVxuXHRcdH1cblx0fVxuXG5cdC5uYXYtbGlzdCB7XG5cdFx0bGlzdC1zdHlsZTogbm9uZTtcblx0fVxufVxuXG5AbWVkaWEgKG1heC13aWR0aDogOTkycHgpIHtcblx0LnRvcC1oZWFkZXIge1xuXHRcdHBvc2l0aW9uOiBhYnNvbHV0ZTtcblx0XHR0b3A6IDA7XG5cdFx0bGVmdDogMDtcblx0XHR3aWR0aDogMTAwJTtcblxuXHRcdHAge1xuXHRcdFx0ZGlzcGxheTogbm9uZTtcblx0XHR9XG5cdFx0YXBwLXNvY2lhbC1saW5rcyB7XG5cdFx0XHRwYWRkaW5nLWxlZnQ6IDBweDtcblx0XHRcdHBhZGRpbmctcmlnaHQ6IDBweDtcblx0XHR9XG5cdH1cblxuXHQubG9nbyB7XG4gICAgbWFyZ2luOiAzN3B4IDAgMCA3MHB4O1xuXG4gICAgaW1nIHtcblx0XHRcdGhlaWdodDogMzBweDtcblx0XHR9XG5cdH1cblxuICAubmF2YmFyLXRvZ2dsZXIge1xuICAgIHBvc2l0aW9uOiBhYnNvbHV0ZSFpbXBvcnRhbnQ7XG4gICAgdG9wOiAtMzVweCFpbXBvcnRhbnQ7XG4gICAgbGVmdDogIDEwcHghaW1wb3J0YW50O1xuICB9XG5cblx0LnN1Ym1lbnUge1xuXHRcdHBvc2l0aW9uOiBhYnNvbHV0ZSAhaW1wb3J0YW50O1xuXHR9XG5cblx0Lm5hdmJhci1jb2xsYXBzZSB7XG5cdFx0d2lkdGg6IDEwMCU7XG5cdFx0Ym94LXNoYWRvdzogMHB4IDBweCAycHggcmdiYSgwLCAwLCAwLCAwLjIpO1xuICAgIG1hcmdpbi10b3A6IDA7XG5cdFx0Lm5hdi1pdGVtIHtcblx0XHRcdHBhZGRpbmc6IDEycHggMHB4O1xuXG5cdFx0XHQubmF2LWxpbmsge1xuXHRcdFx0XHR0ZXh0LWFsaWduOiBjZW50ZXI7XG5cdFx0XHR9XG5cdFx0fVxuXG5cdFx0Lm1lbnUtcmlnaHQgYSB7XG5cdFx0XHR0ZXh0LWFsaWduOiBjZW50ZXI7XG5cdFx0fVxuXHR9XG59XG4iXX0= */"] }); 1602 1603 1604/***/ }), 1605 1606/***/ 2977: 1607/*!*******************************************************************!*\ 1608 !*** ./src/app/components/product-view/product-view.component.ts ***! 1609 \*******************************************************************/ 1610/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 1611 1612__webpack_require__.r(__webpack_exports__); 1613/* harmony export */ __webpack_require__.d(__webpack_exports__, { 1614/* harmony export */ "ProductViewComponent": () => (/* binding */ ProductViewComponent) 1615/* harmony export */ }); 1616/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ 2560); 1617/* harmony import */ var _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pages/basic/basic.component */ 9689); 1618/* harmony import */ var _services_services_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @services/services.service */ 6325); 1619/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common */ 4666); 1620/* harmony import */ var _pipes_format_money_pipe__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../pipes/format-money.pipe */ 531); 1621/* harmony import */ var _pipes_format_name_pipe__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @pipes/format-name.pipe */ 4980); 1622 1623 1624 1625 1626 1627 1628 1629function ProductViewComponent_i_2_Template(rf, ctx) { if (rf & 1) { 1630 const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"](); 1631 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "i", 11); 1632 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function ProductViewComponent_i_2_Template_i_click_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r10); const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetVie
1632w"](ctx_r9.addFavorite($event)); }); 1633 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"](); 1634} } 1635function ProductViewComponent_i_3_Template(rf, ctx) { if (rf & 1) { 1636 const _r12 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"](); 1637 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "i", 12); 1638 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function ProductViewComponent_i_3_Template_i_click_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r12); const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r11.addFavorite($event)); }); 1639 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"](); 1640} } 1641function ProductViewComponent_i_4_Template(rf, ctx) { if (rf & 1) { 1642 const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"](); 1643 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "i", 13); 1644 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function ProductViewComponent_i_4_Template_i_click_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r14); const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r13.addProduct($event, ctx_r13.product)); }); 1645 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"](); 1646} } 1647function ProductViewComponent_div_5_Template(rf, ctx) { if (rf & 1) { 1648 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](0, "div", 14); 1649} if (rf & 2) { 1650 const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](); 1651 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵstyleProp"]("background-image", "url(" + ctx_r3.product.image + ")"); 1652} } 1653function ProductViewComponent_div_6_Template(rf, ctx) { if (rf & 1) { 1654 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](0, "div", 15); 1655} if (rf & 2) { 1656 const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](); 1657 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵstyleProp"]("background-image", "url(" + ctx_r4.product.image + ")"); 1658} } 1659function ProductViewComponent_div_7_Template(rf, ctx) { if (rf & 1) { 1660 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](0, "div", 16); 1661} if (rf & 2) { 1662 const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](); 1663 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵstyleProp"]("background-image", "url(" + ctx_r5.product.image2 + ")"); 1664} } 1665function ProductViewComponent_p_13_b_1_Template(rf, ctx) { if (rf & 1) { 1666 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "b"); 1667 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](1); 1668 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipe"](2, "formatMoney"); 1669 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"](); 1670} if (rf & 2) { 1671 const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2); 1672 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1); 1673 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipeBind1"](2, 1, ctx_r15.product.price)); 1674} } 1675function ProductViewComponent_p_13_b_2_Template(rf, ctx) { if (rf & 1) { 1676 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "b"); 1677 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](1, "--"); 1678 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"](); 1679} } 1680function ProductViewComponent_p_13_Template(rf, ctx) { if (rf & 1) { 1681 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "p", 8); 1682 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](1, ProductViewComponent_p_13_b_1_Template, 3, 3, "b", 17); 1683 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](2, ProductViewComponent_p_13_b_2_Template, 2, 0, "b", 17); 1684 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"](); 1685} if (rf & 2) { 1686 const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](); 1687 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1); 1688 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx_r6.product.price && ctx_r6.product.sell_online); 1689 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1); 1690 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", !(ctx_r6.product.price && ctx_r6.product.sell_online)); 1691} } 1692function ProductViewComponent_p_14_Template(rf, ctx) { if (rf & 1) { 1693 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "p", 8)(1, "span", 18); 1694 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](2); 1695 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipe"](3, "formatMoney"); 1696 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"](); 1697 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](4, "b"); 1698 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](5); 1699 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipe"](6, "formatMoney"); 1700 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()(); 1701} if (rf & 2) { 1702 const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](); 1703 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2); 1704 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipeBind1"](3, 2, ctx_r7.product.price)); 1705 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3); 1706 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipeBind1"](6, 4, ctx_r7.product.price - ctx_r7.product.price * ctx_r7.product.discount * 0.01), ""); 1707} } 1708function ProductViewComponent_p_15_Template(rf, ctx) { if (rf & 1) { 1709 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "p", 19)(1, "span", 20); 1710 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](2); 1711 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"](); 1712 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](3, "span", 21); 1713 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](4, "Promo\u00E7\u00F5es"); 1714 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()(); 1715} if (rf & 2) { 1716 const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](); 1717 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2); 1718 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" -", ctx_r8.product.discount, "% "); 1719} } 1720class ProductViewComponent extends _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_0__.BasicComponent { 1721 constructor(productService, cartService, brandService) { 1722 super(); 1723 this.productService = productService; 1724 this.cartService = cartService; 1725 this.brandService = brandService; 1726 this.onOpenProduct = new _angular_core__WEBPACK_IMPORTED_MODULE_4__.EventEmitter(); 1727 this.user = this.storageService.get('user'); 1728 } 1729 ngOnInit() { 1730 } 1731 openProduct(product) { 1732 this.onOpenProduct.emit(true); 1733 this.router.navigate(this.getPath('/produto', product)); 1734 } 1735 addProduct(event, product) { 1736 event.stopPropagation(); 1737 if (product.has_grade_lens) { 1738 this.openProduct(product); 1739 } 1740 else { 1741 let discount = product.discount ? product.price * product.discount * 0.01 : 0; 1742 let p = { 1743 product_id: product.id, 1744 image: product.image, 1745 name: product.name, 1746 price: product.price - discount, 1747 discount: discount, 1748 original_price: this.product.price, 1749 quantity: 1 1750 }; 1751 this.cartService.addProduct(p); 1752 } 1753 } 1754 addFavorite(event) { 1755 event.stopPropagation(); 1756 this.productService.favorite(this.product.id).subscribe((resp) => { 1757 if (resp.status == 'OK') { 1758 this.product.favorite = !this.product.favorite; 1759 this.toastService.showSuccess('Adicionado/Removido com sucesso'); 1760 } 1761 }); 1762 } 1763} 1764ProductViewComponent.ɵfac = function ProductViewComponent_Factory(t) { return new (t || ProductViewComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_services_services_service__WEBPACK_IMPORTED_MODULE_1__.ProductService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_services_services_service__WEBPACK_IMPORTED_MODULE_1__.CartService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_services_services_service__WEBPACK_IMPORTED_MODULE_1__.BrandService)); }; 1765ProductViewComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineComponent"]({ type: ProductViewComponent, selectors: [["app-product-view"]], inputs: { brand: "brand", product: "product" }, outputs: { onOpenProduct: "onOpenProduct" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵInheritDefinitionFeature"]], decls: 17, vars: 13, consts: [["role", "button", 1, "content-card", "align-items-bottom", 3, "click"], [1, "image-content"], ["role", "button", "class", "fav-icon far fa-heart fa-lg", 3, "click", 4, "ngIf"], ["role", "button", "class", "fav-icon fas fa-heart fa-lg", 3, "click", 4, "ngIf"], ["role", "button", "class", "add-icon fas fa-plus fa-lg", 3, "click", 4, "ngIf"], ["class", "img-product center", 3, "background-image", 4, "ngIf"], ["class", "img-product center img-1", 3, "background-image", 4, "ngIf"], ["class", "img-product center img-2", 3, "background-image", 4, "ngIf"], [1, "text-center"], ["class", "text-center", 4, "ngIf"], ["class", "m-0 text-center", 4, "ngIf"], ["role", "button", 1, "fav-icon", "far", "fa-heart", "fa-lg", 3, "click"], ["role", "button", 1, "fav-icon", "fas", "fa-heart", "fa-lg", 3, "click"], ["role", "button", 1, "add-icon", "fas", "fa-plus", "fa-lg", 3, "click"], [1, "img-product", "center"], [1, "img-product", "center", "img-1"], [1, "img-product", "center", "img-2"], [4, "ngIf"], [1, "discount-price"], [1, "m-0", "text-center"], [1, "box-dark"], [1, "box-ligth"]], template: function ProductViewComponent_Template(rf, ctx) { if (rf & 1) { 1766 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 0); 1767 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function ProductViewComponent_Template_div_click_0_listener() { return ctx.openProduct(ctx.product); }); 1768 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](1, "div", 1); 1769 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](2, ProductViewComponent_i_2_Template, 1, 0, "i", 2); 1770 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](3, ProductViewComponent_i_3_Template, 1, 0, "i", 3); 1771 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](4, ProductViewComponent_i_4_Template, 1, 0, "i", 4); 1772 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](5, ProductViewComponent_div_5_Template, 1, 2, "div", 5); 1773 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](6, ProductViewComponent_div_6_Template, 1, 2, "div", 6); 1774 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](7, ProductViewComponent_div_7_Template, 1, 2, "div", 7); 1775 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"](); 1776 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](8, "h5", 8); 1777 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](9); 1778 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"](); 1779 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](10, "p", 8); 1780 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](11); 1781 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipe"](12, "formatName"); 1782 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"](); 1783 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](13, ProductViewComponent_p_13_Template, 3, 2, "p", 9); 1784 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](14, ProductViewComponent_p_14_Template, 7, 6, "p", 9); 1785 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](15, ProductViewComponent_p_15_Template, 5, 1, "p", 10); 1786 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](16, "br"); 1787 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"](); 1788 } if (rf & 2) { 1789 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2); 1790 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx.user && !ctx.product.favorite); 1791 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1); 1792 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx.user && ctx.product.favorite); 1793 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1); 1794 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx.product.sell_online && ctx.product.stock > 0); 1795 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1); 1796 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", !ctx.product.image2); 1797 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1); 1798 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx.product.image2); 1799 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1); 1800 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx.product.image2); 1801 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2); 1802 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](ctx.brand); 1803 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2); 1804 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipeBind1"](12, 11, ctx.product.name)); 1805 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2); 1806 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", !ctx.product.discount); 1807 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1); 1808 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx.product.discount && ctx.product.sell_online); 1809 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1); 1810 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx.product.discount && ctx.product.sell_online); 1811 } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_5__.NgIf, _pipes_format_money_pipe__WEBPACK_IMPORTED_MODULE_2__.FormatMoneyPipe, _pipes_format_name_pipe__WEBPACK_IMPORTED_MODULE_3__.FormatNamePipe], styles: [".content-card[_ngcontent-%COMP%] {\n padding: 0 10px;\n position: relative;\n margin-bottom: 20px;\n background: var(--white);\n}\n.content-card[_ngcontent-%COMP%] .image-content[_ngcontent-%COMP%] {\n width: 100%;\n height: 250px;\n position: relative;\n}\n.content-card[_ngcontent-%COMP%] .image-content[_ngcontent-%COMP%] .fav-icon[_ngcontent-%COMP%] {\n position: absolute;\n left: 0;\n top: 0;\n margin-top: 5%;\n margin-left: 5%;\n color: var(--dark);\n}\n.content-card[_ngcontent-%COMP%] .image-content[_ngcontent-%COMP%] .add-icon[_ngcontent-%COMP%] {\n position: absolute;\n right: 0;\n top: 0;\n margin-top: 5%;\n margin-right: 5%;\n color: var(--dark);\n}\n.content-card[_ngcontent-%COMP%] .image-content[_ngcontent-%COMP%] .img-product[_ngcontent-%COMP%] {\n height: 250px;\n background-size: contain;\n background-position: center;\n background-repeat: no-repeat;\n}\n.content-card[_ngcontent-%COMP%] .image-content[_ngcontent-%COMP%]:hover {\n background-color: var(--white);\n box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);\n}\n.content-card[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n font-size: 16px;\n}\n.content-card[_ngcontent-%COMP%] .discount-price[_ngcontent-%COMP%] {\n text-decoration: line-through;\n}\n.content-card[_ngcontent-%COMP%] .img-1[_ngcontent-%COMP%] {\n display: block;\n}
1811\n.content-card[_ngcontent-%COMP%] .img-2[_ngcontent-%COMP%] {\n display: none;\n}\n.content-card[_ngcontent-%COMP%] .content-card[_ngcontent-%COMP%]:hover .img-1[_ngcontent-%COMP%] {\n display: none;\n}\n.content-card[_ngcontent-%COMP%] .content-card[_ngcontent-%COMP%]:hover .img-2[_ngcontent-%COMP%] {\n display: block;\n}\n.content-card[_ngcontent-%COMP%] .box-dark[_ngcontent-%COMP%] {\n background-color: var(--primary);\n font-size: 14px;\n color: var(--white);\n height: 35px;\n border-radius: 5px;\n padding: 6px;\n margin-right: 3px;\n font-weight: 500;\n}\n.content-card[_ngcontent-%COMP%] .box-ligth[_ngcontent-%COMP%] {\n border: 1px solid var(--primary);\n font-size: 14px;\n height: 35px;\n border-radius: 5px;\n padding: 6px;\n margin-left: 3px;\n font-weight: 500;\n}\n.content-card[_ngcontent-%COMP%] h5[_ngcontent-%COMP%] {\n font-size: 14px;\n font-weight: bold;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInByb2R1Y3Qtdmlldy5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNDLGVBQUE7RUFDQSxrQkFBQTtFQUNBLG1CQUFBO0VBQ0Msd0JBQUE7QUFDRjtBQUNDO0VBQ0MsV0FBQTtFQUNBLGFBQUE7RUFDQSxrQkFBQTtBQUNGO0FBQ0U7RUFDQyxrQkFBQTtFQUNBLE9BQUE7RUFDQSxNQUFBO0VBQ0EsY0FBQTtFQUNBLGVBQUE7RUFDQSxrQkFBQTtBQUNIO0FBRUU7RUFDQyxrQkFBQTtFQUNBLFFBQUE7RUFDQSxNQUFBO0VBQ0EsY0FBQTtFQUNBLGdCQUFBO0VBQ0Esa0JBQUE7QUFBSDtBQUdFO0VBQ0MsYUFBQTtFQUNBLHdCQUFBO0VBQ0EsMkJBQUE7RUFDQSw0QkFBQTtBQURIO0FBS0M7RUFDQyw4QkFBQTtFQUNBLDBDQUFBO0FBSEY7QUFNQztFQUNDLGVBQUE7QUFKRjtBQU9DO0VBQ0MsNkJBQUE7QUFMRjtBQVFDO0VBQ0MsY0FBQTtBQU5GO0FBUUM7RUFDQyxhQUFBO0FBTkY7QUFTRTtFQUNDLGFBQUE7QUFQSDtBQVNFO0VBQ0MsY0FBQTtBQVBIO0FBV0M7RUFDQyxnQ0FBQTtFQUNBLGVBQUE7RUFDQSxtQkFBQTtFQUNBLFlBQUE7RUFDQSxrQkFBQTtFQUNBLFlBQUE7RUFDQSxpQkFBQTtFQUNBLGdCQUFBO0FBVEY7QUFZQztFQUNDLGdDQUFBO0VBQ0EsZUFBQTtFQUNBLFlBQUE7RUFDQSxrQkFBQTtFQUNBLFlBQUE7RUFDQSxnQkFBQTtFQUNBLGdCQUFBO0FBVkY7QUFZRTtFQUNFLGVBQUE7RUFDQSxpQkFBQTtBQVZKIiwiZmlsZSI6InByb2R1Y3Qtdmlldy5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5jb250ZW50LWNhcmQge1xuXHRwYWRkaW5nOiAwIDEwcHg7XG5cdHBvc2l0aW9uOiByZWxhdGl2ZTtcblx0bWFyZ2luLWJvdHRvbTogMjBweDtcbiAgYmFja2dyb3VuZDogdmFyKC0td2hpdGUpO1xuXG5cdC5pbWFnZS1jb250ZW50IHtcblx0XHR3aWR0aDogMTAwJTtcblx0XHRoZWlnaHQ6IDI1MHB4O1xuXHRcdHBvc2l0aW9uOiByZWxhdGl2ZTtcblxuXHRcdC5mYXYtaWNvb
1811iB7XG5cdFx0XHRwb3NpdGlvbjogYWJzb2x1dGU7XG5cdFx0XHRsZWZ0OiAwO1xuXHRcdFx0dG9wOiAwO1xuXHRcdFx0bWFyZ2luLXRvcDogNSU7XG5cdFx0XHRtYXJnaW4tbGVmdDogNSU7XG5cdFx0XHRjb2xvcjogdmFyKC0tZGFyayk7XG5cdFx0fVxuXG5cdFx0LmFkZC1pY29uIHtcblx0XHRcdHBvc2l0aW9uOiBhYnNvbHV0ZTtcblx0XHRcdHJpZ2h0OiAwO1xuXHRcdFx0dG9wOiAwO1xuXHRcdFx0bWFyZ2luLXRvcDogNSU7XG5cdFx0XHRtYXJnaW4tcmlnaHQ6IDUlO1xuXHRcdFx0Y29sb3I6IHZhcigtLWRhcmspO1xuXHRcdH1cblxuXHRcdC5pbWctcHJvZHVjdCB7XG5cdFx0XHRoZWlnaHQ6IDI1MHB4O1xuXHRcdFx0YmFja2dyb3VuZC1zaXplOiBjb250YWluO1xuXHRcdFx0YmFja2dyb3VuZC1wb3NpdGlvbjogY2VudGVyO1xuXHRcdFx0YmFja2dyb3VuZC1yZXBlYXQ6IG5vLXJlcGVhdDtcblx0XHR9XG5cdH1cblxuXHQuaW1hZ2UtY29udGVudDpob3ZlciB7XG5cdFx0YmFja2dyb3VuZC1jb2xvcjogdmFyKC0td2hpdGUpO1xuXHRcdGJveC1zaGFkb3c6IDBweCAxcHggMnB4IHJnYmEoMCwgMCwgMCwgMC4yKTtcblx0fVxuXG5cdHAge1xuXHRcdGZvbnQtc2l6ZTogMTZweDtcblx0fVxuXG5cdC5kaXNjb3VudC1wcmljZSB7XG5cdFx0dGV4dC1kZWNvcmF0aW9uOiBsaW5lLXRocm91Z2g7XG5cdH1cblxuXHQuaW1nLTEge1xuXHRcdGRpc3BsYXk6IGJsb2NrO1xuXHR9XG5cdC5pbWctMiB7XG5cdFx0ZGlzcGxheTogbm9uZTtcblx0fVxuXHQuY29udGVudC1jYXJkOmhvdmVyIHtcblx0XHQuaW1nLTEge1xuXHRcdFx0ZGlzcGxheTogbm9uZTtcblx0XHR9XG5cdFx0LmltZy0yIHtcblx0XHRcdGRpc3BsYXk6IGJsb2NrO1xuXHRcdH1cblx0fVxuXG5cdC5ib3gtZGFyayB7XG5cdFx0YmFja2dyb3VuZC1jb2xvcjogdmFyKC0tcHJpbWFyeSk7XG5cdFx0Zm9udC1zaXplOiAxNHB4O1xuXHRcdGNvbG9yOiB2YXIoLS13aGl0ZSk7XG5cdFx0aGVpZ2h0OiAzNXB4O1xuXHRcdGJvcmRlci1yYWRpdXM6IDVweDtcblx0XHRwYWRkaW5nOiA2cHg7XG5cdFx0bWFyZ2luLXJpZ2h0OiAzcHg7XG5cdFx0Zm9udC13ZWlnaHQ6IDUwMDtcblx0fVxuXG5cdC5ib3gtbGlndGgge1xuXHRcdGJvcmRlcjogMXB4IHNvbGlkIHZhcigtLXByaW1hcnkpO1xuXHRcdGZvbnQtc2l6ZTogMTRweDtcblx0XHRoZWlnaHQ6IDM1cHg7XG5cdFx0Ym9yZGVyLXJhZGl1czogNXB4O1xuXHRcdHBhZGRpbmc6IDZweDtcblx0XHRtYXJnaW4tbGVmdDogM3B4O1xuXHRcdGZvbnQtd2VpZ2h0OiA1MDA7XG5cdH1cbiAgaDUge1xuICAgIGZvbnQtc2l6ZTogMTRweDtcbiAgICBmb250LXdlaWdodDogYm9sZDtcbiAgfVxufVxuIl19 */"] }); 1812 1813 1814/***/ }), 1815 1816/***/ 1447: 1817/*!*******************************************************************!*\ 1818 !*** ./src/app/components/social-links/social-links.component.ts ***! 1819 \*******************************************************************/ 1820/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 1821 1822__webpack_require__.r(__webpack_exports__); 1823/* harmony export */ __webpack_require__.d(__webpack_exports__, { 1824/* harmony export */ "SocialLinksComponent": () => (/* binding */ SocialLinksComponent) 1825/* harmony export */ }); 1826/* harmony import */ var _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pages/basic/basic.component */ 9689); 1827/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 2560); 1828/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ 4666); 1829 1830 1831 1832function SocialLinksComponent_a_1_Template(rf, ctx) { if (rf & 1) { 1833 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "a", 2); 1834 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnamespaceSVG"](); 1835 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "svg", 3)(2, "g"); 1836 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "path", 4); 1837 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()(); 1838} if (rf & 2) { 1839 const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); 1840 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("href", ctx_r0.merchant == null ? null : ctx_r0.merchant.facebook_url, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]); 1841} } 1842function SocialLinksComponent_a_2_Template(rf, ctx) { if (rf & 1) { 1843 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "a", 2); 1844 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnamespaceSVG"](); 1845 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "svg", 5)(2, "g", 6)(3, "g", 7); 1846 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "path", 8); 1847 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); 1848 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "defs"); 1849 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](6, "path", 9); 1850 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()(); 1851} if (rf & 2) { 1852 const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); 1853 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("href", ctx_r1.merchant == null ? null : ctx_r1.merchant.instagram_url, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]); 1854} } 1855function SocialLinksComponent_a_3_Template(rf, ctx) { if (rf & 1) { 1856 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "a", 2); 1857 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnamespaceSVG"](); 1858 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "svg", 3)(2, "g"); 1859 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "path", 10); 1860 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()(); 1861} if (rf & 2) { 1862 const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); 1863 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("href", ctx_r2.merchant == null ? null : ctx_r2.merchant.youtube_url, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]); 1864} } 1865class SocialLinksComponent extends _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_0__.BasicComponent { 1866 constructor() { 1867 super(); 1868 this.merchant = this.storageService.get('merchant'); 1869 } 1870 ngOnInit() { } 1871} 1872SocialLinksComponent.ɵfac = function SocialLinksComponent_Factory(t) { return new (t || SocialLinksComponent)(); }; 1873SocialLinksComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: SocialLinksComponent, selectors: [["app-social-links"]], features: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵInheritDefinitionFeature"]], decls: 4, vars: 3, consts: [[1, "social-links"], ["class", "mx-2", "target", "_blank", 3, "href", 4, "ngIf"], ["target", "_blank", 1, "mx-2", 3, "href"], ["version", "1.2", "xmlns", "http://www.w3.org/2000/svg", 0, "xmlns", "xlink", "http://www.w3.org/1999/xlink", "overflow", "visible", "preserveAspectRatio", "none", "viewBox", "0 0 24 24", "width", "32", "height", "28"], [0, "xmlns", "default", "http://www.w3.org/2000/svg", "id", "facebook", "d", "M16.5,3.46c-0.79-0.09-1.58-0.13-2.37-0.12c-1.07-0.05-2.11,0.33-2.89,1.06c-0.76,0.81-1.15,1.89-1.08,3v2.28 H7.5v3.08h2.65v7.9h3.19v-7.9H16l0.41-3.08h-3.07v-2c-0.03-0.4,0.08-0.79,0.31-1.12c0.33-0.29,0.77-0.43,1.21-0.37h1.64V3.46 L16.5,3.46z", "vector-effect", "non-scaling-stroke", 2, "fill", "rgb(255, 255, 255)"], ["version", "1.2", "xmlns", "http://www.w3.org/2000/svg", 0, "xmlns", "xlink", "http://www.w3.org/1999/xlink", "overflow", "visible", "preserveAspectRatio", "none", "viewBox", "0 0 22.99999 22.999999999999996", "width", "22.99999", "height", "22.999999999999996"], ["transform", "translate(0, 0)"], ["transform", "translate(-0.00002000000000096369, 5.551115123125783e-17) rotate(0)"], ["d", "M14.2025,14.2025c-1.495,1.495 -3.91,1.495 -5.405,0.01437l-0.01437,-0.01437c-1.495,-1.495 -1.495,-3.91 -0.01437,-5.405l0.01437,-0.01437c1.495,-1.495 3.91,-1.495 5.405,-0.01437l0.01437,0.01437c1.36562,1.46625 1.23625,3.83813 0,5.41938zM15.64,7.32434c-1.0925,-1.10688 -2.5875,-1.725 -4.14,-1.71063c-3.24875,-0.01437 -5.87938,2.61625 -5.89375,5.865c0,0.01437 0,0.01437 0,0.02875c-0.01437,3.24875 2.61625,5.87938 5.865,5.89375c0.01437,0 0.01437,0 0.02875,0c3.24875,0.01437 5.87937,-2.61625 5.89375,-5.865c0,-0.01438 0,-0.01438 0,-0.02875c0.01437,-1.56687 -0.60375,-3.07625 -1.725,-4.16875zM18.515,4.44188c-0.54625,-0.575 -1.46625,-0.58937 -2.02688,-0.04313c-0.56063,0.54625 -0.58938,1.46625 -0.04313,2.02688c0.54625,0.56063 1.46625,0.58938 2.02688,0.04313c0.2875,-0.27312 0.44563,-0.66125 0.44563,-1.04938c0.0575,-0.37375 -0.0575,-0.7475 -0.30188,-1.035zM12.65,2.07h1.58125h1.4375c0.5175,0.01437 1.035,0.0575 1.53813,0.14375c0.35938,0.0575 0.71875,0.14375 1.06375,0.27312c0.99188,0.4025 1.7825,1.19312 2.185,2.185c0.12937,0.345 0.21563,0.70437 0.27312,1.06375c0.08625,0.50313 0.12937,1.02063 0.14375,1.53813c0,0.60375 0,1.07813 0,1.4375c0,0.35938 0,0.87687 0,1.58125c0,0.69 0,1.07813 0,1.15c0,0.115 0,0.44563 0,1.15c0,0.70438 0,1.22188 0,1.58125c0,0.35938 0,0.83375 0,1.4375c-0.01437,0.5175 -0.0575,1.035 -0.14375,1.53813c-0.0575,0.35938 -0.14375,0.71875 -0.27312,1.06375c-0.4025,0.99188 -1.19313,1.7825 -2.185,2.185c-0.345,0.12937 -0.70438,0.21562 -1.06375,0.27312c-0.50312,0.08625 -1.02
1873062,0.12938 -1.53813,0.14375h-1.4375h-5.44813h-1.4375c-0.53187,0.01437 -1.06375,-0.01437 -1.59562,-0.07187c-0.35937,-0.0575 -0.71875,-0.14375 -1.06375,-0.27313c-0.99187,-0.4025 -1.7825,-1.19312 -2.185,-2.185c-0.115,-0.33063 -0.18687,-0.69 -0.24437,-1.035c-0.08625,-0.50312 -0.12937,-1.02063 -0.14375,-1.53813c0,-0.60375 0,-1.07812 0,-1.4375c0,-0.35937 0,-0.87687 0,-1.58125c0,-0.69 0,-1.07812 0,-1.15c0,-0.115 0,-0.44563 0,-1.15c0,-0.70437 0,-1.22187 0,-1.58125c0,-0.35938 0,-0.83375 0,-1.4375c0.01437,-0.54625 0.0575,-1.0925 0.14375,-1.62437c0.0575,-0.35937 0.14375,-0.71875 0.27313,-1.06375c0.4025,-0.99187 1.19313,-1.76813 2.185,-2.15625c0.33063,-0.115 0.67563,-0.21562 1.035,-0.27313c0.50312,-0.08625 1.02062,-0.12937 1.53813,-0.14375h1.4375h3.92438zM22.91375,6.75625c0.01437,-1.7825 -0.64687,-3.5075 -1.85437,-4.81563c-1.30813,-1.2075 -3.03313,-1.86875 -4.81562,-1.85437c-0.87688,-0.0575 -2.45813,-0.08625 -4.74375,-0.08625c-2.28562,0 -3.86687,0.02875 -4.74375,0.07187c-1.7825,-0.01437 -3.5075,0.66125 -4.81562,1.86875c-1.2075,1.30812 -1.86875,3.03312 -1.85437,4.81563c-0.0575,0.87687 -0.08625,2.45812 -0.08625,4.74375c0,2.28563 0.02875,3.86687 0.07188,4.74375c-0.01438,1.7825 0.64687,3.5075 1.85437,4.81563c1.30813,1.2075 3.0475,1.86875 4.83,1.85437c0.87688,0.0575 2.45813,0.08625 4.74375,0.08625c2.28562,0 3.86687,-0.02875 4.74375,-0.07187c1.7825,0.01437 3.5075,-0.64688 4.81562,-1.85438c1.2075,-1.30812 1.86875,-3.03312 1.85437,-4.81562c0.0575,-0.89125 0.08625,-2.4725 0.08625,-4.75813c0,-2.28563 -0.02875,-3.86687 -0.08625,-4.74375z", "vector-effect", "non-scaling-stroke", 2, "stroke-width", "0", "stroke-linecap", "butt", "stroke-linejoin", "miter", "fill", "rgb(255, 255, 255)"], ["id", "path-168868123262129", "d", "M14.2025,14.2025c-1.495,1.495 -3.91,1.495 -5.405,0.01437l-0.01437,-0.01437c-1.495,-1.495 -1.495,-3.91 -0.01437,-5.405l0.01437,-0.01437c1.495,-1.495 3.91,-1.495 5.405,-0.01437l0.01437,0.01437c1.36562,1.46625 1.23625,3.83813 0,5.41938zM15.64,7.32434c-1.0925,-1.10688 -2.5875,-1.725 -4.14,-1.71063c-3.24875,-0.01437 -5.87938,2.61625 -5.89375,5.865c0,0.01437 0,0.01437 0,0.02875c-0.01437,3.24875 2.61625,5.87938 5.865,5.89375c0.01437,0 0.01437,0 0.02875,0c3.24875,0.01437 5.87937,-2.61625 5.89375,-5.865c0,-0.01438 0,-0.01438 0,-0.02875c0.01437,-1.56687 -0.60375,-3.07625 -1.725,-4.16875zM18.515,4.44188c-0.54625,-0.575 -1.46625,-0.58937 -2.02688,-0.04313c-0.56063,0.54625 -0.58938,1.46625 -0.04313,2.02688c0.54625,0.56063 1.46625,0.58938 2.02688,0.04313c0.2875,-0.27312 0.44563,-0.66125 0.44563,-1.04938c0.0575,-0.37375 -0.0575,-0.7475 -0.30188,-1.035zM12.65,2.07h1.58125h1.4375c0.5175,0.01437 1.035,0.0575 1.53813,0.14375c0.35938,0.0575 0.71875,0.14375 1.06375,0.27312c0.99188,0.4025 1.7825,1.19312 2.185,2.185c0.12937,0.345 0.21563,0.70437 0.27312,1.06375c0.08625,0.50313 0.12937,1.02063 0.14375,1.53813c0,0.60375 0,1.07813 0,1.4375c0,0.35938 0,0.87687 0,1.58125c0,0.69 0,1.07813 0,1.15c0,0.115 0,0.44563 0,1.15c0,0.70438 0,1.22188 0,1.58125c0,0.35938 0,0.83375 0,1.4375c-0.01437,0.5175 -0.0575,1.035 -0.14375,1.53813c-0.0575,0.35938 -0.14375,0.71875 -0.27312,1.06375c-0.4025,0.99188 -1.19313,1.7825 -2.185,2.185c-0.345,0.12937 -0.70438,0.21562 -1.06375,0.27312c-0.50312,0.08625 -1.02062,0.12938 -1.53813,0.14375h-1.4375h-5.44813h-1.4375c-0.53187,0.01437 -1.06375,-0.01437 -1.59562,-0.07187c-0.35937,-0.0575 -0.71875,-0.14375 -1.06375,-0.27313c-0.99187,-0.4025 -1.7825,-1.19312 -2.185,-2.185c-0.115,-0.33063 -0.18687,-0.69 -0.24437,-1.035c-0.08625,-0.50312 -0.12937,-1.02063 -0.14375,-1.53813c0,-0.60375 0,-1.07812 0,-1.4375c0,-0.35937 0,-0.87687 0,-1.58125c0,-0.69 0,-1.07812 0,-1.15c0,-0.115 0,-0.44563 0,-1.15c0,-0.70437 0,-1.22187 0,-1.58125c0,-0.35938 0,-0.83375 0,-1.4375c0.01437,-0.54625 0.0575,-1.0925 0.14375,-1.62437c0.0575,-0.35937 0.14375,-0.71875 0.27313,-1.06375c0.4025,-0.99187 1.19313,-1.76813 2.185,-2.15625c0.33063,-0.115 0.67563,-0.21562 1.035,-0.27313c0.50312,-0.08625 1.02062,-0.12937 1.53813,-0.14375h1.4375h3.92438zM22.91375,6.75625c0.01437,-1.7825 -0.64687,-3.5075 -1.85437,-4.81563c-1.30813,-1.2075 -3.03313,-1.86875 -4.81562,-1.85437c-0.87688,-0.0575 -2.45813,-0.08625 -4.74375,-0.08625c-2.28562,0 -3.86687,0.02875 -4.74375,0.07187c-1.7825,-0.01437 -3.5075,0.66125 -4.81562,1.86875c-1.2075,1.30812 -1.86875,3.03312 -1.85437,4.81563c-0.0575,0.87687 -0.08625,2.45812 -0.08625,4.74375c0,2.28563 0.02875,3.86687 0.07188,4.74375c-0.01438,1.7825 0.64687,3.5075 1.85437,4.81563c1.30813,1.2075 3.0475,1.86875 4.83,1.85437c0.87688,0.0575 2.45813,0.08625 4.74375,0.08625c2.28562,0 3.86687,-0.02875 4.74375,-0.07187c1.7825,0.01437 3.5075,-0.64688 4.81562,-1.85438c1.2075,-1.30812 1.86875,-3.03312 1.85437,-4.81562c0.0575,-0.89125 0.08625,-2.4725 0.08625,-4.75813c0,-2.28563 -0.02875,-3.86687 -0.
187308625,-4.74375z", "vector-effect", "non-scaling-stroke"], [0, "xmlns", "default", "http://www.w3.org/2000/svg", "id", "youtube", "d", "M14.11,15.61c0-0.47-0.14-0.7-0.41-0.7c-0.18,0.01-0.35,0.09-0.47,0.23v3.13c0.12,0.14,0.29,0.22,0.47,0.23 c0.27,0,0.41-0.23,0.41-0.7v-2.2l0,0V15.61z M17.63,15.61c0-0.47-0.16-0.71-0.47-0.71s-0.47,0.24-0.47,0.71v0.48h0.94v-0.47l0,0 L17.63,15.61z M7.58,13.35v5.92h-1v-5.92H5.44v-1h3.25v1H7.58z M10.58,19.27v-0.55c-0.25,0.35-0.63,0.59-1.06,0.64 C9.25,19.4,9,19.25,8.91,18.99c-0.06-0.25-0.09-0.5-0.08-0.76v-4.1h0.92v3.79c-0.01,0.12-0.01,0.24,0,0.36 c-0.01,0.12,0.08,0.21,0.2,0.22c0.01,0,0.01,0,0.02,0c0.25-0.05,0.47-0.21,0.59-0.44v-3.93h0.94v5.14h-0.93L10.58,19.27z M15,17.74 c0.01,0.34-0.02,0.67-0.09,1c-0.07,0.35-0.39,0.59-0.74,0.57c-0.4-0.02-0.77-0.23-1-0.57v0.5h-0.86v-6.9h0.93v2.26 c0.22-0.34,0.6-0.55,1-0.56c0.36-0.02,0.67,0.23,0.74,0.58c0.08,0.33,0.11,0.66,0.09,1v2.05l0,0L15,17.74z M18.52,17.64 c0.01,0.2,0.01,0.4,0,0.6c-0.09,0.66-0.67,1.14-1.34,1.11c-0.44,0.02-0.86-0.18-1.12-0.53c-0.23-0.36-0.33-0.79-0.3-1.21v-1.8 c-0.03-0.42,0.07-0.85,0.29-1.21c0.49-0.61,1.38-0.71,2-0.22c0.08,0.07,0.16,0.14,0.22,0.22c0.21,0.37,0.31,0.79,0.28,1.21v1.07 H16.7v0.91c0,0.48,0.16,0.72,0.48,0.72c0.22,0.01,0.4-0.15,0.42-0.37c0.01-0.21,0.01-0.43,0-0.64h0.95v0.14l0,0L18.52,17.64z M12.23,8.13c0,0.49-0.15,0.73-0.45,0.73c-0.3,0-0.45-0.24-0.45-0.73V5.99c0-0.48,0.15-0.72,0.45-0.72c0.3,0,0.45,0.24,0.45,0.72 V8.13L12.23,8.13z M19.71,15.99c0.04-1.22-0.05-2.44-0.27-3.64c-0.19-0.8-0.85-1.41-1.67-1.52c-1.28-0.14-3.21-0.21-5.78-0.21 s-4.5,0.07-5.77,0.21c-0.4,0.05-0.77,0.22-1.07,0.49c-0.29,0.27-0.5,0.61-0.6,1c-0.21,1.21-0.3,2.44-0.26,3.67 c-0.04,1.22,0.05,2.44,0.27,3.64c0.09,0.39,0.3,0.74,0.6,1c0.3,0.27,0.67,0.44,1.07,0.48c1.92,0.17,3.85,0.25,5.78,0.22 c1.93,0.03,3.86-0.05,5.78-0.22c0.4-0.04,0.77-0.21,1.06-0.48c0.29-0.27,0.5-0.61,0.6-1C19.66,18.43,19.75,17.21,19.71,15.99 L19.71,15.99z M8.62,5.4L7.88,2.66H6.77c0.19,0.58,0.42,1.23,0.68,1.95c0.26,0.72,0.48,1.46,0.64,2.21v2.82h1V6.82l1.26-4.15H9.32 L8.62,5.4z M13.18,6.13c0.04-0.43-0.07-0.85-0.29-1.22c-0.48-0.61-1.36-0.71-1.97-0.23c-0.09,0.07-0.17,0.15-0.23,0.23 c-0.22,0.37-0.33,0.79-0.29,1.22v1.86c-0.03,0.43,0.07,0.86,0.29,1.23c0.48,0.61,1.36,0.71,1.97,0.23c0.09-0.07,0.17-0.15,0.23-0.23 c0.22-0.37,0.33-0.8,0.29-1.23V6.13L13.18,6.13z M15.72,4.44v4c-0.11,0.23-0.33,0.4-0.59,0.45c-0.12,0-0.22-0.1-0.22-0.22 c0,0,0-0.01,0-0.01c-0.01-0.12-0.01-0.24,0-0.36V4.44h-0.96v4.1c-0.01,0.26,0.02,0.53,0.08,0.78c0.09,0.26,0.34,0.42,0.61,0.39 c0.43-0.05,0.83-0.29,1.07-0.65v0.58h0.95v-5.2H15.72z", "vector-effect", "non-scaling-stroke", 2, "fill", "rgb(255, 255, 255)"]], template: function SocialLinksComponent_Template(rf, ctx) { if (rf & 1) { 1874 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0); 1875 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, SocialLinksComponent_a_1_Template, 4, 1, "a", 1); 1876 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, SocialLinksComponent_a_2_Template, 7, 1, "a", 1); 1877 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, SocialLinksComponent_a_3_Template, 4, 1, "a", 1); 1878 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); 1879 } if (rf & 2) { 1880 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1); 1881 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.merchant == null ? null : ctx.merchant.facebook_url); 1882 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1); 1883 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.merchant == null ? null : ctx.merchant.instagram_url); 1884 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1); 1885 _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.merchant == null ? null : ctx.merchant.youtube_url); 1886 } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_2__.NgIf], styles: [".social-links[_ngcontent-%COMP%] {\n display: inline-block;\n}\n\n@media (max-width: 992px) {\n a[_ngcontent-%COMP%] {\n margin-left: 0.2rem !important;\n margin-right: 0.2rem !important;\n }\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNvY2lhbC1saW5rcy5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNDLHFCQUFBO0FBQ0Q7O0FBRUE7RUFDQztJQUNDLDhCQUFBO0lBQ0EsK0JBQUE7RUFDQTtBQUNGIiwiZmlsZSI6InNvY2lhbC1saW5rcy5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5zb2NpYWwtbGlua3Mge1xuXHRkaXNwbGF5OiBpbmxpbmUtYmxvY2s7XG59XG5cbkBtZWRpYSAobWF4LXdpZHRoOiA5OTJweCkge1xuXHRhIHtcblx0XHRtYXJnaW4tbGVmdDogMC4ycmVtICFpbXBvcnRhbnQ7XG5cdFx0bWFyZ2luLXJpZ2h0OiAwLjJyZW0gIWltcG9ydGFudDtcblx0fVxufVxuIl19 */"] }); 1887 1888 1889/***/ }), 1890 1891/***/ 8248: 1892/*!***************************************!*\ 1893 !*** ./src/app/models/about.model.ts ***! 1894 \***************************************/ 1895/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 1896 1897__webpack_require__.r(__webpack_exports__); 1898/* harmony export */ __webpack_require__.d(__webpack_exports__, { 1899/* harmony export */ "ABOUTS": () => (/* binding */ ABOUTS), 1900/* harmony export */ "DESCRIPTION": () => (/* binding */ DESCRIPTION) 1901/* harmony export */ }); 1902const ABOUTS = [ 1903 {
1904 id: 'parque-de-estacionamento', 1905 name: 'PARQUE DE ESTACIONAMENTO', 1906 resume: 'A chegada à Ãptica Boavista de carro é feita pela Rua Guerra Junqueiro 640. Ao chegar, será recebido por um colaborador do estabelecimento que o orientará no parque de estacionamento. O parque de estacionamento possui uma capacidade para acomodar até 30 viaturas, oferecendo amplo espaço para os clientes estacionarem com facilidade.', 1907 description: '<p>A chegada à Ãptica Boavista de carro é feita pela Rua Guerra Junqueiro 640. Será recebido por um colaborador do estabelecimento que o vai orientar no parque de estacionamento. O parque de estacionamento possui uma capacidade para acomodar até 30 viaturas, oferecendo um espaço amplo para os clientes estacionarem com facilidade.</p>' + 1908 '<p>Ao estacionar o veÃculo, notará a presença de uma cadeira de rodas em frente ao elevador. Essa cadeira de rodas está disponÃvel para uso de pessoas que necessitem de auxÃlio para se locomover. à um recurso útil e inclusivo que demonstra a preocupação da Ãptica Boavista com a acessibilidade.</p>' + 1909 '<p>Ao entrar no elevador, será transportado diretamente ao piso da loja. O elevador é projetado para atender à s necessidades de mobilidade dos clientes, proporcionando uma transição suave entre o estacionamento e o interior da óptica.</p>' + 1910 '<p>Assim que o elevador chega ao piso da loja, será deixado exatamente na intersecção entre a ClÃnica e a área de aconselhamento e venda de óculos. Essa localização estratégica permite um acesso conveniente aos diferentes setores da óptica, proporcionando uma experiência eficiente e bem organizada para os clientes.</p>', 1911 image: 'assets/images/about/about-1.jpg' 1912 }, 1913 { 1914 id: 'clinica', 1915 name: 'CLIÌNICA', 1916 resume: 'A ClÃnica da Ãptica Boavista é um estabelecimento moderno e bem equipado, com uma equipe altamente qualificada, serviços abrangentes e produtos de qualidade. Destaca-se pelo atendimento personalizado, excelência clÃnica e compromisso com a saúde ocular de seus pacientes.', 1917 description: '<p>A ClÃnica da Ãptica Boavista é um estabelecimento moderno e bem equipado, com uma equipa altamente qualicada, serviços abrangentes e produtos de qualidade. </p>' + 1918 '<p>Destaca-se pelo atendimento personalizado, excelência clÃnica e compromisso com a saúde ocular dos seus pacientes.</p>' + 1919 '<p>Oferece uma ampla gama de valências multi-disciplinares para atender à s diversas necessidades de saúde ocular e bem-estar dos pacientes. </p>' + 1920 '<p>Essas valências incluem: consultas de Optometria,Contactologia, Psicologia, Audiologia, Fisioterapia, Terapia visual, Optometria comportamental e Ortóptica.</p>' + 1921 '<p>Além destas valências, a clÃnica também oferece uma ampla gama de exames de diagnósticos e tecnologias avançadas, como: ⢠Tensão Ocular (Tonometria): Medição da pressão intraocular para detectar possÃveis sinais de glaucoma. Retinograa: Fotograa digital do fundo do olho para avaliar a saúde da retina. ⢠Perimetria Estática Computorizada (Campimetria): Teste para avaliar o campo visual e identicar áreas de perda de visão. ⢠Tomograa de Coerência Ãptica: Exame não invasivo que permite visualizar as camadas da retina, útil para diagnóstico de doenças oculares. ⢠Topograa Corneana: Mapeamento da superfÃcie da córnea para avaliar a curvatura e detectar irregularidades. ⢠Microscopia Especular: Avaliação das células endoteliais da córnea para monitorar a saúde corneana. ⢠Estudo da Lágrima: Análise das 2 caracterÃsticas e qualidade das lágrimas para diagnóstico e tratamento de olho seco.</p>' + 1922 '<p>A ClÃnica da Ãptica Boavista orgulha-se de utilizar as mais avançadas tecnologias para fornecer um diagnóstico preciso e um atendimento de qualidade aos seus pacientes.</p>' + 1923 '<p>Para agendar uma consulta ou exame, os pacientes podem utilizar a área "Marcar Consulta" neste site.</p>', 1924 image: 'assets/images/about/about-2.jpg' 1925 }, 1926 { 1927 id: 'oficina', 1928 name: 'OFICINA', 1929 resume: 'O nosso laboratório é um centro de excelência em óptica, dedicado a fornecer soluções de alta qualidade para todos os tipos de óculos e lentes. Aqui, contamos com uma equipa de especialistas altamente treinados e experientes, apaixonados pelo que fazem e comprometidos em oferecer o melhor atendimento ao cliente.', 1930 description: '<p>O nosso laboratório é um centro de excelência em óptica, dedicado a fornecer soluções de alta qualidade para todos os tipos de óculos e lentes. Aqui, contamos com uma equipa de especialistas altamente treinados e experientes, apaixonados pelo que fazem e comprometidos em oferecer o melhor atendimento ao cliente.</p>' + 1931 '<p>Principais CaracterÃsticas do Nosso Laboratório:</p>' + 1932 '<ol>' + 1933 '<li>Reparação a Laser: Somos pioneiros em Portugal ao oferecer reparação a laser para óculos. Essa tecnologia de ponta permite-nos efetuar reparações precisas e duradouras, sem danificar a estrutura ou os materiais dos óculos. Devido à precisão do laser, conseguimos trabalhar com peças delicadas, como os óculos feitos em titânio.</li>' + 1934 '<li>Tecnologia de Ãltima Geração: Investimos em maquinaria de ponta para garantir resultados excecionais em todos os serviços que oferecemos. Os nossos equipamentos são escolhidos para estar em conformidade com os mais altos padrões da indústria, o que nos permite lidar com os mais variados tipos de óculos, lentes e materiais.</li>' + 1935 '<li>Especialização em Soldas de Titânio: Nossos técnicos são especialistas na realização de soldas em titânio, o que é uma habilidade rara e valiosa no setor óptico. O titânio é um material nobre e muito utilizado no fabrico de óculos devido à sua leveza e resistência, mas a soldagem convencional não é possÃvel. Graças à nossa experiência e equipamento laser, podemos lidar com essas situações com facilidade e precisão.</li>' + 1936 '<li>Eficiência no Serviço: oferecemos um serviço rápido e eficiente, entregando os óculos completos em apenas 30 minutos para lentes padrão e em 3 horas para lentes progressivas.</li>' + 1937 '<li>Especialização em Diversos Tipos de Lentes: a nossa equipa é altamente qualificada e possui uma vasta experiência na montagem de todos os tipos de lentes disponÃveis no mercado. Desde lentes monofocais, regressivas, com diferentes tratamentos para uma melhor saúde visual e conforto até lentes progressivas de alta tecnologia, temos o conhecimento necessário para proporcionar uma experiência visual excecional aos nossos clientes.</li>' + 1938 '<li>Marcação Precisa: Utilizamos equipamentos de tecnologia avançada para marcação das lentes de acordo com as especificações únicas de cada usuário. Essa marcação precisa é essencial para garantir que os óculos sejam personalizados de acordo com as necessidades visuais individuais, assegurando o máximo conforto e eficácia na correção visual.</li>' + 1939 '<li>Adaptação Personalizada: Reconhecemos que cada cliente é único, e as suas necessidades visuais podem variar. Portanto, personalizamos cada par de óculos de acordo com as preferências e estilo de vida do usuário. A nossa equipa trabalha em estreita colaboração para garantir que os óculos atendam à s expectativas do cliente.</li>' + 1940 '<li>Uso de Tecnologia de Ponta: Investimos continuamente em tecnologia de ponta para melhorar os nossos serviços e garantir que os nossos clientes tenham acesso à s mais recentes inovações no campo da óptica. Isso permite-nos oferecer resultados de excelência em todas as etapas do processo, desde a montagem até a entrega dos óculos finalizados.</li>' + 1941 '<li>
1941Controlo Minucioso de Qualidade: Temos como compromisso o atendimento ágil e eficiente onde cada par de óculos é minuciosamente verificado e testado com um apertado controlo de qualidade para garantir que atenda aos mais altos padrões de qualidade e precisão óptica.</li>' + 1942 '<li>Garantia de Satisfação: Estamos confiantes na qualidade do nosso trabalho e nos materiais que usamos. Por isso, oferecemos garantia de satisfação em todos os nossos serviços. </li>' + 1943 '</ol>' + 1944 '<p>Ao escolher a Ãptica Boavista Megastore, os nossos clientes têm a certeza de que os seus óculos serão tratados com o máximo de cuidado e expertise, utilizando tecnologia de vanguarda para garantir a excelência em cada trabalho realizado.</p>' + 1945 '<p>Venha visitar-nos ou entre em contacto para saber mais sobre os nossos serviços. Estamos ansiosos para o atender e lhe proporcionar a melhor experiência em cuidados ópticos que você já teve!</p>', 1946 image: 'assets/images/about/about-3.jpg' 1947 }, 1948 { 1949 id: 'atendimento-personalizado-oculos-graduados-e-sol', 1950 name: 'ATENDIMENTO PERSONALIZADO<br/>ÃCULOS GRADUADOS E SOL', 1951 resume: 'Na Ãptica Boavista Megastore, estamos empenhados em lhe oferecer um atendimento personalizado e exclusivo que se destaca em todos os sentidos. Com mais de 50 marcas de armações e óculos de sol, incluindo as tendências mais recentes, abraçamos a diversidade para atender a todos os gostos e necessidades.', 1952 description: '<p>Na Ãptica Boavista Megastore, estamos empenhados em lhe oferecer um atendimento personalizado e exclusivo que se destaca em todos os sentidos. Com mais de 50 marcas de armações e óculos de sol, incluindo as tendências mais recentes, abraçamos a diversidade para atender a todos os gostos e necessidades, garantindo que cada cliente encontre o par perfeito que reflita o seu estilo único.</p>' + 1953 '<p>O nosso foco está no luxo, no entanto, também temos uma grande variedade de preços para satisfazer diferentes orçamentos. Dos 50⬠aos deslumbrantes 30000â¬, nossos óculos variam em materiais, desde os mais simples e elegantes até os luxuosos feitos em ouro, platina e diamantes. Aqui na Ãptica Boavista Megastore, acreditamos que a moda e a qualidade devem estar ao alcance de todos, independentemente do seu estilo de vida.</p>' + 1954 '<p>Quando se trata de lentes, nunca comprometemos a excelência. Utilizamos apenas as marcas internacionais mais prestigiadas, garantindo a melhor qualidade e o máximo conforto. Estamos dedicados a cuidar da saúde visual de nossos clientes, proporcionando uma visão clara e nÃtida, além de garantir o conforto durante todo o dia.</p>' + 1955 '<p>A nossa equipa de especialistas altamente treinados e experientes está pronta para acompanhá-lo na sua jornada para encontrar o seu par de óculos perfeito. Esforçamo-nos para entender as suas preferências pessoais, estilo e necessidades especÃficas para oferecer recomendações personalizadas que se alinhem perfeitamente com o seu perfil.</p>' + 1956 '<p>Além disso, o nosso serviço pós-venda é exemplar, garantindo que a sua experiência com a Ãptica Boavista Megastore seja memorável desde o momento da escolha até muito além do momento da compra. A nossa missão é construir relacionamentos de longo prazo com os nossos clientes, garantindo que eles sempre recebam a atenção e o cuidado que merecem.</p>' + 1957 '<p>Venha visitar-nos e experimentar a verdadeira excelência em atendimento personalizado. Na Ãptica Boavista Megastore, estamos prontos para transformar o modo como vê o mundo - com estilo, luxo e qualidade indiscutÃvel.</p>' + 1958 '<p>Experimente a diferença na Ãptica Boavista Megastore â onde os seus olhos e o seu estilo se encontram!</p>', 1959 image: 'assets/images/about/about-4.jpg' 1960 }, 1961 { 1962 id: 'atendimento-personalizado-infantil', 1963 name: 'ATENDIMENTO PERSONALIZADO INFANTIL', 1964 resume: 'Na Ãptica Boavista Megastore, acreditamos que os olhos das crianças merecem cuidados especiais e atenção dedicada. Por isso, temos um espaço especialmente projetado para os mais pequenos, onde oferecemos uma extensa variedade de óculos desde os mais
1964simples até aos mais irreverentes e divertidos.', 1965 description: '<p>Na Ãptica Boavista Megastore, acreditamos que os olhos das crianças merecem cuidados especiais e atenção dedicada. Por isso, temos um espaço especialmente projetado para os mais pequenos, onde oferecemos uma extensa variedade de óculos desde os mais simples até aos mais irreverentes e divertidos, não esquecendo os indicados para os mais diversos desportos (óculos de natação, futebol e muitos outros, todos graduáveis).</p>' + 1966 '<p>Sempre apresentamos uma coleção encantadora de óculos, especialmente pensados para crianças de todas as idades. Desde os primeiros óculos para bebés (desde os 0 meses) até aos modelos mais modernos para adolescentes, a nossa seleção combina estilo, conforto e qualidade para atender aos diferentes estágios de crescimento e à s preferências individuais.</p>' + 1967 '<p>Entendemos que cada criança é única e tem sua personalidade e gostos especÃficos, por isso, oferecemos uma ampla variedade de cores, formatos e personagens favoritos para que elas se sintam especiais e animadas com os seus novos óculos.</p>' + 1968 '<p>Além disso, sabemos o quanto é importante garantir a proteção e saúde visual das crianças em fase de crescimento. Portanto, escolhemos cuidadosamente as lentes e materiais que oferecem a melhor qualidade óptica, resistência e conforto para as suas atividades diárias. Tendo sempre no nosso portfolio as marcas de lentes e de armações mais aconselhadas pelos Oftalmologistas Pediátricos.</p>' + 1969 '<p>Venha visitar a nossa loja e descubra a coleção exclusiva de óculos infantis, onde combinamos moda e função para cuidar do estilo e saúde visual dos mais pequenos. Aqui, na Ãptica Boavista Megastore, estamos empenhados em tornar a jornada visual das crianças tão empolgante e única quanto elas são!</p>', 1970 image: 'assets/images/about/about-5.jpg' 1971 }, 1972 { 1973 id: 'boutique-boavista', 1974 name: 'BOUTIQUE BOAVISTA', 1975 resume: 'Na Boutique Boavista, proporcionamos uma experiência de compras excecional, onde qualidade, estilo e atendimento personalizado se unem. Localizada dentro da Ãptica Boavista, a nossa boutique é um espaço encantador dedicado a roupas e acessórios exclusivos.', 1976 description: '<p>Na Boutique Boavista, proporcionamos uma experiência de compras excecional, onde qualidade, estilo e atendimento personalizado se unem. Localizada dentro da Óptica Boavista, a nossa boutique é um espaço encantador dedicado a roupas e acessórios exclusivos.</p><p>Na nossa boutique, temos uma equipa de consultores de moda que está sempre pronta para oferecer um atendimento personalizado e ajudá-la a encontrar as roupas e acessórios perfeitos para qualquer ocasião. Com o seu conhecimento especializado e senso de moda, eles podem auxiliar na combinação de peças, oferecer conselhos sobre estilos e propor soluções para atender às suas necessidades individuais.</p><p>Além disso, a localização privilegiada dentro da Óptica Boavista permite que você aproveite ao máximo a sua visita, combinando o prazer de escolher óculos de sol ou graduados com a oportunidade de renovar seu guarda-roupa. É a combinação perfeita para quem procura estilo e conforto visual num só lugar.</p><p>Visite a nossa boutique e permita-nos surpreendê-lo com uma seleção única de peças elegantes e de alta qualidade. Esperamos recebê-lo em breve para uma experiência de compras inesquecível na Óptica Boavista!</p>', 1977 image: 'assets/images/about/about-6.jpg' 1978 }, 1979 { 1980 id: 'obv-cafe', 1981 name: 'OBV CAFÃ', 1982 resume: 'No OBVcafé desfrute do seu café deliciosamente encorpado e aromático e absorva a atmosfera tranquila e relaxante que criamos. à o local perfeito para apreciar um momento de calma e serenidade, seja sozinho, numa reunião ou enquanto aguarda os seus óculos ou a sua consulta. Além do café excepcional, o nosso menu apresenta também uma variedade de opções de pequeno almoço e lanches.', 1983 description: '<p>
1983No OBVcafé desfrute do seu café deliciosamente encorpado e aromático e absorva a atmosfera tranquila e relaxante que criamos. à o local perfeito para apreciar um momento de calma e serenidade, seja sozinho, numa reunião ou enquanto aguarda os seus óculos ou a sua consulta. Além do café excepcional, o nosso menu apresenta também uma variedade de opções de pequeno almoço e lanches.</p>' + 1984 '<p>O nosso espaço é agraciado com claraboias no teto, permitindo a entrada de luz natural que cria uma atmosfera aconchegante e convidativa. A luz suave ilumina o ambiente, destacando detalhes encantadores e criando uma sensação de bem-estar.</p>' + 1985 '<p>Venha-nos visitar e descubra a magia de saborear um café delicioso num ambiente único e cheio de personalidade.</p>' + 1986 '<p>Na nossa boutique, temos uma equipa de consultores de moda que está sempre pronta para oferecer um atendimento personalizado e ajudá-la a encontrar as roupas e acessórios perfeitos para qualquer ocasião. Com o seu conhecimento especializado e senso de moda, eles podem auxiliar na combinação de peças, oferecer conselhos sobre estilos e propor soluções para atender à s suas necessidades individuais.</p>' + 1987 '<p>Além disso, a localização privilegiada dentro da Ãptica Boavista permite que você aproveite ao máximo a sua visita, combinando o prazer de escolher óculos de sol ou graduados com a oportunidade de renovar seu guarda-roupa. à a combinação perfeita para quem procura estilo e conforto visual num só lugar.</p>' + 1988 '<p>Visite a nossa boutique e permita-nos surpreendê-lo com uma seleção única de peças elegantes e de alta qualidade. Esperamos recebê-lo em breve para uma experiência de compras inesquecÃvel na Ãptica Boavista!</p>', 1989 image: 'assets/images/about/about-7.jpg' 1990 }, 1991 { 1992 id: 'transforme-a-sua-iris', 1993 name: 'TRANSFORME A SUA ÃRIS', 1994 resume: 'Bem-vindo à Irisphoto.art, onde transformamos a janela da sua alma numa obra de arte deslumbrante. A nossa especialidade é a fotografia da Ãris, capturando cada detalhe único dos seus olhos em alta definição. Cada Ãris é como uma impressão digital, exclusiva e cheia de nuances que revelam a sua individualidade', 1995 description: '<p>Bem-vindo à Irisphoto.art, onde transformamos a janela da sua alma numa obra de arte deslumbrante.</p>' + 1996 '<p>A nossa especialidade é a fotografia da Ãris, capturando cada detalhe único dos seus olhos em alta definição. Cada Ãris é como uma impressão digital, exclusiva e cheia de nuances que revelam a sua individualidade.</p>' + 1997 '<p><b>Porque Fotografar a sua Ãris?</b></p>' + 1998 '<ul>' + 1999 '<li><b>Exclusividade:</b> Não há duas Ãris iguais no mundo. Tenha uma peça de arte que é tão única quanto você.</li>' + 2000 '<li><b>Detalhe IncrÃvel:</b> Os nossos equipamentos são os mais recentes e evoluÃdos do mercado, e por isso, capturam cada minúcia da sua Ãris com uma precisão impressionante.</li>' + 2001 '<li><b>Presentes Memoráveis:</b> Ofereça um presente inesquecÃvel para alguém especial. Um retrato da Ãris é uma escolha singular e com significado profundo.</li>' + 2002 '<li><b>Decoração Elegante:</b> Adicione um toque de sofisticação e personalização à sua casa ou escritório com uma obra de arte que reflete sua essência.</li>' + 2003 '</ul>' + 2004 '<p><b>Como Funciona?</b></p>' + 2005 '<ol>' + 2006 '<li><b>Agendamento:</b> Marque a sua sessão no nosso estúdio através do nosso website ou por mensagem direta nas nossas redes sociais.</li>' + 2007 '<li><b>Captura da Ãris:</b> A nossa equipa de fotógrafos especializados fará a captura da sua Ãris, utilizando técnicas avançadas para garantir imagens de alta qualidade.</li>' + 2008 '<li><b>Edição e Impressão:</b> Selecionamos e editamos as melhores imagens, oferecendo várias opções de impressão e molduras para que escolha a que mais lhe agrada.</li>' + 2009 '<li><b>Entrega:</b> Receba sua obra de arte em casa, pronta para ser exibida com orgulho.</li>' + 2010 '</ol>' + 2011 '<p>Estamos localizados na Avenida Boavista, nº1003. Para mais informações ou para agendar sua sessão, entre em contacto connosco através do número de telemóvel +351 912 156 666 ou através das nossas redes sociais.</p>' + 2012 '<p>Siga-nos em <a href="https://www.instagram.com/irisphoto.art_portoboavista" target="_blank">@irisphoto.art_portoboavista</a> para ver mais exemplos do nosso trabalho e ficar por dentro das nossas novida
2012des .</p>', 2013 image: 'assets/images/about/about-8.jpg' 2014 } 2015]; 2016const DESCRIPTION = 'Um espaço multidisciplinar, com áreas distintas, que oferece serviços tão inovadores como, por exemplo, conseguir que as lentes dos seus óculos estejam prontas em apenas 1 hora! Aqui, vai encontrar mais de 50 marcas de armações, óculos de sol e óculos de desporto das melhores griffes do mundo. Para maior conforto e satisfação dos seus clientes poderá ainda tomar o pequeno almoço ou lanchar - no OBV Café â e estacionar o carro no parque privativo com mais de 30 lugares e acesso directo à loja. A Ãptica Boavista oferece também serviços especializados para crianças (fraldário, atendimento personalizado especÃfico e sala de espera para os mais pequenos).'; 2017 2018 2019 2020/***/ }), 2021 2022/***/ 6651: 2023/*!****************************************!*\ 2024 !*** ./src/app/models/banner.model.ts ***! 2025 \****************************************/ 2026/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 2027 2028__webpack_require__.r(__webpack_exports__); 2029/* harmony export */ __webpack_require__.d(__webpack_exports__, { 2030/* harmony export */ "Banner": () => (/* binding */ Banner) 2031/* harmony export */ }); 2032class Banner { 2033} 2034 2035 2036/***/ }), 2037 2038/***/ 1269: 2039/*!**************************************!*\ 2040 !*** ./src/app/models/cart.model.ts ***! 2041 \**************************************/ 2042/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 2043 2044__webpack_require__.r(__webpack_exports__); 2045/* harmony export */ __webpack_require__.d(__webpack_exports__, { 2046/* harmony export */ "Cart": () => (/* binding */ Cart) 2047/* harmony export */ }); 2048class Cart { 2049 constructor() { 2050 this.total = 0; 2051 this.quant = 0; 2052 this.discount = 0; 2053 this.products = []; 2054 } 2055} 2056 2057 2058/***/ }), 2059 2060/***/ 2541: 2061/*!****************************************!*\ 2062 !*** ./src/app/models/models.model.ts ***! 2063 \****************************************/ 2064/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 2065 2066__webpack_require__.r(__webpack_exports__); 2067/* harmony export */ __webpack_require__.d(__webpack_exports__, { 2068/* harmony export */ "Banner": () => (/* reexport safe */ _models_banner_model__WEBPACK_IMPORTED_MODULE_0__.Banner), 2069/* harmony export */ "Cart": () => (/* reexport safe */ _models_cart_model__WEBPACK_IMPORTED_MODULE_1__.Cart), 2070/* harmony export */ "PRICES": () => (/* reexport safe */ _models_product_model__WEBPACK_IMPORTED_MODULE_2__.PRICES) 2071/* harmony export */ }); 2072/* harmony import */ var _models_banner_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @models/banner.model */ 6651); 2073/* harmony import */ var _models_cart_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @models/cart.model */ 1269); 2074/* harmony import */ var _models_product_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @models/product.model */ 1454); 2075 2076 2077 2078 2079 2080 2081/***/ }), 2082 2083/***/ 1454: 2084/*!*****************************************!*\ 2085 !*** ./src/app/models/product.model.ts ***! 2086 \*****************************************/ 2087/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 2088 2089__webpack_require__.r(__webpack_exports__); 2090/* harmony export */ __webpack_require__.d(__webpack_exports__, { 2091/* harmony export */ "PRICES": () => (/* binding */ PRICES) 2092/* harmony export */ }); 2093const PRICES = [ 2094 { id: '50:100', name: '50⬠- 100â¬' }, 2095 { id: '100:200', name: '100⬠- 200â¬' }, 2096 { id: '200:300', name: '200⬠- 300â¬' }, 2097 { id: '300:400', name: '300⬠- 400â¬' }, 2098 { id: '400:500', name: '400⬠- 500â¬' } 2099]; 2100 2101 2102 2103/***/ }), 2104 2105/***/ 3978: 2106/*!**********************************************************!*\ 2107 !*** ./src/app/pages/about-item/about-item.component.ts ***! 2108 \**********************************************************/ 2109/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 2110 2111__webpack_require__.r(__webpack_exports__); 2112/* harmony export */ __webpack_require__.d(__webpack_exports__, { 2113/* harmony export */ "AboutItemComponent": () => (/* binding */ AboutItemComponent) 2114/* harmony export */ }); 2115/* harmony import */ var _home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 1670); 2116/* harmony import */ var _models_about_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @models/about.model */ 8248); 2117/* harmony import */ var _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @pages/basic/basic.component */ 9689); 2118/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 2560); 2119/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/router */ 124); 2120/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common */ 4666); 2121/* harmony import */ var ngx_slick_carousel__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ngx-slick-carousel */ 5939); 2122 2123 2124 2125 2126 2127 2128 2129 2130function AboutItemComponent_div_0_div_4_div_3_a_1_Template(rf, ctx) { 2131 if (rf & 1) { 2132 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "a", 11); 2133 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "img", 12); 2134 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](2, "div", 13); 2135 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](3, "h5", 14); 2136 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()(); 2137 } 2138 2139 if (rf & 2) { 2140 const a_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]().$implicit; 2141 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("href", "/quem-somos/" + a_r4.id, _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵsanitizeUrl"]); 2142 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1); 2143 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("src", a_r4.image, _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵsanitizeUrl"]); 2144 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2); 2145 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("innerHtml", a_r4.name, _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵsanitizeHtml"]); 2146 } 2147} 2148 2149const _c0 = function (a0) { 2150 return { 2151 see: a0 2152 }; 2153}; 2154 2155function AboutItemComponent_div_0_div_4_div_3_Template(rf, ctx) { 2156 if (rf & 1) { 2157 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 9); 2158 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](1, AboutItemComponent_div_0_div_4_div_3_a_1_Template, 4, 3, "a", 10); 2159 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); 2160 } 2161 2162 if (rf & 2) { 2163 const a_r4 = ctx.$implicit; 2164 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction1"](2, _c0, !a_r4.see)); 2165 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1); 2166 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", a_r4.see); 2167 } 2168} 2169 2170function AboutItemComponent_div_0_div_4_Template(rf, ctx) { 2171 if (rf & 1) { 2172 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 5)(1, "ngx-slick-carousel", 6, 7); 2173 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](3, AboutItemComponent_div_0_div_4_div_3_Template, 2, 4, "div", 8); 2174 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()(); 2175 } 2176 2177 if (rf & 2) { 2178 const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2); 2179 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1); 2180 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("config", ctx_r1.slideConfig); 2181 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2); 2182 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngForOf", ctx_r1.abouts); 2183 } 2184} 2185 2186function AboutItemComponent_div_0_Template(rf, ctx) { 2187 if (rf & 1) { 2188 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div"); 2189 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "div", 1)(2, "h2", 2)(3, "div", 3); 2190 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](4, AboutItemComponent_div_0_div_4_Template, 4, 2, "div", 4); 2191 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); 2192 } 2193 2194 if (rf & 2) { 2195 const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](); 2196 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1); 2197 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵstyleProp"]("background-image", "url(" + ctx_r0.about.image
2197+ ")"); 2198 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1); 2199 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("innerHtml", ctx_r0.about.name, _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵsanitizeHtml"]); 2200 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1); 2201 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("innerHtml", ctx_r0.about.description, _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵsanitizeHtml"]); 2202 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1); 2203 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r0.abouts.length); 2204 } 2205} 2206 2207class AboutItemComponent extends _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_2__.BasicComponent { 2208 constructor(activatedRoute) { 2209 super(); 2210 this.activatedRoute = activatedRoute; 2211 this.abouts = _models_about_model__WEBPACK_IMPORTED_MODULE_1__.ABOUTS; 2212 this.slideConfig = { 2213 autoplay: false, 2214 infinite: false, 2215 slidesToShow: 4, 2216 centerMode: false, 2217 variableWidth: false, 2218 dots: false, 2219 responsive: [{ 2220 breakpoint: 1024, 2221 settings: { 2222 slidesToShow: 4 2223 } 2224 }, { 2225 breakpoint: 775, 2226 settings: { 2227 slidesToShow: 2 2228 } 2229 }, { 2230 breakpoint: 600, 2231 settings: { 2232 slidesToShow: 1 2233 } 2234 }] 2235 }; 2236 } 2237 2238 ngOnInit() { 2239 var _this = this; 2240 2241 this.activatedRoute.params.subscribe( /*#__PURE__*/function () { 2242 var _ref = (0,_home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (params) { 2243 if (params.id) { 2244 _this.load(params.id); 2245 } 2246 }); 2247 2248 return function (_x) { 2249 return _ref.apply(this, arguments); 2250 }; 2251 }()); 2252 } 2253 2254 load(id) { 2255 this.abouts.map(about => { 2256 about.see = true; 2257 2258 if (about.id == id) { 2259 this.about = about; 2260 about.see = false; 2261 } 2262 2263 return about; 2264 }); 2265 } 2266 2267} 2268 2269AboutItemComponent.ɵfac = function AboutItemComponent_Factory(t) { 2270 return new (t || AboutItemComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_4__.ActivatedRoute)); 2271}; 2272 2273AboutItemComponent.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({ 2274 type: AboutItemComponent, 2275 selectors: [["app-about-item"]], 2276 features: [_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵInheritDefinitionFeature"]], 2277 decls: 1, 2278 vars: 1, 2279 consts: [[4, "ngIf"], [1, "img-about", "mt-3"], [1, "ob-title", 3, "innerHtml"], [1, "about-description", 3, "innerHtml"], ["class", "abouts-container", 4, "ngIf"], [1, "abouts-container"], [1, "carousel", 3, "config"], ["slickModal", "slick-carousel"], ["ngxSlickItem", "", "class", "slide", 3, "ngClass", 4, "ngFor", "ngForOf"], ["ngxSlickItem", "", 1, "slide", 3, "ngClass"], ["class", "card", 3, "href", 4, "ngIf"], [1, "card", 3, "href"], [1, "card-img-top", 3, "src"], [1, "card-body"], [1, "card-title", 3, "innerHtml"]], 2280 template: function AboutItemComponent_Template(rf, ctx) { 2281 if (rf & 1) { 2282 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](0, AboutItemComponent_div_0_Template, 5, 5, "div", 0); 2283 } 2284 2285 if (rf & 2) { 2286 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.about); 2287 } 2288 }, 2289 dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_5__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_5__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_5__.NgIf, ngx_slick_carousel__WEBPACK_IMPORTED_MODULE_6__.SlickCarouselComponent, ngx_slick_carousel__WEBPACK_IMPORTED_MODULE_6__.SlickItemDirective], 2290 styles: [".ob-title[_ngcontent-%COMP%] {\n margin-top: 81px;\n margin-bottom: 37px;\n}\n\n.img-about[_ngcontent-%COMP%] {\n width: 100%;\n height: 40vh;\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n}\n\n.see[_ngcontent-%COMP%] {\n display: none;\n}\n\n.about-description[_ngcontent-%COMP%] {\n margin-bottom: 80px;\n line-height: 32px;\n font-size: 16px;\n text-align: justify;\n}\n\n.abouts-container[_ngcontent-%COMP%] {\n margin-top: 118px;\n margin-bottom: 149px;\n}\n\n.abouts-container[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] {\n font-size: 27px;\n text-align: center;\n margin-bottom: 40px;\n text-transform: uppercase;\n}\n\n.abouts-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] {\n border-radius: 0px;\n margin: 12px;\n height: 190px;\n box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1);\n text-decoration: none;\n}\n\n.abouts-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] img[_ngcontent-%COMP%] {\n border-radius: 0px;\n height: 134px;\n}\n\n.abouts-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] h5[_ngcontent-%COMP%] {\n font-size: 15px;\n line-height: 20px;\n margin-top: -6px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFib3V0LWl0ZW0uY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDQyxnQkFBQTtFQUNBLG1CQUFBO0FBQ0Q7O0FBRUE7RUFDQyxXQUFBO0VBQ0EsWUFBQTtFQUNBLDJCQUFBO0VBQ0EsNEJBQUE7RUFDQSxzQkFBQTtBQUNEOztBQUVBO0VBQ0MsYUFBQTtBQUNEOztBQUVBO0VBQ0MsbUJBQUE7
2290RUFDQSxpQkFBQTtFQUNBLGVBQUE7RUFDQSxtQkFBQTtBQUNEOztBQUVBO0VBQ0MsaUJBQUE7RUFDQSxvQkFBQTtBQUNEOztBQUNDO0VBQ0MsZUFBQTtFQUNBLGtCQUFBO0VBQ0EsbUJBQUE7RUFDQSx5QkFBQTtBQUNGOztBQUVDO0VBQ0Msa0JBQUE7RUFDQSxZQUFBO0VBQ0EsYUFBQTtFQUNBLDBDQUFBO0VBQ0EscUJBQUE7QUFBRjs7QUFFRTtFQUNDLGtCQUFBO0VBQ0EsYUFBQTtBQUFIOztBQUdFO0VBQ0ksZUFBQTtFQUNBLGlCQUFBO0VBQ0EsZ0JBQUE7QUFETiIsImZpbGUiOiJhYm91dC1pdGVtLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLm9iLXRpdGxlIHtcblx0bWFyZ2luLXRvcDogODFweDtcblx0bWFyZ2luLWJvdHRvbTogMzdweDtcbn1cblxuLmltZy1hYm91dCB7XG5cdHdpZHRoOiAxMDAlO1xuXHRoZWlnaHQ6IDQwdmg7XG5cdGJhY2tncm91bmQtcG9zaXRpb246IGNlbnRlcjtcblx0YmFja2dyb3VuZC1yZXBlYXQ6IG5vLXJlcGVhdDtcblx0YmFja2dyb3VuZC1zaXplOiBjb3Zlcjtcbn1cblxuLnNlZSB7XG5cdGRpc3BsYXk6IG5vbmU7XG59XG5cbi5hYm91dC1kZXNjcmlwdGlvbiB7XG5cdG1hcmdpbi1ib3R0b206IDgwcHg7XG5cdGxpbmUtaGVpZ2h0OiAzMnB4O1xuXHRmb250LXNpemU6IDE2cHg7XG5cdHRleHQtYWxpZ246IGp1c3RpZnk7XG59XG5cbi5hYm91dHMtY29udGFpbmVyIHtcblx0bWFyZ2luLXRvcDogMTE4cHg7XG5cdG1hcmdpbi1ib3R0b206IDE0OXB4O1xuXG5cdGgyIHtcblx0XHRmb250LXNpemU6IDI3cHg7XG5cdFx0dGV4dC1hbGlnbjogY2VudGVyO1xuXHRcdG1hcmdpbi1ib3R0b206IDQwcHg7XG5cdFx0dGV4dC10cmFuc2Zvcm06IHVwcGVyY2FzZTtcblx0fVxuXG5cdC5jYXJkIHtcblx0XHRib3JkZXItcmFkaXVzOiAwcHg7XG5cdFx0bWFyZ2luOiAxMnB4O1xuXHRcdGhlaWdodDogMTkwcHg7XG5cdFx0Ym94LXNoYWRvdzogMHB4IDFweCAycHggcmdiYSgwLCAwLCAwLCAwLjEpO1xuXHRcdHRleHQtZGVjb3JhdGlvbjogbm9uZTtcblxuXHRcdGltZyB7XG5cdFx0XHRib3JkZXItcmFkaXVzOiAwcHg7XG5cdFx0XHRoZWlnaHQ6IDEzNHB4O1xuXHRcdH1cblxuXHRcdGg1IHtcbiAgICAgIGZvbnQtc2l6ZTogMTVweDtcbiAgICAgIGxpbmUtaGVpZ2h0OiAyMHB4O1xuICAgICAgbWFyZ2luLXRvcDogLTZweDtcblx0XHR9XG5cdH1cbn1cbiJdfQ== */"] 2291}); 2292 2293/***/ }), 2294 2295/***/ 3794: 2296/*!************************************************!*\ 2297 !*** ./src/app/pages/about/about.component.ts ***! 2298 \************************************************/ 2299/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 2300 2301__webpack_require__.r(__webpack_exports__); 2302/* harmony export */ __webpack_require__.d(__webpack_exports__, { 2303/* harmony export */ "AboutComponent": () => (/* binding */ AboutComponent) 2304/* harmony export */ }); 2305/* harmony import */ var _models_about_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @models/about.model */ 8248); 2306/* harmony import */ var _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @pages/basic/basic.component */ 9689); 2307/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 2560); 2308/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/common */ 4666); 2309 2310 2311 2312 2313function AboutComponent_div_4_Template(rf, ctx) { if (rf & 1) { 2314 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div")(1, "div", 4); 2315 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](2, "img", 5)(3, "div", 6); 2316 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 7); 2317 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "h2", 8)(6, "div", 8); 2318 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "a", 9); 2319 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, "Ver mais"); 2320 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()(); 2321} if (rf & 2) { 2322 const about_r1 = ctx.$implicit; 2323 const i_r2 = ctx.index; 2324 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); 2325 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", i_r2 % 2 !== 0 ? "about-container-inverse" : "about-container"); 2326 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); 2327 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("src", about_r1.image, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]); 2328 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3); 2329 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("innerHtml", about_r1.name, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeHtml"]); 2330 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); 2331 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("innerHtml", about_r1.resume, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeHtml"]); 2332 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); 2333 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("href", "/quem-somos/" + about_r1.id, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]); 2334} } 2335class AboutComponent extends _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_1__.BasicComponent { 2336 constructor() { 2337 super(); 2338 this.description = _models_about_model__WEBPACK_IMPORTED_MODULE_0__.DESCRIPTION; 2339 this.abouts = _models_about_model__WEBPACK_IMPORTED_MODULE_0__.ABOUTS; 2340 } 2341} 2342AboutComponent.ɵfac = function AboutComponent_Factory(t) { return new (t || AboutComponent)(); }; 2343AboutComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({ type: AboutComponent, selectors: [["app-about"]], features: [_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵInheritDefinitionFeature"]], decls: 5, vars: 4, consts: [[1, "img-about", "mt-3"], [1, "ob-title"], [1, "about-description", 3, "innerHtml"], [4, "ngFor", "ngForOf"], [3, "ngClass"], [3, "src"], [1, "bar"], [1, "details"], [3, "innerHtml"], [1, "btn", "btn-primary", 3, "href"]], template: function AboutComponent_Template(rf, ctx) { if (rf & 1) { 2344 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "div", 0); 2345 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "h2", 1); 2346 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Sobre N\u00F3s"); 2347 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 2348 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "div", 2); 2349 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, AboutComponent_div_4_Template, 9, 5, "div", 3); 2350 } if (rf & 2) { 2351 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵstyleProp"]("background-image", "url(assets/images/about.jpg)"); 2352 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3); 2353 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("innerHtml", ctx.description, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeHtml"]); 2354 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); 2355 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx.abouts); 2356 } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_3__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_3__.NgForOf], styles: [".ob-title[_ngcontent-%COMP%] {\n margin-top: 81px;\n margin-bottom: 37px;\n}\n\n.img-about[_ngcontent-%COMP%] {\n width: 100%;\n height: 40vh;\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n}\n\n.about-description[_ngcontent-%COMP%] {\n margin-bottom: 80px;\n line-height: 32px;\n font-size: 16px;\n text-align: justify;\n}\n\n.about-container[_ngcontent-%COMP%] {\n display: inline-flex;\n position: relative;\n width: 100%;\n height: 500px;\n margin-top: 20px;\n margin-bottom: 20px;\n}\n\n.about-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%] {\n position: absolute;\n left: 20px;\n width: 53%;\n height: 428px;\n z-index: 2;\n}\n\n.about-container[_ngcontent-%COMP%] .bar[_ngcontent-%COMP%] {\n position: absolute;\n width: 46px;\n height: 460px;\n background-color: var(--dark);\n left: 53%;\n z-index: 1;\n top: -16px;\n}\n\n.about-container[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] {\n width: 53%;\n height: 457px;\n right: 20px;\n top: 28px;\n position: absolute;\n background-color: var(--light);\n}\n\n.about-container[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] {\n font-size: 27px;\n text-transform: uppercase;\n margin-left: 170px;\n margin-top: 32px;\n color: var(--dark);\n}\n\n.about-container[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] div[_ngcontent-%COMP%] {\n font-size: 16px;\n line-height: 24px;\n text-align: justify;\n color: var(--dark);\n margin-left: 170px;\n margin-right: 48px;\n margin-top: 22px;\n line-height: 32px;\n position: relative;\n}\n\n.about-container[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%] {\n position: absolute;\n bottom: 24px;\n left: 170px;\n right: 48px;\n margin-left: auto;\n margin-right: auto;\n width: 25%;\n padding: 10px;\n}\n\n.about-container-inverse[_ngcontent-%COMP%] {\n display: inline-flex;\n position: relative;\n width: 100%;\n height: 500px;\n margin-top: 20px;\n margin-bottom: 20px;\n}\n\n.about-container-inverse[_ngcontent-%COMP%] img[_ngcontent-%COMP%] {\n position: absolute;\n right: 20px;\n width: 53%;\n height: 428px;\n z-index: 2;\n}\n\n.about-container-inverse[_ngcontent-%COMP%] .bar[_ngcontent-%COMP%] {\n position: absolute;\n width: 46px;\n height: 460px;\n background-color: var(--dark);\n right: 53%;\n z-index: 1;\n top: -16px;\n}\n\n.about-container-inverse[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] {\n width: 53%;\n height: 457px;\n left: 20px;\n top: 28px;\n position: absolute;\n background-color: var(--light);\n}\n\n.about-container-inverse[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] {\n font-size: 27px;\n text-transform: uppercase;\n margin-left: 36px;\n margin-top: 32px;\n color: var(--dark);\n}\n\n.about-container-inverse[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] div[_ngcontent-%COMP%] {\n font-size: 16px;\n line-height: 24px;\n text-align: justify;\n color: var(--dark);\n margin-right: 170px;\n margin-left: 36px;\n margin-top: 22px;\n line-height: 32px;\n}\n\n.about-container-inverse[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%] {\n position: absolute;\n bottom: 24px;\n left: 36px;\n right: 170px;\n margin-left: auto;\n margin-right: auto;\n width: 25%;\n padding: 10px;\n}\n\n@media only screen and (min-width: 993px) and (max-width: 1200px) {\n .about-container[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] div[_ngcontent-%COMP%], .about-container-inverse[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] div[_ngcontent-%COMP%] {\n margin-top: 0px;\n line-height: 22px;\n }\n .about-container[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%], .about-container-inverse[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%] {\n width: 30%;\n }\n}\n\n@media only screen and (max-width: 992px) {\n .about-container[_ngcontent-%COMP%], .about-container-inverse[_ngcontent-%COMP%] {\n display: block;\n width: 100%;\n height: -moz-fit-content;\n height: fit-content;\n margin-top: 20px;\n margin-bottom: 20px;\n }\n .about-container[_ngcontent-%COMP%] .bar[_ngcontent-%COMP%], .about-container-inverse[_ngcontent-%COMP%] .bar[_ngcontent-%COMP%] {\n display: none;\n }\n .about-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .about-container-inverse[_ngcontent-%COMP%] img[_ngcontent-%COMP%] {\n position: static;\n width: 100%;\n height: 265px;\n }\n .about-container[_ngcontent-%COMP%] .details[_ngcontent-%COMP%], .about-container-inverse[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] {\n position: static;\n width: 100%;\n height: -moz-fit-content;\n height: fit-content;\n background-color: var(--white);\n }\n .about-container[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .about-container-inverse[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] {\n margin-top: 5px;\n margin-left: 0px;\n }\n .about-container[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] div[_ngcontent-%COMP%], .about-container-inverse[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] div[_ngcontent-%COMP%] {\n margin-top: 0px;\n margin-left: 0px;\n margin-right: 0px;\n }\n .about-container[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%], .about-container-inverse[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%] {\n position: static;\n display: block;\n margin: auto;\n width: 40%;\n margin-top: 20px;\n }\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFib3V0LmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0MsZ0JBQUE7RUFDQSxtQk
2356FBQTtBQUNEOztBQUVBO0VBQ0MsV0FBQTtFQUNBLFlBQUE7RUFDQSwyQkFBQTtFQUNBLDRCQUFBO0VBQ0Esc0JBQUE7QUFDRDs7QUFFQTtFQUNDLG1CQUFBO0VBQ0EsaUJBQUE7RUFDQSxlQUFBO0VBQ0EsbUJBQUE7QUFDRDs7QUFFQTtFQUNDLG9CQUFBO0VBQ0Esa0JBQUE7RUFDQSxXQUFBO0VBQ0EsYUFBQTtFQUNBLGdCQUFBO0VBQ0EsbUJBQUE7QUFDRDs7QUFDQztFQUNDLGtCQUFBO0VBQ0EsVUFBQTtFQUNBLFVBQUE7RUFDQSxhQUFBO0VBQ0EsVUFBQTtBQUNGOztBQUVDO0VBQ0Msa0JBQUE7RUFDQSxXQUFBO0VBQ0EsYUFBQTtFQUNBLDZCQUFBO0VBQ0EsU0FBQTtFQUNBLFVBQUE7RUFDQSxVQUFBO0FBQUY7O0FBR0M7RUFDQyxVQUFBO0VBQ0EsYUFBQTtFQUNBLFdBQUE7RUFDQSxTQUFBO0VBQ0Esa0JBQUE7RUFDQSw4QkFBQTtBQURGOztBQUdFO0VBQ0MsZUFBQTtFQUNBLHlCQUFBO0VBQ0Esa0JBQUE7RUFDQSxnQkFBQTtFQUNBLGtCQUFBO0FBREg7O0FBSUU7RUFDQyxlQUFBO0VBQ0EsaUJBQUE7RUFDQSxtQkFBQTtFQUNBLGtCQUFBO0VBQ0Esa0JBQUE7RUFDQSxrQkFBQTtFQUNBLGdCQUFBO0VBQ0EsaUJBQUE7RUFDQSxrQkFBQTtBQUZIOztBQUtFO0VBQ0Msa0JBQUE7RUFDQSxZQUFBO0VBQ0EsV0FBQTtFQUNBLFdBQUE7RUFDQSxpQkFBQTtFQUNBLGtCQUFBO0VBQ0EsVUFBQTtFQUNBLGFBQUE7QUFISDs7QUFRQTtFQUNDLG9CQUFBO0VBQ0Esa0JBQUE7RUFDQSxXQUFBO0VBQ0EsYUFBQTtFQUNBLGdCQUFBO0VBQ0EsbUJBQUE7QUFMRDs7QUFPQztFQUNDLGtCQUFBO0VBQ0EsV0FBQTtFQUNBLFVBQUE7RUFDQSxhQUFBO0VBQ0EsVUFBQTtBQUxGOztBQVFDO0VBQ0Msa0JBQUE7RUFDQSxXQUFBO0VBQ0EsYUFBQTtFQUNBLDZCQUFBO0VBQ0EsVUFBQTtFQUNBLFVBQUE7RUFDQSxVQUFBO0FBTkY7O0FBU0M7RUFDQyxVQUFBO0VBQ0EsYUFBQTtFQUNBLFVBQUE7RUFDQSxTQUFBO0VBQ0Esa0JBQUE7RUFDQSw4QkFBQTtBQVBGOztBQVNFO0VBQ0MsZUFBQTtFQUNBLHlCQUFBO0VBQ0EsaUJBQUE7RUFDQSxnQkFBQTtFQUNBLGtCQUFBO0FBUEg7O0FBVUU7RUFDQyxlQUFBO0VBQ0EsaUJBQUE7RUFDQSxtQkFBQTtFQUNBLGtCQUFBO0VBQ0EsbUJBQUE7RUFDQSxpQkFBQTtFQUNBLGdCQUFBO0VBQ0EsaUJBQUE7QUFSSDs7QUFXRTtFQUNDLGtCQUFBO0VBQ0EsWUFBQTtFQUNBLFVBQUE7RUFDQSxZQUFBO0VBQ0EsaUJBQUE7RUFDQSxrQkFBQTtFQUNBLFVBQUE7RUFDQSxhQUFBO0FBVEg7O0FBY0E7RUFJRzs7SUFDQyxlQUFBO0lBQ0EsaUJBQUE7RUFiRjtFQXFCQzs7SUFDQyxVQUFBO0VBbEJGO0FBQ0Y7O0FBdUJBO0VBQ0M7O0lBRUMsY0FBQTtJQUNBLFdBQUE7SUFDQSx3QkFBQTtJQUFBLG1CQUFBO0lBQ0EsZ0JBQUE7SUFDQSxtQkFBQTtFQXJCQTtFQXVCQTs7SUFDQyxhQUFBO0VBcEJEO0VBdUJBOztJQUNDLGdCQUFBO0lBQ0EsV0FBQTtJQUNBLGFBQUE7RUFwQkQ7RUF1QkE7O0lBQ0MsZ0JBQUE7SUFDQSxXQUFBO0lBQ0Esd0JBQUE7SUFBQSxtQkFBQTtJQUNBLDhCQUFBO0VBcEJEO0VBc0JDOztJQUNDLGVBQUE7SUFDQSxnQkFBQTtFQW5CRjtFQXNCQzs7SUFDQyxlQUFBO0lBQ0EsZ0JBQUE7SUFDQSxpQkFBQTtFQW5CRjtFQXNCQzs7SUFDQyxnQkFBQTtJQUNBLGNBQUE7SUFDQSxZQUFBO0lBQ0EsVUFBQTtJQUNBLGdCQUFBO0VBbkJGO0FBQ0YiLCJmaWxlIjoiYWJvdXQuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIub2ItdGl0bGUge1xuXHRtYXJnaW4tdG9wOiA4MXB4O1xuXHRtYXJnaW4tYm90dG9tOiAzN3B4O1xufVxuXG4uaW1nLWFib3V0IHtcblx0d2lkdGg6IDEwMCU7XG5cdGhlaWdodDogNDB2aDtcblx0YmFja2dyb3VuZC1wb3NpdGlvbjogY2VudGVyO1xuXHRiYWNrZ3JvdW5kLXJlcGVhdDogbm8tcmVwZWF0O1xuXHRiYWNrZ3JvdW5kLXNpemU6IGNvdmVyO1xufVxuXG4uYWJvdXQtZGVzY3JpcHRpb24ge1xuXHRtYXJnaW4tYm90dG9tOiA4MHB4O1xuXHRsaW5lLWhlaWdodDogMzJweDtcblx0Zm9udC1zaXplOiAxNnB4O1xuXHR0ZXh0LWFsaWduOiBqdXN0aWZ5O1xufVxuXG4uYWJvdXQtY29udGFpbmVyIHtcblx0ZGlzcGxheTogaW5saW5lLWZsZXg7XG5cdHBvc2l0aW9uOiByZWxhdGl2ZTtcblx0d2lkdGg6IDEwMCU7XG5cdGhlaWdodDogNTAwcHg7XG5cdG1hcmdpbi10b3A6IDIwcHg7XG5cdG1hcmdpbi1ib3R0b206IDIwcHg7XG5cblx0aW1nIHtcblx0XHRwb3NpdGlvbjogYWJzb2x1dGU7XG5cdFx0bGVmdDogMjBweDtcblx0XHR3aWR0aDogNTMlO1xuXHRcdGhlaWdodDogNDI4cHg7XG5cdFx0ei1pbmRleDogMjtcblx0fVxuXG5cdC5iYXIge1xuXHRcdHBvc2l0aW9uOiBhYnNvbHV0ZTtcblx0XHR3aWR0aDogNDZweDtcblx0XHRoZWlnaHQ6IDQ2MHB4O1xuXHRcdGJhY2tncm91bmQtY29sb3I6IHZhcigtLWRhcmspO1xuXHRcdGxlZnQ6IDUzJTtcblx0XHR6LWluZGV4OiAxO1xuXHRcdHRvcDogLTE2cHg7XG5cdH1cblxuXHQuZGV0YWlscyB7XG5cdFx0d2lkdGg6IDUzJTtcblx0XHRoZWlnaHQ6IDQ1N3B4O1xuXHRcdHJpZ2h0OiAyMHB4O1xuXHRcdHRvcDogMjhweDtcblx0XHRwb3NpdGlvbjogYWJzb2x1dGU7XG5cdFx0YmFja2dyb3VuZC1jb2xvcjogdmFyKC0tbGlnaHQpO1xuXG5cdFx0aDIge1xuXHRcdFx0Zm9udC1zaXplOiAyN3B4O1xuXHRcdFx0dGV4dC10cmFuc2Zvcm06IHVwcGVyY2FzZTtcblx0XHRcdG1hcmdpbi1sZWZ0OiAxNzBweDtcblx0XHRcdG1hcmdpbi10b3A6IDMycHg7XG5cdFx0XHRjb2xvcjogdmFyKC0tZGFyayk7XG5cdFx0fVxuXG5cdFx0ZGl2IHtcblx0XHRcdGZvbnQtc2l6ZTogMTZweDtcblx0XHRcdGxpbmUtaGVpZ2h0OiAyNHB4O1xuXHRcdFx0dGV4dC1hbGlnbjoganVzdGlmeTtcblx0XHRcdGNvbG9yOiB2YXIoLS1kYXJrKTtcblx0XHRcdG1hcmdpbi1sZWZ0OiAxNzBweDtcblx0XHRcdG1hcmdpbi1yaWdodDogNDhweDtcblx0XHRcdG1hcmdpbi10b3A6IDIycHg7XG5cdFx0XHRsaW5lLWhlaWdodDogMzJweDtcblx0XHRcdHBvc2l0aW9uOiByZWxhdGl2ZTtcblx0XHR9XG5cblx0XHQuYnRuIHtcblx0XHRcdHBvc2l0aW9uOiBhYnNvbHV0ZTtcblx0XHRcdGJvdHRvbTogMjRweDtcblx0XHRcdGxlZnQ6IDE3MHB4O1xuXHRcdFx0cmlnaHQ6IDQ4cHg7XG5cdFx0XHRtYXJnaW4tbGVmdDogYXV0bztcblx0XHRcdG1hcmdpbi1yaWdodDogYXV0bztcblx0XHRcdHdpZHRoOiAyNSU7XG5cdFx0XHRwYWRkaW5nOiAxMHB4O1xuXHRcdH1cblx0fVxufVxuXG4uYWJvdXQtY29udGFpbmVyLWludmVyc2Uge1xuXHRkaXNwbGF5OiBpbmxpbmUtZmxleDtcblx0cG9zaXRpb246IHJlbGF0aXZlO1xuXHR3aWR0aDogMTAwJTtcblx0aGVpZ2h0OiA1MDBweDtcblx0bWFyZ2luLXRvcDogMjBweDtcblx0bWFyZ2luLWJvdHRvbTogMjBweDtcblxuXHRpbWcge1xuXHRcdHBvc2l0aW9uOiBhYnNvbHV0ZTtcblx0XHRyaWdodDogMjBweDtcblx0XHR3aWR0aDogNTMlO1xuXHRcdGhlaWdodDogNDI4cHg7XG5cdFx0ei1pbmRleDogMjtcblx0fVxuXG5cdC5iYXIge1xuXHRcdHBvc2l0aW9uOiBhYnNvbHV0ZTtcblx0XHR3aWR0aDogNDZweDtcblx0XHRoZWlnaHQ6IDQ2MHB4O1xuXHRcdGJhY2tncm91bmQtY29sb3I6IHZhcigtLWRhcmspO1xuXHRcdHJpZ2h0OiA1MyU7XG5cdFx0ei1pbmRleDogMTtcblx0XHR0b3A6IC0xNnB4O1xuXHR9XG5cblx0LmRldGFpbHMge1xuXHRcdHdpZHRoOiA1MyU7XG5cdFx0aGVpZ2h0OiA0NTdweDtcblx0XHRsZWZ0OiAyMHB4O1xuXHRcdHRvcDogMjhweDtcblx0XHRwb3NpdGlvbjogYWJzb2x1dGU7XG5cdFx0YmFja2dyb3VuZC1jb2xvcjogdmFyKC0tbGlnaHQpO1xuXG5cdFx0aDIge1xuXHRcdFx0Zm9udC1zaXplOiAyN3B4O1xuXHRcdFx0dGV4dC10cmFuc2Zvcm06IHVwcGVyY2FzZTtcblx0XHRcdG1hcmdpbi1sZWZ0OiAzNnB4O1xuXHRcdFx0bWFyZ2luLXRvcDogMzJweDtcblx0XHRcdGNvbG9yOiB2YXIoLS1kYXJrKTtcblx0XHR9XG5cblx0XHRkaXYge1xuXHRcdFx0Zm9udC1zaXplOiAxNnB4O1xuXHRcdFx0bGluZS1oZWlnaHQ6IDI0cHg7XG5cdFx0XHR0ZXh0LWFsaWduOiBqdXN0aWZ5O1xuXHRcdFx0Y29sb3I6IHZhcigtLWRhcmspO1xuXHRcdFx0bWFyZ2luLXJpZ2h0OiAxNzBweDtcblx0XHRcdG1hcmdpbi1sZWZ0OiAzNnB4O1xuXHRcdFx0bWFyZ2luLXRvcDogMjJweDtcblx0XHRcdGxpbmUtaGVpZ2h0OiAzMnB4O1xuXHRcdH1cblxuXHRcdC5idG4ge1xuXHRcdFx0cG9zaXRpb246IGFic29sdXRlO1xuXHRcdFx0Ym90dG9tOiAyNHB4O1xuXHRcdFx0bGVmdDogMzZweDtcblx0XHRcdHJpZ2h0OiAxNzBweDtcblx0XHRcdG1hcmdpbi1sZWZ0OiBhdXRvO1xuXHRcdFx0bWFyZ2luLXJpZ2h0OiBhdXRvO1xuXHRcdFx0d2lkdGg6IDI1JTtcblx0XHRcdHBhZGRpbmc6IDEwcHg7XG5cdFx0fVxuXHR9XG59XG5cbkBtZWRpYSBvbmx5IHNjcmVlbiBhbmQgKG1pbi13aWR0aDogOTkzcHgpIGFuZCAobWF4LXdpZHRoOiAxMjAwcHgpIHtcblx0LmFib3V0LWNvbnRhaW5lcixcblx0LmFib3V0LWNvbnRhaW5lci1pbnZlcnNlIHtcblx0XHQuZGV0YWlscyB7XG5cdFx0XHRkaXYge1xuXHRcdFx0XHRtYXJnaW4tdG9wOiAwcHg7XG5cdFx0XHRcdGxpbmUtaGVpZ2h0OiAyMnB4O1xuXHRcdFx0fVxuXHRcdH1cblx0fVxuXG5cdC5hYm91dC1jb250YWluZXIsXG5cdC5hYm91dC1jb250YWluZXItaW52ZXJzZSB7XG5cdFx0LmRldGFpbHMge1xuXHRcdFx0LmJ0biB7XG5cdFx0XHRcdHdpZHRoOiAzMCU
23567XG5cdFx0XHR9XG5cdFx0fVxuXHR9XG59XG5cbkBtZWRpYSBvbmx5IHNjcmVlbiBhbmQgKG1heC13aWR0aDogOTkycHgpIHtcblx0LmFib3V0LWNvbnRhaW5lcixcblx0LmFib3V0LWNvbnRhaW5lci1pbnZlcnNlIHtcblx0XHRkaXNwbGF5OiBibG9jaztcblx0XHR3aWR0aDogMTAwJTtcblx0XHRoZWlnaHQ6IGZpdC1jb250ZW50O1xuXHRcdG1hcmdpbi10b3A6IDIwcHg7XG5cdFx0bWFyZ2luLWJvdHRvbTogMjBweDtcblxuXHRcdC5iYXIge1xuXHRcdFx0ZGlzcGxheTogbm9uZTtcblx0XHR9XG5cblx0XHRpbWcge1xuXHRcdFx0cG9zaXRpb246IHN0YXRpYztcblx0XHRcdHdpZHRoOiAxMDAlO1xuXHRcdFx0aGVpZ2h0OiAyNjVweDtcblx0XHR9XG5cblx0XHQuZGV0YWlscyB7XG5cdFx0XHRwb3NpdGlvbjogc3RhdGljO1xuXHRcdFx0d2lkdGg6IDEwMCU7XG5cdFx0XHRoZWlnaHQ6IGZpdC1jb250ZW50O1xuXHRcdFx0YmFja2dyb3VuZC1jb2xvcjogdmFyKC0td2hpdGUpO1xuXG5cdFx0XHRoMiB7XG5cdFx0XHRcdG1hcmdpbi10b3A6IDVweDtcblx0XHRcdFx0bWFyZ2luLWxlZnQ6IDBweDtcblx0XHRcdH1cblxuXHRcdFx0ZGl2IHtcblx0XHRcdFx0bWFyZ2luLXRvcDogMHB4O1xuXHRcdFx0XHRtYXJnaW4tbGVmdDogMHB4O1xuXHRcdFx0XHRtYXJnaW4tcmlnaHQ6IDBweDtcblx0XHRcdH1cblxuXHRcdFx0LmJ0biB7XG5cdFx0XHRcdHBvc2l0aW9uOiBzdGF0aWM7XG5cdFx0XHRcdGRpc3BsYXk6IGJsb2NrO1xuXHRcdFx0XHRtYXJnaW46IGF1dG87XG5cdFx0XHRcdHdpZHRoOiA0MCU7XG5cdFx0XHRcdG1hcmdpbi10b3A6IDIwcHg7XG5cdFx0XHR9XG5cdFx0fVxuXHR9XG59XG4iXX0= */"] }); 2357 2358 2359/***/ }), 2360 2361/***/ 751: 2362/*!********************************************************!*\ 2363 !*** ./src/app/pages/addresses/addresses.component.ts ***! 2364 \********************************************************/ 2365/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 2366 2367__webpack_require__.r(__webpack_exports__); 2368/* harmony export */ __webpack_require__.d(__webpack_exports__, { 2369/* harmony export */ "AddressesComponent": () => (/* binding */ AddressesComponent) 2370/* harmony export */ }); 2371/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/forms */ 2508); 2372/* harmony import */ var _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pages/basic/basic.component */ 9689); 2373/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 2560); 2374/* harmony import */ var _services_services_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @services/services.service */ 6325); 2375 2376 2377 2378 2379 2380function AddressesComponent_p_39_Template(rf, ctx) { if (rf & 1) { 2381 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "p"); 2382 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, "N\u00E3o tem nenhuma morada de fatura\u00E7\u00E3o registada"); 2383 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 2384} } 2385function AddressesComponent_div_40_hr_11_Template(rf, ctx) { if (rf & 1) { 2386 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "hr"); 2387} } 2388function AddressesComponent_div_40_Template(rf, ctx) { if (rf & 1) { 2389 const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"](); 2390 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 21)(1, "div", 22)(2, "p"); 2391 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3); 2392 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](4, "br"); 2393 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](5); 2394 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](6, "br"); 2395 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](7); 2396 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); 2397 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 23)(9, "p", 24); 2398 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddressesComponent_div_40_Template_p_click_9_listener() { const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r8); const address_r4 = restoredCtx.$implicit; const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r7.removeAddress(address_r4.id)); }); 2399 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](10, "i", 25); 2400 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); 2401 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](11, AddressesComponent_div_40_hr_11_Template, 1, 0, "hr", 19); 2402 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 2403} if (rf & 2) { 2404 const address_r4 = ctx.$implicit; 2405 const i_r5 = ctx.index; 2406 const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); 2407 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3); 2408 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", address_r4.address, " "); 2409 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); 2410 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate2"](" ", address_r4.postcode, ", ", address_r4.city, " "); 2411 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); 2412 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", address_r4.country, " "); 2413 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4); 2414 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", i_r5 != ctx_r1.fiscal_addresses.length - 1); 2415} } 2416function AddressesComponent_p_43_Template(rf, ctx) { if (rf & 1) { 2417 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "p"); 2418 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, "N\u00E3o tem nenhuma morada de entrega registada"); 2419 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 2420} } 2421function AddressesComponent_div_44_hr_11_Template(rf, ctx) { if (rf & 1) { 2422 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "hr"); 2423} } 2424function AddressesComponent_div_44_Template(rf, ctx) { if (rf & 1) { 2425 const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"](); 2426 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 21)(1, "div", 22)(2, "p"); 2427 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3); 2428 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](4, "br"); 2429 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](5); 2430 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](6, "br"); 2431 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](7); 2432 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); 2433 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 23)(9, "p", 24); 2434 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddressesComponent_div_44_Template_p_click_9_listener() { const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r13); const address_r9 = restoredCtx.$implicit; const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetVie
2434w"](ctx_r12.removeAddress(address_r9.id)); }); 2435 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](10, "i", 25); 2436 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); 2437 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](11, AddressesComponent_div_44_hr_11_Template, 1, 0, "hr", 19); 2438 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 2439} if (rf & 2) { 2440 const address_r9 = ctx.$implicit; 2441 const i_r10 = ctx.index; 2442 const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); 2443 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3); 2444 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", address_r9.address, " "); 2445 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); 2446 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate2"](" ", address_r9.postcode, ", ", address_r9.city, " "); 2447 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); 2448 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", address_r9.country, " "); 2449 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4); 2450 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", i_r10 != ctx_r3.commercial_addresses.length - 1); 2451} } 2452class AddressesComponent extends _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_0__.BasicComponent { 2453 constructor(formBuilder, addressService) { 2454 super(); 2455 this.formBuilder = formBuilder; 2456 this.addressService = addressService; 2457 this.fiscal_addresses = []; 2458 this.commercial_addresses = []; 2459 this.user = this.storageService.get('user'); 2460 if (!this.user) { 2461 this.navigateHome(); 2462 } 2463 this.addressForm = this.formBuilder.group({ 2464 address: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_3__.Validators.required]], 2465 postcode: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_3__.Validators.required]], 2466 city: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_3__.Validators.required]], 2467 country: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_3__.Validators.required]], 2468 type: [1, [_angular_forms__WEBPACK_IMPORTED_MODULE_3__.Validators.required]] 2469 }); 2470 } 2471 ngOnInit() { 2472 this.load(); 2473 } 2474 load() { 2475 this.fiscal_addresses = []; 2476 this.commercial_addresses = []; 2477 this.addressService.all().subscribe((resp) => { 2478 if (resp.status == 'OK') { 2479 resp.data.forEach((address) => { 2480 if (address.type == 1) { 2481 this.fiscal_addresses.push(address); 2482 } 2483 else { 2484 this.commercial_addresses.push(address); 2485 } 2486 }); 2487 } 2488 }); 2489 } 2490 create() { 2491 this.addressService.create(this.addressForm.value).subscribe((resp) => { 2492 if (resp.status == 'OK') { 2493 this.addressForm.reset(); 2494 this.load(); 2495 this.toastService.showSuccess('Guardado com sucesso'); 2496 } 2497 else { 2498 this.toastService.showError('Erro ao guardar'); 2499 } 2500 }); 2501 } 2502 removeAddress(id) { 2503 this.addressService.delete(id).subscribe((resp) => { 2504 if (resp.status == 'OK') { 2505 this.load(); 2506 this.toastService.showSuccess('Removido com sucesso'); 2507 } 2508 else { 2509 this.toastService.showError('Erro ao remover'); 2510 } 2511 }); 2512 } 2513} 2514AddressesComponent.ɵfac = function AddressesComponent_Factory(t) { return new (t || AddressesComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_3__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_services_services_service__WEBPACK_IMPORTED_MODULE_1__.AddressService)); }; 2515AddressesComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({ type: AddressesComponent, selectors: [["app-addresses"]], features: [_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵInheritDefinitionFeature"]], decls: 45, vars: 6, consts: [[1, "ob-title"], [1, "profile-container"], [1, "row", "mb-5"], [1, "col-12", "col-md-4", "my-2"], [1, "col-12", "col-md-8", "my-2", "profile-content"], [1, "form", 3, "formGroup", "submit"], [1, "row"], [1, "col-12", "col-md-12", "col-lg-8", "mt-3"], [1, "label"], ["type", "text", "formControlName", "address"], [1, "col-12", "col-md-12", "col-lg-4", "mt-3"], ["type", "text", "formControlName", "postcode"], ["type", "text", "formControlName", "city"], ["type", "text", "formControlName", "country"], ["formControlName", "type"], ["value", "1"], ["value", "2"], ["type", "submit", 1, "btn", "center", "btn-primary", "mt-3", 3, "disabled"], [1, "mt-5", "mb-2"], [4, "ngIf"], ["class", "content-order row align-items-center", 4, "ngFor", "ngForOf"], [1, "content-order", "row", "align-items-center"], [1, "col-11"], [1, "col-1"], ["role", "button", 3, "click"], [1, "fas", "fa-tras
2515h-alt", "fa-lg"]], template: function AddressesComponent_Template(rf, ctx) { if (rf & 1) { 2516 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "h2", 0); 2517 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, "Moradas"); 2518 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 2519 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 1)(3, "div", 2)(4, "div", 3); 2520 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "app-menu-profile"); 2521 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 2522 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div", 4)(7, "form", 5); 2523 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("submit", function AddressesComponent_Template_form_submit_7_listener() { return ctx.create(); }); 2524 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "h2"); 2525 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](9, "Adicionar Morada"); 2526 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 2527 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "div", 6)(11, "div", 7)(12, "p", 8); 2528 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](13, "Morada"); 2529 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 2530 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](14, "input", 9); 2531 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 2532 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "div", 10)(16, "p", 8); 2533 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](17, "C\u00F3digo Postal"); 2534 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 2535 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](18, "input", 11); 2536 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 2537 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "div", 10)(20, "p", 8); 2538 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](21, "Cidade"); 2539 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 2540 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](22, "input", 12); 2541 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 2542 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](23, "div", 10)(24, "p", 8); 2543 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](25, "Pa\u00EDs"); 2544 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 2545 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](26, "input", 13); 2546 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 2547 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](27, "div", 10)(28, "p", 8); 2548 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](29, "Tipo"); 2549 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 2550 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](30, "select", 14)(31, "option", 15); 2551 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](32, "Fatura\u00E7\u00E3o"); 2552 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 2553 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](33, "option", 16); 2554 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](34, "Entrega"); 2555 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()(); 2556 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](35, "button", 17); 2557 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](36, "Guardar"); 2558 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); 2559 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](37, "h2", 18); 2560 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](38, "Moradas de Fatura\u00E7\u00E3o"); 2561 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 2562 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](39, AddressesComponent_p_39_Template, 2, 0, "p", 19); 2563 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](40, AddressesComponent_div_40_Template, 12, 5, "div", 20); 2564 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](41, "h2", 18); 2565 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](42, "Moradas de Entrega"); 2566 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 2567 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](43, AddressesComponent_p_43_Template, 2, 0, "p", 19); 2568 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](44, AddressesComponent_div_44_Template, 12, 5, "div", 20); 2569 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()(); 2570 } if (rf & 2) { 2571 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7); 2572 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx.addressForm); 2573 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](28); 2574 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", ctx.addressForm.invali
2574d); 2575 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4); 2576 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.fiscal_addresses.length == 0); 2577 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); 2578 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx.fiscal_addresses); 2579 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3); 2580 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.commercial_addresses.length == 0); 2581 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); 2582 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx.commercial_addresses); 2583 } }, styles: [".ob-title[_ngcontent-%COMP%] {\n margin-top: 100px;\n margin-bottom: 30px;\n}\n\n.profile-container[_ngcontent-%COMP%] {\n box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);\n margin-bottom: 125px;\n background-color: var(--grey);\n padding: 50px;\n}\n\n.profile-container[_ngcontent-%COMP%] .profile-content[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] input[type=text][_ngcontent-%COMP%], .profile-container[_ngcontent-%COMP%] .profile-content[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] select[_ngcontent-%COMP%] {\n border: 1px solid var(--primary);\n}\n\n.profile-container[_ngcontent-%COMP%] .profile-content[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] {\n font-size: 27px;\n}\n\n.profile-container[_ngcontent-%COMP%] .profile-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n font-size: 16px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFkZHJlc3Nlcy5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNDLGlCQUFBO0VBQ0EsbUJBQUE7QUFDRDs7QUFFQTtFQUNDLDBDQUFBO0VBQ0Esb0JBQUE7RUFDQSw2QkFBQTtFQUNBLGFBQUE7QUFDRDs7QUFHRzs7RUFFQyxnQ0FBQTtBQURKOztBQUtFO0VBQ0MsZUFBQTtBQUhIOztBQU1FO0VBQ0MsZUFBQTtBQUpIIiwiZmlsZSI6ImFkZHJlc3Nlcy5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5vYi10aXRsZSB7XG5cdG1hcmdpbi10b3A6IDEwMHB4O1xuXHRtYXJnaW4tYm90dG9tOiAzMHB4O1xufVxuXG4ucHJvZmlsZS1jb250YWluZXIge1xuXHRib3gtc2hhZG93OiAwcHggMXB4IDJweCByZ2JhKDAsIDAsIDAsIDAuMik7XG5cdG1hcmdpbi1ib3R0b206IDEyNXB4O1xuXHRiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1ncmV5KTtcblx0cGFkZGluZzogNTBweDtcblxuXHQucHJvZmlsZS1jb250ZW50IHtcblx0XHQuZm9ybSB7XG5cdFx0XHRpbnB1dFt0eXBlPVwidGV4dFwiXSxcblx0XHRcdHNlbGVjdCB7XG5cdFx0XHRcdGJvcmRlcjogMXB4IHNvbGlkIHZhcigtLXByaW1hcnkpO1xuXHRcdFx0fVxuXHRcdH1cblxuXHRcdGgyIHtcblx0XHRcdGZvbnQtc2l6ZTogMjdweDtcblx0XHR9XG5cblx0XHRwIHtcblx0XHRcdGZvbnQtc2l6ZTogMTZweDtcblx0XHR9XG5cdH1cbn1cbiJdfQ== */"] }); 2584 2585 2586/***/ }), 2587 2588/***/ 9689: 2589/*!************************************************!*\ 2590 !*** ./src/app/pages/basic/basic.component.ts ***! 2591 \************************************************/ 2592/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 2593 2594__webpack_require__.r(__webpack_exports__); 2595/* harmony export */ __webpack_require__.d(__webpack_exports__, { 2596/* harmony export */ "BasicComponent": () => (/* binding */ BasicComponent) 2597/* harmony export */ }); 2598/* harmony import */ var _app_app_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @app/app.module */ 6747); 2599/* harmony import */ var _services_services_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @services/services.service */ 6325); 2600/* harmony import */ var vanilla_cookieconsent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vanilla-cookieconsent */ 5340); 2601/* harmony import */ var _services_gtm_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @services/gtm.service */ 2853); 2602/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/router */ 124); 2603/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/core */ 2560); 2604 2605 2606 2607 2608 2609 2610 2611class BasicComponent { 2612 constructor() { 2613 const injector = _app_app_module__WEBPACK_IMPORTED_MODULE_0__.ServiceLocator.injector; 2614 vanilla_cookieconsent__WEBPACK_IMPORTED_MODULE_2__.run({ 2615 onFirstConsent: ({ cookie }) => { 2616 }, 2617 onConsent: ({ cookie }) => { 2618 }, 2619 onChange: ({ changedCategories, changedServices }) => { 2620 }, 2621 onModalReady: ({ modalName }) => { 2622 }, 2623 onModalShow: ({ modalName }) => { 2624 }, 2625 onModalHide: ({ modalName }) => { 2626 }, 2627 categories: { 2628 necessary: { 2629 enabled: true, 2630 readOnly: true // this category cannot be disabled 2631 }, 2632 analytics: { 2633 autoClear: { 2634 cookies: [ 2635 { 2636 name: /^_ga/ // regex: match all cookies starting with '_ga' 2637 }, 2638 { 2639 name: "_gid" // string: exact cookie name 2640 } 2641 ] 2642 }, 2643 services: { 2644 ga: { 2645 label: "Google Analytics", 2646 onAccept: () => { 2647 }, 2648 onReject: () => { 2649 } 2650 } 2651 } 2652 }, 2653 ads: { 2654 autoClear: { 2655 cookies: [ 2656 { 2657 name: "_fbp" // string: exact cookie name 2658 } 2659 ] 2660 }, 2661 services: { 2662 fbp: { 2663 label: "Facebook Pixel", 2664 onAccept: () => { 2665 }, 2666 onReject: () => { 2667 } 2668 } 2669 } 2670 } 2671 }, 2672 language: { 2673 default: "pt", 2674 translations: { 2675 pt: { 2676 consentModal: { 2677 title: "Usamos cookies", 2678 description: "Os cookies neste site são utilizados para melhorar a navegação e desempenho. Por defeito, só os cookies estritamente necessários se encontram ativos. Poderá aceitar ou rejeitar todos os cookies nos botões apresentados ou gerir ou desativar alguns destes cookies, clicando em âConfigurar Cookiesâ. Para mais informação visite a nossa PolÃtica de Cookies.", 2679 acceptAllBtn: "Aceitar todos", 2680 acceptNecessaryBtn: "Rejeitar todos", 2681 showPreferencesBtn: "Configurar Cookies", 2682 // closeIconLabel: 'Reject all and close modal', 2683 footer: `
2684 <a href="/info/politica-de-cookies" target="_blank">PolÃtica de Cookies</a> 2685 <a href="/info/politica-de-privacidade" target="_blank">PolÃtica de Privacidade</a> 2686 ` 2687 }, 2688 preferencesModal: { 2689 title: "Preferências de cookies", 2690 acceptAllBtn: "Aceitar todos", 2691 acceptNecessaryBtn: "Rejeitar todos", 2692 savePreferencesBtn: "Aceitar a seleção atual", 2693 closeIconLabel: "Fechar", 2694 serviceCounterLabel: "Serviço|Serviços", 2695 sections: [ 2696 { 2697 title: "", 2698 description: "Neste painel poderá manifestar algumas preferências relacionadas com o tratamento dos seus dados pessoais. Pode rever e alterar as escolhas expressas a qualquer momento, reaparecendo este painel através do link fornecido. Para negar o seu consentimento para as atividades de processamento especÃficas descritas abaixo, desative os botões ou utilize o botão âRejeitar tudoâ e confirme que pretende guardar as suas escolhas." 2699 }, 2700 { 2701 title: "Estritamente Necessários", 2702 description: "Estes cookies são essenciais para o bom funcionamento do site e não podem ser desativados.", 2703 linkedCategory: "necessary" 2704 }, 2705 { 2706 title: "Performance & Analytics", 2707 description: "Estes cookies recolhem informações sobre como utiliza o nosso site. Todos os dados são anonimizados e não podem ser utilizados para o identificar.", 2708 linkedCategory: "analytics", 2709 cookieTable: { 2710 caption: "Cookies Usados", 2711 headers: { 2712 name: "Cookie", 2713 domain: "DomÃnio", 2714 desc: "Descrição" 2715 }, 2716 body: [ 2717 { 2718 name: "_ga", 2719 domain: window.location.hostname, 2720 desc: "à o principal cookie utilizado pelo Google Analytics, permite ao serviço distinguir um visitante de outro e tem uma duração de 2 anos." 2721 }, 2722 { 2723 name: "_gid", 2724 domain: window.location.hostname, 2725 desc: "Regista um ID único que é utilizado para gerar dados estatÃsticos sobre a forma como o visitante utiliza o website. Este cookie expira após 1 dia." 2726 }, 2727 { 2728 name: "_fbp", 2729 domain: window.location.hostname, 2730 desc: "Este cookie é definido pelo Facebook para exibir anúncios quando está no Facebook ou numa plataforma digital alimentada por publicidade do Facebook, após visitar o website." 2731 } 2732 ] 2733 } 2734 }, 2735 { 2736 title: "Targeting and Advertising", 2737 description: "Estes cookies são utilizados para tornar as mensagens publicitárias mais relevantes para si e para os seus interesses.", 2738 linkedCategory: "ads", 2739 cookieTable: { 2740 caption: "Cookies Usados", 2741 headers: { 2742 name: "Cookie", 2743 domain: "DomÃnio", 2744 desc: "Descrição" 2745 }, 2746 body: [ 2747 { 2748 name: "_fbp", 2749 domain: window.location.hostname, 2750 desc: "Este cookie é definido pelo Facebook para exibir anúncios quando está no Facebook ou numa plataforma digital alimentada por publicidade do Facebook, após visitar o website." 2751 } 2752 ] 2753 } 2754 }, 2755 { 2756 title: "Mais informações", 2757 description: "Para qualquer dúv
2757ida em relação à nossa polÃtica de cookies e as suas escolhas, por favor contacte-nos." 2758 } 2759 ] 2760 } 2761 } 2762 } 2763 } 2764 }); 2765 this.eventsService = injector.get(_services_services_service__WEBPACK_IMPORTED_MODULE_1__.EventsService); 2766 this.storageService = injector.get(_services_services_service__WEBPACK_IMPORTED_MODULE_1__.StorageService); 2767 this.modalsService = injector.get(_services_services_service__WEBPACK_IMPORTED_MODULE_1__.ModalsService); 2768 this.toastService = injector.get(_services_services_service__WEBPACK_IMPORTED_MODULE_1__.ToastService); 2769 this.router = injector.get(_angular_router__WEBPACK_IMPORTED_MODULE_4__.Router); 2770 this.gtmService = injector.get(_services_gtm_service__WEBPACK_IMPORTED_MODULE_3__.GtmService); 2771 this.router.events.subscribe(event => { 2772 if (event instanceof _angular_router__WEBPACK_IMPORTED_MODULE_4__.NavigationEnd) { 2773 // @ts-ignore 2774 fbq('track', 'PageView'); // Dispara um evento de PageView sempre que mudar de página 2775 // @ts-ignore 2776 gtag('config', 'G-M08GYVZ13W', { 'page_path': event.urlAfterRedirects }); 2777 this.gtmService.pushEvent('page_view', { page: event.urlAfterRedirects }); 2778 } 2779 }); 2780 } 2781 navigateHome() { 2782 window.location.href = '/'; 2783 } 2784 getPath(type, item) { 2785 return [ 2786 type, 2787 item.id, 2788 item.name 2789 .replace(/ /g, '-') 2790 .normalize('NFD') 2791 .replace(/[\u0300-\u036f]/g, '') 2792 .toLowerCase() 2793 ]; 2794 } 2795 getPathAsString(type, item) { 2796 return (type + 2797 '/' + 2798 item.id + 2799 '/' + 2800 item.name 2801 .replace(/ /g, '-') 2802 .normalize('NFD') 2803 .replace(/[\u0300-\u036f]/g, '') 2804 .replace('&', 'e') 2805 .toLowerCase()); 2806 } 2807 getPathAsString2(type, item, type2, item2) { 2808 return (type + 2809 '/' + 2810 item.id + 2811 '/' + 2812 type2 + 2813 '/' + 2814 item2.id + 2815 '/' + 2816 item2.name 2817 .replace(/ /g, '-') 2818 .normalize('NFD') 2819 .replace(/[\u0300-\u036f]/g, '') 2820 .replace('&', 'e') 2821 .toLowerCase()); 2822 } 2823 getPathTitleAsString(type, item) { 2824 return (type + 2825 '/' + 2826 item.id + 2827 '/' + 2828 item.title 2829 .replace(/ /g, '-') 2830 .normalize('NFD') 2831 .replace(/[\u0300-\u036f]/g, '') 2832 .replace('&', 'e') 2833 .toLowerCase()); 2834 } 2835} 2836BasicComponent.ɵfac = function BasicComponent_Factory(t) { return new (t || BasicComponent)(); }; 2837BasicComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineComponent"]({ type: BasicComponent, selectors: [["app-basic"]], decls: 2, vars: 0, template: function BasicComponent_Template(rf, ctx) { if (rf & 1) { 2838 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "p"); 2839 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, "base works!"); 2840 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 2841 } }, encapsulation: 2 }); 2842 2843 2844/***/ }), 2845 2846/***/ 1775: 2847/*!**************************************************!*\ 2848 !*** ./src/app/pages/brands/brands.component.ts ***! 2849 \**************************************************/ 2850/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 2851 2852__webpack_require__.r(__webpack_exports__); 2853/* harmony export */ __webpack_require__.d(__webpack_exports__, { 2854/* harmony export */ "BrandsComponent": () => (/* binding */ BrandsComponent) 2855/* harmony export */ }); 2856/* harmony import */ var _home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 1670); 2857/* harmony import */ var _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @pages/basic/basic.component */ 9689); 2858/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/forms */ 2508); 2859/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 2560); 2860/* harmony import */ var _services_brand_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @services/brand.service */ 7744); 2861/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common */ 4666); 2862 2863 2864 2865 2866 2867 2868 2869 2870function BrandsComponent_div_3_Template(rf, ctx) { 2871 if (rf & 1) { 2872 const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetCurrentView"](); 2873 2874 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 11); 2875 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function BrandsComponent_div_3_Template_div_click_0_listener() { 2876 const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r5); 2877 const a_r3 = restoredCtx.$implicit; 2878 const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](); 2879 return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetVie
2879w"](ctx_r4.filterLetter(a_r3)); 2880 }); 2881 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1); 2882 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); 2883 } 2884 2885 if (rf & 2) { 2886 const a_r3 = ctx.$implicit; 2887 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1); 2888 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](a_r3); 2889 } 2890} 2891 2892function BrandsComponent_div_10_div_1_div_4_Template(rf, ctx) { 2893 if (rf & 1) { 2894 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 5)(1, "a", 17)(2, "p"); 2895 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](3); 2896 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()(); 2897 } 2898 2899 if (rf & 2) { 2900 const brand_r9 = ctx.$implicit; 2901 const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](3); 2902 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1); 2903 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("href", ctx_r8.getPathAsString("/marca", brand_r9), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵsanitizeUrl"]); 2904 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2); 2905 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](brand_r9.name); 2906 } 2907} 2908 2909function BrandsComponent_div_10_div_1_Template(rf, ctx) { 2910 if (rf & 1) { 2911 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 14)(1, "div", 15)(2, "h2"); 2912 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](3); 2913 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()(); 2914 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](4, BrandsComponent_div_10_div_1_div_4_Template, 4, 2, "div", 16); 2915 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); 2916 } 2917 2918 if (rf & 2) { 2919 const b_r7 = ctx.$implicit; 2920 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3); 2921 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](b_r7.key); 2922 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1); 2923 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngForOf", b_r7.brands); 2924 } 2925} 2926 2927function BrandsComponent_div_10_Template(rf, ctx) { 2928 if (rf & 1) { 2929 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 12); 2930 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](1, BrandsComponent_div_10_div_1_Template, 5, 2, "div", 13); 2931 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); 2932 } 2933 2934 if (rf & 2) { 2935 const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](); 2936 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1); 2937 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngForOf", ctx_r1.brands); 2938 } 2939} 2940 2941function BrandsComponent_div_11_Template(rf, ctx) { 2942 if (rf & 1) { 2943 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 12)(1, "p", 18); 2944 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnamespaceSVG"](); 2945 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](2, "svg", 19)(3, "path", 20); 2946 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](4, "animateTransform", 21); 2947 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()(); 2948 } 2949} 2950 2951class BrandsComponent extends _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_1__.BasicComponent { 2952 constructor(brandService, formBuilder) { 2953 super(); 2954 this.brandService = brandService; 2955 this.formBuilder = formBuilder; 2956 this.alphabet = Array.from({ 2957 length: 26 2958 }, (_, i) => String.fromCharCode(97 + i)); 2959 this.brands = []; 2960 this.all = []; 2961 this.loading = true; 2962 this.searchForm = this.formBuilder.group({ 2963 search: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_4__.Validators.required]] 2964 }); 2965 } 2966 2967 ngOnInit() { 2968 this.loadBrands(); 2969 } 2970 2971 loadBrands() { 2972 var _this = this; 2973 2974 this.brandService.all().subscribe( /*#__PURE__*/function () { 2975 var _ref = (0,_home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (resp) { 2976 if (resp.status == 'OK') { 2977 resp.data.forEach(b => { 2978 let index = _this.brands.findIndex(item => item.key == b.name.charAt(0)); 2979 2980 if (index == -1) { 2981 _this.brands.push({ 2982 key: b.name.charAt(0), 2983 brands: [b] 2984 }); 2985 } else { 2986 _this.brands[index].brands.push(b); 2987 } 2988 }); 2989 _this.all = yield [..._this.brands]; 2990 _this.loading = yield false; 2991 } 2992 }); 2993 2994 return function (_x) { 2995 return _ref.apply(this, arguments); 2996 }; 2997 }()); 2998 } 2999 3000 filterLetter(letter) { 3001 this.brands = this.all.filter(item => item.key == letter.toUpperCase()); 3002 } 3003 3004 search(event) { 3005 this.brands = this.all; 3006 3007 if (event.target.value.length > 2) { 3008 console.log(event.target.value); 3009 this.brands = this.all.filter(item => { 3010 return item.brands.some(brand => brand.name.toLowerCase().includes(event.target.value.toLowerCase())); 3011 }); 3012 } 3013 } 3014 3015} 3016 3017BrandsComponent.ɵfac = function BrandsComponent_Factory(t) { 3018 return new (t || BrandsComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_services_brand_service__WEBPACK_IMPORTED_MODULE_2__.BrandService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_4__.FormBuilder)); 3019}; 3020 3021BrandsComponent.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({ 3022 type: BrandsComponent, 3023 selectors: [["app-brands"]], 3024 features: [_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵInheritDefinitionFeature"]], 3025 decls: 12, 3026 vars: 4, 3027 consts: [[1, "line"], [1, "brands-container"], [1, "alphabet-container"], ["role", "button", 3, "click", 4, "ngFor", "ngForOf"], [1, "row", "brands-list"], [1, "col-12", "col-lg-3"], [1, "form", 3, "formGroup"], [1, "input-icon"], [1, "fas", "fa-search"], ["id", "search", "type", "text", "placeholder", "Pesquisar Marcas", 1, "input", "px-2", "text-center", 3, "input"], ["class", "col
3027-12 col-lg-9", 4, "ngIf"], ["role", "button", 3, "click"], [1, "col-12", "col-lg-9"], ["class", "row", 4, "ngFor", "ngForOf"], [1, "row"], [1, "col-12"], ["class", "col-12 col-lg-3", 4, "ngFor", "ngForOf"], [3, "href"], [1, "text-center"], ["width", "50", "height", "50", "viewBox", "0 0 24 24", "xmlns", "http://www.w3.org/2000/svg"], ["d", "M2,12A11.2,11.2,0,0,1,13,1.05C12.67,1,12.34,1,12,1a11,11,0,0,0,0,22c.34,0,.67,0,1-.05C6,23,2,17.74,2,12Z"], ["attributeName", "transform", "type", "rotate", "dur", "0.6s", "values", "0 12 12;360 12 12", "repeatCount", "indefinite"]], 3028 template: function BrandsComponent_Template(rf, ctx) { 3029 if (rf & 1) { 3030 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](0, "hr", 0); 3031 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](1, "div", 1)(2, "div", 2); 3032 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](3, BrandsComponent_div_3_Template, 2, 1, "div", 3); 3033 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); 3034 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](4, "div", 4)(5, "div", 5)(6, "form", 6)(7, "div", 7); 3035 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](8, "i", 8); 3036 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](9, "input", 9); 3037 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("input", function BrandsComponent_Template_input_input_9_listener($event) { 3038 return ctx.search($event); 3039 }); 3040 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()(); 3041 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](10, BrandsComponent_div_10_Template, 2, 1, "div", 10); 3042 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](11, BrandsComponent_div_11_Template, 5, 0, "div", 10); 3043 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()(); 3044 } 3045 3046 if (rf & 2) { 3047 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3); 3048 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngForOf", ctx.alphabet); 3049 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3); 3050 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("formGroup", ctx.searchForm); 3051 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4); 3052 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", !ctx.loading); 3053 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1); 3054 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.loading); 3055 } 3056 }, 3057 dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_5__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_5__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_4__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_4__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.FormGroupDirective], 3058 styles: [".line[_ngcontent-%COMP%] {\n border-top: 7px solid var(--dark);\n background-color: transparent;\n width: 100%;\n opacity: 1;\n}\n\n.brands-container[_ngcontent-%COMP%] {\n min-height: 50vh;\n margin-bottom: 107px;\n}\n\n.brands-container[_ngcontent-%COMP%] .input-icon[_ngcontent-%COMP%] {\n position: relative;\n display: block;\n}\n\n.brands-container[_ngcontent-%COMP%] .input-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n position: absolute;\n left: 20px;\n top: calc(50% - 10px);\n transform: translateY(-50%);\n color: #949494;\n z-index: 10;\n}\n\n.brands-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%] {\n width: 100%;\n padding-left: 30px;\n position: relative;\n border: 1px solid var(--primary);\n color: var(--dark);\n font-size: 16px;\n color: #949494;\n margin-bottom: 20px;\n border: 1px solid #8c8c8c;\n}\n\n.brands-container[_ngcontent-%COMP%] .alphabet-container[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 20px;\n text-transform: uppercase;\n font-size: 16px;\n text-align: center;\n font-weight: bold;\n}\n\n.brands-container[_ngcontent-%COMP%] .brands-list[_ngcontent-%COMP%] {\n margin-top: 51px;\n}\n\n.brands-container[_ngcontent-%COMP%] .brands-list[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] {\n font-size: 20px;\n font-weight: bold;\n margin-top: 29px;\n margin-bottom: 20px;\n}\n\n.brands-container[_ngcontent-%COMP%] .brands-list[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]:first-child {\n margin-top: 0;\n}\n\n.brands-container[_ngcontent-%COMP%] .brands-list[_ngcontent-%COMP%] a[_ngcontent-%COMP%] {\n text-decoration: none;\n}\n\n.brands-container[_ngcontent-%COMP%] .brands-list[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n font-size: 16px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImJyYW5kcy5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNDLGlDQUFBO0VBQ0EsNkJBQUE7RUFDQSxXQUFBO0VBQ0EsVUFBQTtBQUNEOztBQUVBO0VBQ0MsZ0JBQUE7RUFDQSxvQkFBQTtBQUNEOztBQUNDO0VBQ0Msa0JBQUE7RUFDQSxjQUFBO0FBQ0Y7O0FBRUM7RUFDQyxrQkFBQTtFQUNBLFVBQUE7RUFDQSxxQkFBQTtFQUNBLDJCQUFBO0VBQ0EsY0FBQTtFQUNBLFdBQUE7QUFBRjs7QUFHQztFQUNDLFdBQUE7RUFDQSxrQkFBQTtFQUNBLGtCQUFBO0VBQ0EsZ0NBQUE7RUFDQSxrQkFBQTtFQUNBLGVBQUE7RUFDQSxjQUFBO0VBQ0EsbUJBQUE7
3058RUFDQSx5QkFBQTtBQURGOztBQUlDO0VBQ0MsYUFBQTtFQUNBLDhCQUFBO0VBQ0EsbUJBQUE7RUFDQSxtQkFBQTtFQUNBLHlCQUFBO0VBQ0EsZUFBQTtFQUNBLGtCQUFBO0VBQ0EsaUJBQUE7QUFGRjs7QUFLQztFQUNDLGdCQUFBO0FBSEY7O0FBS0U7RUFDQyxlQUFBO0VBQ0EsaUJBQUE7RUFDQSxnQkFBQTtFQUNBLG1CQUFBO0FBSEg7O0FBS0c7RUFDQyxhQUFBO0FBSEo7O0FBT0U7RUFDQyxxQkFBQTtBQUxIOztBQVFFO0VBQ0MsZUFBQTtBQU5IIiwiZmlsZSI6ImJyYW5kcy5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5saW5lIHtcblx0Ym9yZGVyLXRvcDogN3B4IHNvbGlkIHZhcigtLWRhcmspO1xuXHRiYWNrZ3JvdW5kLWNvbG9yOiB0cmFuc3BhcmVudDtcblx0d2lkdGg6IDEwMCU7XG5cdG9wYWNpdHk6IDE7XG59XG5cbi5icmFuZHMtY29udGFpbmVyIHtcblx0bWluLWhlaWdodDogNTB2aDtcblx0bWFyZ2luLWJvdHRvbTogMTA3cHg7XG5cblx0LmlucHV0LWljb24ge1xuXHRcdHBvc2l0aW9uOiByZWxhdGl2ZTtcblx0XHRkaXNwbGF5OiBibG9jaztcblx0fVxuXG5cdC5pbnB1dC1pY29uIGkge1xuXHRcdHBvc2l0aW9uOiBhYnNvbHV0ZTtcblx0XHRsZWZ0OiAyMHB4O1xuXHRcdHRvcDogY2FsYyg1MCUgLSAxMHB4KTtcblx0XHR0cmFuc2Zvcm06IHRyYW5zbGF0ZVkoLTUwJSk7XG5cdFx0Y29sb3I6ICM5NDk0OTQ7XG5cdFx0ei1pbmRleDogMTA7XG5cdH1cblxuXHRpbnB1dCB7XG5cdFx0d2lkdGg6IDEwMCU7XG5cdFx0cGFkZGluZy1sZWZ0OiAzMHB4O1xuXHRcdHBvc2l0aW9uOiByZWxhdGl2ZTtcblx0XHRib3JkZXI6IDFweCBzb2xpZCB2YXIoLS1wcmltYXJ5KTtcblx0XHRjb2xvcjogdmFyKC0tZGFyayk7XG5cdFx0Zm9udC1zaXplOiAxNnB4O1xuXHRcdGNvbG9yOiAjOTQ5NDk0O1xuXHRcdG1hcmdpbi1ib3R0b206IDIwcHg7XG5cdFx0Ym9yZGVyOiAxcHggc29saWQgIzhjOGM4Yztcblx0fVxuXG5cdC5hbHBoYWJldC1jb250YWluZXIge1xuXHRcdGRpc3BsYXk6IGZsZXg7XG5cdFx0anVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xuXHRcdGFsaWduLWl0ZW1zOiBjZW50ZXI7XG5cdFx0bWFyZ2luLWJvdHRvbTogMjBweDtcblx0XHR0ZXh0LXRyYW5zZm9ybTogdXBwZXJjYXNlO1xuXHRcdGZvbnQtc2l6ZTogMTZweDtcblx0XHR0ZXh0LWFsaWduOiBjZW50ZXI7XG5cdFx0Zm9udC13ZWlnaHQ6IGJvbGQ7XG5cdH1cblxuXHQuYnJhbmRzLWxpc3Qge1xuXHRcdG1hcmdpbi10b3A6IDUxcHg7XG5cblx0XHRoMiB7XG5cdFx0XHRmb250LXNpemU6IDIwcHg7XG5cdFx0XHRmb250LXdlaWdodDogYm9sZDtcblx0XHRcdG1hcmdpbi10b3A6IDI5cHg7XG5cdFx0XHRtYXJnaW4tYm90dG9tOiAyMHB4O1xuXG5cdFx0XHQmOmZpcnN0LWNoaWxkIHtcblx0XHRcdFx0bWFyZ2luLXRvcDogMDtcblx0XHRcdH1cblx0XHR9XG5cblx0XHRhIHtcblx0XHRcdHRleHQtZGVjb3JhdGlvbjogbm9uZTtcblx0XHR9XG5cblx0XHRwIHtcblx0XHRcdGZvbnQtc2l6ZTogMTZweDtcblx0XHR9XG5cdH1cbn1cbiJdfQ== */"] 3059}); 3060 3061/***/ }), 3062 3063/***/ 6236: 3064/*!**********************************************!*\ 3065 !*** ./src/app/pages/cart/cart.component.ts ***! 3066 \**********************************************/ 3067/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 3068 3069__webpack_require__.r(__webpack_exports__); 3070/* harmony export */ __webpack_require__.d(__webpack_exports__, { 3071/* harmony export */ "CartComponent": () => (/* binding */ CartComponent) 3072/* harmony export */ }); 3073/* harmony import */ var _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pages/basic/basic.component */ 9689); 3074/* harmony import */ var _models_models_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @models/models.model */ 2541); 3075/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/forms */ 2508); 3076/* harmony import */ var _env_environment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @env/environment */ 2340); 3077/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/core */ 2560); 3078/* harmony import */ var _services_services_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @services/services.service */ 6325); 3079/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/common */ 4666); 3080/* harmony import */ var _pipes_format_money_pipe__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../pipes/format-money.pipe */ 531); 3081/* harmony import */ var _pipes_format_name_pipe__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @pipes/format-name.pipe */ 4980); 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093function CartComponent_p_2_Template(rf, ctx) { if (rf & 1) { 3094 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "p", 7)(1, "small", 8); 3095 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](2, "(Para fazer checkout deve primeiro fazer login!)"); 3096 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()(); 3097} } 3098function CartComponent_p_4_Template(rf, ctx) { if (rf & 1) { 3099 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "p", 9); 3100 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnamespaceSVG"](); 3101 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](1, "svg", 10)(2, "g", 11); 3102 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](3, "path", 12); 3103 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()(); 3104 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnamespaceHTML"](); 3105 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](4, "br"); 3106 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](5, "small", 13); 3107 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](6, "O carrinho est\u
310700E1 vazio!"); 3108 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()(); 3109} } 3110function CartComponent_div_5_p_8_Template(rf, ctx) { if (rf & 1) { 3111 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "p", 18); 3112 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](1); 3113 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipe"](2, "formatMoney"); 3114 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3115} if (rf & 2) { 3116 const product_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]().$implicit; 3117 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1); 3118 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipeBind1"](2, 1, product_r5.price)); 3119} } 3120function CartComponent_div_5_p_9_span_7_Template(rf, ctx) { if (rf & 1) { 3121 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "span", 27)(1, "span", 28); 3122 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](2); 3123 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3124 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](3, "span", 29); 3125 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](4, "Promo\u00E7\u00E3o"); 3126 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()(); 3127} if (rf & 2) { 3128 const product_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](2).$implicit; 3129 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2); 3130 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"](" -", product_r5.discount, "% "); 3131} } 3132function CartComponent_div_5_p_9_Template(rf, ctx) { if (rf & 1) { 3133 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "p", 18)(1, "span", 25); 3134 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](2); 3135 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipe"](3, "formatMoney"); 3136 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3137 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](4, "strong"); 3138 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](5); 3139 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipe"](6, "formatMoney"); 3140 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3141 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](7, CartComponent_div_5_p_9_span_7_Template, 5, 1, "span", 26); 3142 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3143} if (rf & 2) { 3144 const product_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]().$implicit; 3145 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2); 3146 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipeBind1"](3, 3, product_r5.original_price)); 3147 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](3); 3148 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipeBind1"](6, 5, product_r5.price), ""); 3149 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2); 3150 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", product_r5.discount); 3151} } 3152function CartComponent_div_5_Template(rf, ctx) { if (rf & 1) { 3153 const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"](); 3154 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 14)(1, "div", 15); 3155 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](2, "img", 16); 3156 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3157 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](3, "div", 17)(4, "p", 18); 3158 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](5); 3159 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipe"](6, "formatName"); 3160 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()(); 3161 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](7, "div", 19); 3162 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](8, CartComponent_div_5_p_8_Template, 3, 3, "p", 20); 3163 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](9, CartComponent_div_5_p_9_Template, 8, 7, "p", 20); 3164 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3165 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](10, "div", 21)(11, "input", 22); 3166 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("change", function CartComponent_div_5_Template_input_change_11_listener($event) { const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r13); const product_r5 = restoredCtx.$implicit; const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetVie
3166w"](ctx_r12.changeQuant($event, product_r5)); }); 3167 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()(); 3168 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](12, "div", 23); 3169 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function CartComponent_div_5_Template_div_click_12_listener() { const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r13); const product_r5 = restoredCtx.$implicit; const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r14.removeProduct(product_r5)); }); 3170 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](13, "p", 18); 3171 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](14, "i", 24); 3172 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()(); 3173} if (rf & 2) { 3174 const product_r5 = ctx.$implicit; 3175 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2); 3176 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("src", product_r5.image, _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵsanitizeUrl"]); 3177 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](3); 3178 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipeBind1"](6, 5, product_r5.name), " "); 3179 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](3); 3180 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", !product_r5.discount); 3181 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1); 3182 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", product_r5.discount); 3183 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2); 3184 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("value", product_r5.quantity); 3185} } 3186function CartComponent_div_6_Template(rf, ctx) { if (rf & 1) { 3187 const _r16 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"](); 3188 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 30); 3189 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](1, "div", 31); 3190 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](2, "div", 32)(3, "div", 33)(4, "div", 34)(5, "h3"); 3191 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](6, "Resumo"); 3192 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()(); 3193 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](7, "div", 35)(8, "div", 36)(9, "div", 37)(10, "p")(11, "b"); 3194 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](12, "Subtotal:"); 3195 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()(); 3196 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](13, "p")(14, "b"); 3197 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](15, "Saldo Descontado:"); 3198 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()(); 3199 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](16, "p")(17, "b"); 3200 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](18, "Desconto Cup\u00E3o:"); 3201 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()(); 3202 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](19, "p")(20, "b"); 3203 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](21, "Taxa de envio:"); 3204 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()(); 3205 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](22, "h4")(23, "b"); 3206 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](24, "Total:"); 3207 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()(); 3208 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](25, "div", 38)(26, "p")(27, "b"); 3209 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](28); 3210 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipe"](29, "formatMoney"); 3211 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()(); 3212 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](30, "p")(31, "b"); 3213 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](32); 3214 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipe"](33, "formatMoney"); 3215 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()(); 3216 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](34, "p")(35, "b"); 3217 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](36); 3218 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipe"](37, "formatMoney"); 3219 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()(); 3220 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](38, "p")(39, "b"); 3221 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](40); 3222 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipe"](41, "formatMoney"); 3223 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()(); 3224 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](42, "h4")(43, "b"); 3225 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](44); 3226 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipe"](45, "formatMoney"); 3227 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()()()(); 3228 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](46, "div", 39)(47, "div", 36); 3229 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](48, "div", 40); 3230 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](49, "div", 41)(50, "button", 42); 3231 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function CartComponent_div_6_Template_button_click_50_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r16); const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetVie
3231w"](ctx_r15.resetCart()); }); 3232 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](51, "Limpar"); 3233 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3234 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](52, "a", 43); 3235 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](53, "Finalizar"); 3236 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()()()()()(); 3237} if (rf & 2) { 3238 const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](); 3239 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](28); 3240 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipeBind1"](29, 5, ctx_r3.cart.total)); 3241 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](4); 3242 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipeBind1"](33, 7, ctx_r3.checkoutForm.value.discount)); 3243 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](4); 3244 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipeBind1"](37, 9, ctx_r3.checkoutForm.value.discount_coupon)); 3245 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](4); 3246 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"]("", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipeBind1"](41, 11, ctx_r3.checkoutForm.value.delivery), " "); 3247 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](4); 3248 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"]("", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipeBind1"](45, 13, ctx_r3.total), " "); 3249} } 3250function CartComponent_div_7_div_36_option_4_Template(rf, ctx) { if (rf & 1) { 3251 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "option", 73); 3252 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](1); 3253 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3254} if (rf & 2) { 3255 const store_r33 = ctx.$implicit; 3256 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("value", store_r33.id); 3257 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1); 3258 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate"](store_r33.name); 3259} } 3260function CartComponent_div_7_div_36_Template(rf, ctx) { if (rf & 1) { 3261 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div")(1, "p", 49); 3262 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](2, "Loja"); 3263 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3264 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](3, "select", 71); 3265 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](4, CartComponent_div_7_div_36_option_4_Template, 2, 2, "option", 72); 3266 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()(); 3267} if (rf & 2) { 3268 const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](2); 3269 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](4); 3270 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngForOf", ctx_r17.stores); 3271} } 3272function CartComponent_div_7_div_37_div_1_option_4_Template(rf, ctx) { if (rf & 1) { 3273 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "option", 73); 3274 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](1); 3275 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3276} if (rf & 2) { 3277 const address_r37 = ctx.$implicit; 3278 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("value", address_r37.id); 3279 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1); 3280 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate4"]("", address_r37.address, ", ", address_r37.postcode, ", ", address_r37.city, " ", address_r37.country, ""); 3281} } 3282function CartComponent_div_7_div_37_div_1_Template(rf, ctx) { if (rf & 1) { 3283 const _r39 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"](); 3284 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div")(1, "p", 49); 3285 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](2, "Selecione uma Morada"); 3286 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3287 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](3, "select", 74); 3288 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function CartComponent_div_7_div_37_div_1_Template_select_click_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r39); const ctx_r38 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](3); return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetVie
3288w"](ctx_r38.changeDeliveryAddress($event)); }); 3289 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](4, CartComponent_div_7_div_37_div_1_option_4_Template, 2, 5, "option", 72); 3290 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3291 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](5, "button", 75); 3292 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function CartComponent_div_7_div_37_div_1_Template_button_click_5_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r39); const ctx_r40 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](3); return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r40.changeNewAddress(true)); }); 3293 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](6, "Nova Morada"); 3294 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()(); 3295} if (rf & 2) { 3296 const ctx_r34 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](3); 3297 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](4); 3298 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngForOf", ctx_r34.addresses_delivery); 3299} } 3300function CartComponent_div_7_div_37_div_2_Template(rf, ctx) { if (rf & 1) { 3301 const _r42 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"](); 3302 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div")(1, "div", 48)(2, "p", 49); 3303 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](3, "Morada"); 3304 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3305 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](4, "input", 76); 3306 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3307 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](5, "div", 48)(6, "p", 49); 3308 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](7, "C\u00F3digo Postal"); 3309 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3310 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](8, "input", 77); 3311 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3312 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](9, "div", 48)(10, "p", 49); 3313 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](11, "Cidade"); 3314 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3315 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](12, "input", 78); 3316 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3317 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](13, "div", 48)(14, "p", 49); 3318 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](15, "Pa\u00EDs"); 3319 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3320 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](16, "input", 79); 3321 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3322 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](17, "button", 80); 3323 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function CartComponent_div_7_div_37_div_2_Template_button_click_17_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r42); const ctx_r41 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](3); return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r41.changeNewAddress(false)); }); 3324 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](18, "Cancelar"); 3325 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()(); 3326} } 3327function CartComponent_div_7_div_37_Template(rf, ctx) { if (rf & 1) { 3328 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div"); 3329 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](1, CartComponent_div_7_div_37_div_1_Template, 7, 1, "div", 59); 3330 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](2, CartComponent_div_7_div_37_div_2_Template, 19, 0, "div", 59); 3331 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3332} if (rf & 2) { 3333 const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](2); 3334 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1); 3335 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", !ctx_r18.newAddressDelivery); 3336 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1); 3337 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r18.newAddressDelivery); 3338} } 3339function CartComponent_div_7_div_39_Template(rf, ctx) { if (rf & 1) { 3340 const _r44 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"](); 3341 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 55)(1, "input", 81); 3342 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("change", function CartComponent_div_7_div_39_Template_input_change_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r44); const ctx_r43 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](2); return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetVie
3342w"](ctx_r43.selectSameAddress($event)); }); 3343 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3344 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](2, "label", 57); 3345 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](3, "Usar morada acima para Fatura\u00E7\u00E3o"); 3346 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()(); 3347} } 3348function CartComponent_div_7_div_40_Template(rf, ctx) { if (rf & 1) { 3349 const _r46 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"](); 3350 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 55)(1, "input", 82); 3351 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("change", function CartComponent_div_7_div_40_Template_input_change_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r46); const ctx_r45 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](2); return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r45.selectFiscalAddress($event)); }); 3352 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3353 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](2, "label", 57); 3354 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](3, "Adicionar morada de Fatura\u00E7\u00E3o"); 3355 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()(); 3356} } 3357function CartComponent_div_7_div_41_div_1_option_4_Template(rf, ctx) { if (rf & 1) { 3358 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "option", 73); 3359 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](1); 3360 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3361} if (rf & 2) { 3362 const address_r50 = ctx.$implicit; 3363 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("value", address_r50.id); 3364 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1); 3365 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate4"]("", address_r50.address, ", ", address_r50.postcode, ", ", address_r50.city, " ", address_r50.country, ""); 3366} } 3367function CartComponent_div_7_div_41_div_1_Template(rf, ctx) { if (rf & 1) { 3368 const _r52 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"](); 3369 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div")(1, "p", 49); 3370 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](2, "Selecione uma Morada"); 3371 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3372 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](3, "select", 74); 3373 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function CartComponent_div_7_div_41_div_1_Template_select_click_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r52); const ctx_r51 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](3); return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r51.changeFiscalAddress($event)); }); 3374 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](4, CartComponent_div_7_div_41_div_1_option_4_Template, 2, 5, "option", 72); 3375 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3376 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](5, "button", 80); 3377 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function CartComponent_div_7_div_41_div_1_Template_button_click_5_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r52); const ctx_r53 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](3); return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r53.changeNewFiscalAddress(true)); }); 3378 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](6, "Nova Morada"); 3379 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()(); 3380} if (rf & 2) { 3381 const ctx_r47 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](3); 3382 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](4); 3383 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngForOf", ctx_r47.addresses_fiscal); 3384} } 3385function CartComponent_div_7_div_41_div_2_Template(rf, ctx) { if (rf & 1) { 3386 const _r55 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"](); 3387 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div")(1, "div", 48)(2, "p", 49); 3388 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](3, "Morada"); 3389 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3390 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](4, "input", 83); 3391 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3392 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](5, "div", 48)(6, "p", 49); 3393 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](7, "C\u00F3digo Postal"); 3394 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3395 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](8, "input", 84); 3396 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3397 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](9, "div", 48)(10, "p", 49); 3398 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](11, "Cidade"); 3399 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3400 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](12, "input", 85); 3401 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3402 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](13, "div", 48)(14, "p", 49); 3403 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](15, "Pa\u00EDs"); 3404 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3405 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](16, "input", 86); 3406 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3407 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](17, "button", 80); 3408 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function CartComponent_div_7_div_41_div_2_Template_button_click_17_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r55); const ctx_r54 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](3); return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetVie
3408w"](ctx_r54.changeNewFiscalAddress(false)); }); 3409 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](18, "Cancelar"); 3410 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()(); 3411} } 3412function CartComponent_div_7_div_41_Template(rf, ctx) { if (rf & 1) { 3413 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div"); 3414 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](1, CartComponent_div_7_div_41_div_1_Template, 7, 1, "div", 59); 3415 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](2, CartComponent_div_7_div_41_div_2_Template, 19, 0, "div", 59); 3416 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3417} if (rf & 2) { 3418 const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](2); 3419 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1); 3420 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", !ctx_r21.newAddressFiscal); 3421 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1); 3422 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r21.newAddressFiscal); 3423} } 3424function CartComponent_div_7_div_48_Template(rf, ctx) { if (rf & 1) { 3425 const _r57 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"](); 3426 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 55)(1, "input", 87); 3427 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("change", function CartComponent_div_7_div_48_Template_input_change_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r57); const ctx_r56 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](2); return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r56.changePaymentType(1)); }); 3428 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3429 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](2, "label", 57); 3430 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](3, "MBWAY"); 3431 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()(); 3432} if (rf & 2) { 3433 const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](2); 3434 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1); 3435 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("checked", ctx_r22.checkoutForm.value.payment_type == 1 ? true : false); 3436} } 3437function CartComponent_div_7_div_49_Template(rf, ctx) { if (rf & 1) { 3438 const _r59 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"](); 3439 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 55)(1, "input", 87); 3440 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("change", function CartComponent_div_7_div_49_Template_input_change_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r59); const ctx_r58 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](2); return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r58.changePaymentType(2)); }); 3441 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3442 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](2, "label", 57); 3443 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](3, "Cart\u00E3o de Cr\u00E9dito"); 3444 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()(); 3445} if (rf & 2) { 3446 const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](2); 3447 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1); 3448 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("checked", ctx_r23.checkoutForm.value.payment_type == 2 ? true : false); 3449} } 3450function CartComponent_div_7_div_50_Template(rf, ctx) { if (rf & 1) { 3451 const _r61 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"](); 3452 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 55)(1, "input", 87); 3453 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("change", function CartComponent_div_7_div_50_Template_input_change_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r61); const ctx_r60 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](2); return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetVie
3453w"](ctx_r60.changePaymentType(3)); }); 3454 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3455 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](2, "label", 57); 3456 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](3, "Refer\u00EAncia Multibanco"); 3457 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()(); 3458} if (rf & 2) { 3459 const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](2); 3460 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1); 3461 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("checked", ctx_r24.checkoutForm.value.payment_type == 3 ? true : false); 3462} } 3463function CartComponent_div_7_div_51_Template(rf, ctx) { if (rf & 1) { 3464 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 48)(1, "p", 49); 3465 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](2, "N\u00BA Telem\u00F3vel *"); 3466 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3467 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](3, "input", 88); 3468 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3469} } 3470function CartComponent_div_7_div_52_option_6_Template(rf, ctx) { if (rf & 1) { 3471 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "option", 73); 3472 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](1); 3473 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3474} if (rf & 2) { 3475 const coupon_r63 = ctx.$implicit; 3476 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("value", coupon_r63.id); 3477 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1); 3478 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate2"]("", coupon_r63.amount, "", coupon_r63.amount_type == "%" ? coupon_r63.amount_type : "\u20AC", ""); 3479} } 3480function CartComponent_div_7_div_52_Template(rf, ctx) { if (rf & 1) { 3481 const _r65 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"](); 3482 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 58)(1, "h3"); 3483 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](2, "Cup\u00E3o"); 3484 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3485 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](3, "select", 89); 3486 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("change", function CartComponent_div_7_div_52_Template_select_change_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r65); const ctx_r64 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](2); return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r64.changeCoupon($event)); }); 3487 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](4, "option", 90); 3488 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](5, "Selecione um cup\u00E3o"); 3489 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3490 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](6, CartComponent_div_7_div_52_option_6_Template, 2, 3, "option", 72); 3491 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()(); 3492} if (rf & 2) { 3493 const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](2); 3494 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](6); 3495 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngForOf", ctx_r26.coupons); 3496} } 3497function CartComponent_div_7_div_63_Template(rf, ctx) { if (rf & 1) { 3498 const _r67 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"](); 3499 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 91)(1, "div", 92)(2, "div", 93)(3, "div", 36)(4, "div", 94)(5, "b"); 3500 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](6); 3501 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3502 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](7, "br"); 3503 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](8, "small"); 3504 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](9); 3505 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()(); 3506 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](10, "div", 95)(11, "span", 96); 3507 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function CartComponent_div_7_div_63_Template_span_click_11_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r67); const ctx_r66 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](2); return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetVie
3507w"](ctx_r66.removePromoCode()); }); 3508 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](12, "i", 97); 3509 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()()()()(); 3510} if (rf & 2) { 3511 const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](2); 3512 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](6); 3513 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate"](ctx_r28.promoDiscount.code); 3514 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](3); 3515 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate"](ctx_r28.promoDiscount.description); 3516} } 3517function CartComponent_div_7_div_64_small_8_Template(rf, ctx) { if (rf & 1) { 3518 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "small"); 3519 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](1); 3520 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3521} if (rf & 2) { 3522 const ctx_r68 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](3); 3523 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1); 3524 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"]("Valor min\u00EDmo: ", ctx_r68.promoDiscountError.amount_min, ""); 3525} } 3526function CartComponent_div_7_div_64_small_9_Template(rf, ctx) { if (rf & 1) { 3527 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "small"); 3528 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](1); 3529 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3530} if (rf & 2) { 3531 const ctx_r69 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](3); 3532 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1); 3533 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"]("Valor m\u00E1ximo: ", ctx_r69.promoDiscountError.amount_max, " \u20AC"); 3534} } 3535function CartComponent_div_7_div_64_Template(rf, ctx) { if (rf & 1) { 3536 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 91)(1, "div", 92)(2, "div", 98)(3, "div", 36)(4, "div", 99)(5, "small"); 3537 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](6); 3538 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3539 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](7, "br"); 3540 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](8, CartComponent_div_7_div_64_small_8_Template, 2, 1, "small", 59); 3541 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](9, CartComponent_div_7_div_64_small_9_Template, 2, 1, "small", 59); 3542 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()()()(); 3543} if (rf & 2) { 3544 const ctx_r29 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](2); 3545 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](6); 3546 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"]("", ctx_r29.promoDiscountError.message, "."); 3547 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2); 3548 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r29.promoDiscountError.error == "min_value"); 3549 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1); 3550 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r29.promoDiscountError.error == "max_value"); 3551} } 3552function CartComponent_div_7_div_65_Template(rf, ctx) { if (rf & 1) { 3553 const _r71 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"](); 3554 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 58)(1, "h3"); 3555 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](2, "Cart\u00E3o"); 3556 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3557 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](3, "p")(4, "b"); 3558 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](5, "O seu Saldo:"); 3559 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3560 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](6); 3561 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipe"](7, "formatMoney"); 3562 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3563 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](8, "p", 49); 3564 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](9, "Saldo a Usar"); 3565 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3566 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](10, "input",
3566100); 3567 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("change", function CartComponent_div_7_div_65_Template_input_change_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r71); const ctx_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](2); return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r70.changeDiscount()); }); 3568 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()(); 3569} if (rf & 2) { 3570 const ctx_r30 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](2); 3571 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](6); 3572 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipeBind1"](7, 1, ctx_r30.card.value), ""); 3573} } 3574function CartComponent_div_7_div_66_p_11_Template(rf, ctx) { if (rf & 1) { 3575 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "p")(1, "b"); 3576 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](2, "Saldo Descontado:"); 3577 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()(); 3578} } 3579function CartComponent_div_7_div_66_p_12_Template(rf, ctx) { if (rf & 1) { 3580 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "p")(1, "b"); 3581 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](2, "Desconto Cup\u00E3o:"); 3582 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()(); 3583} } 3584function CartComponent_div_7_div_66_p_13_Template(rf, ctx) { if (rf & 1) { 3585 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "p")(1, "b"); 3586 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](2, "C\u00F3digo Promocional:"); 3587 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()(); 3588} } 3589function CartComponent_div_7_div_66_p_25_Template(rf, ctx) { if (rf & 1) { 3590 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "p")(1, "b"); 3591 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](2); 3592 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipe"](3, "formatMoney"); 3593 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()(); 3594} if (rf & 2) { 3595 const ctx_r75 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](3); 3596 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2); 3597 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"]("- ", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipeBind1"](3, 1, ctx_r75.checkoutForm.value.discount), " "); 3598} } 3599function CartComponent_div_7_div_66_p_26_Template(rf, ctx) { if (rf & 1) { 3600 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "p")(1, "b"); 3601 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](2); 3602 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipe"](3, "formatMoney"); 3603 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()(); 3604} if (rf & 2) { 3605 const ctx_r76 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](3); 3606 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2); 3607 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"]("- ", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipeBind1"](3, 1, ctx_r76.checkoutForm.value.discount_coupon), " "); 3608} } 3609function CartComponent_div_7_div_66_p_27_Template(rf, ctx) { if (rf & 1) { 3610 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "p")(1, "b"); 3611 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](2); 3612 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipe"](3, "formatMoney"); 3613 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()(); 3614} if (rf & 2) { 3615 const ctx_r77 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](3); 3616 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2); 3617 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"]("- ", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipeBind1"](3, 1, ctx_r77.checkoutForm.value.promo_discount_value), " "); 3618} } 3619function CartComponent_div_7_div_66_Template(rf, ctx) { if (rf & 1) { 3620 const _r79 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"](); 3621 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 101)(1, "div", 33)(2, "div", 34)(3, "h3"); 3622 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](4, "Resumo"); 3623 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()(); 3624 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](5, "div", 35)(6, "div", 36)(7, "div", 37)(8, "p")(9, "b"); 3625 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](10, "Subtotal:"); 3626 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()(); 3627 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](11, CartComponent_div_7_div_66_p_11_Template, 3, 0, "p", 59); 3628 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](12, CartComponent_div_7_div_66_p_12_Template, 3, 0, "p", 59); 3629 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](13, CartComponent_div_7_div_66_p_13_Template, 3, 0, "p", 59); 3630 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](14, "p")(15, "b"); 3631 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](16, "Taxa de envio:"); 3632 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()(); 3633 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](17, "h4")(18, "b"); 3634 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](19, "Total:"); 3635 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()(); 3636 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](20, "div", 38)(21, "p")(22, "b"); 3637 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](23); 3638 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipe"](24, "formatMoney"); 3639 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()(); 3640 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](25, CartComponent_div_7_div_66_p_25_Template, 4, 3, "p", 59); 3641 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](26, CartComponent_div_7_div_66_p_26_Template, 4, 3, "p", 59); 3642 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](27, CartComponent_div_7_div_66_p_27_Template, 4, 3, "p", 59); 3643 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](28, "p")(29, "b"); 3644 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](30); 3645 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipe"](31, "formatMoney"); 3646 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()(); 3647 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](32, "h4")(33, "b"); 3648 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](34); 3649 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipe"](35, "formatMoney"); 3650 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()()()(); 3651 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](36, "div", 39)(37, "div", 36); 3652 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](38, "div", 40); 3653 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](39, "div", 41)(40, "button", 42); 3654 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function CartComponent_div_7_div_66_Template_button_click_40_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r79); const ctx_r78 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](2); return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetVie
3654w"](ctx_r78.resetCart()); }); 3655 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](41, "Limpar"); 3656 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3657 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](42, "button", 102); 3658 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](43, "Finalizar"); 3659 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()()()()(); 3660} if (rf & 2) { 3661 const ctx_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](2); 3662 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](11); 3663 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r31.checkoutForm.value.discount > 0); 3664 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1); 3665 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r31.checkoutForm.value.discount_coupon > 0); 3666 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1); 3667 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r31.checkoutForm.value.promo_discount_value > 0); 3668 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](10); 3669 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"]("", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipeBind1"](24, 10, ctx_r31.cart.total), " "); 3670 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2); 3671 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r31.checkoutForm.value.discount > 0); 3672 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1); 3673 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r31.checkoutForm.value.discount_coupon > 0); 3674 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1); 3675 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r31.checkoutForm.value.promo_discount_value > 0); 3676 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](3); 3677 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"]("", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipeBind1"](31, 12, ctx_r31.checkoutForm.value.delivery), " "); 3678 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](4); 3679 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"]("", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipeBind1"](35, 14, ctx_r31.total), " "); 3680 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](8); 3681 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("disabled", ctx_r31.checkoutForm.invali
3681d); 3682} } 3683function CartComponent_div_7_Template(rf, ctx) { if (rf & 1) { 3684 const _r81 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"](); 3685 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 44)(1, "h2", 0); 3686 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](2, "Checkout"); 3687 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3688 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](3, "form", 45); 3689 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("submit", function CartComponent_div_7_Template_form_submit_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r81); const ctx_r80 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r80.create()); }); 3690 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](4, "div", 36)(5, "div", 46)(6, "div", 47)(7, "div", 40)(8, "h3"); 3691 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](9, "Dados Pessoais"); 3692 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3693 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](10, "div", 48)(11, "p", 49); 3694 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](12, "Nome"); 3695 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3696 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](13, "input", 50); 3697 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3698 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](14, "div", 48)(15, "p", 49); 3699 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](16, "Email"); 3700 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3701 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](17, "input", 51); 3702 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3703 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](18, "div", 48)(19, "p", 49); 3704 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](20, "Nif"); 3705 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3706 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](21, "input", 52); 3707 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()(); 3708 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](22, "div", 53)(23, "h3"); 3709 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](24, "Entrega"); 3710 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3711 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](25, "div", 54)(26, "div", 55)(27, "input", 56); 3712 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("change", function CartComponent_div_7_Template_input_change_27_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r81); const ctx_r82 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r82.changeDeliveryType(1)); }); 3713 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3714 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](28, "label", 57); 3715 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](29, "Envio para a morada"); 3716 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()(); 3717 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](30, "div", 55)(31, "input", 56); 3718 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("change", function CartComponent_div_7_Template_input_change_31_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r81); const ctx_r83 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r83.changeDeliveryType(0)); }); 3719 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3720 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](32, "label", 57); 3721 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](33, "Levantamento em loja"); 3722 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()(); 3723 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](34, "h3", 58); 3724 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](35, "Morada"); 3725 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3726 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](36, CartComponent_div_7_div_36_Template, 5, 1, "div", 59); 3727 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](37, CartComponent_div_7_div_37_Template, 3, 2, "div", 59); 3728 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](38, "div", 48); 3729 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](39, CartComponent_div_7_div_39_Template, 4, 0, "div", 60); 3730 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](40, CartComponent_div_7_div_40_Template, 4, 0, "div", 60); 3731 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3732 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](41, CartComponent_div_7_div_41_Template, 3, 2, "div", 59); 3733 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()(); 3734 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](42, "div", 61); 3735 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](43, "div", 32)(44, "div", 62)(45, "h3");
3736 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](46, "Pagamento"); 3737 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3738 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](47, "div", 54); 3739 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](48, CartComponent_div_7_div_48_Template, 4, 1, "div", 60); 3740 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](49, CartComponent_div_7_div_49_Template, 4, 1, "div", 60); 3741 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](50, CartComponent_div_7_div_50_Template, 4, 1, "div", 60); 3742 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3743 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](51, CartComponent_div_7_div_51_Template, 4, 0, "div", 63); 3744 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](52, CartComponent_div_7_div_52_Template, 7, 1, "div", 64); 3745 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](53, "div", 58)(54, "h3"); 3746 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](55, "C\u00F3digo Promocional"); 3747 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3748 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](56, "div", 36)(57, "div", 31); 3749 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](58, "input", 65, 66); 3750 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3751 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](60, "div", 67)(61, "span", 68); 3752 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function CartComponent_div_7_Template_span_click_61_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r81); const _r27 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵreference"](59); const ctx_r84 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r84.checkPromoCode(_r27)); }); 3753 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](62, "Aplicar"); 3754 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()(); 3755 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](63, CartComponent_div_7_div_63_Template, 13, 2, "div", 69); 3756 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](64, CartComponent_div_7_div_64_Template, 10, 3, "div", 69); 3757 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3758 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](65, CartComponent_div_7_div_65_Template, 11, 3, "div", 64); 3759 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 3760 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](66, CartComponent_div_7_div_66_Template, 44, 16, "div", 70); 3761 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()()(); 3762} if (rf & 2) { 3763 const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](); 3764 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](3); 3765 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("formGroup", ctx_r4.checkoutForm); 3766 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](24); 3767 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("checked", ctx_r4.checkoutForm.value.delivery_type == 1 ? true : false); 3768 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](4); 3769 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("checked", ctx_r4.checkoutForm.value.delivery_type == 0 ? true : false); 3770 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](5); 3771 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r4.checkoutForm.value.delivery_type == 0); 3772 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1); 3773 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r4.checkoutForm.value.delivery_type == 1); 3774 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2); 3775 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r4.checkoutForm.value.delivery_type == 1 && ctx_r4.optionFiscalAddress != "other"); 3776 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1); 3777 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r4.optionFiscalAddress != "same"); 3778 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1); 3779 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r4.showFiscalAddress); 3780 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](7); 3781 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r4.merchant.payments.mbway); 3782 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1); 3783 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r4.merchant.payments.cc); 3784 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1); 3785 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r4.merchant.payments.mb); 3786 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1); 3787 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r4.checkoutForm.value.payment_type == 1); 3788 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1); 3789 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r4.coupons.length > 0); 3790 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](11); 3791 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r4.promoDiscount); 3792 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1); 3793 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r4.promoDiscountError); 3794 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1); 3795 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r4.card && ctx_r4.card.value > 0); 3796 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1); 3797 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r4.cart.products.length && ctx_r4.user); 3798} } 3799class CartComponent extends _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_0__.BasicComponent { 3800 constructor(cartService, cdr, formBuilder, addressService, storeService, orderService, paymentService, userService) { 3801 super(); 3802 this.cartService = cartService; 3803 this.cdr = cdr; 3804 this.formBuilder = formBuilder; 3805 this.addressService = addressService; 3806 this.storeService = storeService; 3807 this.orderService = orderService; 3808 this.paymentService = paymentService; 3809 this.userService = userService; 3810 this.addresses = []; 3811 this.addresses_delivery = []; 3812 this.addresses_fiscal = []; 3813 this.stores = []; 3814 this.coupons = []; 3815 this.newAddressDelivery = false;
3816 this.newAddressFiscal = false; 3817 this.total = 0; 3818 this.showFiscalAddress = false; 3819 this.paymentHandler = null; 3820 this.promoDiscount = null; 3821 this.promoDiscountError = null; 3822 this.optionFiscalAddress = null; 3823 this.merchant = this.storageService.get('merchant'); 3824 if (!this.merchant) { 3825 this.navigateHome(); 3826 } 3827 this.user = this.storageService.get('user'); 3828 this.cart = this.storageService.get('cart'); 3829 if (!this.cart) { 3830 this.navigateHome(); 3831 } 3832 this.checkoutForm = this.formBuilder.group({ 3833 delivery_type: [1, [_angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.required]], 3834 address_id: 0, 3835 address: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.required]], 3836 postal: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.required]], 3837 city: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.required]], 3838 country: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.required]], 3839 name: [this.user?.name, [_angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.required]], 3840 email: [this.user?.email, [_angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.email]], 3841 nif: [this.user?.nif], 3842 address_fiscal_id: 0, 3843 address_fiscal: [null], 3844 postal_fiscal: [null], 3845 city_fiscal: [null], 3846 country_fiscal: [null], 3847 store_id: [null], 3848 payment_type: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.required]], 3849 mbway: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.minLength(9), _angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.maxLength(9)]], 3850 delivery: [this.merchant.delivery, [_angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.required]], 3851 discount: [0, [_angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.min(0), _angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.max(0)]], 3852 discount_coupon: [0], 3853 coupon_id: [null], 3854 promo_discount: [null], 3855 promo_discount_id: [null], 3856 promo_discount_value: [0], 3857 is_strip_pay: [false], 3858 checkout_id: [null], 3859 cart: [this.cart.products, [_angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.required]] 3860 }); 3861 this.updateTotal(); 3862 this.eventsService.subscribe('update:cart', (cart) => { 3863 this.cart = cart; 3864 }); 3865 } 3866 ngOnInit() { 3867 this.loadStores(); 3868 this.loadAddresses(); 3869 this.loadLoyaltyCard(); 3870 this.invokeStripe(); 3871 } 3872 /** Loads */ 3873 loadStores() { 3874 this.storeService.all().subscribe((resp) => { 3875 if (resp.status == 'OK') { 3876 this.stores = resp.data; 3877 } 3878 }); 3879 } 3880 loadAddresses() { 3881 this.addressService.all().subscribe((resp) => { 3882 if (resp.status == 'OK') { 3883 this.addresses = resp.data; 3884 this.addresses_delivery = []; 3885 this.addresses_fiscal = []; 3886 this.addresses.forEach((address) => { 3887 if (address.type == 2) { 3888 this.addresses_delivery.push(address); 3889 } 3890 else { 3891 this.addresses_fiscal.push(address); 3892 } 3893 }); 3894 if (this.addresses_delivery.length) { 3895 this.selectedAddress = this.addresses_delivery[0]; 3896 this.updateAdressForm(this.addresses_delivery[0].id, this.addresses_delivery[0].address, this.addresses_delivery[0].city, this.addresses_delivery[0].postcode, this.addresses_delivery[0].country); 3897 } 3898 if (this.addresses_delivery.length) { 3899 this.selectedAddress = this.addresses_delivery[0]; 3900 this.updateAdressForm(this.addresses_delivery[0].id, this.addresses_delivery[0].address, this.addresses_delivery[0].city, this.addresses_delivery[0].postcode, this.addresses_delivery[0].c
3900ountry); 3901 } 3902 if (this.addresses_fiscal.length) { 3903 this.selectedAddressFiscal = this.addresses_fiscal[0]; 3904 this.updateFiscalAdressForm(this.addresses_fiscal[0].id, this.addresses_fiscal[0].address, this.addresses_fiscal[0].city, this.addresses_fiscal[0].postcode, this.addresses_fiscal[0].country); 3905 } 3906 } 3907 }); 3908 } 3909 loadLoyaltyCard() { 3910 this.userService.loyaltycards().subscribe((resp) => { 3911 if (resp.status == 'OK') { 3912 if (resp.data.length > 0) { 3913 this.card = resp.data[0]; 3914 this.loadCoupons(this.card.id); 3915 this.checkoutForm.addValidators(_angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.max(this.card.value > 0 ? this.card.value : 0)); 3916 } 3917 } 3918 }); 3919 } 3920 loadCoupons(id) { 3921 this.userService.viewcard(id).subscribe((resp) => { 3922 if (resp.status == 'OK') { 3923 this.coupons = resp.data; 3924 } 3925 }); 3926 } 3927 invokeStripe() { 3928 if (!window.document.getElementById('stripe-script')) { 3929 const script = window.document.createElement('script'); 3930 script.id = 'stripe-script'; 3931 script.type = 'text/javascript'; 3932 script.src = 'https://checkout.stripe.com/checkout.js'; 3933 script.onload = () => { 3934 this.paymentHandler = window.StripeCheckout.configure({ 3935 key: _env_environment__WEBPACK_IMPORTED_MODULE_2__.environment.stripeKey, 3936 locale: 'pt', 3937 token: function (stripeToken) { } 3938 }); 3939 }; 3940 window.document.body.appendChild(script); 3941 } 3942 } 3943 /** Changes **/ 3944 changeDeliveryType(value) { 3945 this.optionFiscalAddress = null; 3946 this.checkoutForm.controls['delivery_type'].setValue(value); 3947 this.checkoutForm.controls['store_id'].setValue(null); 3948 if (value == 0) { 3949 this.checkoutForm.controls['address'].setValidators(null); 3950 this.checkoutForm.controls['city'].setValidators(null); 3951 this.checkoutForm.controls['postal'].setValidators(null); 3952 this.checkoutForm.controls['country'].setValidators(null); 3953 this.checkoutForm.controls['store_id'].setValidators([_angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.required]); 3954 this.checkoutForm.controls['delivery'].setValue(0); 3955 } 3956 else { 3957 this.checkoutForm.controls['address'].setValidators([_angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.required]); 3958 this.checkoutForm.controls['city'].setValidators([_angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.required]); 3959 this.checkoutForm.controls['postal'].setValidators([_angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.required]); 3960 this.checkoutForm.controls['country'].setValidators([_angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.required]); 3961 this.checkoutForm.controls['store_id'].setValidators(null); 3962 this.updateAdressForm(this.selectedAddress.id, this.selectedAddress.address, this.selectedAddress.city, this.selectedAddress.postcode, this.selectedAddress.country); 3963 } 3964 this.checkoutForm.controls['store_id'].setValue(null); 3965 this.checkoutForm.controls['address'].updateValueAndValidity(); 3966 this.checkoutForm.controls['city'].updateValueAndValidity(); 3967 this.checkoutForm.controls['postal'].updateValueAndValidity(); 3968 this.checkoutForm.controls['country'].updateValueAndValidity(); 3969 this.checkoutForm.controls['store_id'].updateValueAndValidity(); 3970 this.updateTotal(); 3971 this.cdr.detectChanges(); 3972 } 3973 updateAdressForm(id = 0, address = null, city = null, postal = null, country = null) { 3974 this.checkoutForm.controls['address_id'].setValue(id); 3975 this.checkoutForm.controls['address'].setValue(address); 3976 this.checkoutForm.controls['city'].setValue(city); 3977 this.checkoutForm.controls['postal'].setValue(postal); 3978 this.checkoutForm.controls['country'].setValue(country); 3979 this.updateCountry(country); 3980 this.updateTotal(); 3981 } 3982 updateFiscalAdressForm(id = 0, address = null, city = null, postal = null, country = null) { 3983 this.checkoutForm.controls['address_fiscal_id'].setValue(id); 3984 this.checkoutForm.controls['address_fiscal'].setValue(address); 3985 this.checkoutForm.controls['city_fiscal'].setValue(city); 3986 this.checkoutForm.controls['postal_fiscal'].setValue(postal); 3987 this.checkoutForm.controls['country_fiscal'].setValue(country); 3988 } 3989 selectSameAddress(event) { 3990 this.optionFiscalAddress = event.target.checked ? event.target.value : null; 3991 } 3992 selectFiscalAddress(event) { 3993 this.optionFiscalAddress = event.target.checked ? event.target.value : null;
3994 this.showFiscalAddress = event.target.checked; 3995 if (this.showFiscalAddress) { 3996 this.checkoutForm.controls['address_fiscal'].addValidators(_angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.required); 3997 this.checkoutForm.controls['city_fiscal'].addValidators(_angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.required); 3998 this.checkoutForm.controls['postal_fiscal'].addValidators(_angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.required); 3999 this.checkoutForm.controls['country_fiscal'].addValidators(_angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.required); 4000 } 4001 else { 4002 this.checkoutForm.controls['address_fiscal'].removeValidators(_angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.required); 4003 this.checkoutForm.controls['city_fiscal'].removeValidators(_angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.required); 4004 this.checkoutForm.controls['postal_fiscal'].removeValidators(_angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.required); 4005 this.checkoutForm.controls['country_fiscal'].removeValidators(_angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.required); 4006 } 4007 this.checkoutForm.controls['address_fiscal'].setAsyncValidators; 4008 this.checkoutForm.controls['city_fiscal'].setAsyncValidators; 4009 this.checkoutForm.controls['postal_fiscal'].setAsyncValidators; 4010 this.checkoutForm.controls['country_fiscal'].setAsyncValidators; 4011 } 4012 changeDeliveryAddress(event) { 4013 this.selectedAddress = this.addresses.find((address) => address.id == event.target.value); 4014 if (this.selectedAddress) { 4015 this.checkoutForm.controls['address'].setValue(this.selectedAddress.address); 4016 this.checkoutForm.controls['city'].setValue(this.selectedAddress.city); 4017 this.checkoutForm.controls['postal'].setValue(this.selectedAddress.postcode); 4018 this.checkoutForm.controls['country'].setValue(this.selectedAddress.country); 4019 } 4020 } 4021 changeFiscalAddress(event) { 4022 this.selectedAddressFiscal = this.addresses.find((address) => address.id == event.target.value); 4023 if (this.selectedAddressFiscal) { 4024 this.checkoutForm.controls['address_fiscal'].setValue(this.selectedAddressFiscal.address); 4025 this.checkoutForm.controls['city_fiscal'].setValue(this.selectedAddressFiscal.city); 4026 this.checkoutForm.controls['postal_fiscal'].setValue(this.selectedAddressFiscal.postcode); 4027 this.checkoutForm.controls['country_fiscal'].setValue(this.selectedAddressFiscal.country); 4028 } 4029 } 4030 changeNewAddress(value) { 4031 this.newAddressDelivery = value; 4032 if (value) { 4033 this.checkoutForm.controls['address'].setValue(null); 4034 this.checkoutForm.controls['city'].setValue(null); 4035 this.checkoutForm.controls['postal'].setValue(null); 4036 this.checkoutForm.controls['country'].setValue(null); 4037 } 4038 else { 4039 this.checkoutForm.controls['address'].setValue(this.selectedAddress.address); 4040 this.checkoutForm.controls['city'].setValue(this.selectedAddress.city); 4041 this.checkoutForm.controls['postal'].setValue(this.selectedAddress.postcode); 4042 this.checkoutForm.controls['country'].setValue(this.selectedAddress.country); 4043 } 4044 } 4045 changeNewFiscalAddress(value) { 4046 this.newAddressFiscal = value; 4047 if (value) { 4048 this.checkoutForm.controls['address_fiscal'].setValue(null); 4049 this.checkoutForm.controls['city_fiscal'].setValue(null); 4050 this.checkoutForm.controls['postal_fiscal'].setValue(null); 4051 this.checkoutForm.controls['country_fiscal'].setValue(null); 4052 } 4053 else { 4054 this.checkoutForm.controls['address_fiscal'].setValue(this.selectedAddressFiscal.address); 4055 this.checkoutForm.controls['city_fiscal'].setValue(this.selectedAddressFiscal.city); 4056 this.checkoutForm.controls['postal_fiscal'].setValue(this.selectedAddressFiscal.postcode); 4057 this.checkoutForm.controls['country_fiscal'].setValue(this.selectedAddressFiscal.country); 4058 } 4059 } 4060 resetCart() { 4061 this.cart = this.cartService.reset(); 4062 this.navigateHome(); 4063 } 4064 changeCoupon(event) { 4065 let coupon = this.coupons.find((coupon) => coupon.id == event.target.value); 4066 let value_discount = coupon ? Number(coupon?.amount) : 0; 4067 if (coupon?.amount_type != 'Value') { 4068 value_discount = this.cart.total * value_discount * 0.01; 4069 } 4070 this.checkoutForm.controls['discount_coupon'].setValue(value_discount); 4071 this.updateTotal(); 4072 } 4073 changeQuant(event, product) { 4074 this.cartService.updateProduct(product, false, Number(event.target.value)); 4075 this.cart = this.cartService.cart; 4076 this.updateCountry(this.checkoutForm.value.country); 4077 this.updateTotal(); 4078 } 4079 removeProduct(product) { 4080 this.cartService.removeProduct(product, false); 4081 this.updateCountry(this.checkoutForm.value.country); 4082 this.updateTotal(); 4083 } 4084 changeDiscount() { 4085 this.updateTotal(); 4086 } 4087 changePaymentType(value) { 4088 this.checkoutForm.controls['payment_type'].setValue(value); 4089 this.checkoutForm.controls['mbway'].setValue(null); 4090 if (value == 1) { 4091 this.checkoutForm.controls['mbway'].setValidators(_angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.required); 4092 } 4093 else { 4094 this.checkoutForm.controls['mbway'].clearValidators(); 4095 }
4096 this.checkoutForm.controls['mbway'].updateValueAndValidity(); 4097 } 4098 getFormValidationErrors() { 4099 Object.keys(this.checkoutForm.controls).forEach((key) => { 4100 // @ts-ignore 4101 const controlErrors = this.checkoutForm.get(key).errors; 4102 if (controlErrors != null) { 4103 Object.keys(controlErrors).forEach((keyError) => { 4104 console.log('Key control: ' + key + ', keyError: ' + keyError + ', err value: ', controlErrors[keyError]); 4105 }); 4106 } 4107 }); 4108 } 4109 updateTotal() { 4110 this.total = this.cart.total - this.checkoutForm.value.discount - this.checkoutForm.value.discount_coupon - this.checkoutForm.value.promo_discount_value + this.checkoutForm.value.delivery; 4111 // this.getFormValidationErrors(); 4112 } 4113 /** Checkout **/ 4114 create() { 4115 this.checkoutForm.controls['cart'].setValue(this.cart.products); 4116 if (this.checkoutForm.value.delivery_type == 1 && this.optionFiscalAddress == 'same' && this.selectedAddress) { 4117 this.checkoutForm.controls['address_fiscal'].setValue(this.selectedAddress.address); 4118 this.checkoutForm.controls['city_fiscal'].setValue(this.selectedAddress.city); 4119 this.checkoutForm.controls['postal_fiscal'].setValue(this.selectedAddress.postcode); 4120 this.checkoutForm.controls['country_fiscal'].setValue(this.selectedAddress.country); 4121 } 4122 if (!this.optionFiscalAddress) { 4123 this.checkoutForm.controls['address_fiscal'].setValue(null); 4124 this.checkoutForm.controls['city_fiscal'].setValue(null); 4125 this.checkoutForm.controls['postal_fiscal'].setValue(null); 4126 this.checkoutForm.controls['country_fiscal'].setValue(null); 4127 } 4128 this.orderService.create(this.checkoutForm.value).subscribe((resp) => { 4129 if (resp.code == 200) { 4130 this.generatePayment(resp.data); 4131 } 4132 }); 4133 } 4134 generatePayment(order) { 4135 let payment; 4136 switch (this.checkoutForm.value.payment_type) { 4137 case 1: 4138 if (this.merchant.payments.mbway == 'sibs-spg') { 4139 payment = this.paymentService.mbway_sibs(order.id); 4140 } 4141 else { 4142 payment = this.paymentService.mbway_eupago(order.id); 4143 } 4144 break; 4145 case 2: 4146 if (this.merchant.payments.cc == 'sibs-spg') { 4147 payment = this.paymentService.cc_sibs(order.id); 4148 } 4149 else { 4150 payment = this.paymentService.cc_eupago(order.id); 4151 } 4152 break; 4153 case 3: 4154 if (this.merchant.payments.mb == 'sibs-spg') { 4155 payment = this.paymentService.mb_sibs(order.id); 4156 } 4157 else { 4158 payment = this.paymentService.mb_eupago(order.id); 4159 } 4160 break; 4161 default: 4162 break; 4163 } 4164 payment.subscribe((resp) => { 4165 if (resp.status == 'OK') { 4166 this.toastService.showSuccess(resp.message); 4167 if (resp.data.redirect_url) { 4168 window.open(resp.data.redirect_url, '_blank'); 4169 } 4170 setTimeout(() => { 4171 this.cartService.reset(); 4172 this.cart = new _models_models_model__WEBPACK_IMPORTED_MODULE_1__.Cart(); 4173 window.location.href = '/pagar/' + order.id; 4174 }, 1000); 4175 } 4176 else { 4177 this.toastService.showError('A encomenda foi criada com sucesso, mas tivemos um erro a gerar o pagamento. Por favor contacte o nosso suporte para mais informações.'); 4178 setTimeout(() => { 4179 this.cartService.reset(); 4180 this.cart = new _models_models_model__WEBPACK_IMPORTED_MODULE_1__.Cart(); 4181 window.location.href = '/encomenda/' + order.id; 4182 }, 2000); 4183 } 4184 }); 4185 } 4186 closeOrder(token) { 4187 this.checkoutForm.controls['is_strip_pay'].setValue(true); 4188 this.checkoutForm.controls['checkout_id'].setValue(token); 4189 this.orderService.create(this.checkoutForm.value).subscribe((resp) => { 4190 if (resp.status == 'OK') { 4191 this.cartService.reset(); 4192 this.cart = new _models_models_model__WEBPACK_IMPORTED_MODULE_1__.Cart(); 4193 this.toastService.showSuccess(resp.message); 4194 this.navigateHome(); 4195 } 4196 }); 4197 } 4198 checkPromoCode(input) { 4199 const code = input.value;
4200 this.cart.products.forEach((product) => { 4201 product.id = product.product_id; 4202 }); 4203 this.orderService.discount({ code: code, cart: this.cart }).subscribe((resp) => { 4204 this.promoDiscount = null; 4205 this.promoDiscountError = null; 4206 if (resp.code == 200) { 4207 // 'id' => $discount->id, 4208 // 'code' => $discount->code, 4209 // 'name' => $discount->name, 4210 // 'description' => $discount->description, 4211 // 'reduced_type' => $discount->reduced_type,(1-Cart, 2-Portes, 3-Coleção, 4-Categoria, 5-Subcategoria, 6-Marca, 7-Produto) 4212 // 'reduced_value' => $discount->reduced_value, 4213 // 'discount_value' => $discountValue, 4214 this.promoDiscount = resp.data; 4215 this.checkoutForm.controls['promo_discount'].setValue(resp.data.code); 4216 this.checkoutForm.controls['promo_discount_id'].setValue(resp.data.id); 4217 switch (this.promoDiscount.reduced_type) { 4218 case 1: 4219 case 2: 4220 this.checkoutForm.controls['promo_discount_value'].setValue(resp.data.discount_value); 4221 break; 4222 case 3: 4223 this.checkoutForm.controls['promo_discount_value'].setValue(this.merchant.delivery); 4224 break; 4225 case 4: 4226 case 5: 4227 case 6: 4228 case 7: 4229 break; 4230 } 4231 input.value = ''; 4232 } 4233 else { 4234 this.promoDiscountError = resp.data; 4235 this.checkoutForm.controls['promo_discount'].setValue(''); 4236 this.checkoutForm.controls['promo_discount_id'].setValue(null); 4237 this.checkoutForm.controls['promo_discount_value'].setValue(0); 4238 setTimeout(() => { 4239 this.promoDiscountError = null; 4240 }, 5000); 4241 } 4242 this.updateTotal(); 4243 }); 4244 } 4245 removePromoCode() { 4246 this.promoDiscount = null; 4247 this.checkoutForm.controls['promo_discount'].setValue(''); 4248 this.checkoutForm.controls['promo_discount_id'].setValue(null); 4249 this.checkoutForm.controls['promo_discount_value'].setValue(0); 4250 this.updateTotal(); 4251 } 4252 updateCountry(country) { 4253 if (country) { 4254 if (country.toLowerCase() === this.merchant.country.toLowerCase()) { 4255 if (this.cart.total < this.merchant.delivery_free || !this.merchant.delivery_free) { 4256 this.checkoutForm.controls['delivery'].setValue(this.merchant.delivery); 4257 } 4258 else { 4259 this.checkoutForm.controls['delivery'].setValue(0); 4260 } 4261 } 4262 else { 4263 if (this.cart.total < this.merchant.delivery_international_free || !this.merchant.delivery_international_free) { 4264 this.checkoutForm.controls['delivery'].setValue(this.merchant.delivery_international); 4265 } 4266 else { 4267 this.checkoutForm.controls['delivery'].setValue(0); 4268 } 4269 } 4270 } 4271 } 4272} 4273CartComponent.ɵfac = function CartComponent_Factory(t) { return new (t || CartComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](_services_services_service__WEBPACK_IMPORTED_MODULE_3__.CartService), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_6__.ChangeDetectorRef), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_7__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](_services_services_service__WEBPACK_IMPORTED_MODULE_3__.AddressService), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](_services_services_service__WEBPACK_IMPORTED_MODULE_3__.StoreService), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](_services_services_service__WEBPACK_IMPORTED_MODULE_3__.OrderService), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](_services_services_service__WEBPACK_IMPORTED_MODULE_3__.PaymentService), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](_services_services_service__WEBPACK_IMPORTED_MODULE_3__.UserService)); }; 4274CartComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdefineComponent"]({ type: CartComponent, selectors: [["app-cart"]], features: [_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵInheritDefinitionFeature"]], decls: 8, vars: 5, consts: [[1, "ob-title"], ["class", "m-0 text-center", 4, "ngIf"], [1, "cart-container"], ["class", "text-center mt-4 mb-5", 4, "ngIf"], ["class", "row align-items-center product-line", 4, "ngFor", "ngForOf"], ["class", "row mt-5 mb-4 align-items-center", 4, "ngIf"], ["class", "checkout-container", 4, "ngIf"], [1, "m-0", "text-center"], [1, "text-muted"], [1, "text-center", "mt-4", "mb-5"], ["_ngcontent-kce-c170", "", "version", "1.2", "xmlns", "http://www.w3.org/2000/svg", "overflow", "visible", "preserveAspectRatio", "none", "viewBox", "0 0 24 24", "width", "100", "height", "100"], ["_ngcontent-kce-c170", ""], ["_ngcontent-kce-c170", "", "d", "M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z", "vector-effect", "non-scaling-stroke"], [1, "text-muted", "mt-4"], [1, "row", "align-items-center", "product-line"], [1, "col-2"], [1, "img", "center", 3, "src"], [1, "col-4"], [1, "m-0"], [1, "col-3"], ["class", "m-0", 4, "ngIf"], [1, "col-2", "form"], ["type", "number", "min", "1", 3, "value", "change"], ["type", "button", 1, "col-1", 3, "click"], [1, "fas", "fa-tras
4274h"], [1, "discount-price"], ["class", "ms-3 m-0 text-center", 4, "ngIf"], [1, "ms-3", "m-0", "text-center"], [1, "box-dark"], [1, "box-ligth"], [1, "row", "mt-5", "mb-4", "align-items-center"], [1, "col-12", "col-md-8"], [1, "col-12", "col-md-4"], [1, "card"], [1, "card-header"], [1, "card-body"], [1, "row"], [1, "col-6", "col-md-6", "text-start"], [1, "col-6", "col-md-6", "text-end"], [1, "card-footer"], [1, "col-12", "col-md-12"], [1, "col-12", "col-md-12", "text-end"], [1, "btn", "btn-primary-outline", "my-1", "me-1", 3, "click"], ["role", "button", "href", "/login", 1, "btn", "btn-primary", "my-1", "fr"], [1, "checkout-container"], [1, "form", 3, "formGroup", "submit"], [1, "col-12", "col-md-6"], [1, "row", "align-items-top"], [1, "mt-3"], [1, "label"], ["type", "text", "formControlName", "name"], ["type", "text", "formControlName", "email"], ["type", "text", "formControlName", "nif"], [1, "col-12", "col-md-12", "mt-5", "mt-lg-5"], [1, "mt-4"], [1, "form-check"], ["type", "radio", "name", "delivery_type", 1, "form-check-input", 3, "checked", "change"], [1, "form-check-label"], [1, "mt-5"], [4, "ngIf"], ["class", "form-check", 4, "ngIf"], [1, "col-12", "col-md-2"], [1, "col-12", "col-md-12", "mt-5", "mt-lg-0"], ["class", "mt-3", 4, "ngIf"], ["class", "mt-5", 4, "ngIf"], ["type", "text"], ["promoDiscountInput", ""], [1, "col-12", "col-md-4", "mt-2", "mt-lg-0"], [1, "btn", "btn-primary", "btn-block", 3, "click"], ["class", "row mt-2", 4, "ngIf"], ["class", "row mt-5", 4, "ngIf"], ["formControlName", "store_id"], [3, "value", 4, "ngFor", "ngForOf"], [3, "value"], [3, "click"], [1, "btn", "btn-primary", "btn-block", "my-2", 3, "click"], ["type", "text", "formControlName", "address"], ["type", "text", "formControlName", "postal"], ["type", "text", "formControlName", "city"], ["type", "text", "formControlName", "country"], [1, "btn", "btn-primary", "my-2", 3, "click"], ["type", "checkbox", "value", "same", 1, "form-check-input", 3, "change"], ["type", "checkbox", "value", "other", 1, "form-check-input", 3, "change"], ["type", "text", "formControlName", "address_fiscal"], ["type", "text", "formControlName", "postal_fiscal"], ["type", "text", "formControlName", "city_fiscal"], ["type", "text", "formControlName", "country_fiscal"], ["type", "radio", "name", "payment_type", 1, "form-check-input", 3, "checked", "change"], ["type", "text", "formControlName", "mbway"], ["formControlName", "coupon_id", 3, "change"], ["value", "null"], [1, "row", "mt-2"], [1, "col-12"], [1, "alert", "alert-info"], [1, "col-10"], [1, "col-2", "text-end"], [1, "remove-promo", 3, "click"], [1, "fa", "fa-trash"], [1, "alert", "alert-danger"], [1, "col-112"], ["type", "number", "formControlName", "discount", 3, "change"], [1, "row", "mt-5"], ["type", "submit", 1, "btn", "btn-primary", "my-1", "fr", 3, "disabled"]], template: function CartComponent_Template(rf, ctx) { if (rf & 1) { 4275 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "h2", 0); 4276 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](1, "Resumo da Encomenda"); 4277 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 4278 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](2, CartComponent_p_2_Template, 3, 0, "p", 1); 4279 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](3, "div", 2); 4280 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](4, CartComponent_p_4_Template, 7, 0, "p", 3); 4281 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](5, CartComponent_div_5_Template, 15, 7, "div", 4); 4282 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](6, CartComponent_div_6_Template, 54, 15, "div", 5); 4283 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"](); 4284 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](7, CartComponent_div_7_Template, 67, 17, "div", 6); 4285 } if (rf & 2) { 4286 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2); 4287 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", !ctx.user); 4288 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2); 4289 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", !ctx.cart.products.length); 4290 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1); 4291 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngForOf", ctx.cart.products); 4292 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1); 4293 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx.cart.products.length && !ctx.user); 4294 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1); 4295 _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx.cart.products.length && ctx.user); 4296 } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_8__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_8__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_7__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_7__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_7__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_7__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.NumberValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.FormControlName, _pipes_format_money_pipe__WEBPACK_IMPORTED_MODULE_4__.FormatMoneyPipe, _pipes_format_name_pipe__WEBPACK_IMPORTED_MODULE_5__.FormatNamePipe], styles: [".ob-title[_ngcontent-%COMP%] {\n margin-top: 118px;\n margin-bottom: 42px;\n}\n\n.cart-container[_ngcontent-%COMP%] {\n height: auto;\n}\n\n.cart-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%] {\n width: 100%;\n border: 1px solid var(--primary);\n text-align: center;\n font-size: 20px;\n}
4296\n\n.cart-container[_ngcontent-%COMP%] .large[_ngcontent-%COMP%] {\n border: 3px solid;\n border-color: var(--dark) !important;\n}\n\n.checkout-container[_ngcontent-%COMP%] {\n margin-top: 0;\n margin-bottom: 114px;\n}\n\n.checkout-container[_ngcontent-%COMP%] .ob-title[_ngcontent-%COMP%] {\n margin-bottom: 50px;\n}\n\n.checkout-container[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] input[type=text][_ngcontent-%COMP%], .checkout-container[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] input[type=number][_ngcontent-%COMP%], .checkout-container[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] select[_ngcontent-%COMP%] {\n border: 1px solid var(--primary);\n}\n\n.checkout-container[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] {\n font-size: 16px;\n font-weight: bold;\n text-transform: uppercase;\n}\n\n.checkout-container[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n font-size: 16px;\n}\n\n.product-line[_ngcontent-%COMP%] {\n border-bottom: 1px solid #ccc;\n margin: 0 5px;\n}\n\n.container-cart[_ngcontent-%COMP%] {\n min-height: 50vh;\n padding: 128px 12px;\n}\n\n.content-cart[_ngcontent-%COMP%] .content-products[_ngcontent-%COMP%], .content-cart[_ngcontent-%COMP%] .content-total[_ngcontent-%COMP%], .content-cart[_ngcontent-%COMP%] .content-products-list[_ngcontent-%COMP%] {\n background-color: #fff;\n border-radius: 4px;\n padding: 20px;\n}\n\n.content-cart[_ngcontent-%COMP%] .content-products[_ngcontent-%COMP%] .icon-close[_ngcontent-%COMP%], .content-cart[_ngcontent-%COMP%] .content-total[_ngcontent-%COMP%] .icon-close[_ngcontent-%COMP%], .content-cart[_ngcontent-%COMP%] .content-products-list[_ngcontent-%COMP%] .icon-close[_ngcontent-%COMP%] {\n color: var(--dark);\n}\n\n.content-cart[_ngcontent-%COMP%] img[_ngcontent-%COMP%] {\n margin: 10px 0;\n}\n\n.content-cart[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] {\n cursor: pointer;\n}\n\n.content-cart[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]:hover i[_ngcontent-%COMP%] {\n color: var(--bs-red);\n}\n\n.content-total[_ngcontent-%COMP%] {\n background-color: #f9f9f9 !important;\n}\n\np[_ngcontent-%COMP%] {\n font-weight: 400;\n font-size: 16px;\n line-height: 28px;\n margin-bottom: 8px;\n}\n\nh1[_ngcontent-%COMP%] {\n font-family: Ubuntu;\n font-weight: 700;\n font-size: 40px;\n line-height: 48px;\n}\n\nh2[_ngcontent-%COMP%] {\n font-family: Ubuntu;\n font-weight: 700;\n font-size: 32px;\n line-height: 40px;\n}\n\nh5[_ngcontent-%COMP%] {\n font-family: Ubuntu;\n font-weight: 700;\n font-size: 24px;\n line-height: 32px;\n}\n\n.box-dark[_ngcontent-%COMP%] {\n background-color: var(--primary);\n font-size: 14px;\n color: var(--white);\n height: 35px;\n border-radius: 5px;\n padding: 6px;\n margin-right: 3px;\n font-weight: 500;\n}\n\n.box-ligth[_ngcontent-%COMP%] {\n border: 1px solid var(--primary);\n font-size: 14px;\n height: 35px;\n border-radius: 5px;\n padding: 6px;\n margin-left: 3px;\n font-weight: 500;\n}\n\n.form[_ngcontent-%COMP%] input[type=text][_ngcontent-%COMP%], .form[_ngcontent-%COMP%] input[type=number][_ngcontent-%COMP%], .form[_ngcontent-%COMP%] input[type=password][_ngcontent-%COMP%], .form[_ngcontent-%COMP%] select[_ngcontent-%COMP%] {\n font-size: 15px;\n}\n\n.card[_ngcontent-%COMP%] {\n padding: 0;\n}\n\n@media only screen and (max-width: 800px) {\n .content-products[_ngcontent-%COMP%] {\n display: none;\n }\n .content-products-list[_ngcontent-%COMP%] {\n display: block;\n }\n .content-products-list[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] {\n position: relative;\n }\n .icon-close[_ngcontent-%COMP%] {\n color: var(--white);\n position: absolute;\n text-align: end;\n top: 0;\n }\n}\n\n@media only screen and (min-width: 801px) {\n .content-products[_ngcontent-%COMP%] {\n display: block;\n }\n .content-products-list[_ngcontent-%COMP%] {\n display: none;\n }\n}\n\n.disabled[_ngcontent-%COMP%] {\n opacity: 0.5;\n}\n\n.discount-price[_ngcontent-%COMP%] {\n text-decoration: line-through;\n font-size: 16px;\n}\n\n.options-text[_ngcontent-%COMP%] {\n font-size: 0.8rem;\n}\n\n.fa-trash[_ngcontent-%COMP%] {\n cursor: pointer;\n}
4296\n\n.fa-trash[_ngcontent-%COMP%]:hover {\n color: red;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNhcnQuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDQyxpQkFBQTtFQUNBLG1CQUFBO0FBQ0Q7O0FBRUE7RUFDQyxZQUFBO0FBQ0Q7O0FBQ0M7RUFDQyxXQUFBO0VBQ0EsZ0NBQUE7RUFDQSxrQkFBQTtFQUNBLGVBQUE7QUFDRjs7QUFFQztFQUNDLGlCQUFBO0VBQ0Esb0NBQUE7QUFBRjs7QUFJQTtFQUNDLGFBQUE7RUFDQSxvQkFBQTtBQUREOztBQUdDO0VBQ0MsbUJBQUE7QUFERjs7QUFLRTs7O0VBR0MsZ0NBQUE7QUFISDs7QUFNRTtFQUNDLGVBQUE7RUFDQSxpQkFBQTtFQUNBLHlCQUFBO0FBSkg7O0FBT0U7RUFDQyxlQUFBO0FBTEg7O0FBVUE7RUFDRSw2QkFBQTtFQUNBLGFBQUE7QUFQRjs7QUFVQTtFQUNDLGdCQUFBO0VBQ0EsbUJBQUE7QUFQRDs7QUFVQzs7O0VBR0Msc0JBQUE7RUFDQSxrQkFBQTtFQUNBLGFBQUE7QUFQRjs7QUFTRTs7O0VBQ0Msa0JBQUE7QUFMSDs7QUFRQztFQUNDLGNBQUE7QUFORjs7QUFRQztFQUNDLGVBQUE7QUFORjs7QUFRQztFQUNDLG9CQUFBO0FBTkY7O0FBU0E7RUFDQyxvQ0FBQTtBQU5EOztBQVNBO0VBQ0MsZ0JBQUE7RUFDQSxlQUFBO0VBQ0EsaUJBQUE7RUFDQyxrQkFBQTtBQU5GOztBQVNBO0VBQ0MsbUJBQUE7RUFDQSxnQkFBQTtFQUNBLGVBQUE7RUFDQSxpQkFBQTtBQU5EOztBQVNBO0VBQ0MsbUJBQUE7RUFDQSxnQkFBQTtFQUNBLGVBQUE7RUFDQSxpQkFBQTtBQU5EOztBQVNBO0VBQ0MsbUJBQUE7RUFDQSxnQkFBQTtFQUNBLGVBQUE7RUFDQSxpQkFBQTtBQU5EOztBQVNBO0VBQ0MsZ0NBQUE7RUFDQSxlQUFBO0VBQ0EsbUJBQUE7RUFDQSxZQUFBO0VBQ0Esa0JBQUE7RUFDQSxZQUFBO0VBQ0EsaUJBQUE7RUFDQSxnQkFBQTtBQU5EOztBQVNBO0VBQ0MsZ0NBQUE7RUFDQSxlQUFBO0VBQ0EsWUFBQTtFQUNBLGtCQUFBO0VBQ0EsWUFBQTtFQUNBLGdCQUFBO0VBQ0EsZ0JBQUE7QUFORDs7QUFTQTtFQUNFLGVBQUE7QUFORjs7QUFRQTtFQUNFLFVBQUE7QUFMRjs7QUFRQTtFQUNDO0lBQ0MsYUFBQTtFQUxBO0VBUUQ7SUFDQyxjQUFBO0VBTkE7RUFPQTtJQUNDLGtCQUFBO0VBTEQ7RUFTRDtJQUNDLG1CQUFBO0lBQ0Esa0JBQUE7SUFDQSxlQUFBO0lBQ0EsTUFBQTtFQVBBO0FBQ0Y7O0FBVUE7RUFDQztJQUNDLGNBQUE7RUFSQTtFQVdEO0lBQ0MsYUFBQTtFQVRBO0FBQ0Y7O0FBWUE7RUFDQyxZQUFBO0FBVkQ7O0FBYUE7RUFDQyw2QkFBQTtFQUNBLGVBQUE7QUFWRDs7QUFhQTtFQUNDLGlCQUFBO0FBVkQ7O0FBWUE7RUFDRSxlQUFBO0FBVEY7O0FBV0E7RUFDRSxVQUFBO0FBUkYiLCJmaWxlIjoiY2FydC5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5vYi10aXRsZSB7XG5cdG1hcmdpbi10b3A6IDExOHB4O1xuXHRtYXJnaW4tYm90dG9tOiA0MnB4O1xufVxuXG4uY2FydC1jb250YWluZXIge1xuXHRoZWlnaHQ6IGF1dG87XG5cblx0aW5wdXQge1xuXHRcdHdpZHRoOiAxMDAlO1xuXHRcdGJvcmRlcjogMXB4IHNvbGlkIHZhcigtLXByaW1hcnkpO1xuXHRcdHRleHQtYWxpZ246IGNlbnRlcjtcblx0XHRmb250LXNpemU6IDIwcHg7XG5cdH1cblxuXHQubGFyZ2Uge1xuXHRcdGJvcmRlcjogM3B4IHNvbGlkO1xuXHRcdGJvcmRlci1jb2xvcjogdmFyKC0tZGFyaykgIWltcG9ydGFudDtcblx0fVxufVxuXG4uY2hlY2tvdXQtY29udGFpbmVyIHtcblx0bWFyZ2luLXRvcDogMDtcblx0bWFyZ2luLWJvdHRvbTogMTE0cHg7XG5cblx0Lm9iLXRpdGxlIHtcblx0XHRtYXJnaW4tYm90dG9tOiA1MHB4O1xuXHR9XG5cblx0LmZvcm0ge1xuXHRcdGlucHV0W3R5cGU9XCJ0ZXh0XCJdLFxuXHRcdGlucHV0W3R5cGU9XCJudW1iZXJcIl0sXG5cdFx0c2VsZWN0IHtcblx0XHRcdGJvcmRlcjogMXB4IHNvbGlkIHZhcigtLXByaW1hcnkpO1xuXHRcdH1cblxuXHRcdGgzIHtcblx0XHRcdGZvbnQtc2l6ZTogMTZweDtcblx0XHRcdGZvbnQtd2VpZ2h0OiBib2xkO1xuXHRcdFx0dGV4dC10cmFuc2Zvcm06IHVwcGVyY2FzZTtcblx0XHR9XG5cblx0XHRwIHtcblx0XHRcdGZvbnQtc2l6ZTogMTZweDtcblx0XHR9XG5cdH1cbn1cblxuLnByb2R1Y3QtbGluZSB7XG4gIGJvcmRlci1ib3R0b206IDFweCBzb2xpZCAjY2NjO1xuICBtYXJnaW46IDAgNXB4O1xufVxuXG4uY29udGFpbmVyLWNhcnQge1xuXHRtaW4taGVpZ2h0OiA1MHZoO1xuXHRwYWRkaW5nOiAxMjhweCAxMnB4O1xufVxuLmNvbnRlbnQtY2FydCB7XG5cdC5jb250ZW50LXByb2R1Y3RzLFxuXHQuY29udGVudC10b3RhbCxcblx0LmNvbnRlbnQtcHJvZHVjdHMtbGlzdCB7XG5cdFx0YmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcblx0XHRib3JkZXItcmFkaXVzOiA0cHg7XG5cdFx0cGFkZGluZzogMjBweDtcblxuXHRcdC5pY29uLWNsb3NlIHtcblx0XHRcdGNvbG9yOiB2YXIoLS1kYXJrKTtcblx0XHR9XG5cdH1cblx0aW1nIHtcblx0XHRtYXJnaW46IDEwcHggMDtcblx0fVxuXHQuaWNvbiB7XG5cdFx0Y3Vyc29yOiBwb2ludGVyO1xuXHR9XG5cdC5pY29uOmhvdmVyIGkge1xuXHRcdGNvbG9yOiB2YXIoLS1icy1yZWQpO1xuXHR9XG59XG4uY29udGVudC10b3RhbCB7XG5cdGJhY2tncm91bmQtY29sb3I6ICNmOWY5ZjkgIWltcG9ydGFudDtcbn1cblxucCB7XG5cdGZvbnQtd2VpZ2h0OiA0MDA7XG5cdGZvbnQtc2l6ZTogMTZweDtcblx0bGluZS1oZWlnaHQ6IDI4cHg7XG4gIG1hcmdpbi1ib3R0b206IDhweDtcbn1cblxuaDEge1xuXHRmb250LWZhbWlseTogVWJ1bnR1O1xuXHRmb250LXdlaWdodDogNzAwO1xuXHRmb250LXNpemU6IDQwcHg7XG5cdGxpbmUtaGVpZ2h0OiA0OHB4O1xufVxuXG5oMiB7XG5cdGZvbnQtZmFtaWx5OiBVYnVudHU7XG5cdGZvbnQtd2VpZ2h0OiA3MDA7XG5cdGZvbnQtc2l6ZTogMzJweDtcblx0bGluZS1oZWlnaHQ6IDQwcHg7XG59XG5cbmg1IHtcblx0Zm9udC1mYW1pbHk6IFVidW50dTtcblx0Zm9udC13ZWlnaHQ6IDcwMDtcblx0Zm9udC1zaXplOiAyNHB4O1xuXHRsaW5lLWhlaWdodDogMzJweDtcbn1cblxuLmJveC1kYXJrIHtcblx0YmFja2dyb3VuZC1jb2xvcjogdmFyKC0tcHJpbWFyeSk7XG5cdGZvbnQtc2l6ZTogMTRweDtcblx0Y29sb3I6IHZhcigtLXdoaXRlKTtcblx0aGVpZ2h0OiAzNXB4O1xuXHRib3JkZXItcmFkaXVzOiA1cHg7XG5cdHBhZGRpbmc6IDZweDtcblx0bWFyZ2luLXJpZ2h0OiAzcHg7XG5cdGZvbnQtd2VpZ2h0OiA1MDA7XG59XG5cbi5ib3gtbGlndGgge1xuXHRib3JkZXI6IDFweCBzb2xpZCB2YXIoLS1wcmltYXJ5KTtcblx0Zm9udC1zaXplOiAxNHB4O1xuXHRoZWlnaHQ6IDM1cHg7XG5cdGJvcmRlci1yYWRpdXM6IDVweDtcblx0cGFkZGluZzogNnB4O1xuXHRtYXJnaW4tbGVmdDogM3B4O1xuXHRmb250LXdlaWdodDogNTAwO1xufVxuXG4uZm9ybSBpbnB1dFt0eXBlPXRleHRdLCAuZm9ybSBpbnB1dFt0eXBlPW51bWJlcl0sIC5mb3JtIGlucHV0W3R5cGU9cGFzc3dvcmRdLCAuZm9ybSBzZWxlY3Qge1xuICBmb250LXNpemU6IDE1cHg7XG59XG4uY2FyZCB7XG4gIHBhZGRpbmc6IDA7XG59XG5cbkBtZWRpYSBvbmx5IHNjcmVlbiBhbmQgKG1heC13aWR0aDogODAwcHgpIHtcblx0LmNvbnRlbnQtcHJvZHVjdHMge1xuXHRcdGRpc3BsYXk6IG5vbmU7XG5cdH1cblxuXHQuY29udGVudC1wcm9kdWN0cy1saXN0IHtcblx0XHRkaXNwbGF5OiBibG9jaztcblx0XHQucm93IHtcblx0XHRcdHBvc2l0aW9uOiByZWxhdGl2ZTtcblx0XHR9XG5cdH1cblxuXHQuaWNvbi1jbG9zZSB7XG5cdFx0Y29sb3I6IHZhcigtLXdoaXRlKTtcblx0XHRwb3NpdGlvbjogYWJzb2x1dGU7XG5cdFx0dGV4dC1hbGlnbjogZW5kO1xuXHRcdHRvcDogMDtcblx0fVxufVxuXG5AbWVkaWEgb25seSBzY3JlZW4gYW5kIChtaW4td2lkdGg6IDgwMXB4KSB7XG5cdC5jb250ZW50LXByb2R1Y3RzIHtcblx0XHRkaXNwbGF5OiBibG9jaztcblx0fVxuXG5cdC5jb250ZW50LXByb2R1Y3RzLWxpc3Qge1xuXHRcdGRpc3BsYXk6IG5vbmU7XG5cdH1cbn1cblxuLmRpc2FibGVkIHtcblx0b3BhY2l0eTogMC41O1xufVxuXG4uZGlzY291bnQtcHJpY2Uge1xuXHR0ZXh0LWRlY29yYXRpb246IGxpbmUtdGhyb3VnaDtcblx0Zm9udC1zaXplOiAxNnB4O1xufVxuXG4ub3B0aW9ucy10ZXh0IHtcblx0Zm9udC1zaXplOiAwLjhyZW07XG59XG4uZmEtdHJhc2gge1xuICBjdXJzb3I6IHBvaW50ZXI7XG59XG4uZmEtdHJhc2g6aG92ZXIge1xuICBjb2xvcjogcmVkO1xufVxuIl19 */"] }); 4297 4298 4299/***/ }), 4300 4301/***/ 8506: 4302/*!******************************************************!*\ 4303 !*** ./src/app/pages/contacts/contacts.component.ts ***! 4304 \******************************************************/ 4305/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 4306 4307__webpack_require__.r(__webpack_exports__); 4308/* harmony export */ __webpack_require__.d(__webpack_exports__, { 4309/* harmony export */ "ContactsComponent": () => (/* binding */ ContactsComponent) 4310/* harmony export */ }); 4311/* harmony import */ var _home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 1670); 4312/* harmony import */ var _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @pages/basic/basic.component */ 9689); 4313/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 2560); 4314 4315 4316 4317class ContactsComponent extends _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_1__.BasicComponent { 4318 constructor() { 4319 super(); 4320 } 4321 4322 ngOnInit() { 4323 var _this = this; 4324 4325 return (0,_home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () { 4326 _this.merchant = yield _this.storageService.get('merchant'); 4327 })(); 4328 } 4329 4330} 4331 4332ContactsComponent.ɵfac = function ContactsComponent_Factory(t) { 4333 return new (t || ContactsComponent)(); 4334}; 4335 4336ContactsComponent.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({ 4337 type: ContactsComponent, 4338 selectors: [["app-contacts"]], 4339 features: [_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵInheritDefinitionFeature"]], 4340 decls: 68, 4341 vars: 0, 4342 consts: [[1, "contacts-container"], [1, "ob-title"], ["id", "map", "width", "100%", "height", "600", "frameborder", "0", "scrolling", "no", "marginheight", "0", "marginwidth", "0", "src", "https://maps.google.com/maps?width=100%25&height=600&hl=en&q=+(%C3%93ptica%20Boavista)&t=&z=15&ie=UTF8&iwloc=B&output=embed"], ["href", "https://www.maps.ie/population/"], [1, "row", "mb-5"], [1, "col-12", "col-md-3"], [1, "m-0"], [1, "mb-0"], [1, "small-text"]], 4343 template: function ContactsComponent_Template(rf, ctx) { 4344 if (rf & 1) { 4345 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 0)(1, "h2", 1); 4346 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Contactos"); 4347 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 4348 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "iframe", 2)(4, "a", 3); 4349 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](5, "Population Estimator map"); 4350 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); 4351 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div", 4)(7, "div", 5)(8, "h3"); 4352 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](9, "Email"); 4353 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 4354 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "p"); 4355 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](11, "[email protected]"); 4356 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 4357 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "p"); 4358 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](13, "Siga-nos nas redes sociais:"); 4359 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 4360 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](14, "app-social-links"); 4361 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 4362 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "div", 5)(16, "h3"); 4363 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](17, "Telefones"); 4364 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 4365 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "p", 6)(19, "b"); 4366 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](20, "Megastore"); 4367 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); 4368 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](21, "p", 7); 4369 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](22, "+351 220 969 940"); 4370 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 4371 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](23, "p", 8); 4372 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](24, "(chamada para rede fixa)"); 4373 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 4374 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](25, "p", 6)(26, "b"); 4375 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](27, "Cl\u00EDnica"); 4376 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); 4377 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](28, "p", 7); 4378 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](29, "+351 220 969 950"); 4379 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 4380 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](30, "p", 8); 4381 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](31, "(chamada para rede fixa)"); 4382 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); 4383 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](32, "div", 5)(33, "h3"); 4384 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](34, "Telem\u00F3veis"); 4385 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 4386 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](35, "p", 6)(36, "b"); 4387 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](37, "Megastore"); 4388 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); 4389 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](38, "p", 7); 4390 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](39, "+351 916 785 887"); 4391 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 4392 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](40, "p", 8); 4393 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](41, "(chamada para rede m\u00F3vel)"); 4394 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 4395 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](42, "p", 6)(43, "b"); 4396 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](44, "Loja Online"); 4397 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); 4398 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](45, "p", 7);
4399 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](46, "+351 912 156 666"); 4400 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 4401 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](47, "p", 8); 4402 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](48, "(chamada para rede m\u00F3vel)"); 4403 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); 4404 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](49, "div", 5)(50, "h3"); 4405 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](51, "Moradas"); 4406 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 4407 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](52, "p", 6)(53, "b"); 4408 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](54, "Megastore"); 4409 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); 4410 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](55, "p"); 4411 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](56, "Avenida da Boavista 1003 4100-128 Porto"); 4412 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 4413 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](57, "p", 6)(58, "b"); 4414 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](59, "Cl\u00EDnica"); 4415 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); 4416 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](60, "p"); 4417 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](61, "Avenida da Boavista 1003 4100-128 Porto"); 4418 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 4419 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](62, "p", 6)(63, "b"); 4420 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](64, "Parque Privativo"); 4421 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); 4422 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](65, "p"); 4423 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](66, "Rua Guerra Junqueiro, N\u00BA640"); 4424 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()(); 4425 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](67, "app-contact-container"); 4426 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 4427 } 4428 }, 4429 styles: [".contacts-container[_ngcontent-%COMP%] {\n margin-left: 4%;\n margin-right: 4%;\n}\n.contacts-container[_ngcontent-%COMP%] .ob-title[_ngcontent-%COMP%] {\n margin-top: 40px;\n margin-bottom: 24px;\n}\n.contacts-container[_ngcontent-%COMP%] #map[_ngcontent-%COMP%] {\n width: 100%;\n height: 250px;\n margin-bottom: 43px;\n}\n.contacts-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] {\n font-size: 20px;\n font-weight: bold;\n}\n.contacts-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n font-size: 14px;\n}\n.contacts-container[_ngcontent-%COMP%] .small-text[_ngcontent-%COMP%] {\n font-size: 9px;\n}\n@media only screen and (max-width: 992px) {\n #map[_ngcontent-%COMP%] {\n height: 90vw;\n margin-top: 20px;\n }\n .contacts-container[_ngcontent-%COMP%] {\n text-align: center;\n }\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvbnRhY3RzLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0MsZUFBQTtFQUNBLGdCQUFBO0FBQ0Q7QUFDQztFQUNDLGdCQUFBO0VBQ0EsbUJBQUE7QUFDRjtBQUVDO0VBQ0MsV0FBQTtFQUNBLGFBQUE7RUFDQSxtQkFBQTtBQUFGO0FBR0M7RUFDQyxlQUFBO0VBQ0EsaUJBQUE7QUFERjtBQUlDO0VBQ0MsZUFBQTtBQUZGO0FBS0M7RUFDQyxjQUFBO0FBSEY7QUFPQTtFQUNDO0lBQ0MsWUFBQTtJQUNBLGdCQUFBO0VBSkE7RUFPRDtJQUNDLGtCQUFBO0VBTEE7QUFDRiIsImZpbGUiOiJjb250YWN0cy5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5jb250YWN0cy1jb250YWluZXIge1xuXHRtYXJnaW4tbGVmdDogNCU7XG5cdG1hcmdpbi1yaWdodDogNCU7XG5cblx0Lm9iLXRpdGxlIHtcblx0XHRtYXJnaW4tdG9wOiA0MHB4O1xuXHRcdG1hcmdpbi1ib3R0b206IDI0cHg7XG5cdH1cblxuXHQjbWFwIHtcblx0XHR3aWR0aDogMTAwJTtcblx0XHRoZWlnaHQ6IDI1MHB4O1xuXHRcdG1hcmdpbi1ib3R0b206IDQzcHg7XG5cdH1cblxuXHRoMyB7XG5cdFx0Zm9udC1zaXplOiAyMHB4O1xuXHRcdGZvbnQtd2VpZ2h0OiBib2xkO1xuXHR9XG5cblx0cCB7XG5cdFx0Zm9udC1zaXplOiAxNHB4O1xuXHR9XG5cblx0LnNtYWxsLXRleHQge1xuXHRcdGZvbnQtc2l6ZTogOXB4O1xuXHR9XG59XG5cbkBtZWRpYSBvbmx5IHNjcmVlbiBhbmQgKG1heC13aWR0aDogOTkycHgpIHtcblx0I21hcCB7XG5cdFx0aGVpZ2h0OiA5MHZ3O1xuXHRcdG1hcmdpbi10b3A6IDIwcHg7XG5cdH1cblxuXHQuY29udGFjdHMtY29udGFpbmVyIHtcblx0XHR0ZXh0LWFsaWduOiBjZW50ZXI7XG5cdH1cbn1cbiJdfQ== */"] 4430}); 4431 4432/***/ }), 4433 4434/***/ 3330: 4435/*!****************************************************!*\ 4436 !*** ./src/app/pages/coupons/coupons.component.ts ***! 4437 \****************************************************/ 4438/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 4439 4440__webpack_require__.r(__webpack_exports__); 4441/* harmony export */ __webpack_require__.d(__webpack_exports__, { 4442/* harmony export */ "CouponsComponent": () => (/* binding */ CouponsComponent) 4443/* harmony export */ }); 4444/* harmony import */ var _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pages/basic/basic.component */ 9689); 4445/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 2560); 4446/* harmony import */ var _services_services_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @services/services.service */ 6325); 4447 4448 4449 4450function CouponsComponent_p_9_Template(rf, ctx) { if (rf & 1) { 4451 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "p"); 4452 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, "N\u00E3o tem nenhum cup\u00E3o"); 4453 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 4454} } 4455function CouponsComponent_div_10_hr_16_Template(rf, ctx) { if (rf & 1) { 4456 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "hr"); 4457} } 4458function CouponsComponent_div_10_Template(rf, ctx) { if (rf & 1) { 4459 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 9)(1, "div", 10)(2, "div", 11)(3, "div", 12); 4460 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](4, "img", 13); 4461 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 4462 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 12)(6, "h3", 14); 4463 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](7); 4464 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 4465 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "p", 14); 4466 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](9); 4467 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 4468 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "p", 14); 4469 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](11); 4470 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 4471 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "p", 14); 4472 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](13); 4473 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 4474 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](14, "p", 14); 4475 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](15); 4476 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()(); 4477 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](16,
4477CouponsComponent_div_10_hr_16_Template, 1, 0, "hr", 7); 4478 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 4479} if (rf & 2) { 4480 const coupon_r2 = ctx.$implicit; 4481 const i_r3 = ctx.index; 4482 const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); 4483 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4); 4484 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("src", coupon_r2.image, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]); 4485 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3); 4486 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("Cup\u00E3o #", coupon_r2.number, ""); 4487 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); 4488 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](coupon_r2.description); 4489 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); 4490 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate2"]("Valor: ", coupon_r2.amount, "", coupon_r2.amount_type, ""); 4491 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); 4492 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate2"]("Min: ", coupon_r2.min, "\u20AC Max: ", coupon_r2.max, ""); 4493 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); 4494 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("Expira em: ", coupon_r2.expires_at, ""); 4495 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); 4496 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", i_r3 != ctx_r1.coupons.length - 1); 4497} } 4498class CouponsComponent extends _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_0__.BasicComponent { 4499 constructor(userService) { 4500 super(); 4501 this.userService = userService; 4502 this.coupons = []; 4503 this.user = this.storageService.get('user'); 4504 if (!this.user) { 4505 this.navigateHome(); 4506 } 4507 } 4508 ngOnInit() { 4509 this.loadLoyaltyCard(); 4510 } 4511 loadLoyaltyCard() { 4512 this.userService.loyaltycards().subscribe((resp) => { 4513 if (resp.status == 'OK') { 4514 this.loyaltyCard = resp.data; 4515 if (this.loyaltyCard.length > 0) { 4516 this.loadCoupons(this.loyaltyCard[0].id); 4517 } 4518 } 4519 }); 4520 } 4521 loadCoupons(id) { 4522 this.userService.viewcard(id).subscribe((resp) => { 4523 if (resp.status == 'OK') { 4524 this.coupons = resp.data; 4525 } 4526 }); 4527 } 4528} 4529CouponsComponent.ɵfac = function CouponsComponent_Factory(t) { return new (t || CouponsComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_services_services_service__WEBPACK_IMPORTED_MODULE_1__.UserService)); }; 4530CouponsComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({ type: CouponsComponent, selectors: [["app-coupons"]], features: [_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵInheritDefinitionFeature"]], decls: 11, vars: 2, consts: [[1, "container", "mt-5"], [1, "row", "mb-5"], [1, "col-12", "col-md-4", "my-2"], [1, "content-menu"], [1, "col-12", "col-md-8", "my-2"], [1, "content-coupon"], [1, "text-start", "mt-5", "mb-2"], [4, "ngIf"], ["class", "content-order row align-items-center", 4, "ngFor", "ngForOf"], [1, "content-order", "row", "align-items-center"], [1, "col-12"], [1, "row", "align-items-center"], [1, "col-12", "col-md-6", "my-2"], ["alt", "", 1, "img", "center", 3, "src"], [1, "text-start"]], template: function CouponsComponent_Template(rf, ctx) { if (rf & 1) { 4531 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "div", 3); 4532 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](4, "app-menu-profile"); 4533 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); 4534 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 4)(6, "div", 5)(7, "h2", 6); 4535 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, "Cup\u00F5es"); 4536 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 4537 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](9, CouponsComponent_p_9_Template, 2, 0, "p", 7); 4538 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](10, CouponsComponent_div_10_Template, 17, 9, "div", 8); 4539 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()(); 4540 } if (rf & 2) { 4541 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](9); 4542 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.coupons.length == 0); 4543 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); 4544 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx.coupons); 4545 } }, styles: [".content-coupon[_ngcontent-%COMP%], .content-menu[_ngcontent-%COMP%] {\n background-color: var(--light);\n border-radius: 4px;\n padding: 20px;\n}\n\n.content-coupon[_ngcontent-%COMP%] {\n padding: 5%;\n}\n\nh2[_ngcontent-%COMP%] {\n font-family: Ubuntu;\n font-weight: 700;\n font-size: 32px;\n line-height: 40px;\n}\n\np[_ngcontent-%COMP%] {\n font-weight: 400;\n font-size: 20px;\n line-height: 28px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvdXBvbnMuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0VBRUMsOEJBQUE7
4545RUFDQSxrQkFBQTtFQUNBLGFBQUE7QUFDRDs7QUFFQTtFQUNDLFdBQUE7QUFDRDs7QUFFQTtFQUNDLG1CQUFBO0VBQ0EsZ0JBQUE7RUFDQSxlQUFBO0VBQ0EsaUJBQUE7QUFDRDs7QUFFQTtFQUNDLGdCQUFBO0VBQ0EsZUFBQTtFQUNBLGlCQUFBO0FBQ0QiLCJmaWxlIjoiY291cG9ucy5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5jb250ZW50LWNvdXBvbixcbi5jb250ZW50LW1lbnUge1xuXHRiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1saWdodCk7XG5cdGJvcmRlci1yYWRpdXM6IDRweDtcblx0cGFkZGluZzogMjBweDtcbn1cblxuLmNvbnRlbnQtY291cG9uIHtcblx0cGFkZGluZzogNSU7XG59XG5cbmgyIHtcblx0Zm9udC1mYW1pbHk6IFVidW50dTtcblx0Zm9udC13ZWlnaHQ6IDcwMDtcblx0Zm9udC1zaXplOiAzMnB4O1xuXHRsaW5lLWhlaWdodDogNDBweDtcbn1cblxucCB7XG5cdGZvbnQtd2VpZ2h0OiA0MDA7XG5cdGZvbnQtc2l6ZTogMjBweDtcblx0bGluZS1oZWlnaHQ6IDI4cHg7XG59XG4iXX0= */"] }); 4546 4547 4548/***/ }), 4549 4550/***/ 9392: 4551/*!********************************************************!*\ 4552 !*** ./src/app/pages/edit-user/edit-user.component.ts ***! 4553 \********************************************************/ 4554/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 4555 4556__webpack_require__.r(__webpack_exports__); 4557/* harmony export */ __webpack_require__.d(__webpack_exports__, { 4558/* harmony export */ "EditUserComponent": () => (/* binding */ EditUserComponent) 4559/* harmony export */ }); 4560/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ 2508); 4561/* harmony import */ var _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pages/basic/basic.component */ 9689); 4562/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 2560); 4563/* harmony import */ var _services_user_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @services/user.service */ 3071); 4564 4565 4566 4567 4568 4569class EditUserComponent extends _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_0__.BasicComponent { 4570 constructor(formBuilder, userService) { 4571 super(); 4572 this.formBuilder = formBuilder; 4573 this.userService = userService; 4574 this.user = this.storageService.get('user'); 4575 if (!this.user) { 4576 this.navigateHome(); 4577 } 4578 this.userForm = this.formBuilder.group({ 4579 name: [this.user?.name, [_angular_forms__WEBPACK_IMPORTED_MODULE_2__.Validators.required]], 4580 email: [this.user?.email, [_angular_forms__WEBPACK_IMPORTED_MODULE_2__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_2__.Validators.email]], 4581 phone: [Number(this.user?.phone), [_angular_forms__WEBPACK_IMPORTED_MODULE_2__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_2__.Validators.minLength(9), _angular_forms__WEBPACK_IMPORTED_MODULE_2__.Validators.maxLength(0)]], 4582 nif: [Number(this.user?.nif), [_angular_forms__WEBPACK_IMPORTED_MODULE_2__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_2__.Validators.minLength(9), _angular_forms__WEBPACK_IMPORTED_MODULE_2__.Validators.maxLength(9)]] 4583 }); 4584 } 4585 ngOnInit() { } 4586 edit() { 4587 this.userService.edit(this.userForm.value).subscribe((resp) => { 4588 if (resp.status == 'OK') { 4589 this.user = resp.data; 4590 this.storageService.set('user', this.user); 4591 this.toastService.showSuccess('Editado com sucesso'); 4592 } 4593 else { 4594 this.toastService.showError('Erro ao editar'); 4595 } 4596 }); 4597 } 4598} 4599EditUserComponent.ɵfac = function EditUserComponent_Factory(t) { return new (t || EditUserComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_2__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_services_user_service__WEBPACK_IMPORTED_MODULE_1__.UserService)); }; 4600EditUserComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({ type: EditUserComponent, selectors: [["app-edit-user"]], features: [_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵInheritDefinitionFeature"]], decls: 29, vars: 2, consts: [[1, "ob-title"], [1, "profile-container"], [1, "row", "mb-5"], [1, "col-12", "col-md-4", "my-2"], [1, "col-12", "col-md-8", "my-2", "profile-content"], [1, "form", 3, "formGroup", "submit"], [1, "row"], [1, "col-12", "col-md-12", "col-lg-6", "mt-3"], [1, "label"], ["type", "text", "formControlName", "name"], ["type", "text", "formControlName", "email"], ["type", "number", "formControlName", "nif"], ["type", "number", "formControlName", "phone"], ["type", "submit", 1, "btn", "center", "btn-primary", "mt-3", 3, "disabled"]], template: function EditUserComponent_Template(rf, ctx) { if (rf & 1) { 4601 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "h2", 0); 4602 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1, "Alterar Dados Pessoais"); 4603 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); 4604 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](2, "div", 1)(3, "div", 2)(4, "div", 3); 4605 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](5, "app-menu-profile"); 4606 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); 4607 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](6, "div", 4)(7, "form", 5); 4608 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("submit", function EditUserComponent_Template_form_submit_7_listener() { return ctx.edit(); }); 4609 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](8, "h2"); 4610 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](9, "Dados Pessoais"); 4611 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); 4612 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](10, "div", 6)(11, "div", 7)(12, "p", 8); 4613 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](13, "Nome"); 4614 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); 4615 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](14, "input", 9); 4616 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); 4617 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](15, "div", 7)(16, "p", 8); 4618 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](17, "Email"); 4619 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); 4620 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](18, "input",
462010); 4621 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); 4622 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](19, "div", 7)(20, "p", 8); 4623 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](21, "Nif"); 4624 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); 4625 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](22, "input", 11); 4626 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); 4627 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](23, "div", 7)(24, "p", 8); 4628 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](25, "Telem\u00F3vel"); 4629 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); 4630 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](26, "input", 12); 4631 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()(); 4632 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](27, "button", 13); 4633 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](28, "Guardar"); 4634 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()(); 4635 } if (rf & 2) { 4636 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](7); 4637 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("formGroup", ctx.userForm); 4638 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](20); 4639 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("disabled", ctx.userForm.invali
4639d); 4640 } }, styles: [".ob-title[_ngcontent-%COMP%] {\n margin-top: 100px;\n margin-bottom: 30px;\n}\n\n.profile-container[_ngcontent-%COMP%] {\n box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);\n margin-bottom: 125px;\n background-color: var(--grey);\n padding: 50px;\n}\n\n.profile-container[_ngcontent-%COMP%] .profile-content[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] input[type=text][_ngcontent-%COMP%], .profile-container[_ngcontent-%COMP%] .profile-content[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] input[type=number][_ngcontent-%COMP%], .profile-container[_ngcontent-%COMP%] .profile-content[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] select[_ngcontent-%COMP%] {\n border: 1px solid var(--primary);\n}\n\n.profile-container[_ngcontent-%COMP%] .profile-content[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] {\n font-size: 27px;\n}\n\n.profile-container[_ngcontent-%COMP%] .profile-content[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n font-size: 16px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImVkaXQtdXNlci5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNDLGlCQUFBO0VBQ0EsbUJBQUE7QUFDRDs7QUFFQTtFQUNDLDBDQUFBO0VBQ0Esb0JBQUE7RUFDQSw2QkFBQTtFQUNBLGFBQUE7QUFDRDs7QUFHRzs7O0VBR0MsZ0NBQUE7QUFESjs7QUFJRztFQUNDLGVBQUE7QUFGSjs7QUFLRztFQUNDLGVBQUE7QUFISiIsImZpbGUiOiJlZGl0LXVzZXIuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIub2ItdGl0bGUge1xuXHRtYXJnaW4tdG9wOiAxMDBweDtcblx0bWFyZ2luLWJvdHRvbTogMzBweDtcbn1cblxuLnByb2ZpbGUtY29udGFpbmVyIHtcblx0Ym94LXNoYWRvdzogMHB4IDFweCAycHggcmdiYSgwLCAwLCAwLCAwLjIpO1xuXHRtYXJnaW4tYm90dG9tOiAxMjVweDtcblx0YmFja2dyb3VuZC1jb2xvcjogdmFyKC0tZ3JleSk7XG5cdHBhZGRpbmc6IDUwcHg7XG5cblx0LnByb2ZpbGUtY29udGVudCB7XG5cdFx0LmZvcm0ge1xuXHRcdFx0aW5wdXRbdHlwZT1cInRleHRcIl0sXG5cdFx0XHRpbnB1dFt0eXBlPVwibnVtYmVyXCJdLFxuXHRcdFx0c2VsZWN0IHtcblx0XHRcdFx0Ym9yZGVyOiAxcHggc29saWQgdmFyKC0tcHJpbWFyeSk7XG5cdFx0XHR9XG5cblx0XHRcdGgyIHtcblx0XHRcdFx0Zm9udC1zaXplOiAyN3B4O1xuXHRcdFx0fVxuXG5cdFx0XHRwIHtcblx0XHRcdFx0Zm9udC1zaXplOiAxNnB4O1xuXHRcdFx0fVxuXHRcdH1cblx0fVxufVxuIl19 */"] }); 4641 4642 4643/***/ }), 4644 4645/***/ 2438: 4646/*!************************************************!*\ 4647 !*** ./src/app/pages/event/event.component.ts ***! 4648 \************************************************/ 4649/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 4650 4651__webpack_require__.r(__webpack_exports__); 4652/* harmony export */ __webpack_require__.d(__webpack_exports__, { 4653/* harmony export */ "EventComponent": () => (/* binding */ EventComponent) 4654/* harmony export */ }); 4655/* harmony import */ var _home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 1670); 4656/* harmony import */ var _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @pages/basic/basic.component */ 9689); 4657/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 2560); 4658/* harmony import */ var _services_news_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @services/news.service */ 1857); 4659/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/router */ 124); 4660/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common */ 4666); 4661/* harmony import */ var ngx_slick_carousel__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ngx-slick-carousel */ 5939); 4662 4663 4664 4665 4666 4667 4668 4669const _c0 = ["slick-carousel"]; 4670 4671function EventComponent_div_7_Template(rf, ctx) { 4672 if (rf & 1) { 4673 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 7)(1, "a", 8); 4674 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](2, "img", 9); 4675 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](3, "div", 10)(4, "h5", 11); 4676 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](5); 4677 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); 4678 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](6, "p"); 4679 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](7); 4680 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()(); 4681 } 4682 4683 if (rf & 2) { 4684 const n_r2 = ctx.$implicit; 4685 const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](); 4686 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1); 4687 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("href", ctx_r1.getPathTitleAsString("/novidade", n_r2), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵsanitizeUrl"]); 4688 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1); 4689 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("src", n_r2.image_path, _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵsanitizeUrl"]); 4690 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3); 4691 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](n_r2.title); 4692 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2); 4693 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](n_r2.subtitle); 4694 } 4695} 4696 4697class EventComponent extends _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_1__.BasicComponent { 4698 constructor(newsService, activatedRoute) { 4699 super(); 4700 this.newsService = newsService; 4701 this.activatedRoute = activatedRoute; 4702 this.news = []; 4703 this.slideConfig = { 4704 autoplay: true, 4705 infinite: true, 4706 speed: 500, 4707 slidesToShow: 3, 4708 centerMode: false, 4709 variableWidth: false, 4710 dots: true, 4711 arrows: true, 4712 responsive: [{ 4713 breakpoint: 1024, 4714 settings: { 4715 slidesToShow: 2 4716 } 4717 }, { 4718 breakpoint: 775, 4719 settings: { 4720 slidesToShow: 1 4721 } 4722 }] 4723 }; 4724 } 4725 4726 ngOnInit() { 4727 var _this = this; 4728 4729 this.activatedRoute.params.subscribe( /*#__PURE__*/function () { 4730 var _ref = (0,_home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (params) { 4731 _this.load(params.id); 4732 }); 4733 4734 return function (_x) { 4735 return _ref.apply(this, arguments); 4736 }; 4737 }()); 4738 } 4739 4740 load(id) { 4741 this.newsService.one(id).subscribe(resp => { 4742 if (resp.status == 'OK') { 4743 this.event = resp.data; 4744 this.loadNews(); 4745 } 4746 }); 4747 } 4748 4749 loadNews() { 4750 this.newsService.all().subscribe(resp => { 4751 if (resp.status == 'OK') { 4752 this.news = resp.data.filter(n => n.id != this.event.id); 4753 } 4754 }); 4755 } 4756 4757 next() { 4758 this.slickModal.slickNext(); 4759 } 4760 4761 prev() { 4762 this.slickModal.slickPrev(); 4763 } 4764 4765} 4766 4767EventComponent.ɵfac = function EventComponent_Factory(t) { 4768 return new (t || EventComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_services_news_service__WEBPACK_IMPORTED_MODULE_2__.NewsService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_4__.ActivatedRoute)); 4769}; 4770 4771EventComponent.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({
4772 type: EventComponent, 4773 selectors: [["app-event"]], 4774 viewQuery: function EventComponent_Query(rf, ctx) { 4775 if (rf & 1) { 4776 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵviewQuery"](_c0, 5); 4777 } 4778 4779 if (rf & 2) { 4780 let _t; 4781 4782 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵloadQuery"]()) && (ctx.slickModal = _t.first); 4783 } 4784 }, 4785 features: [_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵInheritDefinitionFeature"]], 4786 decls: 8, 4787 vars: 5, 4788 consts: [[1, "event-container"], [1, "img-event", "mt-3", 3, "src"], [1, "ob-title"], [1, "text-justify", "event-description", 3, "innerHtml"], [1, "carousel", 3, "config"], ["slickModal", "slick-carousel"], ["ngxSlickItem", "", "class", "slide", 4, "ngFor", "ngForOf"], ["ngxSlickItem", "", 1, "slide"], [1, "card", 3, "href"], [1, "card-img-top", 3, "src"], [1, "card-body"], [1, "card-title"]], 4789 template: function EventComponent_Template(rf, ctx) { 4790 if (rf & 1) { 4791 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 0); 4792 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "img", 1); 4793 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](2, "h2", 2); 4794 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](3); 4795 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); 4796 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](4, "div", 3); 4797 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](5, "ngx-slick-carousel", 4, 5); 4798 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](7, EventComponent_div_7_Template, 8, 4, "div", 6); 4799 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()(); 4800 } 4801 4802 if (rf & 2) { 4803 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1); 4804 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("src", ctx.event == null ? null : ctx.event.image_path, _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵsanitizeUrl"]); 4805 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2); 4806 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx.event == null ? null : ctx.event.title); 4807 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1); 4808 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("innerHtml", ctx.event == null ? null : ctx.event.content, _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵsanitizeHtml"]); 4809 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1); 4810 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("config", ctx.slideConfig); 4811 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2); 4812 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngForOf", ctx.news); 4813 } 4814 }, 4815 dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_5__.NgForOf, ngx_slick_carousel__WEBPACK_IMPORTED_MODULE_6__.SlickCarouselComponent, ngx_slick_carousel__WEBPACK_IMPORTED_MODULE_6__.SlickItemDirective], 4816 styles: [".event-container[_ngcontent-%COMP%] {\n margin-left: 5%;\n margin-right: 5%;\n}\n.event-container[_ngcontent-%COMP%] .img-event[_ngcontent-%COMP%] {\n width: 100%;\n height: auto;\n}\n.event-container[_ngcontent-%COMP%] .ob-title[_ngcontent-%COMP%] {\n margin-top: 48px;\n margin-bottom: 40px;\n}\n.event-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] {\n border-radius: 0px;\n margin: 12px;\n height: 280px;\n box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1);\n text-decoration: none;\n}\n.event-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] img[_ngcontent-%COMP%] {\n border-radius: 0px;\n height: 185px;\n}\n.event-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] h5[_ngcontent-%COMP%] {\n font-size: 20px;\n line-height: 32px;\n}\n.event-container[_ngcontent-%COMP%] .event-description[_ngcontent-%COMP%] {\n margin-bottom: 47px;\n}\n.event-container[_ngcontent-%COMP%] .slick-next[_ngcontent-%COMP%], .event-container[_ngcontent-%COMP%] .slick-prev[_ngcontent-%COMP%] {\n height: 45px;\n width: 40px;\n background: grey !important;\n z-index: 100;\n}
4816\n.event-container[_ngcontent-%COMP%] .carousel[_ngcontent-%COMP%] {\n margin-bottom: 115px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImV2ZW50LmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0MsZUFBQTtFQUNBLGdCQUFBO0FBQ0Q7QUFDQztFQUNDLFdBQUE7RUFDQSxZQUFBO0FBQ0Y7QUFFQztFQUNDLGdCQUFBO0VBQ0EsbUJBQUE7QUFBRjtBQUdDO0VBQ0Msa0JBQUE7RUFDQSxZQUFBO0VBQ0EsYUFBQTtFQUNBLDBDQUFBO0VBQ0EscUJBQUE7QUFERjtBQUdFO0VBQ0Msa0JBQUE7RUFDQSxhQUFBO0FBREg7QUFJRTtFQUNDLGVBQUE7RUFDQSxpQkFBQTtBQUZIO0FBTUM7RUFDQyxtQkFBQTtBQUpGO0FBT0M7O0VBRUMsWUFBQTtFQUNBLFdBQUE7RUFDQSwyQkFBQTtFQUNBLFlBQUE7QUFMRjtBQVFDO0VBQ0Msb0JBQUE7QUFORiIsImZpbGUiOiJldmVudC5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5ldmVudC1jb250YWluZXIge1xuXHRtYXJnaW4tbGVmdDogNSU7XG5cdG1hcmdpbi1yaWdodDogNSU7XG5cblx0LmltZy1ldmVudCB7XG5cdFx0d2lkdGg6IDEwMCU7XG5cdFx0aGVpZ2h0OiBhdXRvO1xuXHR9XG5cblx0Lm9iLXRpdGxlIHtcblx0XHRtYXJnaW4tdG9wOiA0OHB4O1xuXHRcdG1hcmdpbi1ib3R0b206IDQwcHg7XG5cdH1cblxuXHQuY2FyZCB7XG5cdFx0Ym9yZGVyLXJhZGl1czogMHB4O1xuXHRcdG1hcmdpbjogMTJweDtcblx0XHRoZWlnaHQ6IDI4MHB4O1xuXHRcdGJveC1zaGFkb3c6IDBweCAxcHggMnB4IHJnYmEoMCwgMCwgMCwgMC4xKTtcblx0XHR0ZXh0LWRlY29yYXRpb246IG5vbmU7XG5cblx0XHRpbWcge1xuXHRcdFx0Ym9yZGVyLXJhZGl1czogMHB4O1xuXHRcdFx0aGVpZ2h0OiAxODVweDtcblx0XHR9XG5cblx0XHRoNSB7XG5cdFx0XHRmb250LXNpemU6IDIwcHg7XG5cdFx0XHRsaW5lLWhlaWdodDogMzJweDtcblx0XHR9XG5cdH1cblxuXHQuZXZlbnQtZGVzY3JpcHRpb24ge1xuXHRcdG1hcmdpbi1ib3R0b206IDQ3cHg7XG5cdH1cblxuXHQuc2xpY2stbmV4dCxcblx0LnNsaWNrLXByZXYge1xuXHRcdGhlaWdodDogNDVweDtcblx0XHR3aWR0aDogNDBweDtcblx0XHRiYWNrZ3JvdW5kOiBncmV5ICFpbXBvcnRhbnQ7XG5cdFx0ei1pbmRleDogMTAwO1xuXHR9XG5cblx0LmNhcm91c2VsIHtcblx0XHRtYXJnaW4tYm90dG9tOiAxMTVweDtcblx0fVxufVxuIl19 */"] 4817}); 4818 4819/***/ }), 4820 4821/***/ 7210: 4822/*!**************************************************!*\ 4823 !*** ./src/app/pages/family/family.component.ts ***! 4824 \**************************************************/ 4825/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 4826 4827__webpack_require__.r(__webpack_exports__); 4828/* harmony export */ __webpack_require__.d(__webpack_exports__, { 4829/* harmony export */ "FamilyComponent": () => (/* binding */ FamilyComponent) 4830/* harmony export */ }); 4831/* harmony import */ var _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pages/basic/basic.component */ 9689); 4832/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/forms */ 2508); 4833/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 2560); 4834/* harmony import */ var _services_services_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @services/services.service */ 6325); 4835 4836 4837 4838 4839 4840function FamilyComponent_div_7_button_3_Template(rf, ctx) { if (rf & 1) { 4841 const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"](); 4842 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "button", 9); 4843 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function FamilyComponent_div_7_button_3_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r8); const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r7.showUpdate()); }); 4844 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, "Criar"); 4845 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 4846} } 4847function FamilyComponent_div_7_button_4_Template(rf, ctx) { if (rf & 1) { 4848 const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"](); 4849 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "button", 10); 4850 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function FamilyComponent_div_7_button_4_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r10); const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetVie
4850w"](ctx_r9.showJoin()); }); 4851 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, "Juntar"); 4852 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 4853} } 4854function FamilyComponent_div_7_Template(rf, ctx) { if (rf & 1) { 4855 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div")(1, "p"); 4856 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "N\u00E3o tem nenhuma fam\u00EDlia registada"); 4857 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 4858 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](3, FamilyComponent_div_7_button_3_Template, 2, 0, "button", 7); 4859 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, FamilyComponent_div_7_button_4_Template, 2, 0, "button", 8); 4860 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 4861} if (rf & 2) { 4862 const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); 4863 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3); 4864 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx_r0.isUpdate); 4865 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); 4866 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx_r0.isJoin); 4867} } 4868function FamilyComponent_div_8_button_22_Template(rf, ctx) { if (rf & 1) { 4869 const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"](); 4870 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "button", 18); 4871 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function FamilyComponent_div_8_button_22_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r14); const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r13.showUpdate()); }); 4872 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, "Editar"); 4873 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 4874} } 4875function FamilyComponent_div_8_button_23_Template(rf, ctx) { if (rf & 1) { 4876 const _r16 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"](); 4877 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "button", 19); 4878 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function FamilyComponent_div_8_button_23_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r16); const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r15.leave()); }); 4879 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, "Sair"); 4880 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 4881} } 4882function FamilyComponent_div_8_Template(rf, ctx) { if (rf & 1) { 4883 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div")(1, "h4"); 4884 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Dados da Fam\u00EDlia"); 4885 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 4886 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 11)(4, "div", 12)(5, "p")(6, "b"); 4887 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](7, "Nome:"); 4888 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 4889 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8); 4890 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](9, "br"); 4891 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "b"); 4892 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](11, "C\u00F3digo:"); 4893 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 4894 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](12); 4895 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](13, "br"); 4896 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](14, "b"); 4897 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](15, "Respons\u00E1vel:"); 4898 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 4899 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](16); 4900 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](17, "br"); 4901 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "b"); 4902 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](19, "Saldo:"); 4903 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 4904 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](20); 4905 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](21, "formatMoney"); 4906 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 4907 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](22, FamilyComponent_div_8_button_22_Template, 2, 0, "button", 13); 4908 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](23, FamilyComponent_div_8_button_23_Template, 2, 0, "button", 14); 4909 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 4910 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](24, "div", 15); 4911 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](25, "qrcode", 16); 4912 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](26, "p", 17); 4913 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](27, "Ler QR para se juntar \u00E0 fam\u00EDlia"); 4914 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 4915 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](28, "span"); 4916 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](29, "(Tamb\u00E9m podem faze-lo usando o c\u00F3digo)"); 4917 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()(); 4918} if (rf & 2) { 4919 const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); 4920 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8); 4921 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r1.family.name, " "); 4922 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4); 4923 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r1.family.code, " "); 4924 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4); 4925 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r1.owner.name, " "); 4926 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4); 4927 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](21, 8, ctx_r1.family.value), " "); 4928 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); 4929 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx_r1.isUpdate && ctx_r1.family.owner); 4930 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); 4931 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx_r1.isUpdate); 4932 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); 4933 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("qrdata", ctx_r1.family.code)("errorCorrectionLevel", "M"); 4934} } 4935function FamilyComponent_div_9_h4_2_Template(rf, ctx) { if (rf & 1) { 4936 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "h4"); 4937 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, "Alterar Fam\u00EDlia"); 4938 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 4939} } 4940function FamilyComponent_div_9_h4_3_Template(rf, ctx) { if (rf & 1) { 4941 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "h4"); 4942 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, "Criar Fam\u00EDlia"); 4943 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 4944} } 4945function FamilyComponent_div_9_Template(rf, ctx) { if (rf & 1) { 4946 const _r20 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"](); 4947 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 20)(1, "form", 21); 4948 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("submit", function FamilyComponent_div_9_Template_form_submit_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r20); const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetVie
4948w"](ctx_r19.family ? ctx_r19.update() : ctx_r19.create()); }); 4949 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](2, FamilyComponent_div_9_h4_2_Template, 2, 0, "h4", 5); 4950 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](3, FamilyComponent_div_9_h4_3_Template, 2, 0, "h4", 5); 4951 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 11)(5, "div", 22)(6, "p", 23); 4952 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](7, "Nome"); 4953 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 4954 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](8, "input", 24); 4955 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); 4956 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "button", 25); 4957 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function FamilyComponent_div_9_Template_button_click_9_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r20); const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r21.showUpdate()); }); 4958 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](10, "Cancelar"); 4959 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 4960 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "button", 26); 4961 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](12, "Guardar"); 4962 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()(); 4963} if (rf & 2) { 4964 const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); 4965 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); 4966 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r2.familyForm); 4967 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); 4968 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r2.family); 4969 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); 4970 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx_r2.family); 4971 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8); 4972 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", ctx_r2.familyForm.invalid); 4973} } 4974function FamilyComponent_div_10_Template(rf, ctx) { if (rf & 1) { 4975 const _r23 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"](); 4976 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 20)(1, "form", 21); 4977 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("submit", function FamilyComponent_div_10_Template_form_submit_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r23); const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r22.join()); }); 4978 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "h4"); 4979 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, "Juntar a uma Fam\u00EDlia"); 4980 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 4981 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 11)(5, "div", 22)(6, "p", 23); 4982 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](7, "C\u00F3digo"); 4983 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 4984 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](8, "input", 27); 4985 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); 4986 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "button", 25); 4987 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function FamilyComponent_div_10_Template_button_click_9_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r23); const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r24.showJoin()); }); 4988 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](10, "Cancelar"); 4989 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 4990 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "button", 26); 4991 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](12, "Guardar"); 4992 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()(); 4993} if (rf & 2) { 4994 const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); 4995 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); 4996 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r3.joinForm); 4997 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](10); 4998 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", ctx_r3.joinForm.invali
4998d); 4999} } 5000function FamilyComponent_div_11_tr_29_Template(rf, ctx) { if (rf & 1) { 5001 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr")(1, "td"); 5002 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2); 5003 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 5004 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "td"); 5005 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4); 5006 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 5007 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "td"); 5008 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6); 5009 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 5010 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "td"); 5011 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8); 5012 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](9, "formatMoney"); 5013 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 5014 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "td"); 5015 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](11); 5016 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](12, "formatMoney"); 5017 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 5018 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "td"); 5019 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](14); 5020 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](15, "formatMoney"); 5021 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 5022 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "td"); 5023 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](17); 5024 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); 5025} if (rf & 2) { 5026 const transaction_r26 = ctx.$implicit; 5027 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); 5028 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](transaction_r26.customer.name); 5029 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); 5030 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](transaction_r26.store); 5031 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); 5032 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](transaction_r26.transaction_doc_number); 5033 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); 5034 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](9, 7, transaction_r26.amount)); 5035 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3); 5036 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](12, 9, transaction_r26.total_cashback)); 5037 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3); 5038 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](15, 11, transaction_r26.balance)); 5039 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3); 5040 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](transaction_r26.date); 5041} } 5042function FamilyComponent_div_11_Template(rf, ctx) { if (rf & 1) { 5043 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div")(1, "h4", 20); 5044 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Movimentos"); 5045 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 5046 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 28)(4, "table", 29)(5, "thead")(6, "tr")(7, "th", 30)(8, "b"); 5047 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](9, "Membro"); 5048 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); 5049 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "th", 30)(11, "b"); 5050 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](12, "Loja"); 5051 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); 5052 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "th", 30)(14, "b"); 5053 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](15, "Movimento"); 5054 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); 5055 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "th", 30)(17, "b"); 5056 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](18, "Valor"); 5057 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); 5058 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "th", 30)(20, "b"); 5059 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](21, "Cashback"); 5060 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); 5061 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](22, "th", 30)(23, "b"); 5062 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](24, "Saldo"); 5063 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); 5064 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](25, "th", 30)(26, "b"); 5065 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](27, "Data "); 5066 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()(); 5067 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](28, "tbody"); 5068 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](29, FamilyComponent_div_11_tr_29_Template, 18, 13, "tr", 31); 5069 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()(); 5070} if (rf & 2) { 5071 const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); 5072 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](29); 5073 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r4.transactions); 5074} } 5075class FamilyComponent extends _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_0__.BasicComponent { 5076 constructor(formBuilder, familyService) { 5077 super(); 5078 this.formBuilder = formBuilder; 5079 this.familyService = familyService; 5080 this.transactions = []; 5081 this.isUpdate = false;
5082 this.isJoin = false; 5083 this.familyForm = this.formBuilder.group({ 5084 name: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_3__.Validators.required]] 5085 }); 5086 this.joinForm = this.formBuilder.group({ 5087 code: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_3__.Validators.required]] 5088 }); 5089 } 5090 ngOnInit() { 5091 this.load(); 5092 } 5093 load() { 5094 this.familyService.view().subscribe((resp) => { 5095 if (resp.status == 'OK') { 5096 this.family = resp.data; 5097 this.familyForm.controls['name'].setValue(this.family.name); 5098 this.owner = this.family.members.find((members) => members.owner === true); 5099 this.loadTransactions(); 5100 } 5101 }); 5102 } 5103 leave() { 5104 this.familyService.leave(this.family.id).subscribe((resp) => { 5105 if (resp.status == 'OK') { 5106 this.family = null; 5107 this.owner = null; 5108 } 5109 }); 5110 } 5111 showUpdate() { 5112 this.isUpdate = !this.isUpdate; 5113 } 5114 showJoin() { 5115 this.isJoin = !this.isJoin; 5116 } 5117 loadTransactions() { 5118 this.familyService.transactions().subscribe((resp) => { 5119 if (resp.status == 'OK') { 5120 this.transactions = resp.data; 5121 } 5122 }); 5123 } 5124 update() { 5125 this.familyService.update(this.familyForm.value).subscribe((resp) => { 5126 if (resp.status == 'OK') { 5127 this.showUpdate(); 5128 this.load(); 5129 } 5130 }); 5131 } 5132 create() { 5133 this.familyService.create(this.familyForm.value).subscribe((resp) => { 5134 if (resp.status == 'OK') { 5135 this.showUpdate(); 5136 this.load(); 5137 } 5138 }); 5139 } 5140 join() { 5141 this.familyService.join(this.joinForm.value).subscribe((resp) => { 5142 if (resp.status == 'OK') { 5143 this.showJoin(); 5144 this.load(); 5145 } 5146 }); 5147 } 5148} 5149FamilyComponent.ɵfac = function FamilyComponent_Factory(t) { return new (t || FamilyComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_3__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_services_services_service__WEBPACK_IMPORTED_MODULE_1__.FamilyService)); }; 5150FamilyComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({ type: FamilyComponent, selectors: [["app-family"]], features: [_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵInheritDefinitionFeature"]], decls: 12, vars: 5, consts: [[1, "ob-title"], [1, "profile-container"], [1, "row", "mb-5"], [1, "col-12", "col-md-4", "my-2"], [1, "col-12", "col-md-8", "my-2", "profile-content"], [4, "ngIf"], ["class", "mt-3", 4, "ngIf"], ["class", "btn btn-primary mt-3 me-1", 3, "click", 4, "ngIf"], ["class", "btn btn-primary-outline mt-3", 3, "click", 4, "ngIf"], [1, "btn", "btn-primary", "mt-3", "me-1", 3, "click"], [1, "btn", "btn-primary-outline", "mt-3", 3, "click"], [1, "row"], [1, "col-12", "col-md-6"], ["class", "btn btn-primary btn-block mt-3", 3, "click", 4, "ngIf"], ["class", "btn btn-primary-outline btn-block mt-3", 3, "click", 4, "ngIf"], [1, "col-12", "col-md-6", "text-center"], [3, "qrdata", "errorCorrectionLevel"], [1, "m-0"], [1, "btn", "btn-primary", "btn-block", "mt-3", 3, "click"], [1, "btn", "btn-primary-outline", "btn-block", "mt-3", 3, "click"], [1, "mt-3"], [1, "form", 3, "formGroup", "submit"], [1, "col-12", "col-md-12", "col-lg-6"], [1, "label"], ["type", "text", "formControlName", "name"], [1, "btn", "btn-primary-outline", "mt-3", "me-1", 3, "click"], ["type", "submit", 1, "btn", "btn-primary", "mt-3", 3, "disabled"], ["type", "text", "formControlName", "code"], [1, "table-responsive"], [1, "table", "table-striped"], ["scope", "col"], [4, "ngFor", "ngForOf"]], template: function FamilyComponent_Template(rf, ctx) { if (rf & 1) { 5151 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "h2", 0); 5152 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, "Fam\u00EDlia"); 5153 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 5154 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 1)(3, "div", 2)(4, "div", 3); 5155 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "app-menu-profile"); 5156 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 5157 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div", 4); 5158 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](7, FamilyComponent_div_7_Template, 5, 2, "div", 5); 5159 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](8, FamilyComponent_div_8_Template, 30, 10, "div", 5); 5160 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](9, FamilyComponent_div_9_Template, 13, 4, "div", 6); 5161 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](10, FamilyComponent_div_10_Template, 13, 2, "div", 6); 5162 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](11, FamilyComponent_div_11_Template, 30, 1, "div", 5); 5163 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()(); 5164 } if (rf & 2) { 5165 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7); 5166 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx.family); 5167 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); 5168 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.family && ctx.owner); 5169 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); 5170 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.isUpdate); 5171 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); 5172 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.isJoin); 5173 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); 5174 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.family && ctx.owner); 5175 } }, styles: [".ob-title[_ngcontent-%COMP%] {\n margin-top: 100px;\n margin-bottom: 30px;\n}\n\n.profile-container[_ngcontent-%COMP%] {\n box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);\n margin-bottom: 125px;\n background-color: var(--grey);\n padding: 50px;\n}\n\n.profile-container[_ngcontent-%COMP%] .profile-content[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] input[type=text][_ngcontent-%COMP%] {\n border: 1px solid var(--primary);\n}\n\n.profile-container[_ngcontent-%COMP%] .profile-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n font-size: 16px;\n}\n\n.profile-container[_ngcontent-%COMP%] .profile-content[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] {\n font-size: 27px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZhbWlseS5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNDLGlCQUFBO0VBQ0EsbUJBQUE7QUFDRDs7QUFFQTtFQUNDLDBDQUFBO0VBQ0Esb0JBQUE7RUFDQSw2QkFBQTtFQUNBLGFBQUE7QUFDRDs7QUFHRztFQUNDLGdDQUFBO0FBREo7O0FBS0U7RUFDQyxlQUFBO0FBSEg7O0FBTUU7RUFDQyxlQUFBO0FBSkgiLCJmaWxlIjoiZmFtaWx5LmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLm9iLXRpdGxlIHtcblx0bWFyZ2luLXRvcDogMTAwcHg7XG5cdG1hcmdpbi1ib3R0b206IDMwcHg7XG59XG5cbi5wcm9maWxlLWNvbnRhaW5lciB7XG5cdGJveC1zaGFkb3c6IDBweCAxcHggMnB4IHJnYmEoMCwgMCwgMCwgMC4yKTtcblx0bWFyZ2luLWJvdHRvbTogMTI1cHg7XG5cdGJhY2tncm91bmQtY29sb3I6IHZhcigtLWdyZXkpO1xuXHRwYWRkaW5nOiA1MHB4O1xuXG5cdC5wcm9maWxlLWNvbnRlbnQge1xuXHRcdC5mb3JtIHtcblx0XHRcdGlucHV0W3R5cGU9XCJ0ZXh0XCJdIHtcblx0XHRcdFx0Ym9yZGVyOiAxcHggc29saWQgdmFyKC0tcHJpbWFyeSk7XG5cdFx0XHR9XG5cdFx0fVxuXG5cdFx0cCB7XG5cdFx0XHRmb250LXNpemU6IDE2cHg7XG5cdFx0fVxuXG5cdFx0aDIge1xuXHRcdFx0Zm9udC1zaXplOiAyN3B4O1xuXHRcdH1cblx0fVxufVxuIl19 */"] }); 5176 5177 5178/***/ }), 5179 5180/***/ 3425: 5181/*!********************************************************!*\ 5182 !*** ./src/app/pages/favorites/favorites.component.ts ***! 5183 \********************************************************/ 5184/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 5185 5186__webpack_require__.r(__webpack_exports__); 5187/* harmony export */ __webpack_require__.d(__webpack_exports__, { 5188/* harmony export */ "FavoritesComponent": () => (/* binding */ FavoritesComponent) 5189/* harmony export */ }); 5190/* harmony import */ var _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pages/basic/basic.component */ 9689); 5191/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 2560); 5192/* harmony import */ var _services_services_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @services/services.service */ 6325); 5193 5194 5195 5196function FavoritesComponent_div_3_Template(rf, ctx) { if (rf & 1) { 5197 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 7)(1, "p", 8)(2, "small", 9); 5198 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, "Sem favoritos!"); 5199 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()(); 5200} } 5201function FavoritesComponent_div_8_Template(rf, ctx) { if (rf & 1) { 5202 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 10); 5203 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "app-product-view", 11); 5204 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 5205} if (rf & 2) { 5206 const product_r2 = ctx.$implicit; 5207 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); 5208 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("product", product_r2); 5209} } 5210class FavoritesComponent extends _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_0__.BasicComponent { 5211 constructor(userService) { 5212 super(); 5213 this.userService = userService; 5214 this.products = []; 5215 this.user = this.storageService.get('user'); 5216 if (!this.user) { 5217 this.navigateHome(); 5218 } 5219 } 5220 ngOnInit() { 5221 this.load(); 5222 } 5223 load() { 5224 this.userService.favorites().subscribe((resp) => { 5225 if (resp.status == 'OK') { 5226 this.products = resp.data; 5227 } 5228 }); 5229 } 5230} 5231FavoritesComponent.ɵfac = function FavoritesComponent_Factory(t) { return new (t || FavoritesComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_services_services_service__WEBPACK_IMPORTED_MODULE_1__.UserService)); }; 5232FavoritesComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({ type: FavoritesComponent, selectors: [["app-favorites"]], features: [_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵInheritDefinitionFeature"]], decls: 9, vars: 2,
5232consts: [[1, "ob-title"], [1, "fav-container"], ["class", "mt-4", 4, "ngIf"], [1, "product-container"], [1, "row"], [1, "col-12"], ["class", "col-12 col-sm-6 col-md-6 col-lg-3", 4, "ngFor", "ngForOf"], [1, "mt-4"], [1, "text-center"], [1, "text-muted"], [1, "col-12", "col-sm-6", "col-md-6", "col-lg-3"], [3, "product"]], template: function FavoritesComponent_Template(rf, ctx) { if (rf & 1) { 5233 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "h2", 0); 5234 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, "Favoritos"); 5235 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 5236 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 1); 5237 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](3, FavoritesComponent_div_3_Template, 4, 0, "div", 2); 5238 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 3)(5, "div", 4)(6, "div", 5)(7, "div", 4); 5239 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](8, FavoritesComponent_div_8_Template, 2, 1, "div", 6); 5240 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()()(); 5241 } if (rf & 2) { 5242 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3); 5243 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.products.length == 0); 5244 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5); 5245 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx.products); 5246 } }, styles: [".ob-title[_ngcontent-%COMP%] {\n margin-top: 100px;\n margin-bottom: 46px;\n}\n\n.fav-container[_ngcontent-%COMP%] {\n min-height: 50vh;\n margin-bottom: 128px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZhdm9yaXRlcy5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNDLGlCQUFBO0VBQ0EsbUJBQUE7QUFDRDs7QUFFQTtFQUNDLGdCQUFBO0VBQ0Esb0JBQUE7QUFDRCIsImZpbGUiOiJmYXZvcml0ZXMuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIub2ItdGl0bGUge1xuXHRtYXJnaW4tdG9wOiAxMDBweDtcblx0bWFyZ2luLWJvdHRvbTogNDZweDtcbn1cblxuLmZhdi1jb250YWluZXIge1xuXHRtaW4taGVpZ2h0OiA1MHZoO1xuXHRtYXJnaW4tYm90dG9tOiAxMjhweDtcbn1cbiJdfQ== */"] }); 5247 5248 5249/***/ }), 5250 5251/***/ 6665: 5252/*!**********************************************************!*\ 5253 !*** ./src/app/pages/highlights/highlights.component.ts ***! 5254 \**********************************************************/ 5255/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 5256 5257__webpack_require__.r(__webpack_exports__); 5258/* harmony export */ __webpack_require__.d(__webpack_exports__, { 5259/* harmony export */ "HighlightsComponent": () => (/* binding */ HighlightsComponent) 5260/* harmony export */ }); 5261/* harmony import */ var _home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 1670); 5262/* harmony import */ var _models_models_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @models/models.model */ 2541); 5263/* harmony import */ var _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @pages/basic/basic.component */ 9689); 5264/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/core */ 2560); 5265/* harmony import */ var _services_services_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @services/services.service */ 6325); 5266/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/router */ 124); 5267/* harmony import */ var _app_services_brand_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @app/services/brand.service */ 7744); 5268/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/common */ 4666); 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278function HighlightsComponent_div_0_Template(rf, ctx) { 5279 if (rf & 1) { 5280 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 3)(1, "p", 4); 5281 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnamespaceSVG"](); 5282 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](2, "svg", 5)(3, "path", 6); 5283 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](4, "animateTransform", 7); 5284 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()(); 5285 } 5286} 5287 5288function HighlightsComponent_div_1_Template(rf, ctx) { 5289 if (rf & 1) { 5290 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](0, "div", 8); 5291 } 5292 5293 if (rf & 2) { 5294 const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](); 5295 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵstyleProp"]("background-image", "url(" + ctx_r1.image + ")"); 5296 } 5297} 5298 5299function HighlightsComponent_div_2_div_19_div_1_p_5_Template(rf, ctx) { 5300 if (rf & 1) { 5301 const _r17 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"](); 5302 5303 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "p")(1, "input", 36); 5304 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("change", function HighlightsComponent_div_2_div_19_div_1_p_5_Template_input_change_1_listener($event) { 5305 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r17); 5306 const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](4); 5307 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetVie
5307w"](ctx_r16.categoryChange($event)); 5308 }); 5309 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 5310 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2); 5311 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 5312 } 5313 5314 if (rf & 2) { 5315 const category_r15 = ctx.$implicit; 5316 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 5317 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("checked", category_r15.checked)("id", "category-" + category_r15.id)("value", category_r15.id); 5318 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 5319 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", category_r15.name, ""); 5320 } 5321} 5322 5323function HighlightsComponent_div_2_div_19_div_1_Template(rf, ctx) { 5324 if (rf & 1) { 5325 const _r19 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"](); 5326 5327 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div")(1, "h3", 30); 5328 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function HighlightsComponent_div_2_div_19_div_1_Template_h3_click_1_listener() { 5329 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r19); 5330 5331 const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵreference"](4); 5332 5333 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](_r13.toggle()); 5334 }); 5335 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, "Categorias"); 5336 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 5337 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](3, "div", 31, 34); 5338 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("ngbCollapseChange", function HighlightsComponent_div_2_div_19_div_1_Template_div_ngbCollapseChange_3_listener($event) { 5339 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r19); 5340 const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3); 5341 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r20.isCollapsedCategories = $event); 5342 }); 5343 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](5, HighlightsComponent_div_2_div_19_div_1_p_5_Template, 3, 4, "p", 35); 5344 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()(); 5345 } 5346 5347 if (rf & 2) { 5348 const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3); 5349 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3); 5350 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngbCollapse", ctx_r8.isCollapsedCategories); 5351 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2); 5352 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", ctx_r8.categories); 5353 } 5354} 5355 5356function HighlightsComponent_div_2_div_19_div_2_p_5_Template(rf, ctx) { 5357 if (rf & 1) { 5358 const _r25 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"](); 5359 5360 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "p")(1, "input", 36); 5361 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("change", function HighlightsComponent_div_2_div_19_div_2_p_5_Template_input_change_1_listener($event) { 5362 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r25); 5363 const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](4); 5364 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r24.subcategoryChange($event)); 5365 }); 5366 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 5367 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2); 5368 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 5369 } 5370 5371 if (rf & 2) { 5372 const subcategory_r23 = ctx.$implicit; 5373 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 5374 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("checked", subcategory_r23.checked)("id", "subcategory-" + subcategory_r23.id)("value", subcategory_r23.id); 5375 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 5376 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", subcategory_r23.name, ""); 5377 } 5378} 5379 5380function HighlightsComponent_div_2_div_19_div_2_Template(rf, ctx) { 5381 if (rf & 1) { 5382 const _r27 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"](); 5383 5384 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div")(1, "h3", 30); 5385 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function HighlightsComponent_div_2_div_19_div_2_Template_h3_click_1_listener() { 5386 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r27); 5387 5388 const _r21 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵreference"](4); 5389 5390 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetVie
5390w"](_r21.toggle()); 5391 }); 5392 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, "G\u00E9nero"); 5393 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 5394 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](3, "div", 31, 37); 5395 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("ngbCollapseChange", function HighlightsComponent_div_2_div_19_div_2_Template_div_ngbCollapseChange_3_listener($event) { 5396 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r27); 5397 const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3); 5398 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r28.isCollapsedSubcategories = $event); 5399 }); 5400 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](5, HighlightsComponent_div_2_div_19_div_2_p_5_Template, 3, 4, "p", 35); 5401 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()(); 5402 } 5403 5404 if (rf & 2) { 5405 const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3); 5406 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3); 5407 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngbCollapse", ctx_r9.isCollapsedSubcategories); 5408 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2); 5409 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", ctx_r9.subcategories); 5410 } 5411} 5412 5413function HighlightsComponent_div_2_div_19_div_3_p_5_Template(rf, ctx) { 5414 if (rf & 1) { 5415 const _r35 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"](); 5416 5417 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "p", 41)(1, "input", 36); 5418 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("change", function HighlightsComponent_div_2_div_19_div_3_p_5_Template_input_change_1_listener($event) { 5419 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r35); 5420 const ctx_r34 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](4); 5421 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r34.brandChange($event)); 5422 }); 5423 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 5424 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2); 5425 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 5426 } 5427 5428 if (rf & 2) { 5429 const brand_r33 = ctx.$implicit; 5430 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngClass", brand_r33.show ? "brand-show" : "brand-hide"); 5431 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 5432 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("checked", brand_r33.checked)("id", "brand-" + brand_r33.id)("value", brand_r33.id); 5433 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 5434 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", brand_r33.name, ""); 5435 } 5436} 5437 5438function HighlightsComponent_div_2_div_19_div_3_p_6_Template(rf, ctx) { 5439 if (rf & 1) { 5440 const _r37 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"](); 5441 5442 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "p", 42); 5443 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function HighlightsComponent_div_2_div_19_div_3_p_6_Template_p_click_0_listener() { 5444 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r37); 5445 const ctx_r36 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](4); 5446 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r36.showBrands(true)); 5447 }); 5448 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, "Ver Mais "); 5449 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](2, "i", 43); 5450 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 5451 } 5452} 5453 5454function HighlightsComponent_div_2_div_19_div_3_p_7_Template(rf, ctx) { 5455 if (rf & 1) { 5456 const _r39 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"](); 5457 5458 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "p", 42); 5459 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function HighlightsComponent_div_2_div_19_div_3_p_7_Template_p_click_0_listener() { 5460 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r39); 5461 const ctx_r38 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](4); 5462 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetVie
5462w"](ctx_r38.showBrands(false)); 5463 }); 5464 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, "Ver Menos "); 5465 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](2, "i", 44); 5466 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 5467 } 5468} 5469 5470function HighlightsComponent_div_2_div_19_div_3_Template(rf, ctx) { 5471 if (rf & 1) { 5472 const _r41 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"](); 5473 5474 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div")(1, "h3", 30); 5475 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function HighlightsComponent_div_2_div_19_div_3_Template_h3_click_1_listener() { 5476 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r41); 5477 5478 const _r29 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵreference"](4); 5479 5480 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](_r29.toggle()); 5481 }); 5482 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, "Marcas"); 5483 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 5484 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](3, "div", 31, 38); 5485 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("ngbCollapseChange", function HighlightsComponent_div_2_div_19_div_3_Template_div_ngbCollapseChange_3_listener($event) { 5486 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r41); 5487 const ctx_r42 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3); 5488 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r42.isCollapsedBrands = $event); 5489 }); 5490 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](5, HighlightsComponent_div_2_div_19_div_3_p_5_Template, 3, 5, "p", 39); 5491 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](6, HighlightsComponent_div_2_div_19_div_3_p_6_Template, 3, 0, "p", 40); 5492 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](7, HighlightsComponent_div_2_div_19_div_3_p_7_Template, 3, 0, "p", 40); 5493 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()(); 5494 } 5495 5496 if (rf & 2) { 5497 const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3); 5498 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3); 5499 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngbCollapse", ctx_r10.isCollapsedBrands); 5500 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2); 5501 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", ctx_r10.brands); 5502 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 5503 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", !ctx_r10.showMoreBrands); 5504 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 5505 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r10.showMoreBrands); 5506 } 5507} 5508 5509function HighlightsComponent_div_2_div_19_p_9_Template(rf, ctx) { 5510 if (rf & 1) { 5511 const _r45 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"](); 5512 5513 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "p", 45)(1, "input", 46); 5514 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("change", function HighlightsComponent_div_2_div_19_p_9_Template_input_change_1_listener($event) { 5515 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r45); 5516 const ctx_r44 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3); 5517 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r44.priceChange($event)); 5518 }); 5519 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 5520 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2); 5521 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 5522 } 5523 5524 if (rf & 2) { 5525 const price_r43 = ctx.$implicit; 5526 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 5527 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("id", "price-" + price_r43.id)("value", price_r43.id); 5528 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 5529 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", price_r43.name, ""); 5530 } 5531} 5532 5533function HighlightsComponent_div_2_div_19_Template(rf, ctx) { 5534 if (rf & 1) { 5535 const _r47 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"](); 5536 5537 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 28); 5538 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](1, HighlightsComponent_div_2_div_19_div_1_Template, 6, 2, "div", 29); 5539 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](2, HighlightsComponent_div_2_div_19_div_2_Template, 6, 2, "div", 29); 5540 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](3, HighlightsComponent_div_2_div_19_div_3_Template, 8, 4, "div", 29); 5541 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](4, "div")(5, "h3", 30); 5542 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function HighlightsComponent_div_2_div_19_Template_h3_click_5_listener() { 5543 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r47); 5544 5545 const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵreference"](8); 5546 5547 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetVie
5547w"](_r11.toggle()); 5548 }); 5549 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](6, "Pre\u00E7os"); 5550 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 5551 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](7, "div", 31, 32); 5552 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("ngbCollapseChange", function HighlightsComponent_div_2_div_19_Template_div_ngbCollapseChange_7_listener($event) { 5553 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r47); 5554 const ctx_r48 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2); 5555 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r48.isCollapsedPrices = $event); 5556 }); 5557 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](9, HighlightsComponent_div_2_div_19_p_9_Template, 3, 3, "p", 33); 5558 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()(); 5559 } 5560 5561 if (rf & 2) { 5562 const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2); 5563 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 5564 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r3.categories.length); 5565 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 5566 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r3.subcategories.length); 5567 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 5568 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r3.brands.length); 5569 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4); 5570 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngbCollapse", ctx_r3.isCollapsedPrices); 5571 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2); 5572 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", ctx_r3.prices); 5573 } 5574} 5575 5576function HighlightsComponent_div_2_p_21_Template(rf, ctx) { 5577 if (rf & 1) { 5578 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "p", 4); 5579 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, "Sem produtos!"); 5580 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 5581 } 5582} 5583 5584function HighlightsComponent_div_2_div_22_div_1_Template(rf, ctx) { 5585 if (rf & 1) { 5586 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div"); 5587 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "app-product-view", 48); 5588 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 5589 } 5590 5591 if (rf & 2) { 5592 const product_r50 = ctx.$implicit; 5593 const ctx_r49 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3); 5594 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵclassMap"]("col-12 col-sm-6 col-md-6 col-lg-" + ctx_r49.col); 5595 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 5596 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("product", product_r50)("brand", ctx_r49.getBrandName(product_r50.brand_id)); 5597 } 5598} 5599 5600function HighlightsComponent_div_2_div_22_Template(rf, ctx) { 5601 if (rf & 1) { 5602 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 11); 5603 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](1, HighlightsComponent_div_2_div_22_div_1_Template, 2, 4, "div", 47); 5604 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 5605 } 5606 5607 if (rf & 2) { 5608 const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2); 5609 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 5610 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", ctx_r5.products); 5611 } 5612} 5613 5614function HighlightsComponent_div_2_div_23_Template(rf, ctx) { 5615 if (rf & 1) { 5616 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 11)(1, "p", 49); 5617 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnamespaceSVG"](); 5618 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](2, "svg", 5)(3, "path", 6); 5619 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](4, "animateTransform", 7); 5620 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()(); 5621 } 5622} 5623 5624function HighlightsComponent_div_2_button_24_Template(rf, ctx) { 5625 if (rf & 1) { 5626 const _r52 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"](); 5627 5628 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "button", 50); 5629 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function HighlightsComponent_div_2_button_24_Template_button_click_0_listener() { 5630 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r52); 5631 const ctx_r51 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2); 5632 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetVie
5632w"](ctx_r51.seeMore()); 5633 }); 5634 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, "Ver mais"); 5635 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 5636 } 5637} 5638 5639function HighlightsComponent_div_2_Template(rf, ctx) { 5640 if (rf & 1) { 5641 const _r54 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"](); 5642 5643 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 9)(1, "div", 10)(2, "div", 11)(3, "div", 12)(4, "div", 13)(5, "img", 14); 5644 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function HighlightsComponent_div_2_Template_img_click_5_listener() { 5645 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r54); 5646 const ctx_r53 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](); 5647 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r53.gridChange(3)); 5648 }); 5649 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 5650 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](6, "img", 15); 5651 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function HighlightsComponent_div_2_Template_img_click_6_listener() { 5652 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r54); 5653 const ctx_r55 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](); 5654 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r55.gridChange(6)); 5655 }); 5656 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()(); 5657 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](7, "select", 16); 5658 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("change", function HighlightsComponent_div_2_Template_select_change_7_listener($event) { 5659 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r54); 5660 const ctx_r56 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](); 5661 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r56.changeOrder($event)); 5662 }); 5663 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](8, "option", 17); 5664 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](9, "Ordenar por pre\u00E7o crescente"); 5665 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 5666 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](10, "option", 18); 5667 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](11, "Ordenar por pre\u00E7o decrescente"); 5668 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 5669 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](12, "option", 19); 5670 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](13, "Ordenar por A a Z"); 5671 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 5672 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](14, "option", 20); 5673 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](15, "Ordenar por Z a A"); 5674 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()(); 5675 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](16, "span", 21); 5676 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function HighlightsComponent_div_2_Template_span_click_16_listener() { 5677 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r54); 5678 const ctx_r57 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](); 5679 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r57.showFilters = !ctx_r57.showFilters); 5680 }); 5681 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](17, "i", 22); 5682 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](18, " Filtros "); 5683 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 5684 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](19, HighlightsComponent_div_2_div_19_Template, 10, 5, "div", 23); 5685 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 5686 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](20, "div", 24); 5687 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](21, HighlightsComponent_div_2_p_21_Template, 2, 0, "p", 25); 5688 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](22, HighlightsComponent_div_2_div_22_Template, 2, 1, "div", 26); 5689 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](23, HighlightsComponent_div_2_div_23_Template, 5, 0, "div", 26); 5690 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](24, HighlightsComponent_div_2_button_24_Template, 2, 0, "button", 27); 5691 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()(); 5692 } 5693 5694 if (rf & 2) { 5695 const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](); 5696 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](19); 5697 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r2.showFilters); 5698 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2); 5699 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", !ctx_r2.products.length && ctx_r2.verifyProducts); 5700 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 5701 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r2.products.length); 5702 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 5703 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r2.loading); 5704 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 5705 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r2.page >= 0 && ctx_r2.products.length && !ctx_r2.loading); 5706 } 5707} 5708 5709class HighlightsComponent extends _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_2__.BasicComponent { 5710 constructor(productService, activatedRoute, brandService, categoryService, location) { 5711 super(); 5712 this.productService = productService; 5713 this.activatedRoute = activatedRoute; 5714 this.brandService = brandService; 5715 this.categoryService = categoryService; 5716 this.location = location; 5717 this.page = 0; 5718 this.limit = 20; 5719 this.categoryId = null; 5720 this.collectionId = null; 5721 this.categories = []; 5722 this.subcategories = []; 5723 this.brands = []; 5724 this.prices = _models_models_model__WEBPACK_IMPORTED_MODULE_1__.PRICES; 5725 this.products = []; 5726 this.selectedSubcategories = []; 5727 this.selectedBrands = []; 5728 this.selectedPrices = []; 5729 this.title = 'Destaques'; 5730 this.col = 3; 5731 this.isCollapsedCategories = false;
5732 this.isCollapsedSubcategories = false; 5733 this.isCollapsedBrands = false; 5734 this.isCollapsedPrices = false; 5735 this.verifyProducts = false; 5736 this.loading = false; 5737 this.mainLoading = true; 5738 this.showFilters = false; 5739 this.order = 'order=price&sort=asc'; 5740 this.showMoreBrands = false; 5741 this.merchant = this.storageService.get('merchant'); 5742 5743 if (window.screen.width > 991) { 5744 this.showFilters = true; 5745 } 5746 } 5747 5748 ngOnInit() { 5749 var _this = this; 5750 5751 this.activatedRoute.params.subscribe( /*#__PURE__*/function () { 5752 var _ref = (0,_home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (params) { 5753 _this.image = _this.merchant.highlights_image; 5754 _this.categoryId = null; 5755 _this.selectedSubcategories = []; 5756 _this.selectedBrands = []; 5757 _this.selectedPrices = []; 5758 5759 if (params.category) { 5760 _this.categoryId = yield Number(params.category); 5761 } 5762 5763 if (params.subcategory) { 5764 _this.selectedSubcategories.push(Number(params.subcategory)); 5765 } 5766 5767 if (params.brand) { 5768 _this.selectedBrands.push(Number(params.brand)); 5769 } 5770 5771 if (params.collection) { 5772 _this.collectionId = yield params.collection; 5773 } 5774 5775 _this.activatedRoute.queryParams.subscribe( /*#__PURE__*/function () { 5776 var _ref2 = (0,_home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (params) { 5777 if (params.c) { 5778 _this.categoryId = Number(params.c); 5779 } 5780 5781 if (params.s) { 5782 _this.selectedSubcategories = []; 5783 let s = params.s.split(','); 5784 s.forEach(e => { 5785 _this.selectedSubcategories.push(Number(e)); 5786 }); 5787 } 5788 5789 if (params.b) { 5790 _this.selectedBrands = []; 5791 let b = params.b.split(','); 5792 b.forEach(e => { 5793 _this.selectedBrands.push(Number(e)); 5794 }); 5795 } 5796 }); 5797 5798 return function (_x2) { 5799 return _ref2.apply(this, arguments); 5800 }; 5801 }()); 5802 5803 _this.loadCategories(); 5804 5805 _this.loadSubcategories(); 5806 5807 _this.loadBrands(); 5808 5809 yield _this.loadProducts(); 5810 }); 5811 5812 return function (_x) { 5813 return _ref.apply(this, arguments); 5814 }; 5815 }()); 5816 } 5817 /** Loads **/ 5818 5819 5820 loadCategories() { 5821 var _this2 = this; 5822 5823 this.categoryService.all().subscribe( /*#__PURE__*/function () { 5824 var _ref3 = (0,_home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (resp) { 5825 if (resp.status == 'OK') { 5826 _this2.categories = resp.data; 5827 5828 _this2.categories.map(category => { 5829 category.checked = false; 5830 5831 if (category.id == _this2.categoryId) { 5832 category.checked = true; 5833 _this2.image = category.image; 5834 _this2.title = category.name; 5835 } 5836 }); 5837 } 5838 }); 5839 5840 return function (_x3) { 5841 return _ref3.apply(this, arguments); 5842 }; 5843 }()); 5844 } 5845 5846 loadSubcategories() { 5847 var _this3 = this; 5848 5849 this.categoryService.subcategories(this.categoryId).subscribe( /*#__PURE__*/function () { 5850 var _ref4 = (0,_home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (resp) { 5851 if (resp.status == 'OK') { 5852 _this3.subcategories = yield resp.data; 5853 5854 _this3.subcategories.map(subcategory => { 5855 subcategory.checked = _this3.selectedSubcategories.includes(subcategory.id); 5856 }); 5857 } 5858 }); 5859 5860 return function (_x4) { 5861 return _ref4.apply(this, arguments); 5862 }; 5863 }()); 5864 } 5865 5866 loadBrands() { 5867 var _this4 = this; 5868 5869 this.brandService.all(this.categoryId).subscribe( /*#__PURE__*/function () { 5870 var _ref5 = (0,_home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (resp) { 5871 if (resp.status == 'OK') { 5872 _this4.brands = yield resp.data; 5873 5874 _this4.brands.map((brand, index) => { 5875 brand.checked = false;
5876 5877 if (_this4.selectedBrands.includes(brand.id)) { 5878 brand.checked = true; 5879 brand.show = false; 5880 5881 if (index < 6) { 5882 brand.show = true; 5883 } 5884 5885 _this4.image = brand.image; 5886 _this4.title = brand.name; 5887 } 5888 }); 5889 } 5890 }); 5891 5892 return function (_x5) { 5893 return _ref5.apply(this, arguments); 5894 }; 5895 }()); 5896 } 5897 5898 loadProducts(clear = true) { 5899 var _this5 = this; 5900 5901 return (0,_home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () { 5902 _this5.loading = true; 5903 5904 if (_this5.page == 0) { 5905 _this5.products = []; 5906 } 5907 5908 if (clear) { 5909 _this5.products = []; 5910 _this5.verifyProducts = false; 5911 } 5912 5913 _this5.productService.filterHighlights(_this5.page, _this5.limit, _this5.categoryId, _this5.selectedSubcategories, _this5.selectedBrands, _this5.selectedPrices, _this5.collectionId, _this5.order).subscribe( /*#__PURE__*/function () { 5914 var _ref6 = (0,_home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (resp) { 5915 if (resp.status == 'OK') { 5916 if (_this5.page == 0) { 5917 _this5.products = yield resp.data; 5918 } else { 5919 _this5.products = _this5.products.concat(resp.data); 5920 } 5921 5922 if (resp.data.length == 0 || resp.data.length < _this5.limit) { 5923 _this5.page = -1; 5924 } 5925 5926 _this5.products.map(product => { 5927 product.image2 = product.images ? product.images[1] : ''; 5928 }); 5929 5930 if (!_this5.products.length) { 5931 _this5.verifyProducts = true; 5932 } 5933 } else { 5934 _this5.page = -1; 5935 } 5936 5937 _this5.loading = false; 5938 _this5.mainLoading = false; 5939 }); 5940 5941 return function (_x6) { 5942 return _ref6.apply(this, arguments); 5943 }; 5944 }()); 5945 })(); 5946 } 5947 5948 seeMore() { 5949 if (this.page >= 0) { 5950 this.page++; 5951 this.loadProducts(false).then(r => ''); 5952 } 5953 } 5954 /** Changes **/ 5955 5956 5957 gridChange(columns) { 5958 this.col = columns; 5959 } 5960 5961 categoryChange(event) { 5962 var _this6 = this; 5963 5964 return (0,_home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () { 5965 _this6.page = 0; 5966 _this6.categoryId = event.target.checked ? event.target.value : null; 5967 _this6.selectedSubcategories = []; 5968 5969 _this6.subcategories.map(subcategory => { 5970 subcategory.checked = false; 5971 }); 5972 5973 _this6.selectedBrands = []; 5974 5975 _this6.selectedBrands.map(brand => { 5976 brand.checked = false; 5977 }); 5978 5979 _this6.categories.map(category => { 5980 category.checked = false; 5981 5982 if (category.id == _this6.categoryId) { 5983 category.checked = true; 5984 _this6.title = category.name; 5985 } 5986 }); 5987 5988 let url = _this6.getBaseUrl(); 5989 5990 if (_this6.categoryId) { 5991 url += '?c=' + _this6.categoryId; 5992 } 5993 5994 _this6.updateUrl(url); 5995 5996 _this6.loadSubcategories(); 5997 5998 _this6.loadBrands(); 5999 6000 yield _this6.loadProducts(); 6001 })(); 6002 } 6003 6004 subcategoryChange(event) { 6005 var _this7 = this; 6006 6007 return (0,_home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () { 6008 _this7.page = 0; 6009 _this7.selectedBrands = []; 6010 6011 _this7.selectedBrands.map(brand => { 6012 brand.checked = false; 6013 }); 6014 6015 if (event.target.checked) { 6016 _this7.selectedSubcategories.push(Number(event.target.value)); 6017 } else { 6018 const index = _this7.selectedSubcategories.indexOf(Number(event.target.value), 0); 6019 6020 if (index > -1) { 6021 _this7.selectedSubcategories.splice(index, 1); 6022 } 6023 } 6024 6025 _this7.subcategories.map(subcategory => { 6026 subcategory.checked = _this7.selectedSubcategories.includes(Number(subcategory.id)); 6027 }); 6028 6029 let url = _this7.getBaseUrl(); 6030 6031 if (_this7.selectedSubcategories.length) {
6032 url += '?c=' + _this7.categoryId; 6033 url += '&s=' + _this7.selectedSubcategories.join(','); 6034 } else if (_this7.categoryId) { 6035 url += '?c=' + _this7.categoryId; 6036 } 6037 6038 _this7.updateUrl(url); 6039 6040 yield _this7.loadProducts(); 6041 })(); 6042 } 6043 6044 brandChange(event) { 6045 var _this8 = this; 6046 6047 return (0,_home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () { 6048 _this8.brands.forEach(brand => { 6049 if (brand.id == event.target.value) { 6050 window.location.href = _this8.getPathAsString('/marca', brand); 6051 } 6052 }); 6053 })(); 6054 } 6055 6056 priceChange(event) { 6057 var _this9 = this; 6058 6059 return (0,_home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () { 6060 if (event.target.checked) { 6061 _this9.selectedPrices.push(event.target.value); 6062 } else { 6063 const index = _this9.selectedPrices.indexOf(event.target.value, 0); 6064 6065 if (index > -1) { 6066 _this9.selectedPrices.splice(index, 1); 6067 } 6068 } 6069 6070 _this9.prices.map(price => { 6071 price.checked = _this9.selectedPrices.includes(price.id); 6072 }); 6073 6074 yield _this9.loadProducts(); 6075 })(); 6076 } 6077 6078 getBaseUrl() { 6079 return window.location.href.split('/').slice(3).join('/').split('?')[0]; 6080 } 6081 6082 updateUrl(url) { 6083 this.location.replaceState(url); 6084 } 6085 6086 getBrandName(brand_id) { 6087 let brand = this.brands.find(b => b.id == brand_id); 6088 return brand ? brand.name : ''; 6089 } 6090 6091 changeOrder(event) { 6092 this.order = event.target.value; 6093 this.loadProducts(); 6094 } 6095 6096 showBrands(value) { 6097 this.showMoreBrands = value; 6098 this.brands.map((brand, index) => { 6099 if (index >= 6) { 6100 brand.show = value; 6101 } 6102 }); 6103 } 6104 6105} 6106 6107HighlightsComponent.ɵfac = function HighlightsComponent_Factory(t) { 6108 return new (t || HighlightsComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_services_services_service__WEBPACK_IMPORTED_MODULE_3__.ProductService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_6__.ActivatedRoute), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_app_services_brand_service__WEBPACK_IMPORTED_MODULE_4__.BrandService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_services_services_service__WEBPACK_IMPORTED_MODULE_3__.CategoryService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_7__.Location)); 6109}; 6110 6111HighlightsComponent.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineComponent"]({ 6112 type: HighlightsComponent, 6113 selectors: [["app-highlights"]], 6114 features: [_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵInheritDefinitionFeature"]], 6115 decls: 3, 6116 vars: 3, 6117 consts: [["class", "row main-loading", 4, "ngIf"], ["class", "img-category mt-3", 3, "background-image", 4, "ngIf"], ["class", "container container-products mt-5", 4, "ngIf"], [1, "row", "main-loading"], [1, "text-center"], ["width", "50", "height", "50", "viewBox", "0 0 24 24", "xmlns", "http://www.w3.org/2000/svg"], ["d", "M2,12A11.2,11.2,0,0,1,13,1.05C12.67,1,12.34,1,12,1a11,11,0,0,0,0,22c.34,0,.67,0,1-.05C6,23,2,17.74,2,12Z"], ["attributeName", "transform", "type", "rotate", "dur", "0.6s", "values", "0 12 12;360 12 12", "repeatCount", "indefinite"], [1, "img-category", "mt-3"], [1, "container", "container-products", "mt-5"], [1, "product-container", "mt-5", "mb-5"], [1, "row"], [1, "col-12", "col-lg-3"], [1, "buttons-grid"], ["src", "assets/images/grid-4.svg", "alt", "", 1, "img-fluid", 3, "click"], ["src", "assets/images/grid-2.svg", "alt", "", 1, "img-fluid", 3, "click"], [1, "select-order", "my-4", 3, "change"], ["value", "order=price&sort=asc"], ["value", "order=price&sort=desc"], ["value", "order=name&sort=asc"], ["value", "order=name&sort=desc"], [1, "mt-5", "w-50", "btn-filter", 3, "click"], [1, "fa", "fa-filter"], ["class", "form", 4, "ngIf"], [1, "col-12", "col-lg-9"], ["class", "text-center", 4, "ngIf"], ["class", "row", 4, "ngIf"], ["class", "btn center btn-primary", 3, "click", 4, "ngIf"], [1, "form"], [4, "ngIf"], ["role", "button", 3, "click"], [3, "ngbCollapse", "ngbCollapseChange"], ["collapsePrices", "ngbCollapse"], ["class", "align-items-center", 4, "ngFor", "ngForOf"], ["collapseCategories", "ngbCollapse"], [4, "ngFor", "ngForOf"], ["type", "checkbox", 3, "checked", "id", "value", "change"], ["collapseSubcategories", "ngbCollapse"], ["collapseBrands", "ngbCollapse"], [3, "ngClass", 4, "ngFor", "ngForOf"], ["class", "brand-button", "role", "button", 3, "click", 4, "ngIf"], [3, "ngClass"], ["role", "button", 1, "brand-button", 3, "click"], [1, "fas", "fa-caret-down"], [1, "fas", "fa-caret-up"], [1, "align-items-center"], ["type", "checkbox", 3, "id", "value", "change"], [3, "class", 4, "ngFor", "ngForOf"], [3, "product", "brand"], [1, "text-center", "mt-5"], [1, "btn", "center", "btn-primary", 3, "click"]], 6118 template: function HighlightsComponent_Template(rf, ctx) { 6119 if (rf & 1) { 6120 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](0, HighlightsComponent_div_0_Template, 5, 0, "div", 0); 6121 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](1, HighlightsComponent_div_1_Template, 1, 2, "div", 1); 6122 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](2, HighlightsComponent_div_2_Template, 25, 5, "div", 2); 6123 } 6124 6125 if (rf & 2) { 6126 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.mainLoading); 6127 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 6128 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", !ctx.mainLoading); 6129 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 6130 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", !ctx.mainLoading); 6131 } 6132 }, 6133 styles: [".img-category[_ngcontent-%COMP%] {\n width: 100%;\n height: 377px;\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n position: relative;\n margin-bottom: 74px;\n}\n.img-category[_ngcontent-%COMP%] .overlay[_ngcontent-%COMP%] {\n width: 100%;\n height: 100%;\n background-color: var(--dark);\n opacity: 0.3;\n}\n.img-category[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] {\n font-size: 35px;\n color: var(--white);\n position: absolute;\n width: 100%;\n text-align: center;\n top: 50%;\n transform: translateY(-50%);\n margin: auto;\n text-transform: uppercase;\n}\n.main-loading[_ngcontent-%COMP%] {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 50vh;\n}\n.buttons-grid[_ngcontent-%COMP%] {\n margin-bottom: 40px;\n}\n.buttons-grid[_ngcontent-%COMP%] img[_ngcontent-%COMP%] {\n margin-right: 12px;\n}\n.btn-filter[_ngcontent-%COMP%] {\n display: none;\n}\n.form[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] {\n font-size: 20px;\n font-weight: 500;\n margin-bottom: 20px;\n}\n.form[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n font-size: 14px;\n margin-bottom: 12px;\n}\n.form[_ngcontent-%COMP%] p[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%] {\n margin-right: 7px;\n}\n.select-order[_ngcontent-%COMP%] {\n height: 46px;\n background-color: var(--white);\n border: 1px solid var(--dark-grey);\n border-radius: 4px;\n width: 100%;\n color: var(--dark);\n font-size: 14px;\n padding: 10px;\n}\n.brand-show[_ngcontent-%COMP%] {\n display: block;\n}\n.brand-hide[_ngcontent-%COMP%] {\n display: none;\n transition: display 0.4s ease;\n}\n@media only screen and (max-width: 992px) {\n .buttons-grid[_ngcontent-%COMP%] {\n display: none;\n }\n .btn-filter[_ngcontent-%COMP%] {\n display: block;\n margin-bottom: 5vh;\n }\n .img-category[_ngcontent-%COMP%] {\n margin-bottom: -48px !important;\n }\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImhpZ2hsaWdodHMuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDQyxXQUFBO0VBQ0EsYUFBQTtFQUNBLDJCQUFBO0VBQ0EsNEJBQUE7RUFDQSxzQkFBQTtFQUNBLGtCQUFBO0VBQ0EsbUJBQUE7QUFDRDtBQUNDO0VBQ0MsV0FBQTtFQUNBLFlBQUE7
6133RUFDQSw2QkFBQTtFQUNBLFlBQUE7QUFDRjtBQUVDO0VBQ0MsZUFBQTtFQUNBLG1CQUFBO0VBQ0Esa0JBQUE7RUFDQSxXQUFBO0VBQ0Esa0JBQUE7RUFDQSxRQUFBO0VBQ0EsMkJBQUE7RUFDQSxZQUFBO0VBQ0EseUJBQUE7QUFBRjtBQUlBO0VBQ0MsYUFBQTtFQUNBLHVCQUFBO0VBQ0EsbUJBQUE7RUFDQSxZQUFBO0FBREQ7QUFJQTtFQUNDLG1CQUFBO0FBREQ7QUFHQztFQUNDLGtCQUFBO0FBREY7QUFLQTtFQUNDLGFBQUE7QUFGRDtBQU1DO0VBQ0MsZUFBQTtFQUNBLGdCQUFBO0VBQ0EsbUJBQUE7QUFIRjtBQU1DO0VBQ0MsZUFBQTtFQUNBLG1CQUFBO0FBSkY7QUFNRTtFQUNDLGlCQUFBO0FBSkg7QUFTQTtFQUNDLFlBQUE7RUFDQSw4QkFBQTtFQUNBLGtDQUFBO0VBQ0Esa0JBQUE7RUFDQSxXQUFBO0VBQ0Esa0JBQUE7RUFDQSxlQUFBO0VBQ0EsYUFBQTtBQU5EO0FBU0E7RUFDQyxjQUFBO0FBTkQ7QUFTQTtFQUNDLGFBQUE7RUFDQSw2QkFBQTtBQU5EO0FBU0E7RUFDQztJQUNDLGFBQUE7RUFOQTtFQVNEO0lBQ0MsY0FBQTtJQUNBLGtCQUFBO0VBUEE7RUFVRDtJQUNDLCtCQUFBO0VBUkE7QUFDRiIsImZpbGUiOiJoaWdobGlnaHRzLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmltZy1jYXRlZ29yeSB7XG5cdHdpZHRoOiAxMDAlO1xuXHRoZWlnaHQ6IDM3N3B4O1xuXHRiYWNrZ3JvdW5kLXBvc2l0aW9uOiBjZW50ZXI7XG5cdGJhY2tncm91bmQtcmVwZWF0OiBuby1yZXBlYXQ7XG5cdGJhY2tncm91bmQtc2l6ZTogY292ZXI7XG5cdHBvc2l0aW9uOiByZWxhdGl2ZTtcblx0bWFyZ2luLWJvdHRvbTogNzRweDtcblxuXHQub3ZlcmxheSB7XG5cdFx0d2lkdGg6IDEwMCU7XG5cdFx0aGVpZ2h0OiAxMDAlO1xuXHRcdGJhY2tncm91bmQtY29sb3I6IHZhcigtLWRhcmspO1xuXHRcdG9wYWNpdHk6IDAuMztcblx0fVxuXG5cdGgyIHtcblx0XHRmb250LXNpemU6IDM1cHg7XG5cdFx0Y29sb3I6IHZhcigtLXdoaXRlKTtcblx0XHRwb3NpdGlvbjogYWJzb2x1dGU7XG5cdFx0d2lkdGg6IDEwMCU7XG5cdFx0dGV4dC1hbGlnbjogY2VudGVyO1xuXHRcdHRvcDogNTAlO1xuXHRcdHRyYW5zZm9ybTogdHJhbnNsYXRlWSgtNTAlKTtcblx0XHRtYXJnaW46IGF1dG87XG5cdFx0dGV4dC10cmFuc2Zvcm06IHVwcGVyY2FzZTtcblx0fVxufVxuXG4ubWFpbi1sb2FkaW5nIHtcblx0ZGlzcGxheTogZmxleDtcblx0anVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG5cdGFsaWduLWl0ZW1zOiBjZW50ZXI7XG5cdGhlaWdodDogNTB2aDtcbn1cblxuLmJ1dHRvbnMtZ3JpZCB7XG5cdG1hcmdpbi1ib3R0b206IDQwcHg7XG5cblx0aW1nIHtcblx0XHRtYXJnaW4tcmlnaHQ6IDEycHg7XG5cdH1cbn1cblxuLmJ0bi1maWx0ZXIge1xuXHRkaXNwbGF5OiBub25lO1xufVxuXG4uZm9ybSB7XG5cdGgzIHtcblx0XHRmb250LXNpemU6IDIwcHg7XG5cdFx0Zm9udC13ZWlnaHQ6IDUwMDtcblx0XHRtYXJnaW4tYm90dG9tOiAyMHB4O1xuXHR9XG5cblx0cCB7XG5cdFx0Zm9udC1zaXplOiAxNHB4O1xuXHRcdG1hcmdpbi1ib3R0b206IDEycHg7XG5cblx0XHRpbnB1dFt0eXBlPVwiY2hlY2tib3hcIl0ge1xuXHRcdFx0bWFyZ2luLXJpZ2h0OiA3cHg7XG5cdFx0fVxuXHR9XG59XG5cbi5zZWxlY3Qtb3JkZXIge1xuXHRoZWlnaHQ6IDQ2cHg7XG5cdGJhY2tncm91bmQtY29sb3I6IHZhcigtLXdoaXRlKTtcblx0Ym9yZGVyOiAxcHggc29saWQgdmFyKC0tZGFyay1ncmV5KTtcblx0Ym9yZGVyLXJhZGl1czogNHB4O1xuXHR3aWR0aDogMTAwJTtcblx0Y29sb3I6IHZhcigtLWRhcmspO1xuXHRmb250LXNpemU6IDE0cHg7XG5cdHBhZGRpbmc6IDEwcHg7XG59XG5cbi5icmFuZC1zaG93IHtcblx0ZGlzcGxheTogYmxvY2s7XG59XG5cbi5icmFuZC1oaWRlIHtcblx0ZGlzcGxheTogbm9uZTtcblx0dHJhbnNpdGlvbjogZGlzcGxheSAwLjRzIGVhc2U7XG59XG5cbkBtZWRpYSBvbmx5IHNjcmVlbiBhbmQgKG1heC13aWR0aDogOTkycHgpIHtcblx0LmJ1dHRvbnMtZ3JpZCB7XG5cdFx0ZGlzcGxheTogbm9uZTtcblx0fVxuXG5cdC5idG4tZmlsdGVyIHtcblx0XHRkaXNwbGF5OiBibG9jaztcblx0XHRtYXJnaW4tYm90dG9tOiA1dmg7XG5cdH1cblxuXHQuaW1nLWNhdGVnb3J5IHtcblx0XHRtYXJnaW4tYm90dG9tOiAtNDhweCAhaW1wb3J0YW50O1xuXHR9XG59XG4iXX0= */"] 6134}); 6135 6136/***/ }), 6137 6138/***/ 5245: 6139/*!**********************************************!*\ 6140 !*** ./src/app/pages/home/home.component.ts ***! 6141 \**********************************************/ 6142/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 6143 6144__webpack_require__.r(__webpack_exports__); 6145/* harmony export */ __webpack_require__.d(__webpack_exports__, { 6146/* harmony export */ "HomeComponent": () => (/* binding */ HomeComponent) 6147/* harmony export */ }); 6148/* harmony import */ var _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pages/basic/basic.component */ 9689); 6149/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 2560); 6150/* harmony import */ var _services_services_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @services/services.service */ 6325); 6151 6152 6153 6154function HomeComponent_ngb_carousel_1_1_ng_template_0_Template(rf, ctx) { if (rf & 1) { 6155 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 20); 6156 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "img", 21); 6157 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 6158} if (rf & 2) { 6159 const banner_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit; 6160 const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); 6161 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); 6162 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵstyleProp"]("background-image", "url(" + ctx_r11.getBannerImage(banner_r10) + ")"); 6163} } 6164function HomeComponent_ngb_carousel_1_1_Template(rf, ctx) { if (rf & 1) { 6165 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](0, HomeComponent_ngb_carousel_1_1_ng_template_0_Template, 2, 2, "ng-template", 19); 6166} } 6167function HomeComponent_ngb_carousel_1_Template(rf, ctx) { if (rf & 1) { 6168 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ngb-carousel", 17); 6169 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, HomeComponent_ngb_carousel_1_1_Template, 1, 0, null, 18); 6170 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 6171} if (rf & 2) { 6172 const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); 6173 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("showNavigationArrows", ctx_r0.showNavigationArrows); 6174 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); 6175 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r0.banners); 6176} } 6177function HomeComponent_app_container_products_3_Template(rf, ctx) { if (rf & 1) { 6178 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "app-container-products", 22); 6179} if (rf & 2) { 6180 const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); 6181 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("title", "Destaques")("link", "/destaques")("seeAllProduct", true)("products", ctx_r1.highlights); 6182} } 6183function HomeComponent_a_6_Template(rf, ctx) { if (rf & 1) { 6184 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "a", 23); 6185 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "div", 24); 6186 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 6187} if (rf & 2) { 6188 const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); 6189 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("href", ctx_r2.getPathAsString("/colecao", ctx_r2.collections[0]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]); 6190 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); 6191 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵstyleProp"]("background-image", "url(" + ctx_r2.collections[0].image + ")"); 6192} } 6193function HomeComponent_a_8_Template(rf, ctx) { if (rf & 1) { 6194 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "a", 25); 6195 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "div", 26); 6196 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 6197} if (rf & 2) { 6198 const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); 6199 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("href", ctx_r3.getPathAsString("/colecao", ctx_r3.collections[1]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]); 6200 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); 6201 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵstyleProp"]("background-image", "url(" + ctx_r3.collections[1].image + ")"); 6202} } 6203function HomeComponent_a_10_Template(rf, ctx) { if (rf & 1) { 6204 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "a", 23); 6205 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "div", 26); 6206 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 6207} if (rf & 2) { 6208 const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); 6209 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("href", ctx_r4.getPathAsString("/colecao", ctx_r4.collections[2]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]); 6210 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); 6211 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵstyleProp"]("background-image", "url(" + ctx_r4.collections[2].image + ")"); 6212} } 6213function HomeComponent_a_11_Template(rf, ctx) { if (rf & 1) { 6214 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "a", 23); 6215 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "div", 26); 6216 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 6217} if (rf & 2) { 6218 const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); 6219 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("href", ctx_r5.getPathAsString("/colecao", ctx_r5.collections[3]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]); 6220 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); 6221 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵstyleProp"]("background-image", "url(" + ctx_r5.collections[3].image + ")"); 6222} } 6223function HomeComponent_app_container_products_13_Template(rf, ctx) { if (rf & 1) { 6224 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "app-container-products", 27); 6225} if (rf & 2) { 6226 const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); 6227 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("title", "Acess\u00F3rios")("seeAllProduct", true)("products", ctx_r6.accessories); 6228} } 6229function HomeComponent_div_21_Template(rf, ctx) { if (rf & 1) { 6230 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 28)(1, "a", 29); 6231 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](2, "img", 30); 6232 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 31)(4, "h5", 32); 6233 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](5); 6234 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 6235 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "p"); 6236 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](7); 6237 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()(); 6238} if (rf & 2) { 6239 const n_r13 = ctx.$implicit; 6240 const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); 6241 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); 6242 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("href", ctx_r8.getPathTitleAsString("/novidade", n_r13), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]); 6243 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); 6244 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("src", n_r13.image_path, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]); 6245 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3); 6246 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](n_r13.title); 6247 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); 6248 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](n_r13.subtitle); 6249} } 6250class HomeComponent extends _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_0__.BasicComponent { 6251 constructor(bannerService, productService, collectionService, newsService) { 6252 super(); 6253 this.bannerService = bannerService; 6254 this.productService = productService; 6255 this.collectionService = collectionService; 6256 this.newsService = newsService; 6257 this.showNavigationArrows = true; 6258 this.isMobile = window.innerWidth <= 768; 6259 this.banners = []; 6260 this.highlights = []; 6261 this.accessories = []; 6262 this.news = []; 6263 this.collections = []; 6264 this.slideConfig = { 6265 autoplay: true, 6266 infinite: true, 6267 speed: 500, 6268 slidesToShow: 3, 6269 centerMode: false, 6270 variableWidth: false, 6271 dots: true, 6272 responsive: [ 6273 { 6274 breakpoint: 1024, 6275 settings: { 6276 slidesToShow: 3 6277 } 6278 }, 6279 { 6280 breakpoint: 775, 6281 settings: { 6282 slidesToShow: 2 6283 } 6284 }, 6285 { 6286 breakpoint: 600, 6287 settings: { 6288 slidesToShow: 1 6289 } 6290 } 6291 ] 6292 }; 6293 this.onResize = () => { 6294 this.isMobile = window.innerWidth <= 768; 6295 }; 6296 } 6297 ngOnInit() { 6298 this.loadBanners(); 6299 this.loadCollections(); 6300 this.loadHighlights(); 6301 this.loadAccessories(); 6302 this.loadNews(); 6303 window.addEventListener('resize', this.onResize); 6304 } 6305 ngOnDestroy() { 6306 window.removeEventListener('resize', this.onResize); 6307 } 6308 getBannerImage(banner) { 6309 if (this.isMobile && this.isValidImage(banner?.mobile_image)) { 6310 return banner.mobile_image; 6311 } 6312 return banner.image; 6313 } 6314 isValidImage(image) { 6315 if (typeof image !== 'string') { 6316 return false;
6317 } 6318 const normalized = image.trim().toLowerCase(); 6319 return normalized !== '' && normalized !== 'null' && normalized !== 'undefined'; 6320 } 6321 loadBanners() { 6322 this.bannerService.all().subscribe((resp) => { 6323 if (resp.status == 'OK') { 6324 this.banners = resp.data; 6325 } 6326 }); 6327 } 6328 loadHighlights() { 6329 this.productService.highlights().subscribe((resp) => { 6330 if (resp.status == 'OK') { 6331 this.highlights = resp.data; 6332 } 6333 }); 6334 } 6335 loadAccessories() { 6336 this.productService.accessories().subscribe((resp) => { 6337 if (resp.status == 'OK') { 6338 this.accessories = resp.data; 6339 } 6340 }); 6341 } 6342 loadNews() { 6343 this.newsService.all(6).subscribe((resp) => { 6344 if (resp.status == 'OK') { 6345 this.news = resp.data; 6346 } 6347 }); 6348 } 6349 loadCollections() { 6350 this.collectionService.all().subscribe((resp) => { 6351 if (resp.status == 'OK') { 6352 this.collections = resp.data; 6353 } 6354 }); 6355 } 6356} 6357HomeComponent.ɵfac = function HomeComponent_Factory(t) { return new (t || HomeComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_services_services_service__WEBPACK_IMPORTED_MODULE_1__.BannerService), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_services_services_service__WEBPACK_IMPORTED_MODULE_1__.ProductService), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_services_services_service__WEBPACK_IMPORTED_MODULE_1__.CollectionService), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_services_services_service__WEBPACK_IMPORTED_MODULE_1__.NewsService)); }; 6358HomeComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({ type: HomeComponent, selectors: [["app-home"]], features: [_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵInheritDefinitionFeature"]], decls: 22, vars: 9, consts: [[1, "banners-container"], [3, "showNavigationArrows", 4, "ngIf"], [1, "highlights-container"], [3, "title", "link", "seeAllProduct", "products", 4, "ngIf"], [1, "collection-container"], [1, "row", "align-items-center", "mt-5"], ["class", "col-12 col-md-6 mt-3", "role", "button", 3, "href", 4, "ngIf"], [1, "col-12", "col-md-6", "mt-3"], ["role", "button", 3, "href", 4, "ngIf"], [1, "row"], ["category", "683", "categoryName", "acessorios", 3, "title", "seeAllProduct", "products", 4, "ngIf"], [1, "appointment-container"], [1, "news-container"], [1, "ob-title"], [1, "carousel", 3, "config"], ["slickModal", "slick-carousel"], ["ngxSlickItem", "", "class", "slide", 4, "ngFor", "ngForOf"], [3, "showNavigationArrows"], [4, "ngFor", "ngForOf"], ["ngbSlide", ""], [1, "picsum-img-wrapper"], [1, "img"], [3, "title", "link", "seeAllProduct", "products"], ["role", "button", 1, "col-12", "col-md-6", "mt-3", 3, "href"], [1, "img-collection", "img-collection-0"], ["role", "button", 3, "href"], [1, "img-collection"], ["category", "683", "categoryName", "acessorios", 3, "title", "seeAllProduct", "products"], ["ngxSlickItem", "", 1, "slide"], [1, "card", 3, "href"], [1, "card-img-top", 3, "src"], [1, "card-body"], [1, "card-title"]], template: function HomeComponent_Template(rf, ctx) { if (rf & 1) { 6359 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 0); 6360 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, HomeComponent_ngb_carousel_1_Template, 2, 2, "ngb-carousel", 1); 6361 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 6362 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 2); 6363 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](3, HomeComponent_app_container_products_3_Template, 1, 4, "app-container-products", 3); 6364 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 6365 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 4)(5, "div", 5); 6366 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](6, HomeComponent_a_6_Template, 2, 3, "a", 6); 6367 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "div", 7); 6368 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](8, HomeComponent_a_8_Template, 2, 3, "a", 8); 6369 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "div", 9); 6370 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](10, HomeComponent_a_10_Template, 2, 3, "a", 6); 6371 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](11, HomeComponent_a_11_Template, 2, 3, "a", 6); 6372 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()(); 6373 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "div", 2); 6374 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](13, HomeComponent_app_container_products_13_Template, 1, 3, "app-container-products", 10); 6375 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 6376 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](14, "div", 11); 6377 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](15, "app-appointment-container"); 6378 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 6379 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "div", 12)(17, "h2", 13); 6380 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](18, "
6380Novidades"); 6381 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 6382 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "ngx-slick-carousel", 14, 15); 6383 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](21, HomeComponent_div_21_Template, 8, 4, "div", 16); 6384 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); 6385 } if (rf & 2) { 6386 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); 6387 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.banners.length); 6388 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); 6389 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.highlights.length > 0); 6390 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3); 6391 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.collections[0]); 6392 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); 6393 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.collections[1]); 6394 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); 6395 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.collections[2]); 6396 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); 6397 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.collections[3]); 6398 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); 6399 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.accessories.length > 0); 6400 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6); 6401 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("config", ctx.slideConfig); 6402 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); 6403 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx.news); 6404 } }, styles: [".banners-container[_ngcontent-%COMP%] {\n width: 100%;\n height: 377px;\n}\n.banners-container[_ngcontent-%COMP%] .img[_ngcontent-%COMP%] {\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n width: 100%;\n height: 377px;\n}\n@media only screen and (max-width: 768px) {\n .banners-container[_ngcontent-%COMP%] {\n height: 610px;\n }\n .banners-container[_ngcontent-%COMP%] .img[_ngcontent-%COMP%] {\n height: 610px;\n background-size: contain;\n background-position: center top;\n background-color: var(--light);\n }\n}\n.highlights-container[_ngcontent-%COMP%] {\n margin-top: 95px;\n}\n.collection-container[_ngcontent-%COMP%] .img-collection[_ngcontent-%COMP%] {\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n position: relative;\n height: 33vh;\n}\n.collection-container[_ngcontent-%COMP%] .img-collection.img-collection-0[_ngcontent-%COMP%] {\n height: 68vh;\n}\n.collection-container[_ngcontent-%COMP%] .img-collection[_ngcontent-%COMP%] .overlay[_ngcontent-%COMP%] {\n opacity: 0.3;\n background-color: var(--dark);\n width: 100%;\n height: 100%;\n}\n.collection-container[_ngcontent-%COMP%] .img-collection[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] {\n font-size: 32px;\n color: var(--white);\n position: absolute;\n width: 100%;\n text-align: center;\n top: 50%;\n transform: translateY(-50%);\n margin: auto;\n text-transform: uppercase;\n}\n.appointment-container[_ngcontent-%COMP%] {\n margin-top: 100px;\n}\n.news-container[_ngcontent-%COMP%] {\n margin-top: 118px;\n margin-bottom: 149px;\n}\n.news-container[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] {\n font-size: 27px;\n text-align: center;\n margin-bottom: 40px;\n text-transform: uppercase;\n}\n.news-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] {\n text-decoration: none;\n border-radius: 0px;\n margin: 12px;\n height: 280px;\n box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1);\n}\n.news-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] img[_ngcontent-%COMP%] {\n border-radius: 0px;\n height: 185px;\n}\n.news-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%] h5[_ngcontent-%COMP%] {\n font-size: 20px;\n line-height: 32px;\n}\n@media only screen and (max-width: 992px) {\n .img-collection-0[_ngcontent-%COMP%] {\n height: 33vh !important;\n }\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImhvbWUuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDQyxXQUFBO0VBQ0EsYUFBQTtBQUNEO0FBQ0M7RUFDQyxzQkFBQTtFQUNBLDRCQUFBO0VBQ0EsMkJBQUE7RUFDQSxXQUFBO0VBQ0EsYUFBQTtBQUNGO0FBR0E7RUFDQztJQUNDLGFBQUE7RUFBQTtFQUVBO0lBQ0MsYUFBQTtJQUNBLHdCQUFBO0lBQ0EsK0JBQUE7SUFDQSw4QkFBQTtFQUFEO0FBQ0Y7QUFJQTtFQUNDLGdCQUFBO0FBRkQ7QUFNQztFQUNDLHNCQUFBO0VBQ0EsNEJBQUE7RUFDQSwyQkFBQTtFQUNBLGtCQUFBO0VBQ0EsWUFBQTtBQUhGO0FBS0U7RUFDQyxZQUFBO0FBSEg7QUFNRTtFQUNDLFlBQUE7
6404RUFDQSw2QkFBQTtFQUNBLFdBQUE7RUFDQSxZQUFBO0FBSkg7QUFPRTtFQUNDLGVBQUE7RUFDQSxtQkFBQTtFQUNBLGtCQUFBO0VBQ0EsV0FBQTtFQUNBLGtCQUFBO0VBQ0EsUUFBQTtFQUNBLDJCQUFBO0VBQ0EsWUFBQTtFQUNBLHlCQUFBO0FBTEg7QUFVQTtFQUNDLGlCQUFBO0FBUEQ7QUFVQTtFQUNDLGlCQUFBO0VBQ0Esb0JBQUE7QUFQRDtBQVNDO0VBQ0MsZUFBQTtFQUNBLGtCQUFBO0VBQ0EsbUJBQUE7RUFDQSx5QkFBQTtBQVBGO0FBVUM7RUFDQyxxQkFBQTtFQUNBLGtCQUFBO0VBQ0EsWUFBQTtFQUNBLGFBQUE7RUFDQSwwQ0FBQTtBQVJGO0FBVUU7RUFDQyxrQkFBQTtFQUNBLGFBQUE7QUFSSDtBQVdFO0VBQ0MsZUFBQTtFQUNBLGlCQUFBO0FBVEg7QUFjQTtFQUNDO0lBQ0MsdUJBQUE7RUFYQTtBQUNGIiwiZmlsZSI6ImhvbWUuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuYmFubmVycy1jb250YWluZXIge1xuXHR3aWR0aDogMTAwJTtcblx0aGVpZ2h0OiAzNzdweDtcblxuXHQuaW1nIHtcblx0XHRiYWNrZ3JvdW5kLXNpemU6IGNvdmVyO1xuXHRcdGJhY2tncm91bmQtcmVwZWF0OiBuby1yZXBlYXQ7XG5cdFx0YmFja2dyb3VuZC1wb3NpdGlvbjogY2VudGVyO1xuXHRcdHdpZHRoOiAxMDAlO1xuXHRcdGhlaWdodDogMzc3cHg7XG5cdH1cbn1cblxuQG1lZGlhIG9ubHkgc2NyZWVuIGFuZCAobWF4LXdpZHRoOiA3NjhweCkge1xuXHQuYmFubmVycy1jb250YWluZXIge1xuXHRcdGhlaWdodDogNjEwcHg7XG5cblx0XHQuaW1nIHtcblx0XHRcdGhlaWdodDogNjEwcHg7XG5cdFx0XHRiYWNrZ3JvdW5kLXNpemU6IGNvbnRhaW47XG5cdFx0XHRiYWNrZ3JvdW5kLXBvc2l0aW9uOiBjZW50ZXIgdG9wO1xuXHRcdFx0YmFja2dyb3VuZC1jb2xvcjogdmFyKC0tbGlnaHQpO1xuXHRcdH1cblx0fVxufVxuXG4uaGlnaGxpZ2h0cy1jb250YWluZXIge1xuXHRtYXJnaW4tdG9wOiA5NXB4O1xufVxuXG4uY29sbGVjdGlvbi1jb250YWluZXIge1xuXHQuaW1nLWNvbGxlY3Rpb24ge1xuXHRcdGJhY2tncm91bmQtc2l6ZTogY292ZXI7XG5cdFx0YmFja2dyb3VuZC1yZXBlYXQ6IG5vLXJlcGVhdDtcblx0XHRiYWNrZ3JvdW5kLXBvc2l0aW9uOiBjZW50ZXI7XG5cdFx0cG9zaXRpb246IHJlbGF0aXZlO1xuXHRcdGhlaWdodDogMzN2aDtcblxuXHRcdCYuaW1nLWNvbGxlY3Rpb24tMCB7XG5cdFx0XHRoZWlnaHQ6IDY4dmg7XG5cdFx0fVxuXG5cdFx0Lm92ZXJsYXkge1xuXHRcdFx0b3BhY2l0eTogMC4zO1xuXHRcdFx0YmFja2dyb3VuZC1jb2xvcjogdmFyKC0tZGFyayk7XG5cdFx0XHR3aWR0aDogMTAwJTtcblx0XHRcdGhlaWdodDogMTAwJTtcblx0XHR9XG5cblx0XHRoMiB7XG5cdFx0XHRmb250LXNpemU6IDMycHg7XG5cdFx0XHRjb2xvcjogdmFyKC0td2hpdGUpO1xuXHRcdFx0cG9zaXRpb246IGFic29sdXRlO1xuXHRcdFx0d2lkdGg6IDEwMCU7XG5cdFx0XHR0ZXh0LWFsaWduOiBjZW50ZXI7XG5cdFx0XHR0b3A6IDUwJTtcblx0XHRcdHRyYW5zZm9ybTogdHJhbnNsYXRlWSgtNTAlKTtcblx0XHRcdG1hcmdpbjogYXV0bztcblx0XHRcdHRleHQtdHJhbnNmb3JtOiB1cHBlcmNhc2U7XG5cdFx0fVxuXHR9XG59XG5cbi5hcHBvaW50bWVudC1jb250YWluZXIge1xuXHRtYXJnaW4tdG9wOiAxMDBweDtcbn1cblxuLm5ld3MtY29udGFpbmVyIHtcblx0bWFyZ2luLXRvcDogMTE4cHg7XG5cdG1hcmdpbi1ib3R0b206IDE0OXB4O1xuXG5cdGgyIHtcblx0XHRmb250LXNpemU6IDI3cHg7XG5cdFx0dGV4dC1hbGlnbjogY2VudGVyO1xuXHRcdG1hcmdpbi1ib3R0b206IDQwcHg7XG5cdFx0dGV4dC10cmFuc2Zvcm06IHVwcGVyY2FzZTtcblx0fVxuXG5cdC5jYXJkIHtcblx0XHR0ZXh0LWRlY29yYXRpb246IG5vbmU7XG5cdFx0Ym9yZGVyLXJhZGl1czogMHB4O1xuXHRcdG1hcmdpbjogMTJweDtcblx0XHRoZWlnaHQ6IDI4MHB4O1xuXHRcdGJveC1zaGFkb3c6IDBweCAxcHggMnB4IHJnYmEoMCwgMCwgMCwgMC4xKTtcblxuXHRcdGltZyB7XG5cdFx0XHRib3JkZXItcmFkaXVzOiAwcHg7XG5cdFx0XHRoZWlnaHQ6IDE4NXB4O1xuXHRcdH1cblxuXHRcdGg1IHtcblx0XHRcdGZvbnQtc2l6ZTogMjBweDtcblx0XHRcdGxpbmUtaGVpZ2h0OiAzMnB4O1xuXHRcdH1cblx0fVxufVxuXG5AbWVkaWEgb25seSBzY3JlZW4gYW5kIChtYXgtd2lkdGg6IDk5MnB4KSB7XG5cdC5pbWctY29sbGVjdGlvbi0wIHtcblx0XHRoZWlnaHQ6IDMzdmggIWltcG9ydGFudDtcblx0fVxufVxuIl19 */"] }); 6405 6406 6407/***/ }), 6408 6409/***/ 50: 6410/*!**********************************************!*\ 6411 !*** ./src/app/pages/info/info.component.ts ***! 6412 \**********************************************/ 6413/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 6414 6415__webpack_require__.r(__webpack_exports__); 6416/* harmony export */ __webpack_require__.d(__webpack_exports__, { 6417/* harmony export */ "InfoComponent": () => (/* binding */ InfoComponent) 6418/* harmony export */ }); 6419/* harmony import */ var _home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 1670); 6420/* harmony import */ var _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @pages/basic/basic.component */ 9689); 6421/* harmony import */ var vanilla_cookieconsent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vanilla-cookieconsent */ 5340); 6422/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 2560); 6423/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/router */ 124); 6424/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common */ 4666); 6425 6426 6427 6428 6429 6430 6431 6432function InfoComponent_div_6_Template(rf, ctx) { 6433 if (rf & 1) { 6434 const _r2 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetCurrentView"](); 6435 6436 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div"); 6437 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "hr"); 6438 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](2, "p"); 6439 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](3, "i", 6); 6440 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](4, " Pode gerir ou desativar alguns destes cookies usando o bot\u00E3o \u201CConfigurar Cookies\u201D."); 6441 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); 6442 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](5, "button", 7); 6443 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function InfoComponent_div_6_Template_button_click_5_listener() { 6444 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r2); 6445 const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](); 6446 return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetVie
6446w"](ctx_r1.openModal()); 6447 }); 6448 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](6, " Configurar Cookies "); 6449 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()(); 6450 } 6451} 6452 6453class InfoComponent extends _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_1__.BasicComponent { 6454 constructor(activatedRoute) { 6455 var _this; 6456 6457 super(); 6458 _this = this; 6459 this.activatedRoute = activatedRoute; 6460 this.isCookies = false; 6461 this.activatedRoute.params.subscribe( /*#__PURE__*/function () { 6462 var _ref = (0,_home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (params) { 6463 _this.merchant = yield _this.storageService.get('merchant'); 6464 6465 switch (params.id) { 6466 case 'condicoes-de-utilizacao': 6467 _this.title = 'Condições de Utilização'; 6468 _this.data = _this.merchant['terms']; 6469 break; 6470 6471 case 'politica-de-cookies': 6472 _this.title = 'PolÃtica de cookies'; 6473 _this.data = _this.merchant['cookies']; 6474 _this.isCookies = true; 6475 break; 6476 6477 case 'politica-de-devolucoes': 6478 _this.title = 'PolÃtica de devoluções'; 6479 _this.data = _this.merchant['devolution']; 6480 break; 6481 6482 case 'ral': 6483 _this.title = 'Resolução Alternativa de LitÃgios'; 6484 _this.data = _this.merchant['ral']; 6485 break; 6486 6487 default: 6488 _this.title = 'PolÃtica de Privacidade'; 6489 _this.data = _this.merchant['privacy']; 6490 break; 6491 } 6492 }); 6493 6494 return function (_x) { 6495 return _ref.apply(this, arguments); 6496 }; 6497 }()); 6498 } 6499 6500 openModal() { 6501 vanilla_cookieconsent__WEBPACK_IMPORTED_MODULE_2__.showPreferences(); 6502 } 6503 6504} 6505 6506InfoComponent.ɵfac = function InfoComponent_Factory(t) { 6507 return new (t || InfoComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_4__.ActivatedRoute)); 6508}; 6509 6510InfoComponent.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({ 6511 type: InfoComponent, 6512 selectors: [["app-info"]], 6513 features: [_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵInheritDefinitionFeature"]], 6514 decls: 7, 6515 vars: 3, 6516 consts: [[1, "container", "container-html"], [1, "row"], [1, "col-lg-12", "col-12"], [1, "text-lg-start", "text-center"], [1, "text", 3, "innerHtml"], [4, "ngIf"], [1, "fa", "fa-info-circle", "fa-lg"], ["type", "button", 1, "cm__btn", 3, "click"]], 6517 template: function InfoComponent_Template(rf, ctx) { 6518 if (rf & 1) { 6519 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "h1", 3); 6520 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](4); 6521 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); 6522 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](5, "div", 4); 6523 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](6, InfoComponent_div_6_Template, 7, 0, "div", 5); 6524 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()(); 6525 } 6526 6527 if (rf & 2) { 6528 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4); 6529 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx.title); 6530 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1); 6531 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("innerHtml", ctx.data, _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵsanitizeHtml"]); 6532 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1); 6533 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.isCookies); 6534 } 6535 }, 6536 dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_5__.NgIf], 6537 styles: [".container-html[_ngcontent-%COMP%] {\n padding: 125px 12px;\n line-height: 35px;\n}\n\nh1[_ngcontent-%COMP%] {\n font-family: Ubuntu;\n font-weight: 700;\n font-size: 40px;\n line-height: 48px;\n}\n\n.text[_ngcontent-%COMP%] {\n text-align: justify;\n}\n\n@media only screen and (max-width: 992px) {\n .container-html[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] {\n margin-top: 20px;\n }\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZm8uY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxtQkFBQTtFQUNBLGlCQUFBO0FBQ0Y7O0FBRUE7RUFDRSxtQkFBQTtFQUNBLGdCQUFBO0VBQ0EsZUFBQTtFQUNBLGlCQUFBO0FBQ0Y7O0FBRUE7RUFDQyxtQk
6537FBQTtBQUNEOztBQUNBO0VBRUU7SUFDRSxnQkFBQTtFQUNGO0FBQ0YiLCJmaWxlIjoiaW5mby5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5jb250YWluZXItaHRtbCB7XG4gIHBhZGRpbmc6IDEyNXB4IDEycHg7XG4gIGxpbmUtaGVpZ2h0OiAzNXB4O1xufVxuXG5oMSB7XG4gIGZvbnQtZmFtaWx5OiBVYnVudHU7XG4gIGZvbnQtd2VpZ2h0OiA3MDA7XG4gIGZvbnQtc2l6ZTogNDBweDtcbiAgbGluZS1oZWlnaHQ6IDQ4cHg7XG59XG5cbi50ZXh0IHtcblx0dGV4dC1hbGlnbjoganVzdGlmeTtcbn1cbkBtZWRpYSBvbmx5IHNjcmVlbiBhbmQgKG1heC13aWR0aDogOTkycHgpIHtcblxuICAuY29udGFpbmVyLWh0bWwgaDIge1xuICAgIG1hcmdpbi10b3A6IDIwcHg7XG4gIH1cblxufVxuIl19 */"] 6538}); 6539 6540/***/ }), 6541 6542/***/ 4902: 6543/*!************************************************!*\ 6544 !*** ./src/app/pages/login/login.component.ts ***! 6545 \************************************************/ 6546/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 6547 6548__webpack_require__.r(__webpack_exports__); 6549/* harmony export */ __webpack_require__.d(__webpack_exports__, { 6550/* harmony export */ "LoginComponent": () => (/* binding */ LoginComponent) 6551/* harmony export */ }); 6552/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/forms */ 2508); 6553/* harmony import */ var _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pages/basic/basic.component */ 9689); 6554/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 2560); 6555/* harmony import */ var _services_services_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @services/services.service */ 6325); 6556/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ 4666); 6557 6558 6559 6560 6561 6562 6563function LoginComponent_form_1_Template(rf, ctx) { if (rf & 1) { 6564 const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"](); 6565 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "form", 2); 6566 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("submit", function LoginComponent_form_1_Template_form_submit_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r4); const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r3.login()); }); 6567 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "h2", 3); 6568 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Iniciar Sess\u00E3o"); 6569 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 6570 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "input", 4); 6571 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("input", function LoginComponent_form_1_Template_input_input_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r4); const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r5.emailChange($event)); }); 6572 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 6573 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](4, "input", 5); 6574 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "button", 6); 6575 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6, "Login"); 6576 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 6577 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "p", 7); 6578 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, "ou"); 6579 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 6580 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "button", 8); 6581 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function LoginComponent_form_1_Template_button_click_9_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r4); const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r6.selectedView = "signup"); }); 6582 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](10, "Registar"); 6583 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 6584 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "button", 9); 6585 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function LoginComponent_form_1_Template_button_click_11_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r4); const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetVie
6585w"](ctx_r7.selectedView = "password"); }); 6586 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](12, "Esqueci a palavra-passe!"); 6587 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); 6588} if (rf & 2) { 6589 const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); 6590 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r0.loginForm); 6591 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5); 6592 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", ctx_r0.loginForm.invalid); 6593} } 6594function LoginComponent_form_2_Template(rf, ctx) { if (rf & 1) { 6595 const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"](); 6596 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "form", 2); 6597 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("submit", function LoginComponent_form_2_Template_form_submit_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r9); const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r8.recover()); }); 6598 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "h2", 3); 6599 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Recuperar Palavra-Passe"); 6600 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 6601 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "input", 4); 6602 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("input", function LoginComponent_form_2_Template_input_input_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r9); const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r10.emailChange($event)); }); 6603 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 6604 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "button", 6); 6605 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](5, "Recuperar"); 6606 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 6607 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "p", 7); 6608 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](7, "ou"); 6609 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 6610 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "button", 8); 6611 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function LoginComponent_form_2_Template_button_click_8_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r9); const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r11.selectedView = "login"); }); 6612 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](9, "Login"); 6613 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); 6614} if (rf & 2) { 6615 const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); 6616 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r1.passwordForm); 6617 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4); 6618 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", ctx_r1.passwordForm.invalid); 6619} } 6620function LoginComponent_form_3_Template(rf, ctx) { if (rf & 1) { 6621 const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"](); 6622 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "form", 2); 6623 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("submit", function LoginComponent_form_3_Template_form_submit_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r13); const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r12.signup()); }); 6624 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "h2", 3); 6625 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Registo"); 6626 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 6627 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "input",
662710); 6628 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "input", 4); 6629 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("input", function LoginComponent_form_3_Template_input_input_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r13); const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r14.emailChange($event)); }); 6630 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 6631 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "input", 11)(6, "input", 5); 6632 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "button", 6); 6633 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, "Registar"); 6634 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 6635 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "p", 7); 6636 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](10, "ou"); 6637 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 6638 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "button", 8); 6639 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function LoginComponent_form_3_Template_button_click_11_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r13); const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r15.selectedView = "login"); }); 6640 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](12, "Login"); 6641 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); 6642} if (rf & 2) { 6643 const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); 6644 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r2.signupForm); 6645 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7); 6646 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", ctx_r2.signupForm.invalid); 6647} } 6648class LoginComponent extends _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_0__.BasicComponent { 6649 constructor(formBuilder, userService) { 6650 super(); 6651 this.formBuilder = formBuilder; 6652 this.userService = userService; 6653 this.selectedView = 'login'; 6654 this.loginForm = this.formBuilder.group({ 6655 email: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_3__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.Validators.email]], 6656 password: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_3__.Validators.required]] 6657 }); 6658 this.signupForm = this.formBuilder.group({ 6659 name: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_3__.Validators.required]], 6660 email: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_3__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.Validators.email]], 6661 phone: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_3__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.Validators.minLength(9), _angular_forms__WEBPACK_IMPORTED_MODULE_3__.Validators.maxLength(9)]], 6662 password: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_3__.Validators.required]] 6663 }); 6664 this.passwordForm = this.formBuilder.group({ 6665 email: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_3__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.Validators.email]] 6666 }); 6667 } 6668 emailChange(event) { 6669 switch (this.selectedView) { 6670 case 'login': 6671 this.loginForm.controls['email'].setValue(event.target.value.trim()); 6672 break; 6673 case 'password': 6674 this.passwordForm.controls['email'].setValue(event.target.value.trim()); 6675 break; 6676 default: 6677 this.signupForm.controls['email'].setValue(event.target.value.trim()); 6678 break; 6679 } 6680 } 6681 login() { 6682 this.userService.login(this.loginForm.value).subscribe((resp) => { 6683 if (resp.status == 'OK') { 6684 this.doLogin(resp.data); 6685 } 6686 else { 6687 this.toastService.showError('Erro a fazer login'); 6688 } 6689 }); 6690 } 6691 recover() { 6692 this.userService.recovery(this.passwordForm.value).subscribe((resp) => { 6693 if (resp.status == 'OK') { 6694 this.selectedView = 'login'; 6695 this.toastService.showSuccess('Recuperação efetuada com sucesso'); 6696 } 6697 else { 6698 this.toastService.showError('Utilizador inválido'); 6699 } 6700 }); 6701 } 6702 signup() { 6703 let data = this.signupForm.value; 6704 data['external_id'] = ''; 6705 data['type'] = '0'; 6706 data['status'] = '1'; 6707 this.userService.create(data).subscribe((resp) => { 6708 if (resp.status == 'OK') { 6709 this.selectedView = 'login'; 6710 this.toastService.showSuccess('Criado com sucesso'); 6711 } 6712 else { 6713 this.toastService.showError(resp.data); 6714 } 6715 }); 6716 } 6717 doLogin(user) { 6718 this.storageService.set('user', user); 6719 this.navigateHome(); 6720 this.toastService.showSuccess('Login efetuado com sucesso'); 6721 } 6722} 6723LoginComponent.ɵfac = function LoginComponent_Factory(t) { return new (t || LoginComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_3__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_services_services_service__WEBPACK_IMPORTED_MODULE_1__.UserService)); }; 6724LoginComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({ type: LoginComponent, selectors: [["app-login"]], features: [_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵInheritDefinitionFeature"]], decls: 4, vars: 3, consts: [[1, "login-container"], ["class", "form", 3, "formGroup", "submit", 4, "ngIf"], [1, "form", 3, "formGroup", "submit"], [1, "ob-title"], ["type", "text", "placeholder", "Email", "formControlName", "email", 1, "mt-3", 3, "input"], ["type", "password", "placeholder", "Palavra-Passe", "formControlName", "password", 1, "mt-3"], ["type", "submit", 1, "btn", "btn-white", "btn-block", "mt-3", 3, "disabled"], [1, "mt-3"], [1, "btn", "btn-white", "btn-block", "mt-3", 3, "click"], [1, "btn", "btn-white-outline", "btn-block", "mt-3", 3, "click"], ["type", "text", "placeholder", "Nome", "formControlName", "name", 1, "mt-3"], ["type", "text", "placeholder", "Telem\u00F3vel", "formControlName", "phone", 1, "mt-3"]], template: function LoginComponent_Template(rf, ctx) { if (rf & 1) { 6725 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 0); 6726 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, LoginComponent_form_1_Template, 13, 2, "form", 1); 6727 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](2, LoginComponent_form_2_Template, 10, 2, "form", 1); 6728 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](3, LoginComponent_form_3_Template, 13, 2, "form", 1); 6729 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 6730 } if (rf & 2) { 6731 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); 6732 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.selectedView == "login"); 6733 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); 6734 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.selectedView == "password"); 6735 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); 6736 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.selectedView == "signup"); 6737 } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_4__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.Form
6737ControlName], styles: [".login-container[_ngcontent-%COMP%] {\n margin-bottom: 50px;\n}\n.login-container[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] {\n background-color: var(--primary);\n width: 40%;\n left: 0;\n right: 0;\n margin: auto;\n padding: 40px;\n}\n.login-container[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .ob-title[_ngcontent-%COMP%] {\n color: var(--white);\n}\n.login-container[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n font-size: 24px;\n color: var(--white);\n text-align: center;\n}\n@media (max-width: 767px) {\n .login-container[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] {\n width: 80%;\n }\n}\n@media only screen and (max-width: 992px) {\n .login-container[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] {\n font-size: 24px;\n }\n .login-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .login-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%] {\n font-size: 20px;\n text-align: left !important;\n }\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxvZ2luLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0MsbUJBQUE7QUFDRDtBQUNDO0VBQ0MsZ0NBQUE7RUFDQSxVQUFBO0VBQ0EsT0FBQTtFQUNBLFFBQUE7RUFDQSxZQUFBO0VBQ0EsYUFBQTtBQUNGO0FBQ0U7RUFDQyxtQkFBQTtBQUNIO0FBRUU7RUFDQyxlQUFBO0VBQ0EsbUJBQUE7RUFDQSxrQkFBQTtBQUFIO0FBS0E7RUFFRTtJQUNDLFVBQUE7RUFIRDtBQUNGO0FBT0E7RUFFRTtJQUNDLGVBQUE7RUFORDtFQVNBOztJQUVDLGVBQUE7SUFDQSwyQkFBQTtFQVBEO0FBQ0YiLCJmaWxlIjoibG9naW4uY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIubG9naW4tY29udGFpbmVyIHtcblx0bWFyZ2luLWJvdHRvbTogNTBweDtcblxuXHQuZm9ybSB7XG5cdFx0YmFja2dyb3VuZC1jb2xvcjogdmFyKC0tcHJpbWFyeSk7XG5cdFx0d2lkdGg6IDQwJTtcblx0XHRsZWZ0OiAwO1xuXHRcdHJpZ2h0OiAwO1xuXHRcdG1hcmdpbjogYXV0bztcblx0XHRwYWRkaW5nOiA0MHB4O1xuXG5cdFx0Lm9iLXRpdGxlIHtcblx0XHRcdGNvbG9yOiB2YXIoLS13aGl0ZSk7XG5cdFx0fVxuXG5cdFx0cCB7XG5cdFx0XHRmb250LXNpemU6IDI0cHg7XG5cdFx0XHRjb2xvcjogdmFyKC0td2hpdGUpO1xuXHRcdFx0dGV4dC1hbGlnbjogY2VudGVyO1xuXHRcdH1cblx0fVxufVxuXG5AbWVkaWEgKG1heC13aWR0aDogNzY3cHgpIHtcblx0LmxvZ2luLWNvbnRhaW5lciB7XG5cdFx0LmZvcm0ge1xuXHRcdFx0d2lkdGg6IDgwJTtcblx0XHR9XG5cdH1cbn1cblxuQG1lZGlhIG9ubHkgc2NyZWVuIGFuZCAobWF4LXdpZHRoOiA5OTJweCkge1xuXHQubG9naW4tY29udGFpbmVyIHtcblx0XHRoMiB7XG5cdFx0XHRmb250LXNpemU6IDI0cHg7XG5cdFx0fVxuXG5cdFx0cCxcblx0XHRpbnB1dCB7XG5cdFx0XHRmb250LXNpemU6IDIwcHg7XG5cdFx0XHR0ZXh0LWFsaWduOiBsZWZ0ICFpbXBvcnRhbnQ7XG5cdFx0fVxuXHR9XG59XG4iXX0= */"] }); 6738 6739 6740/***/ }), 6741 6742/***/ 4269: 6743/*!****************************************************!*\ 6744 !*** ./src/app/pages/loyalty/loyalty.component.ts ***! 6745 \****************************************************/ 6746/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 6747 6748__webpack_require__.r(__webpack_exports__); 6749/* harmony export */ __webpack_require__.d(__webpack_exports__, { 6750/* harmony export */ "LoyaltyComponent": () => (/* binding */ LoyaltyComponent) 6751/* harmony export */ }); 6752/* harmony import */ var _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pages/basic/basic.component */ 9689); 6753/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 2560); 6754/* harmony import */ var _app_services_user_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @app/services/user.service */ 3071); 6755 6756 6757 6758function LoyaltyComponent_div_9_Template(rf, ctx) { if (rf & 1) { 6759 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 3)(1, "p", 11)(2, "b"); 6760 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, "Saldo:"); 6761 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 6762 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4); 6763 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](5, "formatMoney"); 6764 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 6765 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "p", 11)(7, "b"); 6766 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, "Cart\u00E3o Cliente:"); 6767 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 6768 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](9); 6769 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); 6770} if (rf & 2) { 6771 const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); 6772 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4); 6773 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](5, 2, ctx_r0.card.value), ""); 6774 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5); 6775 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" #", ctx_r0.card.card_number, ""); 6776} } 6777function LoyaltyComponent_div_30_Template(rf, ctx) { if (rf & 1) { 6778 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 7)(1, "div", 8); 6779 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2); 6780 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 6781 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 9); 6782 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4); 6783 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 6784 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 9); 6785 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6); 6786 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 6787 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "div", 9); 6788 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8); 6789 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 6790 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "div", 8); 6791 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](10); 6792 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); 6793} if (rf & 2) { 6794 const transaction_r2 = ctx.$implicit; 6795 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); 6796 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](transaction_r2.store_name); 6797 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); 6798 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](transaction_r2.amount); 6799 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); 6800 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](transaction_r2.total_cashback); 6801 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); 6802 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](transaction_r2.used_amount); 6803 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); 6804 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](transaction_r2.created_at); 6805} } 6806class LoyaltyComponent extends _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_0__.BasicComponent { 6807 constructor(userService) { 6808 super(); 6809 this.userService = userService; 6810 this.transactions = []; 6811 } 6812 ngOnInit() { 6813 this.load(); 6814 } 6815 load() { 6816 this.userService.loyaltycards().subscribe((resp) => { 6817 if (resp.status == 'OK') { 6818 if (resp.data.length > 0) { 6819 this.card = resp.data[0]; 6820 this.loadTransactions(); 6821 } 6822 } 6823 }); 6824 } 6825 loadTransactions() { 6826 this.userService.transactions().subscribe((resp) => { 6827 if (resp.status == 'OK') { 6828 this.transactions = resp.data.transactions; 6829 } 6830 }); 6831 } 6832} 6833LoyaltyComponent.ɵfac = function LoyaltyComponent_Factory(t) { return new (t || LoyaltyComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_app_services_user_service__WEBPACK_IMPORTED_MODULE_1__.UserService)); }; 6834LoyaltyComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({ type: LoyaltyComponent, selectors: [["app-loyalty"]], features: [_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵInheritDefinitionFeature"]], decls: 31, vars: 2,
6834consts: [[1, "ob-title"], [1, "profile-container"], [1, "row", "mb-5"], [1, "col-12", "col-md-4", "my-2"], [1, "col-12", "col-md-8", "my-2", "profile-content"], [1, "mt-3"], ["class", "col-12 col-md-4 my-2", 4, "ngIf"], [1, "row"], [1, "col-3"], [1, "col-2"], ["class", "row", 4, "ngFor", "ngForOf"], [1, "m-0"]], template: function LoyaltyComponent_Template(rf, ctx) { if (rf & 1) { 6835 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "h2", 0); 6836 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, "Fideliza\u00E7\u00E3o"); 6837 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 6838 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 1)(3, "div", 2)(4, "div", 3); 6839 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "app-menu-profile"); 6840 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 6841 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div", 4)(7, "h2", 5); 6842 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, "Dados Cart\u00E3o"); 6843 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 6844 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](9, LoyaltyComponent_div_9_Template, 10, 4, "div", 6); 6845 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "h2", 5); 6846 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](11, "Movimentos"); 6847 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 6848 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](12, "hr"); 6849 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "div", 7)(14, "div", 8)(15, "b"); 6850 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](16, "Loja"); 6851 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); 6852 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](17, "div", 9)(18, "b"); 6853 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](19, "Valor"); 6854 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); 6855 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](20, "div", 9)(21, "b"); 6856 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](22, "Cashback"); 6857 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); 6858 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](23, "div", 9)(24, "b"); 6859 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](25, "Saldo"); 6860 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); 6861 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](26, "div", 8)(27, "b"); 6862 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](28, "Data"); 6863 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()(); 6864 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](29, "hr"); 6865 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](30, LoyaltyComponent_div_30_Template, 11, 5, "div", 10); 6866 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()(); 6867 } if (rf & 2) { 6868 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](9); 6869 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.card); 6870 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](21); 6871 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx.transactions); 6872 } }, styles: [".ob-title[_ngcontent-%COMP%] {\n margin-top: 100px;\n margin-bottom: 30px;\n}\n\n.profile-container[_ngcontent-%COMP%] {\n box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);\n margin-bottom: 125px;\n background-color: var(--grey);\n padding: 50px;\n}\n\n.profile-container[_ngcontent-%COMP%] .profile-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n font-size: 16px;\n}\n\n.profile-container[_ngcontent-%COMP%] .profile-content[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] {\n font-size: 27px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxveWFsdHkuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDQyxpQkFBQTtFQUNBLG1CQUFBO0FBQ0Q7O0FBRUE7RUFDQywwQ0FBQTtFQUNBLG9CQUFBO0VBQ0EsNkJBQUE7RUFDQSxhQUFBO0FBQ0Q7O0FBRUU7RUFDQyxlQUFBO0FBQUg7O0FBR0U7RUFDQyxlQUFBO0FBREgiLCJmaWxlIjoibG95YWx0eS5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5vYi10aXRsZSB7XG5cdG1hcmdpbi10b3A6IDEwMHB4O1xuXHRtYXJnaW4tYm90dG9tOiAzMHB4O1xufVxuXG4ucHJvZmlsZS1jb250YWluZXIge1xuXHRib3gtc2hhZG93OiAwcHggMXB4IDJweCByZ2JhKDAsIDAsIDAsIDAuMik7XG5cdG1hcmdpbi1ib3R0b206IDEyNXB4O1xuXHRiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1ncmV5KTtcblx0cGFkZGluZzogNTBweDtcblxuXHQucHJvZmlsZS1jb250ZW50IHtcblx0XHRwIHtcblx0XHRcdGZvbnQtc2l6ZTogMTZweDtcblx0XHR9XG5cblx0XHRoMiB7XG5cdFx0XHRmb250LXNpemU6IDI3cHg7XG5cdFx0fVxuXHR9XG59XG4iXX0= */"] }); 6873 6874 6875/***/ }), 6876 6877/***/ 1173: 6878/*!********************************************************!*\ 6879 !*** ./src/app/pages/order-pay/order-pay.component.ts ***! 6880 \********************************************************/ 6881/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 6882 6883__webpack_require__.r(__webpack_exports__); 6884/* harmony export */ __webpack_require__.d(__webpack_exports__, { 6885/* harmony export */ "OrderPayComponent": () => (/* binding */ OrderPayComponent) 6886/* harmony export */ }); 6887/* harmony import */ var _home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 1670); 6888/* harmony import */ var _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @pages/basic/basic.component */ 9689); 6889/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/core */ 2560); 6890/* harmony import */ var _services_services_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @services/services.service */ 6325); 6891/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ 4666); 6892/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/router */ 124); 6893/* harmony import */ var _pipes_format_money_pipe__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../pipes/format-money.pipe */ 531); 6894/* harmony import */ var _pipes_format_name_pipe__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @pipes/format-name.pipe */ 4980); 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904const _c0 = ["paymentForm"];
6905const _c1 = ["sibsModal"]; 6906 6907function OrderPayComponent_h2_0_Template(rf, ctx) { 6908 if (rf & 1) { 6909 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "h2", 6); 6910 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1); 6911 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 6912 } 6913 6914 if (rf & 2) { 6915 const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](); 6916 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 6917 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"]("Encomenda: ", ctx_r0.order.name, ""); 6918 } 6919} 6920 6921function OrderPayComponent_div_6_p_5_Template(rf, ctx) { 6922 if (rf & 1) { 6923 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "p"); 6924 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, "Entrega no domic\u00EDlio"); 6925 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 6926 } 6927} 6928 6929function OrderPayComponent_div_6_p_6_Template(rf, ctx) { 6930 if (rf & 1) { 6931 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "p"); 6932 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, "Levantamento na Loja"); 6933 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 6934 } 6935} 6936 6937function OrderPayComponent_div_6_div_7_Template(rf, ctx) { 6938 if (rf & 1) { 6939 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div")(1, "h3"); 6940 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, "Morada de Entrega"); 6941 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 6942 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](3, "p"); 6943 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](4); 6944 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](5, "br"); 6945 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](6); 6946 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](7, "br"); 6947 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](8); 6948 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()(); 6949 } 6950 6951 if (rf & 2) { 6952 const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2); 6953 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4); 6954 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", ctx_r4.order.address_delivery.address, " "); 6955 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2); 6956 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate2"](" ", ctx_r4.order.address_delivery.postcode, ", ", ctx_r4.order.address_delivery.city, " "); 6957 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2); 6958 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", ctx_r4.order.address_delivery.country, " "); 6959 } 6960} 6961 6962function OrderPayComponent_div_6_div_8_Template(rf, ctx) { 6963 if (rf & 1) { 6964 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div")(1, "h3"); 6965 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, "Loja"); 6966 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 6967 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](3, "p"); 6968 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](4); 6969 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](5, "br"); 6970 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](6); 6971 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()(); 6972 } 6973 6974 if (rf & 2) { 6975 const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2); 6976 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4); 6977 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", ctx_r5.order.store.name, " "); 6978 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2); 6979 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", ctx_r5.order.store.address, " "); 6980 } 6981} 6982 6983function OrderPayComponent_div_6_div_9_p_3_Template(rf, ctx) { 6984 if (rf & 1) { 6985 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "p"); 6986 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1); 6987 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](2, "br"); 6988 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](3); 6989 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](4, "br"); 6990 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](5); 6991 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 6992 } 6993 6994 if (rf & 2) { 6995 const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3); 6996 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 6997 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", ctx_r19.order.address_billing.address, " "); 6998 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2); 6999 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate2"](" ", ctx_r19.order.address_billing.postcode, ", ", ctx_r19.order.address_billing.city, " "); 7000 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2); 7001 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", ctx_r19.order.address_billing.country, " "); 7002 } 7003} 7004 7005function OrderPayComponent_div_6_div_9_Template(rf, ctx) { 7006 if (rf & 1) { 7007 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div")(1, "h3"); 7008 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, "Morada de Fatura\u00E7\u00E3o"); 7009 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7010 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](3, OrderPayComponent_div_6_div_9_p_3_Template, 6, 4, "p", 10); 7011 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7012 } 7013 7014 if (rf & 2) { 7015 const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2); 7016 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3); 7017 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r6.order.address_billing); 7018 } 7019} 7020 7021function OrderPayComponent_div_6_img_13_Template(rf, ctx) { 7022 if (rf & 1) { 7023 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](0, "img", 28); 7024 } 7025} 7026 7027function OrderPayComponent_div_6_p_17_Template(rf, ctx) { 7028 if (rf & 1) { 7029 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "p"); 7030 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1); 7031 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7032 } 7033 7034 if (rf & 2) { 7035 const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2); 7036 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 7037 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](ctx_r9.order.payment_type); 7038 } 7039} 7040 7041function OrderPayComponent_div_6_p_18_Template(rf, ctx) { 7042 if (rf & 1) { 7043 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "p", 29); 7044 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, "Pagar na Loja"); 7045 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7046 } 7047} 7048 7049function OrderPayComponent_div_6_p_19_Template(rf, ctx) { 7050 if (rf & 1) { 7051 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "p", 29); 7052 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, "Transfer\u00EAncia Banc\u00E1ria"); 7053 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7054 } 7055} 7056 7057function OrderPayComponent_div_6_p_20_Template(rf, ctx) { 7058 if (rf & 1) { 7059 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "p", 29); 7060 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, "Cart\u00E3o de Cr\u00E9dito"); 7061 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7062 } 7063} 7064 7065function OrderPayComponent_div_6_div_22_Template(rf, ctx) { 7066 if (rf & 1) { 7067 const _r21 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"](); 7068 7069 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div")(1, "p"); 7070 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, "Conclua o pagamento"); 7071 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7072 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](3, "button", 30); 7073 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function OrderPayComponent_div_6_div_22_Template_button_click_3_listener() { 7074 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r21); 7075 const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2); 7076 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetVie
7076w"](ctx_r20.openPay()); 7077 }); 7078 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](4, "Pagar"); 7079 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()(); 7080 } 7081} 7082 7083function OrderPayComponent_div_6_div_23_Template(rf, ctx) { 7084 if (rf & 1) { 7085 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div")(1, "p"); 7086 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, "Conclua o pagamento usando estes dados"); 7087 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7088 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](3, "p")(4, "b"); 7089 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](5, "Entidade:"); 7090 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7091 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](6); 7092 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](7, "br"); 7093 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](8, "b"); 7094 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](9, "Refer\u00EAncia:"); 7095 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7096 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](10); 7097 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](11, "br"); 7098 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](12, "b"); 7099 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](13, "Valor:"); 7100 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7101 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](14); 7102 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](15, "br"); 7103 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](16, "b"); 7104 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](17, "Data Limite:"); 7105 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7106 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](18); 7107 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()(); 7108 } 7109 7110 if (rf & 2) { 7111 const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2); 7112 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](6); 7113 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", ctx_r14.order.mb_entity, " "); 7114 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4); 7115 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", ctx_r14.order.mb_reference, " "); 7116 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4); 7117 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", ctx_r14.order.mb_amount, " "); 7118 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4); 7119 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", ctx_r14.order.mb_limit_date, " "); 7120 } 7121} 7122 7123function OrderPayComponent_div_6_div_24_Template(rf, ctx) { 7124 if (rf & 1) { 7125 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div")(1, "p"); 7126 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, "Conclua o pagamento usando estes dados"); 7127 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7128 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](3, "p")(4, "b"); 7129 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](5, "Banco:"); 7130 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7131 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](6); 7132 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](7, "br"); 7133 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](8, "b"); 7134 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](9, "BIC/SWIFT:"); 7135 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7136 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](10); 7137 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](11, "br"); 7138 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](12, "b"); 7139 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](13, "IBAN:"); 7140 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7141 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](14); 7142 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()(); 7143 } 7144 7145 if (rf & 2) { 7146 const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2); 7147 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](6); 7148 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", ctx_r15.merchant.payments.bt_bank, " "); 7149 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4); 7150 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", ctx_r15.merchant.payments.bt_bicswift, " "); 7151 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4); 7152 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", ctx_r15.merchant.payments.bt_iban, " "); 7153 } 7154} 7155 7156function OrderPayComponent_div_6_div_25_p_1_Template(rf, ctx) { 7157 if (rf & 1) { 7158 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "p"); 7159 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, "Conclua o pagamento na App MBWay"); 7160 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7161 } 7162} 7163 7164function OrderPayComponent_div_6_div_25_Template(rf, ctx) { 7165 if (rf & 1) { 7166 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div"); 7167 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](1, OrderPayComponent_div_6_div_25_p_1_Template, 2, 0, "p", 10); 7168 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](2, "p")(3, "b"); 7169 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](4, "N\u00FAmero usado:"); 7170 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7171 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](5); 7172 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](6, "br"); 7173 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()(); 7174 } 7175 7176 if (rf & 2) { 7177 const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2); 7178 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 7179 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r16.order.status === "Submetida"); 7180 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4); 7181 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", ctx_r16.order.mbway, " "); 7182 } 7183} 7184 7185const _c2 = function (a0) { 7186 return { 7187 "fa-spin": a0 7188 }; 7189}; 7190 7191function OrderPayComponent_div_6_span_33_Template(rf, ctx) { 7192 if (rf & 1) { 7193 const _r24 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"](); 7194 7195 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span", 31); 7196 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function OrderPayComponent_div_6_span_33_Template_span_click_0_listener() { 7197 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r24); 7198 const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2); 7199 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetVie
7199w"](ctx_r23.checkStatus(true)); 7200 }); 7201 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 32); 7202 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7203 } 7204 7205 if (rf & 2) { 7206 const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2); 7207 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 7208 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpureFunction1"](1, _c2, ctx_r17.loading)); 7209 } 7210} 7211 7212function OrderPayComponent_div_6_div_58_span_8_Template(rf, ctx) { 7213 if (rf & 1) { 7214 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span", 39); 7215 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "br"); 7216 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2); 7217 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7218 } 7219 7220 if (rf & 2) { 7221 const item_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit; 7222 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2); 7223 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](item_r25.version.name); 7224 } 7225} 7226 7227function OrderPayComponent_div_6_div_58_Template(rf, ctx) { 7228 if (rf & 1) { 7229 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 33)(1, "div", 21); 7230 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](2, "img", 34); 7231 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](3, "formatName"); 7232 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7233 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](4, "div", 35)(5, "p"); 7234 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](6); 7235 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](7, "formatName"); 7236 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](8, OrderPayComponent_div_6_div_58_span_8_Template, 3, 1, "span", 36); 7237 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()(); 7238 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](9, "div", 37)(10, "p", 38); 7239 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](11); 7240 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()(); 7241 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](12, "div", 37)(13, "p", 22); 7242 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](14); 7243 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](15, "formatMoney"); 7244 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()(); 7245 } 7246 7247 if (rf & 2) { 7248 const item_r25 = ctx.$implicit; 7249 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2); 7250 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpropertyInterpolate"]("alt", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind1"](3, 6, item_r25.name)); 7251 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("src", item_r25.image, _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵsanitizeUrl"]); 7252 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4); 7253 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind1"](7, 8, item_r25.name), " "); 7254 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2); 7255 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", item_r25.version); 7256 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3); 7257 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"]("x ", item_r25.quantity, ""); 7258 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3); 7259 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind1"](15, 10, item_r25.price)); 7260 } 7261} 7262 7263function OrderPayComponent_div_6_Template(rf, ctx) { 7264 if (rf & 1) { 7265 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 7)(1, "div", 8)(2, "div", 9)(3, "h3"); 7266 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](4, "M\u00E9todo de Envio"); 7267 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7268 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](5, OrderPayComponent_div_6_p_5_Template, 2, 0, "p", 10); 7269 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](6, OrderPayComponent_div_6_p_6_Template, 2, 0, "p", 10); 7270 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](7, OrderPayComponent_div_6_div_7_Template, 9, 4, "div", 10); 7271 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](8, OrderPayComponent_div_6_div_8_Template, 7, 2, "div", 10); 7272 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](9, OrderPayComponent_div_6_div_9_Template, 4, 1, "div", 10); 7273 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7274 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](10, "div", 9); 7275 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](11, "div", null, 11); 7276 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](13, OrderPayComponent_div_6_img_13_Template, 1, 0, "img", 12); 7277 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7278 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](14, "div", 13)(15, "h3"); 7279 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](16, "Pagamento"); 7280 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7281 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](17, OrderPayComponent_div_6_p_17_Template, 2, 1, "p", 10); 7282 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](18, OrderPayComponent_div_6_p_18_Template, 2, 0, "p", 14); 7283 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](19, OrderPayComponent_div_6_p_19_Template, 2, 0, "p", 14); 7284 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](20, OrderPayComponent_div_6_p_20_Template, 2, 0, "p", 14); 7285 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](21, "div", 15); 7286 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](22, OrderPayComponent_div_6_div_22_Template, 5, 0, "div", 10); 7287 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7288 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](23, OrderPayComponent_div_6_div_23_Template, 19, 4, "div", 10); 7289 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](24, OrderPayComponent_div_6_div_24_Template, 15, 3, "div", 10); 7290 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](25, OrderPayComponent_div_6_div_25_Template, 7, 2, "div", 10); 7291 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7292 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](26, "div", 13)(27, "h3"); 7293 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](28, "Estado"); 7294 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7295 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](29, "p")(30, "span", 16); 7296 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](31); 7297 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7298 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](32, "\u00A0 "); 7299 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](33, OrderPayComponent_div_6_span_33_Template, 2, 3, "span", 17); 7300 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()(); 7301 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](34, "div", 18)(35, "h3"); 7302 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](36, "Notas/Observa\u00E7\u00F5es"); 7303 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7304 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](37, "div", 19); 7305 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7306 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](38, "h3", 7); 7307 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](39, "O seu Pedido"); 7308 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7309 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](40, "hr"); 7310 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](41, "div", 20)(42, "div", 21)(43, "p")(44, "b"); 7311 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](45, "Artigo"); 7312 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()(); 7313 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](46, "div", 9)(47, "p")(48, "b"); 7314 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](49, "Descri\u00E7\u00E3o"); 7315 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()(); 7316 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](50, "div", 21)(51, "p", 22)(52, "b"); 7317 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](53, "Quantidade."); 7318 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()(); 7319 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](54, "div", 21)(55, "p", 22)(56, "b"); 7320 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](57, "Pre\u00E7o"); 7321 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()(); 7322 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](58, OrderPayComponent_div_6_div_58_Template, 16, 12, "div", 23); 7323 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](59, "hr"); 7324 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](60, "div", 24); 7325 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](61, "div", 9); 7326 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](62, "div", 9)(63, "div", 15)(64, "div", 25); 7327 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](65, "Subtotal:"); 7328 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7329 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](66, "div", 26); 7330 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](67); 7331 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](68, "formatMoney"); 7332 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7333 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](69, "div", 25); 7334 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](70, "Saldo Descontado:"); 7335 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7336 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](71, "div", 26); 7337 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](72); 7338 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](73, "formatMoney"); 7339 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7340 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](74, "div", 25); 7341 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](75, "Desconto Cup\u00E3o:"); 7342 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7343 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](76, "div", 26); 7344 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](77); 7345 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](78, "formatMoney"); 7346 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7347 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](79, "div", 25); 7348 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](80, "Taxa de envio:"); 7349 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7350 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](81, "div", 26); 7351 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](82); 7352 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](83, "formatMoney"); 7353 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()(); 7354 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](84, "div", 27); 7355 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](85, "div", 9); 7356 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](86, "div", 9)(87, "div", 15)(88, "div", 25)(89, "h3"); 7357 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](90, "Total:"); 7358 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()(); 7359 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](91, "div", 26)(92, "h3"); 7360 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](93); 7361 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](94, "formatMoney"); 7362 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()()()(); 7363 } 7364 7365 if (rf & 2) { 7366 const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](); 7367 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](5); 7368 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r1.order.delivery_type == 1); 7369 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 7370 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r1.order.delivery_type == 2); 7371 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 7372 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r1.order.delivery_type == 1); 7373 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 7374 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r1.order.delivery_type == 2); 7375 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 7376 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r1.order.address_billing); 7377 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4); 7378 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r1.order); 7379 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4); 7380 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r1.order.payment_type !== "PAY_AT_STORE" && ctx_r1.order.payment_type !== "BANK_TRANSFER" && ctx_r1.order.payment_type !== "MASTER VISA"); 7381 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 7382 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r1.order.payment_type == "PAY_AT_STORE"); 7383 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 7384 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r1.order.payment_type == "BANK_TRANSFER"); 7385 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 7386 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r1.order.payment_type == "MASTER VISA"); 7387 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2); 7388 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r1.order.status === "Submetida" && ctx_r1.order.payment_type == "MASTER VISA"); 7389 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 7390 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r1.order.status === "Submetida" && ctx_r1.order.payment_type == "REFER\u00CANCIA MULTIBANCO"); 7391 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 7392 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r1.order.status === "Submetida" && ctx_r1.order.payment_type == "BANK_TRANSFER"); 7393 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 7394 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r1.order.payment_type == "MBWAY"); 7395 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](5); 7396 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngClass", ctx_r1.order.status); 7397 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 7398 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](ctx_r1.order.status); 7399 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2); 7400 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r1.order.status === "Submetida"); 7401 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4); 7402 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("innerHTML", ctx_r1.order.notes, _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵsanitizeHtml"]); 7403 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](21); 7404 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", ctx_r1.order.items); 7405 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](9); 7406 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind1"](68, 24, ctx_r1.order.price)); 7407 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](5); 7408 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IM
7408PORTED_MODULE_5__["ɵɵpipeBind1"](73, 26, ctx_r1.order.discount)); 7409 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](5); 7410 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind1"](78, 28, ctx_r1.order.discount_coupon)); 7411 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](5); 7412 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind1"](83, 30, ctx_r1.order.delivery)); 7413 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](11); 7414 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind1"](94, 32, ctx_r1.order.total)); 7415 } 7416} 7417 7418class OrderPayComponent extends _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_1__.BasicComponent { 7419 constructor(orderService, location, activatedRoute, paymentService, renderer2) { 7420 var _this; 7421 7422 super(); 7423 _this = this; 7424 this.orderService = orderService; 7425 this.location = location; 7426 this.activatedRoute = activatedRoute; 7427 this.paymentService = paymentService; 7428 this.renderer2 = renderer2; 7429 this.loading = false; 7430 this.isSpg = false; 7431 this.display = 'none'; 7432 this.user = this.storageService.get('user'); 7433 this.merchant = this.storageService.get('merchant'); 7434 7435 if (!this.merchant || !this.user) { 7436 this.navigateHome(); 7437 } 7438 7439 this.isSpg = this.merchant.payments.cc == 'sibs-spg'; 7440 7441 if (!this.user) { 7442 this.navigateHome(); 7443 } 7444 7445 this.activatedRoute.params.subscribe( /*#__PURE__*/function () { 7446 var _ref = (0,_home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (params) { 7447 _this.orderId = params.id; 7448 7449 _this.load(); 7450 }); 7451 7452 return function (_x) { 7453 return _ref.apply(this, arguments); 7454 }; 7455 }()); 7456 } 7457 7458 ngOnInit() {} 7459 7460 load() { 7461 this.orderService.one(this.orderId).subscribe(resp => { 7462 if (resp.status == 'OK') { 7463 this.order = resp.data; 7464 7465 if (this.order.status == 'Submetida' && this.order.payment_type == 'MASTER VISA') { 7466 this.checkoutId = this.order.checkout_id; 7467 7468 if (this.isSpg) { 7469 this.spgContext = this.order.sibsspg_form_context; 7470 this.spgConfig = '{"paymentMethodList": [], "amount": { "value": ' + this.order.total + ', "currency": "EUR" },"language": "pt","redirectUrl": "' + this.getBaseUrl() + '/encomenda/' + this.orderId + '", "customerData": null}'; 7471 this.spgStyle = '{"layout": "default","theme": "default", "color": {"primary": "' + this.merchant.color + '", "secondary": "' + this.merchant.color2 + '","border": "","surface": "","header": {"text": "","background": "#FFFFFF"},"body": {"text": "","background": "#FFFFFF"}},"font":""}'; 7472 const sibsSpgPaymentWidget = this.renderer2.createElement('script'); 7473 sibsSpgPaymentWidget.type = 'text/javascript'; 7474 sibsSpgPaymentWidget.src = 'https://api.sibspayments.com/assets/js/widget.js?id=' + this.checkoutId; 7475 const formSibsPayment = this.renderer2.createElement('form'); 7476 this.renderer2.setAttribute(formSibsPayment, 'class', 'paymentSPG'); 7477 this.renderer2.setAttribute(formSibsPayment, 'spg-context', this.spgContext); 7478 this.renderer2.setAttribute(formSibsPayment, 'spg-config', this.spgConfig); 7479 this.renderer2.setAttribute(formSibsPayment, 'spg-style', this.spgStyle); 7480 setTimeout(() => { 7481 this.renderer2.appendChild(this.paymentForm.nativeElement, sibsSpgPaymentWidget); 7482 this.renderer2.appendChild(this.paymentForm.nativeElement, formSibsPayment); 7483 }, 900); 7484 } 7485 } 7486 } 7487 }); 7488 } 7489 7490 goBack() { 7491 this.location.back(); 7492 } 7493 7494 getBaseUrl() { 7495 return window.location.origin; 7496 } 7497 7498 checkStatus(loading = false) { 7499 if (loading) { 7500 this.loading = true; 7501 } 7502 7503 this.paymentService.status(this.orderId).subscribe(resp => { 7504 if (resp.status == 'OK') { 7505 if (resp.data.status !== 'pending') { 7506 this.load(); 7507 } else { 7508 if (this.order.status === 'Submetida' && this.order.payment_type !== 'MASTER VISA') { 7509 setTimeout(() => { 7510 this.checkStatus(); 7511 }, 10000); 7512 } 7513 } 7514 } else { 7515 this.toastService.showError(resp.data.message); 7516 } 7517 7518 this.loading = false;
7519 }); 7520 } 7521 7522 openPay() { 7523 this.router.navigate(['/pagar', this.order.id]); 7524 } 7525 7526} 7527 7528OrderPayComponent.ɵfac = function OrderPayComponent_Factory(t) { 7529 return new (t || OrderPayComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_services_services_service__WEBPACK_IMPORTED_MODULE_2__.OrderService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_6__.Location), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_7__.ActivatedRoute), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_services_services_service__WEBPACK_IMPORTED_MODULE_2__.PaymentService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_5__.Renderer2)); 7530}; 7531 7532OrderPayComponent.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineComponent"]({ 7533 type: OrderPayComponent, 7534 selectors: [["app-order-pay"]], 7535 viewQuery: function OrderPayComponent_Query(rf, ctx) { 7536 if (rf & 1) { 7537 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵviewQuery"](_c0, 5); 7538 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵviewQuery"](_c1, 7); 7539 } 7540 7541 if (rf & 2) { 7542 let _t; 7543 7544 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵloadQuery"]()) && (ctx.paymentForm = _t.first); 7545 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵloadQuery"]()) && (ctx.sibsModal = _t.first); 7546 } 7547 }, 7548 features: [_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵInheritDefinitionFeature"]], 7549 decls: 7, 7550 vars: 2, 7551 consts: [["class", "ob-title", 4, "ngIf"], [1, "order-container"], [1, "text-start"], ["role", "button", 3, "click"], [1, "fas", "fa-angle-left"], ["class", "mt-5", 4, "ngIf"], [1, "ob-title"], [1, "mt-5"], [1, "row", "align-items-top"], [1, "col-12", "col-md-6"], [4, "ngIf"], ["paymentForm", ""], ["class", "sibs", "src", "assets/images/sibs.png", "alt", "sibs", 4, "ngIf"], [1, "col-12", "col-md-6", "mt-4"], ["class", "text-uppercase", 4, "ngIf"], [1, "row"], [3, "ngClass"], [3, "click", 4, "ngIf"], [1, "col-12", "mt-5"], [3, "innerHTML"], [1, "row", "align-items-center", "d-none", "d-lg-flex"], [1, "col-12", "col-md-2"], [1, "text-end"], ["class", "row align-items-center my-2", 4, "ngFor", "ngForOf"], [1, "row", "align-items-center"], [1, "col-6"], [1, "col-6", "text-end"], [1, "row", "align-items-center", "mt-5"], ["src", "assets/images/sibs.png", "alt", "sibs", 1, "sibs"], [1, "text-uppercase"], [1, "btn", "btn-sm", "btn-primary", "btn-pay", 3, "click"], [3, "click"], [1, "fas", "fa-sync-alt", "ml-2", 3, "ngClass"], [1, "row", "align-items-center", "my-2"], [1, "img", "center", 3, "src", "alt"], [1, "col-12", "col-md-6", "mt-2", "mt-md-0"], ["class", "options-text", 4, "ngIf"], [1, "col-6", "col-md-2"], [1, "text-start", "text-md-end"], [1, "options-text"]], 7552 template: function OrderPayComponent_Template(rf, ctx) { 7553 if (rf & 1) { 7554 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](0, OrderPayComponent_h2_0_Template, 2, 1, "h2", 0); 7555 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](1, "div", 1)(2, "p", 2)(3, "a", 3); 7556 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function OrderPayComponent_Template_a_click_3_listener() { 7557 return ctx.goBack(); 7558 }); 7559 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](4, "i", 4); 7560 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](5, " Voltar"); 7561 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()(); 7562 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](6, OrderPayComponent_div_6_Template, 95, 34, "div", 5); 7563 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7564 } 7565 7566 if (rf & 2) { 7567 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.order); 7568 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](6); 7569 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.order); 7570 } 7571 }, 7572 dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_6__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_6__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_6__.NgIf, _pipes_format_money_pipe__WEBPACK_IMPORTED_MODULE_3__.FormatMoneyPipe, _pipes_format_name_pipe__WEBPACK_IMPORTED_MODULE_4__.FormatNamePipe], 7573 styles: [".ob-title[_ngcontent-%COMP%] {\n margin-top: 100px;\n margin-bottom: 30px;\n}\n\n.modal[_ngcontent-%COMP%] {\n margin-top: 11px;\n}\n\n.paymentSPG[_ngcontent-%COMP%] {\n padding: 0 0px;\n margin-top: -73px;\n}\n\n.sibs[_ngcontent-%COMP%] {\n width: 100%;\n margin-top: -100px;\n}\n\n.order-container[_ngcontent-%COMP%] {\n box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);\n margin-bottom: 125px;\n background-color: var(--grey);\n padding: 50px;\n}\n\n.order-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n font-size: 16px;\n}\n\n.order-container[_ngcontent-%COMP%] .btn-pay[_ngcontent-%COMP%] {\n height: 35px;\n padding-left: 24px;\n padding-right: 24px;\n padding-top: 4px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm9yZGVyLXBheS5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNDLGlCQUFBO0VBQ0EsbUJBQUE7QUFDRDs7QUFFQTtFQUNFLGdCQUFBO0FBQ0Y7O0FBQ0E7RUFDRSxjQUFBO0VBQ0EsaUJBQUE7QUFFRjs7QUFDQTtFQUNFLFdBQUE7RUFDQSxrQkFBQTtBQUVGOztBQUNBO0VBQ0MsMENBQUE7RUFDQSxvQkFBQTtFQUNBLDZCQUFBO0VBQ0EsYUFBQTtBQUVEOztBQUFDO0VBQ0MsZUFBQTtBQUVGOztBQUNFO0VBQ0UsWUFBQTtFQUNBLGtCQUFBO0VBQ0EsbUJBQUE7
7573RUFDQSxnQkFBQTtBQUNKIiwiZmlsZSI6Im9yZGVyLXBheS5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5vYi10aXRsZSB7XG5cdG1hcmdpbi10b3A6IDEwMHB4O1xuXHRtYXJnaW4tYm90dG9tOiAzMHB4O1xufVxuXG4ubW9kYWwge1xuICBtYXJnaW4tdG9wOiAxMXB4O1xufVxuLnBheW1lbnRTUEcge1xuICBwYWRkaW5nOiAwIDBweDtcbiAgbWFyZ2luLXRvcDogLTczcHg7XG59XG5cbi5zaWJzIHtcbiAgd2lkdGg6IDEwMCU7XG4gIG1hcmdpbi10b3A6IC0xMDBweDtcbn1cblxuLm9yZGVyLWNvbnRhaW5lciB7XG5cdGJveC1zaGFkb3c6IDBweCAxcHggMnB4IHJnYmEoMCwgMCwgMCwgMC4yKTtcblx0bWFyZ2luLWJvdHRvbTogMTI1cHg7XG5cdGJhY2tncm91bmQtY29sb3I6IHZhcigtLWdyZXkpO1xuXHRwYWRkaW5nOiA1MHB4O1xuXG5cdHAge1xuXHRcdGZvbnQtc2l6ZTogMTZweDtcblx0fVxuXG4gIC5idG4tcGF5IHtcbiAgICBoZWlnaHQ6IDM1cHg7XG4gICAgcGFkZGluZy1sZWZ0OiAyNHB4O1xuICAgIHBhZGRpbmctcmlnaHQ6IDI0cHg7XG4gICAgcGFkZGluZy10b3A6IDRweDtcbiAgfVxufVxuIl19 */"] 7574}); 7575 7576/***/ }), 7577 7578/***/ 2785: 7579/*!************************************************!*\ 7580 !*** ./src/app/pages/order/order.component.ts ***! 7581 \************************************************/ 7582/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 7583 7584__webpack_require__.r(__webpack_exports__); 7585/* harmony export */ __webpack_require__.d(__webpack_exports__, { 7586/* harmony export */ "OrderComponent": () => (/* binding */ OrderComponent) 7587/* harmony export */ }); 7588/* harmony import */ var _home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 1670); 7589/* harmony import */ var _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @pages/basic/basic.component */ 9689); 7590/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/core */ 2560); 7591/* harmony import */ var _services_services_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @services/services.service */ 6325); 7592/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ 4666); 7593/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/router */ 124); 7594/* harmony import */ var _pipes_format_money_pipe__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../pipes/format-money.pipe */ 531); 7595/* harmony import */ var _pipes_format_name_pipe__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @pipes/format-name.pipe */ 4980); 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605const _c0 = ["paymentForm"]; 7606const _c1 = ["sibsModal"]; 7607 7608function OrderComponent_h2_0_Template(rf, ctx) { 7609 if (rf & 1) { 7610 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "h2", 6); 7611 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1); 7612 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7613 } 7614 7615 if (rf & 2) { 7616 const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](); 7617 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 7618 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"]("Encomenda: ", ctx_r0.order.name, ""); 7619 } 7620} 7621 7622function OrderComponent_div_6_p_5_Template(rf, ctx) { 7623 if (rf & 1) { 7624 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "p"); 7625 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, "Entrega no domic\u00EDlio"); 7626 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7627 } 7628} 7629 7630function OrderComponent_div_6_p_6_Template(rf, ctx) { 7631 if (rf & 1) { 7632 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "p"); 7633 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, "Levantamento na Loja"); 7634 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7635 } 7636} 7637 7638function OrderComponent_div_6_div_7_Template(rf, ctx) { 7639 if (rf & 1) { 7640 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div")(1, "h3"); 7641 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, "Morada de Entrega"); 7642 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7643 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](3, "p"); 7644 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](4); 7645 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](5, "br"); 7646 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](6); 7647 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](7, "br"); 7648 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](8); 7649 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()(); 7650 } 7651 7652 if (rf & 2) { 7653 const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2); 7654 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4); 7655 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", ctx_r4.order.address_delivery.address, " "); 7656 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2); 7657 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate2"](" ", ctx_r4.order.address_delivery.postcode, ", ", ctx_r4.order.address_delivery.city, " "); 7658 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2); 7659 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", ctx_r4.order.address_delivery.country, " "); 7660 } 7661} 7662 7663function OrderComponent_div_6_div_8_Template(rf, ctx) { 7664 if (rf & 1) { 7665 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div")(1, "h3"); 7666 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, "Loja"); 7667 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7668 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](3, "p"); 7669 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](4); 7670 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](5, "br"); 7671 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](6); 7672 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()(); 7673 } 7674 7675 if (rf & 2) { 7676 const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2); 7677 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4); 7678 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", ctx_r5.order.store.name, " "); 7679 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2); 7680 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", ctx_r5.order.store.address, " "); 7681 } 7682} 7683 7684function OrderComponent_div_6_div_9_p_3_Template(rf, ctx) { 7685 if (rf & 1) { 7686 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "p"); 7687 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1); 7688 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](2, "br"); 7689 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](3); 7690 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](4, "br"); 7691 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](5); 7692 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7693 } 7694 7695 if (rf & 2) { 7696 const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3); 7697 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 7698 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", ctx_r17.order.address_billing.address, " "); 7699 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2); 7700 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate2"](" ", ctx_r17.order.address_billing.postcode, ", ", ctx_r17.order.address_billing.city, " "); 7701 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2); 7702 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", ctx_r17.order.address_billing.country, " "); 7703 } 7704} 7705 7706function OrderComponent_div_6_div_9_Template(rf, ctx) { 7707 if (rf & 1) { 7708 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div")(1, "h3"); 7709 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, "Morada de Fatura\u00E7\u00E3o"); 7710 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7711 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](3, OrderComponent_div_6_div_9_p_3_Template, 6, 4, "p", 10); 7712 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7713 } 7714 7715 if (rf & 2) { 7716 const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2); 7717 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3); 7718 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r6.order.address_billing); 7719 } 7720} 7721 7722function OrderComponent_div_6_p_13_Template(rf, ctx) { 7723 if (rf & 1) { 7724 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "p"); 7725 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1); 7726 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7727 } 7728 7729 if (rf & 2) { 7730 const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2); 7731 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 7732 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](ctx_r7.order.payment_type); 7733 } 7734} 7735 7736function OrderComponent_div_6_p_14_Template(rf, ctx) { 7737 if (rf & 1) { 7738 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "p", 25); 7739 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, "Pagar na Loja"); 7740 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7741 } 7742} 7743 7744function OrderComponent_div_6_p_15_Template(rf, ctx) { 7745 if (rf & 1) { 7746 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "p", 25); 7747 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, "Transfer\u00EAncia Banc\u00E1ria"); 7748 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7749 } 7750} 7751 7752function OrderComponent_div_6_p_16_Template(rf, ctx) { 7753 if (rf & 1) { 7754 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "p", 25); 7755 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, "Cart\u00E3o de Cr\u00E9dito"); 7756 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7757 } 7758} 7759 7760const _c2 = function (a0) { 7761 return { 7762 "fa-spin": a0 7763 }; 7764}; 7765 7766function OrderComponent_div_6_div_17_span_7_Template(rf, ctx) { 7767 if (rf & 1) { 7768 const _r20 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"](); 7769 7770 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span", 28); 7771 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function OrderComponent_div_6_div_17_span_7_Template_span_click_0_listener() { 7772 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r20); 7773 const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3); 7774 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetVie
7774w"](ctx_r19.checkStatus(true)); 7775 }); 7776 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 29); 7777 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7778 } 7779 7780 if (rf & 2) { 7781 const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3); 7782 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 7783 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpureFunction1"](1, _c2, ctx_r18.loading)); 7784 } 7785} 7786 7787function OrderComponent_div_6_div_17_Template(rf, ctx) { 7788 if (rf & 1) { 7789 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div")(1, "h3"); 7790 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, "Estado"); 7791 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7792 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](3, "p")(4, "span", 26); 7793 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](5); 7794 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7795 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](6, "\u00A0 "); 7796 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](7, OrderComponent_div_6_div_17_span_7_Template, 2, 3, "span", 27); 7797 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()(); 7798 } 7799 7800 if (rf & 2) { 7801 const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2); 7802 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4); 7803 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngClass", ctx_r11.order.status); 7804 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 7805 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](ctx_r11.order.status); 7806 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2); 7807 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r11.order.status === "Submetida"); 7808 } 7809} 7810 7811function OrderComponent_div_6_div_19_Template(rf, ctx) { 7812 if (rf & 1) { 7813 const _r22 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"](); 7814 7815 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div")(1, "p"); 7816 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, "Conclua o pagamento"); 7817 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7818 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](3, "button", 30); 7819 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function OrderComponent_div_6_div_19_Template_button_click_3_listener() { 7820 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r22); 7821 const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2); 7822 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r21.openPay()); 7823 }); 7824 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](4, "Pagar"); 7825 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()(); 7826 } 7827} 7828 7829function OrderComponent_div_6_div_20_Template(rf, ctx) { 7830 if (rf & 1) { 7831 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div")(1, "p"); 7832 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, "Conclua o pagamento usando estes dados"); 7833 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7834 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](3, "p")(4, "b"); 7835 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](5, "Entidade:"); 7836 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7837 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](6); 7838 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](7, "br"); 7839 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](8, "b"); 7840 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](9, "Refer\u00EAncia:"); 7841 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7842 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](10); 7843 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](11, "br"); 7844 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](12, "b"); 7845 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](13, "Valor:"); 7846 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7847 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](14); 7848 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](15, "br"); 7849 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](16, "b"); 7850 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](17, "Data Limite:"); 7851 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7852 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](18); 7853 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()(); 7854 } 7855 7856 if (rf & 2) { 7857 const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2); 7858 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](6); 7859 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", ctx_r13.order.mb_entity, " "); 7860 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4); 7861 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", ctx_r13.order.mb_reference, " "); 7862 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4); 7863 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", ctx_r13.order.mb_amount, " "); 7864 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4); 7865 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", ctx_r13.order.mb_limit_date, " "); 7866 } 7867} 7868 7869function OrderComponent_div_6_div_21_Template(rf, ctx) { 7870 if (rf & 1) { 7871 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div")(1, "p"); 7872 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, "Conclua o pagamento usando estes dados"); 7873 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7874 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](3, "p")(4, "b"); 7875 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](5, "Banco:"); 7876 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7877 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](6); 7878 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](7, "br"); 7879 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](8, "b"); 7880 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](9, "BIC/SWIFT:"); 7881 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7882 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](10); 7883 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](11, "br"); 7884 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](12, "b"); 7885 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](13, "IBAN:"); 7886 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7887 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](14); 7888 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()(); 7889 } 7890 7891 if (rf & 2) { 7892 const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2); 7893 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](6); 7894 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", ctx_r14.merchant.payments.bt_bank, " "); 7895 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4); 7896 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", ctx_r14.merchant.payments.bt_bicswift, " "); 7897 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4); 7898 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", ctx_r14.merchant.payments.bt_iban, " "); 7899 } 7900} 7901 7902function OrderComponent_div_6_div_22_p_1_Template(rf, ctx) { 7903 if (rf & 1) { 7904 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "p"); 7905 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, "Conclua o pagamento na App MBWay"); 7906 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7907 } 7908} 7909 7910function OrderComponent_div_6_div_22_Template(rf, ctx) { 7911 if (rf & 1) { 7912 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div"); 7913 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](1, OrderComponent_div_6_div_22_p_1_Template, 2, 0, "p", 10); 7914 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](2, "p")(3, "b"); 7915 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](4, "N\u00FAmero usado:"); 7916 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7917 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](5); 7918 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](6, "br"); 7919 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()(); 7920 } 7921 7922 if (rf & 2) { 7923 const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2); 7924 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 7925 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r15.order.status === "Submetida"); 7926 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4); 7927 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", ctx_r15.order.mbway, " "); 7928 } 7929} 7930 7931function OrderComponent_div_6_div_47_span_8_Template(rf, ctx) { 7932 if (rf & 1) { 7933 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span", 37); 7934 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "br"); 7935 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2); 7936 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7937 } 7938 7939 if (rf & 2) { 7940 const item_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit; 7941 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2); 7942 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](item_r24.version.name); 7943 } 7944} 7945 7946function OrderComponent_div_6_div_47_Template(rf, ctx) { 7947 if (rf & 1) { 7948 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 31)(1, "div", 16); 7949 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](2, "img", 32); 7950 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](3, "formatName"); 7951 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7952 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](4, "div", 33)(5, "p"); 7953 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](6); 7954 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](7, "formatName"); 7955 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](8, OrderComponent_div_6_div_47_span_8_Template, 3, 1, "span", 34); 7956 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()(); 7957 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](9, "div", 35)(10, "p", 36); 7958 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](11); 7959 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()(); 7960 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](12, "div", 35)(13, "p", 17); 7961 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](14); 7962 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](15, "formatMoney"); 7963 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()(); 7964 } 7965 7966 if (rf & 2) { 7967 const item_r24 = ctx.$implicit; 7968 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2); 7969 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpropertyInterpolate"]("alt", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind1"](3, 6, item_r24.name)); 7970 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("src", item_r24.image, _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵsanitizeUrl"]); 7971 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4); 7972 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind1"](7, 8, item_r24.name), " "); 7973 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2); 7974 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", item_r24.version); 7975 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3); 7976 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"]("x ", item_r24.quantity, ""); 7977 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3); 7978 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind1"](15, 10, item_r24.price)); 7979 } 7980} 7981 7982function OrderComponent_div_6_Template(rf, ctx) { 7983 if (rf & 1) { 7984 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 7)(1, "div", 8)(2, "div", 9)(3, "h3"); 7985 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](4, "M\u00E9todo de Envio"); 7986 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7987 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](5, OrderComponent_div_6_p_5_Template, 2, 0, "p", 10); 7988 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](6, OrderComponent_div_6_p_6_Template, 2, 0, "p", 10); 7989 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](7, OrderComponent_div_6_div_7_Template, 9, 4, "div", 10); 7990 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](8, OrderComponent_div_6_div_8_Template, 7, 2, "div", 10); 7991 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](9, OrderComponent_div_6_div_9_Template, 4, 1, "div", 10); 7992 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7993 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](10, "div", 9)(11, "h3"); 7994 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](12, "Pagamento"); 7995 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 7996 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](13, OrderComponent_div_6_p_13_Template, 2, 1, "p", 10); 7997 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](14, OrderComponent_div_6_p_14_Template, 2, 0, "p", 11); 7998 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](15, OrderComponent_div_6_p_15_Template, 2, 0, "p", 11); 7999 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](16, OrderComponent_div_6_p_16_Template, 2, 0, "p", 11); 8000 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](17, OrderComponent_div_6_div_17_Template, 8, 3, "div", 10); 8001 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](18, "div", 12); 8002 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](19, OrderComponent_div_6_div_19_Template, 5, 0, "div", 10); 8003 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 8004 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](20, OrderComponent_div_6_div_20_Template, 19, 4, "div", 10); 8005 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](21, OrderComponent_div_6_div_21_Template, 15, 3, "div", 10); 8006 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](22, OrderComponent_div_6_div_22_Template, 7, 2, "div", 10); 8007 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()(); 8008 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](23, "div", 13)(24, "h3"); 8009 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](25, "Notas/Observa\u00E7\u00F5es"); 8010 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 8011 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](26, "div", 14); 8012 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 8013 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](27, "h3", 7); 8014 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](28, "O seu Pedido"); 8015 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 8016 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](29, "hr"); 8017 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](30, "div", 15)(31, "div", 16)(32, "p")(33, "b"); 8018 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](34, "Art
8018igo"); 8019 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()(); 8020 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](35, "div", 9)(36, "p")(37, "b"); 8021 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](38, "Descri\u00E7\u00E3o"); 8022 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()(); 8023 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](39, "div", 16)(40, "p", 17)(41, "b"); 8024 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](42, "Quantidade."); 8025 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()(); 8026 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](43, "div", 16)(44, "p", 17)(45, "b"); 8027 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](46, "Pre\u00E7o"); 8028 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()(); 8029 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](47, OrderComponent_div_6_div_47_Template, 16, 12, "div", 18); 8030 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](48, "hr"); 8031 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](49, "div", 19); 8032 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](50, "div", 20); 8033 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](51, "div", 21)(52, "div", 12)(53, "div", 22); 8034 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](54, "Subtotal:"); 8035 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 8036 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](55, "div", 23); 8037 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](56); 8038 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](57, "formatMoney"); 8039 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 8040 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](58, "div", 22); 8041 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](59, "Saldo Descontado:"); 8042 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 8043 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](60, "div", 23); 8044 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](61); 8045 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](62, "formatMoney"); 8046 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 8047 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](63, "div", 22); 8048 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](64, "Desconto Cup\u00E3o:"); 8049 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 8050 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](65, "div", 23); 8051 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](66); 8052 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](67, "formatMoney"); 8053 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 8054 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](68, "div", 22); 8055 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](69, "Taxa de envio:"); 8056 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 8057 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](70, "div", 23); 8058 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](71); 8059 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](72, "formatMoney"); 8060 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()(); 8061 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](73, "div", 24); 8062 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](74, "div", 20); 8063 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](75, "div", 21)(76, "div", 12)(77, "div", 22)(78, "h3"); 8064 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](79, "Total:"); 8065 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()(); 8066 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](80, "div", 23)(81, "h3"); 8067 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](82); 8068 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](83, "formatMoney"); 8069 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()()()(); 8070 } 8071 8072 if (rf & 2) { 8073 const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](); 8074 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](5); 8075 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r1.order.delivery_type == 1); 8076 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 8077 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r1.order.delivery_type == 2); 8078 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 8079 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r1.order.delivery_type == 1); 8080 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 8081 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r1.order.delivery_type == 2); 8082 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 8083 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r1.order.address_billing); 8084 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4); 8085 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r1.order.payment_type !== "PAY_AT_STORE" && ctx_r1.order.payment_type !== "BANK_TRANSFER" && ctx_r1.order.payment_type !== "MASTER VISA"); 8086 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 8087 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r1.order.payment_type == "PAY_AT_STORE"); 8088 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 8089 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r1.order.payment_type == "BANK_TRANSFER"); 8090 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 8091 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r1.order.payment_type == "MASTER VISA"); 8092 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 8093 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r1.order.payment_type !== "PAY_AT_STORE"); 8094 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2); 8095 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r1.order.status === "Submetida" && ctx_r1.order.payment_type == "MASTER VISA"); 8096 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 8097 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r1.order.status === "Submetida" && ctx_r1.order.payment_type == "REFER\u00CANCIA MULTIBANCO"); 8098 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 8099 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r1.order.status === "Submetida" && ctx_r1.order.payment_type == "BANK_TRANSFER"); 8100 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 8101 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r1.order.payment_type == "MBWAY"); 8102 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4); 8103 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("innerHTML", ctx_r1.order.notes, _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵsanitizeHtml"]); 8104 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](21); 8105 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", ctx_r1.order.items); 8106 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](9); 8107 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind1"](57, 21, ctx_r1.order.price)); 8108 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](5); 8109 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind1"](62, 23, ctx_r1.order.discount)); 8110 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](5); 8111 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind1"](67, 25, ctx_r1.order.discount_coupon)); 8112 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](5); 8113 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind1"](72, 27, ctx_r1.order.delivery)); 8114 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](11); 8115 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind1"](83, 29, ctx_r1.order.total)); 8116 } 8117} 8118 8119class OrderComponent extends _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_1__.BasicComponent { 8120 constructor(orderService, location, activatedRoute, paymentService) { 8121 var _this; 8122 8123 super(); 8124 _this = this; 8125 this.orderService = orderService; 8126 this.location = location; 8127 this.activatedRoute = activatedRoute; 8128 this.paymentService = paymentService; 8129 this.loading = false;
8130 this.isSpg = false; 8131 this.user = this.storageService.get('user'); 8132 this.merchant = this.storageService.get('merchant'); 8133 8134 if (!this.merchant || !this.user) { 8135 this.navigateHome(); 8136 } 8137 8138 this.isSpg = this.merchant.payments.cc == 'sibs-spg'; 8139 8140 if (!this.user) { 8141 this.navigateHome(); 8142 } 8143 8144 this.activatedRoute.params.subscribe( /*#__PURE__*/function () { 8145 var _ref = (0,_home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (params) { 8146 _this.orderId = params.id; 8147 8148 _this.load(); 8149 }); 8150 8151 return function (_x) { 8152 return _ref.apply(this, arguments); 8153 }; 8154 }()); 8155 } 8156 8157 ngOnInit() {} 8158 8159 load() { 8160 this.orderService.one(this.orderId).subscribe(resp => { 8161 if (resp.status == 'OK') { 8162 this.order = resp.data; 8163 setTimeout(() => { 8164 this.checkStatus(); 8165 }, 2000); 8166 } 8167 }); 8168 } 8169 8170 goBack() { 8171 this.location.back(); 8172 } 8173 8174 checkStatus(loading = false) { 8175 if (loading) { 8176 this.loading = true; 8177 } 8178 8179 this.paymentService.status(this.orderId).subscribe(resp => { 8180 if (resp.status == 'OK') { 8181 if (resp.data.status !== 'pending') { 8182 this.load(); 8183 } else { 8184 if (this.order.status === 'Submetida' && this.order.payment_type !== 'MASTER VISA') { 8185 setTimeout(() => { 8186 this.checkStatus(); 8187 }, 10000); 8188 } 8189 } 8190 } else { 8191 this.toastService.showError(resp.data.message); 8192 } 8193 8194 this.loading = false; 8195 }); 8196 } 8197 8198 openPay() { 8199 this.router.navigate(['/pagar', this.order.id]); 8200 } 8201 8202} 8203 8204OrderComponent.ɵfac = function OrderComponent_Factory(t) { 8205 return new (t || OrderComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_services_services_service__WEBPACK_IMPORTED_MODULE_2__.OrderService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_6__.Location), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_7__.ActivatedRoute), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_services_services_service__WEBPACK_IMPORTED_MODULE_2__.PaymentService)); 8206}; 8207 8208OrderComponent.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineComponent"]({ 8209 type: OrderComponent, 8210 selectors: [["app-order"]], 8211 viewQuery: function OrderComponent_Query(rf, ctx) { 8212 if (rf & 1) { 8213 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵviewQuery"](_c0, 5); 8214 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵviewQuery"](_c1, 7); 8215 } 8216 8217 if (rf & 2) { 8218 let _t; 8219 8220 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵloadQuery"]()) && (ctx.paymentForm = _t.first); 8221 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵloadQuery"]()) && (ctx.sibsModal = _t.first); 8222 } 8223 }, 8224 features: [_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵInheritDefinitionFeature"]], 8225 decls: 7, 8226 vars: 2, 8227 consts: [["class", "ob-title", 4, "ngIf"], [1, "order-container"], [1, "text-start"], ["role", "button", 3, "click"], [1, "fas", "fa-angle-left"], ["class", "mt-5", 4, "ngIf"], [1, "ob-title"], [1, "mt-5"], [1, "row", "align-items-top"], [1, "col-12", "col-md-6"], [4, "ngIf"], ["class", "text-uppercase", 4, "ngIf"], [1, "row"], [1, "col-12", "mt-5"], [3, "innerHTML"], [1, "row", "align-items-center", "d-none", "d-lg-flex"], [1, "col-12", "col-md-2"], [1, "text-end"], ["class", "row align-items-center my-2", 4, "ngFor", "ngForOf"], [1, "row", "align-items-center"], [1, "col-12", "col-md-8"], [1, "col-12", "col-md-4"], [1, "col-6"], [1, "col-6", "text-end"], [1, "row", "align-items-center", "mt-5"], [1, "text-uppercase"], [3, "ngClass"], [3, "click", 4, "ngIf"], [3, "click"], [1, "fas", "fa-sync-alt", "ml-2", 3, "ngClass"], [1, "btn", "btn-sm", "btn-primary", "btn-pay", 3, "click"], [1, "row", "align-items-center", "my-2"], [1, "img", "center", 3, "src", "alt"], [1, "col-12", "col-md-6", "mt-2", "mt-md-0"], ["class", "options-text", 4, "ngIf"], [1, "col-6", "col
8227-md-2"], [1, "text-start", "text-md-end"], [1, "options-text"]], 8228 template: function OrderComponent_Template(rf, ctx) { 8229 if (rf & 1) { 8230 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](0, OrderComponent_h2_0_Template, 2, 1, "h2", 0); 8231 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](1, "div", 1)(2, "p", 2)(3, "a", 3); 8232 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function OrderComponent_Template_a_click_3_listener() { 8233 return ctx.goBack(); 8234 }); 8235 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](4, "i", 4); 8236 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](5, " Voltar"); 8237 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()(); 8238 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](6, OrderComponent_div_6_Template, 84, 31, "div", 5); 8239 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 8240 } 8241 8242 if (rf & 2) { 8243 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.order); 8244 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](6); 8245 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.order); 8246 } 8247 }, 8248 dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_6__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_6__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_6__.NgIf, _pipes_format_money_pipe__WEBPACK_IMPORTED_MODULE_3__.FormatMoneyPipe, _pipes_format_name_pipe__WEBPACK_IMPORTED_MODULE_4__.FormatNamePipe], 8249 styles: [".ob-title[_ngcontent-%COMP%] {\n margin-top: 100px;\n margin-bottom: 30px;\n}\n\n.modal[_ngcontent-%COMP%] {\n margin-top: 11px;\n}\n\n.paymentSPG[_ngcontent-%COMP%] {\n padding: 0 16px;\n}\n\n.btn-close[_ngcontent-%COMP%] {\n float: right;\n}\n\n.sibs[_ngcontent-%COMP%] {\n width: 100%;\n margin-top: -100px;\n}\n\n.order-container[_ngcontent-%COMP%] {\n box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);\n margin-bottom: 125px;\n background-color: var(--grey);\n padding: 50px;\n}\n\n.order-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n font-size: 16px;\n}\n\n.order-container[_ngcontent-%COMP%] .btn-pay[_ngcontent-%COMP%] {\n height: 35px;\n padding-left: 24px;\n padding-right: 24px;\n padding-top: 4px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm9yZGVyLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0MsaUJBQUE7RUFDQSxtQkFBQTtBQUNEOztBQUVBO0VBQ0UsZ0JBQUE7QUFDRjs7QUFDQTtFQUNFLGVBQUE7QUFFRjs7QUFBQTtFQUNFLFlBQUE7QUFHRjs7QUFEQTtFQUNFLFdBQUE7RUFDQSxrQkFBQTtBQUlGOztBQURBO0VBQ0MsMENBQUE7RUFDQSxvQkFBQTtFQUNBLDZCQUFBO0VBQ0EsYUFBQTtBQUlEOztBQUZDO0VBQ0MsZUFBQTtBQUlGOztBQURFO0VBQ0UsWUFBQTtFQUNBLGtCQUFBO0VBQ0EsbUJBQUE7RUFDQSxnQkFBQTtBQUdKIiwiZmlsZSI6Im9yZGVyLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLm9iLXRpdGxlIHtcblx0bWFyZ2luLXRvcDogMTAwcHg7XG5cdG1hcmdpbi1ib3R0b206IDMwcHg7XG59XG5cbi5tb2RhbCB7XG4gIG1hcmdpbi10b3A6IDExcHg7XG59XG4ucGF5bWVudFNQRyB7XG4gIHBhZGRpbmc6IDAgMTZweDtcbn1cbi5idG4tY2xvc2Uge1xuICBmbG9hdDogcmlnaHQ7XG59XG4uc2licyB7XG4gIHdpZHRoOiAxMDAlO1xuICBtYXJnaW4tdG9wOiAtMTAwcHg7XG59XG5cbi5vcmRlci1jb250YWluZXIge1xuXHRib3gtc2hhZG93OiAwcHggMXB4IDJweCByZ2JhKDAsIDAsIDAsIDAuMik7XG5cdG1hcmdpbi1ib3R0b206IDEyNXB4O1xuXHRiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1ncmV5KTtcblx0cGFkZGluZzogNTBweDtcblxuXHRwIHtcblx0XHRmb250LXNpemU6IDE2cHg7XG5cdH1cblxuICAuYnRuLXBheSB7XG4gICAgaGVpZ2h0OiAzNXB4O1xuICAgIHBhZGRpbmctbGVmdDogMjRweDtcbiAgICBwYWRkaW5nLXJpZ2h0OiAyNHB4O1xuICAgIHBhZGRpbmctdG9wOiA0cHg7XG4gIH1cbn1cbiJdfQ== */"] 8250}); 8251 8252/***/ }), 8253 8254/***/ 8159: 8255/*!**************************************************!*\ 8256 !*** ./src/app/pages/orders/orders.component.ts ***! 8257 \**************************************************/ 8258/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 8259 8260__webpack_require__.r(__webpack_exports__); 8261/* harmony export */ __webpack_require__.d(__webpack_exports__, { 8262/* harmony export */ "OrdersComponent": () => (/* binding */ OrdersComponent) 8263/* harmony export */ }); 8264/* harmony import */ var _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pages/basic/basic.component */ 9689); 8265/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 2560); 8266/* harmony import */ var _services_services_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @services/services.service */ 6325); 8267 8268 8269 8270function OrdersComponent_p_7_Template(rf, ctx) { if (rf & 1) { 8271 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "p"); 8272 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, "N\u00E3o tem nenhuma encomenda registada"); 8273 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 8274} } 8275function OrdersComponent_a_8_Template(rf, ctx) { if (rf & 1) { 8276 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "a", 7)(1, "div", 8)(2, "p"); 8277 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3); 8278 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 8279 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "p"); 8280 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](5); 8281 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "span", 9); 8282 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](7); 8283 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()(); 8284 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 8)(9, "p", 10); 8285 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](10); 8286 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](11, "formatMoney"); 8287 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 8288 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "p", 10); 8289 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](13); 8290 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()(); 8291} if (rf & 2) { 8292 const order_r2 = ctx.$implicit; 8293 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("href", "/encomenda
8293/" + order_r2.id, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]); 8294 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3); 8295 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](order_r2.name); 8296 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); 8297 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", order_r2.date, " "); 8298 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); 8299 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", order_r2.status); 8300 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); 8301 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](order_r2.status); 8302 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3); 8303 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](11, 7, order_r2.total)); 8304 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3); 8305 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](order_r2.payment_type); 8306} } 8307class OrdersComponent extends _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_0__.BasicComponent { 8308 constructor(orderService) { 8309 super(); 8310 this.orderService = orderService; 8311 this.orders = []; 8312 this.user = this.storageService.get('user'); 8313 if (!this.user) { 8314 this.navigateHome(); 8315 } 8316 } 8317 ngOnInit() { 8318 this.load(); 8319 } 8320 load() { 8321 this.orderService.all().subscribe((resp) => { 8322 if (resp.status == 'OK') { 8323 this.orders = resp.data; 8324 } 8325 }); 8326 } 8327} 8328OrdersComponent.ɵfac = function OrdersComponent_Factory(t) { return new (t || OrdersComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_services_services_service__WEBPACK_IMPORTED_MODULE_1__.OrderService)); }; 8329OrdersComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({ type: OrdersComponent, selectors: [["app-orders"]], features: [_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵInheritDefinitionFeature"]], decls: 9, vars: 2, consts: [[1, "ob-title"], [1, "profile-container"], [1, "row", "mb-5"], [1, "col-12", "col-md-4", "my-2"], [1, "col-12", "col-md-8", "my-2", "profile-content"], [4, "ngIf"], ["class", "content-order row align-items-center", "role", "button", 3, "href", 4, "ngFor", "ngForOf"], ["role", "button", 1, "content-order", "row", "align-items-center", 3, "href"], [1, "col-6"], [3, "ngClass"], [1, "text-end"]], template: function OrdersComponent_Template(rf, ctx) { if (rf & 1) { 8330 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "h2", 0); 8331 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, "Encomendas"); 8332 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 8333 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 1)(3, "div", 2)(4, "div", 3); 8334 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "app-menu-profile"); 8335 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 8336 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div", 4); 8337 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](7, OrdersComponent_p_7_Template, 2, 0, "p", 5); 8338 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](8, OrdersComponent_a_8_Template, 14, 9, "a", 6); 8339 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()(); 8340 } if (rf & 2) { 8341 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7); 8342 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.orders.length == 0); 8343 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); 8344 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx.orders); 8345 } }, styles: [".ob-title[_ngcontent-%COMP%] {\n margin-top: 100px;\n margin-bottom: 30px;\n}\n\n.profile-container[_ngcontent-%COMP%] {\n box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);\n margin-bottom: 125px;\n background-color: var(--grey);\n padding: 50px;\n}\n\n.profile-container[_ngcontent-%COMP%] .profile-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n font-size: 16px;\n}\n\n.profile-container[_ngcontent-%COMP%] .Anulada[_ngcontent-%COMP%] {\n background-color: #ff3838;\n}\n\n.profile-container[_ngcontent-%COMP%] .content-order[_ngcontent-%COMP%] {\n text-decoration: none;\n border-bottom: 2px solid var(--dark-grey);\n}\n\n.profile-container[_ngcontent-%COMP%] .content-order[_ngcontent-%COMP%]:hover {\n background-color: var(--primary) !important;\n}\n\n.profile-container[_ngcontent-%COMP%] .content-order[_ngcontent-%COMP%]:hover p[_ngcontent-%COMP%] {\n color: var(--white);\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm9yZGVycy5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNDLGlCQUFBO0VBQ0EsbUJBQUE7QUFDRDs7QUFFQTtFQUNDLDBDQUFBO0VBQ0Esb0JBQUE7RUFDQSw2QkFBQTtFQUNBLGFBQUE7QUFDRDs7QUFFRTtFQUNDLGVBQUE7QUFBSDs7QUFJQztFQUNDLHlCQUFBO0FBRkY7O
83450FBS0M7RUFDQyxxQkFBQTtFQUNBLHlDQUFBO0FBSEY7O0FBTUM7RUFDQywyQ0FBQTtBQUpGOztBQUtFO0VBQ0MsbUJBQUE7QUFISCIsImZpbGUiOiJvcmRlcnMuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIub2ItdGl0bGUge1xuXHRtYXJnaW4tdG9wOiAxMDBweDtcblx0bWFyZ2luLWJvdHRvbTogMzBweDtcbn1cblxuLnByb2ZpbGUtY29udGFpbmVyIHtcblx0Ym94LXNoYWRvdzogMHB4IDFweCAycHggcmdiYSgwLCAwLCAwLCAwLjIpO1xuXHRtYXJnaW4tYm90dG9tOiAxMjVweDtcblx0YmFja2dyb3VuZC1jb2xvcjogdmFyKC0tZ3JleSk7XG5cdHBhZGRpbmc6IDUwcHg7XG5cblx0LnByb2ZpbGUtY29udGVudCB7XG5cdFx0cCB7XG5cdFx0XHRmb250LXNpemU6IDE2cHg7XG5cdFx0fVxuXHR9XG5cblx0LkFudWxhZGEge1xuXHRcdGJhY2tncm91bmQtY29sb3I6ICNmZjM4Mzg7XG5cdH1cblxuXHQuY29udGVudC1vcmRlciB7XG5cdFx0dGV4dC1kZWNvcmF0aW9uOiBub25lO1xuXHRcdGJvcmRlci1ib3R0b206IDJweCBzb2xpZCB2YXIoLS1kYXJrLWdyZXkpO1xuXHR9XG5cblx0LmNvbnRlbnQtb3JkZXI6aG92ZXIge1xuXHRcdGJhY2tncm91bmQtY29sb3I6IHZhcigtLXByaW1hcnkpICFpbXBvcnRhbnQ7XG5cdFx0cCB7XG5cdFx0XHRjb2xvcjogdmFyKC0td2hpdGUpO1xuXHRcdH1cblx0fVxufVxuIl19 */"] }); 8346 8347 8348/***/ }), 8349 8350/***/ 5117: 8351/*!******************************************************!*\ 8352 !*** ./src/app/pages/password/password.component.ts ***! 8353 \******************************************************/ 8354/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 8355 8356__webpack_require__.r(__webpack_exports__); 8357/* harmony export */ __webpack_require__.d(__webpack_exports__, { 8358/* harmony export */ "PasswordComponent": () => (/* binding */ PasswordComponent) 8359/* harmony export */ }); 8360/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ 2508); 8361/* harmony import */ var _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pages/basic/basic.component */ 9689); 8362/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 2560); 8363/* harmony import */ var _services_services_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @services/services.service */ 6325); 8364 8365 8366 8367 8368 8369class PasswordComponent extends _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_0__.BasicComponent { 8370 constructor(formBuilder, userService) { 8371 super(); 8372 this.formBuilder = formBuilder; 8373 this.userService = userService; 8374 this.user = this.storageService.get('user'); 8375 if (!this.user) { 8376 this.navigateHome(); 8377 } 8378 this.passwordForm = this.formBuilder.group({ 8379 password: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_2__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_2__.Validators.minLength(6)]], 8380 confirm: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_2__.Validators.required]] 8381 }); 8382 } 8383 ngOnInit() { } 8384 password() { 8385 this.userService.password(this.passwordForm.value).subscribe((resp) => { 8386 if (resp.status == 'OK') { 8387 this.passwordForm.reset(); 8388 this.toastService.showSuccess('Guardado com sucesso'); 8389 } 8390 else { 8391 this.toastService.showError('Erro ao guardar'); 8392 } 8393 }); 8394 } 8395} 8396PasswordComponent.ɵfac = function PasswordComponent_Factory(t) { return new (t || PasswordComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_2__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_services_services_service__WEBPACK_IMPORTED_MODULE_1__.UserService)); }; 8397PasswordComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({ type: PasswordComponent, selectors: [["app-password"]], features: [_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵInheritDefinitionFeature"]], decls: 21, vars: 2,
8397consts: [[1, "ob-title"], [1, "profile-container"], [1, "row", "mb-5"], [1, "col-12", "col-md-4", "my-2"], [1, "col-12", "col-md-8", "my-2", "profile-content"], [1, "form", 3, "formGroup", "submit"], [1, "row"], [1, "col-12", "col-md-12", "col-lg-6"], [1, "label"], ["type", "password", "formControlName", "password"], ["type", "password", "formControlName", "confirm"], ["type", "submit", 1, "btn", "center", "btn-primary", "mt-3", 3, "disabled"]], template: function PasswordComponent_Template(rf, ctx) { if (rf & 1) { 8398 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "h2", 0); 8399 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1, "Alterar Palavra-Passe"); 8400 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); 8401 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](2, "div", 1)(3, "div", 2)(4, "div", 3); 8402 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](5, "app-menu-profile"); 8403 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); 8404 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](6, "div", 4)(7, "form", 5); 8405 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("submit", function PasswordComponent_Template_form_submit_7_listener() { return ctx.password(); }); 8406 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](8, "h2"); 8407 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](9, "Alterar Palavra-Passe"); 8408 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); 8409 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](10, "div", 6)(11, "div", 7)(12, "p", 8); 8410 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](13, "Palavra-Passe"); 8411 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); 8412 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](14, "input", 9); 8413 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); 8414 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](15, "div", 7)(16, "p", 8); 8415 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](17, "Confirmar Palavra-Passe"); 8416 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); 8417 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](18, "input", 10); 8418 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()(); 8419 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](19, "button", 11); 8420 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](20, "Guardar"); 8421 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()(); 8422 } if (rf & 2) { 8423 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](7); 8424 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("formGroup", ctx.passwordForm); 8425 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](12); 8426 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("disabled", ctx.passwordForm.invalid || ctx.passwordForm.value.password != ctx.passwordForm.value.confirm); 8427 } }, styles: [".ob-title[_ngcontent-%COMP%] {\n margin-top: 100px;\n margin-bottom: 30px;\n}\n\n.profile-container[_ngcontent-%COMP%] {\n box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);\n margin-bottom: 125px;\n background-color: var(--grey);\n padding: 50px;\n}\n\n.profile-container[_ngcontent-%COMP%] .profile-content[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] input[type=password][_ngcontent-%COMP%] {\n border: 1px solid var(--primary);\n}\n\n.profile-container[_ngcontent-%COMP%] .profile-content[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] {\n font-size: 27px;\n}\n\n.profile-container[_ngcontent-%COMP%] .profile-content[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n font-size: 16px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInBhc3N3b3JkLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0MsaUJBQUE7RUFDQSxtQkFBQTtBQUNEOztBQUVBO0VBQ0MsMENBQUE7RUFDQSxvQkFBQTtFQUNBLDZCQUFBO0VBQ0EsYUFBQTtBQUNEOztBQUdHO0VBQ0MsZ0NBQUE7QUFESjs7QUFJRztFQUNDLGVBQUE7QUFGSjs7QUFLRztFQUNDLGVBQUE7QUFISiIsImZpbGUiOiJwYXNzd29yZC5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5vYi10aXRsZSB7XG5cdG1hcmdpbi10b3A6IDEwMHB4O1xuXHRtYXJnaW4tYm90dG9tOiAzMHB4O1xufVxuXG4ucHJvZmlsZS1jb250YWluZXIge1xuXHRib3gtc2hhZG93OiAwcHggMXB4IDJweCByZ2JhKDAsIDAsIDAsIDAuMik7XG5cdG1hcmdpbi1ib3R0b206IDEyNXB4O1xuXHRiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1ncmV5KTtcblx0cGFkZGluZzogNTBweDtcblxuXHQucHJvZmlsZS1jb250ZW50IHtcblx0XHQuZm9ybSB7XG5cdFx0XHRpbnB1dFt0eXBlPVwicGFzc3dvcmRcIl0ge1xuXHRcdFx0XHRib3JkZXI6IDFweCBzb2xpZCB2YXIoLS1wcmltYXJ5KTtcblx0XHRcdH1cblxuXHRcdFx0aDIge1xuXHRcdFx0XHRmb250LXNpemU6IDI3cHg7XG5cdFx0XHR9XG5cblx0XHRcdHAge1xuXHRcdFx0XHRmb250LXNpemU6IDE2cHg7XG5cdFx0XHR9XG5cdFx0fVxuXHR9XG59XG4iXX0= */"] }); 8428 8429 8430/***/ }), 8431 8432/***/ 5109: 8433/*!****************************************************!*\ 8434 !*** ./src/app/pages/product/product.component.ts ***! 8435 \****************************************************/ 8436/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 8437 8438__webpack_require__.r(__webpack_exports__); 8439/* harmony export */ __webpack_require__.d(__webpack_exports__, { 8440/* harmony export */ "ProductComponent": () => (/* binding */ ProductComponent) 8441/* harmony export */ }); 8442/* harmony import */ var _home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 1670); 8443/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/forms */ 2508); 8444/* harmony import */ var _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @pages/basic/basic.component */ 9689); 8445/* harmony import */ var _env_environment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @env/environment */ 2340); 8446/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ 2560); 8447/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/router */ 124); 8448/* harmony import */ var _services_services_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @services/services.service */ 6325); 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458const _c0 = ["related"]; 8459 8460function ProductComponent_div_1_Template(rf, ctx) { 8461 if (rf & 1) { 8462 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 8)(1, "p", 9); 8463 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnamespaceSVG"](); 8464 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](2, "svg", 10)(3, "path", 11); 8465 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](4, "animateTransform", 12); 8466 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()(); 8467 } 8468} 8469 8470function ProductComponent_div_2_div_14_Template(rf, ctx) { 8471 if (rf & 1) { 8472 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](0, "div", 32); 8473 } 8474 8475 if (rf & 2) { 8476 const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2); 8477 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵstyleProp"]("background-image", "url(" + ctx_r3.selectedImage + ")"); 8478 } 8479} 8480 8481const _c1 = function (a0) { 8482 return { 8483 "image-active": a0 8484 }; 8485}; 8486 8487function ProductComponent_div_2_div_16_div_1_Template(rf, ctx) { 8488 if (rf & 1) { 8489 const _r16 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"](); 8490 8491 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 34); 8492 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function ProductComponent_div_2_div_16_div_1_Template_div_click_0_listener() { 8493 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r16); 8494 const image_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]().$implicit; 8495 const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2); 8496 return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetVie
8496w"](ctx_r14.changeImage(image_r12)); 8497 }); 8498 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"](); 8499 } 8500 8501 if (rf & 2) { 8502 const image_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]().$implicit; 8503 const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2); 8504 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵstyleProp"]("background-image", "url(" + image_r12 + ")"); 8505 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpureFunction1"](3, _c1, image_r12 == ctx_r13.selectedImage)); 8506 } 8507} 8508 8509function ProductComponent_div_2_div_16_Template(rf, ctx) { 8510 if (rf & 1) { 8511 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div"); 8512 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](1, ProductComponent_div_2_div_16_div_1_Template, 1, 5, "div", 33); 8513 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"](); 8514 } 8515 8516 if (rf & 2) { 8517 const image_r12 = ctx.$implicit; 8518 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1); 8519 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", image_r12); 8520 } 8521} 8522 8523function ProductComponent_div_2_h5_26_Template(rf, ctx) { 8524 if (rf & 1) { 8525 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "h5"); 8526 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](1); 8527 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipe"](2, "formatMoney"); 8528 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"](); 8529 } 8530 8531 if (rf & 2) { 8532 const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2); 8533 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1); 8534 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipeBind1"](2, 1, ctx_r5.price)); 8535 } 8536} 8537 8538function ProductComponent_div_2_h5_27_Template(rf, ctx) { 8539 if (rf & 1) { 8540 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "h5")(1, "span", 35); 8541 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](2); 8542 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipe"](3, "formatMoney"); 8543 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"](); 8544 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](4, "b"); 8545 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](5); 8546 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipe"](6, "formatMoney"); 8547 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()(); 8548 } 8549 8550 if (rf & 2) { 8551 const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2); 8552 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2); 8553 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipeBind1"](3, 2, ctx_r6.product.price)); 8554 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3); 8555 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipeBind1"](6, 4, ctx_r6.price), ""); 8556 } 8557} 8558 8559function ProductComponent_div_2_p_28_Template(rf, ctx) { 8560 if (rf & 1) { 8561 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "p", 36)(1, "span", 37); 8562 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](2); 8563 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"](); 8564 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](3, "span", 38); 8565 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](4, "Promo\u00E7\u00E3o"); 8566 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()(); 8567 } 8568 8569 if (rf & 2) { 8570 const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2); 8571 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2); 8572 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" -", ctx_r7.product.discount, "% "); 8573 } 8574} 8575 8576function ProductComponent_div_2_select_29_option_4_Template(rf, ctx) { 8577 if (rf & 1) { 8578 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "option", 43); 8579 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](1); 8580 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"](); 8581 } 8582 8583 if (rf & 2) { 8584 const related_r20 = ctx.$implicit; 8585 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("value", related_r20.id); 8586 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1); 8587 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](related_r20.name); 8588 } 8589} 8590 8591function ProductComponent_div_2_select_29_Template(rf, ctx) { 8592 if (rf & 1) { 8593 const _r22 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"](); 8594 8595 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "select", 39, 40); 8596 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("change", function ProductComponent_div_2_select_29_Template_select_change_0_listener() { 8597 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r22); 8598 const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2); 8599 return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetVie
8599w"](ctx_r21.changeVersion()); 8600 }); 8601 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](2, "option", 41); 8602 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](3, "Outras Vers\u00F5es"); 8603 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"](); 8604 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](4, ProductComponent_div_2_select_29_option_4_Template, 2, 2, "option", 42); 8605 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"](); 8606 } 8607 8608 if (rf & 2) { 8609 const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2); 8610 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](4); 8611 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngForOf", ctx_r8.product.relatedProducts); 8612 } 8613} 8614 8615function ProductComponent_div_2_button_31_Template(rf, ctx) { 8616 if (rf & 1) { 8617 const _r24 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"](); 8618 8619 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "button", 44); 8620 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function ProductComponent_div_2_button_31_Template_button_click_0_listener() { 8621 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r24); 8622 const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2); 8623 return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r23.addProduct()); 8624 }); 8625 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](1, "Adicionar ao Carrinho"); 8626 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"](); 8627 } 8628} 8629 8630function ProductComponent_div_2_div_32_Template(rf, ctx) { 8631 if (rf & 1) { 8632 const _r26 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"](); 8633 8634 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 45)(1, "div", 4)(2, "p"); 8635 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](3, "Se est\u00E1 interessado neste produto, por favor contacte-nos."); 8636 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()(); 8637 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](4, "div", 46)(5, "a", 47); 8638 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipe"](6, "formatName"); 8639 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](7, "span", 48); 8640 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnamespaceSVG"](); 8641 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](8, "svg", 49)(9, "g"); 8642 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](10, "path", 50); 8643 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()(); 8644 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](11, " Email "); 8645 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()(); 8646 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnamespaceHTML"](); 8647 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](12, "div", 46)(13, "button", 44); 8648 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function ProductComponent_div_2_div_32_Template_button_click_13_listener() { 8649 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r26); 8650 const ctx_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2); 8651 return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r25.openWhatsapp()); 8652 }); 8653 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](14, "span", 48); 8654 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnamespaceSVG"](); 8655 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](15, "svg", 51); 8656 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](16, "path", 52); 8657 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()(); 8658 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](17, " WhatsApp "); 8659 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()(); 8660 } 8661 8662 if (rf & 2) { 8663 const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2); 8664 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](5); 8665 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpropertyInterpolate2"]("href", "mailto:", ctx_r10.merchant.email, "?subject='Mais informa\u00E7\u00F5es sobre o produto ' ", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipeBind1"](6, 2, ctx_r10.product.name), "!", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵsanitizeUrl"]); 8666 } 8667} 8668 8669function ProductComponent_div_2_button_33_Template(rf, ctx) { 8670 if (rf & 1) { 8671 const _r28 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"](); 8672 8673 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "button", 53); 8674 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function ProductComponent_div_2_button_33_Template_button_click_0_listener() { 8675 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r28); 8676 const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2); 8677 return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetVie
8677w"](ctx_r27.addFavorite()); 8678 }); 8679 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](1, "Adicionar aos Favoritos"); 8680 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"](); 8681 } 8682} 8683 8684function ProductComponent_div_2_Template(rf, ctx) { 8685 if (rf & 1) { 8686 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 13)(1, "nav", 14)(2, "ol", 15)(3, "li", 16)(4, "a", 17); 8687 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](5, "Produtos"); 8688 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()(); 8689 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](6, "li", 16)(7, "a", 18); 8690 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](8); 8691 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()(); 8692 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](9, "li", 19); 8693 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](10); 8694 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipe"](11, "formatName"); 8695 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()(); 8696 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](12, "div", 20)(13, "div", 21); 8697 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](14, ProductComponent_div_2_div_14_Template, 1, 2, "div", 22); 8698 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](15, "div", 23); 8699 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](16, ProductComponent_div_2_div_16_Template, 2, 1, "div", 24); 8700 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()(); 8701 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](17, "div", 25)(18, "h2"); 8702 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](19); 8703 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"](); 8704 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](20, "h1"); 8705 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](21); 8706 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipe"](22, "formatName"); 8707 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"](); 8708 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](23, "p"); 8709 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](24); 8710 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"](); 8711 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](25, "div", 5); 8712 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](26, ProductComponent_div_2_h5_26_Template, 3, 3, "h5", 26); 8713 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](27, ProductComponent_div_2_h5_27_Template, 7, 6, "h5", 26); 8714 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](28, ProductComponent_div_2_p_28_Template, 5, 1, "p", 27); 8715 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](29, ProductComponent_div_2_select_29_Template, 5, 1, "select", 28); 8716 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](30, "hr"); 8717 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](31, ProductComponent_div_2_button_31_Template, 2, 0, "button", 29); 8718 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](32, ProductComponent_div_2_div_32_Template, 18, 4, "div", 30); 8719 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](33, ProductComponent_div_2_button_33_Template, 2, 0, "button", 31); 8720 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()(); 8721 } 8722 8723 if (rf & 2) { 8724 const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](); 8725 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](7); 8726 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("href", ctx_r1.getPathAsString("/categoria", ctx_r1.product.category), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵsanitizeUrl"]); 8727 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1); 8728 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](ctx_r1.product.category.name); 8729 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2); 8730 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipeBind1"](11, 16, ctx_r1.product.name)); 8731 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](4); 8732 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx_r1.selectedImage); 8733 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2); 8734 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngForOf", ctx_r1.product.images); 8735 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3); 8736 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](ctx_r1.product.brand.name); 8737 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2); 8738 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipeBind1"](22, 18, ctx_r1.product.name)); 8739 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3); 8740 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](ctx_r1.product.typology); 8741 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1); 8742 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("innerHTML", ctx_r1.product.description_short, _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵsanitizeHtml"]); 8743 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1); 8744 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", !ctx_r1.product.discount && ctx_r1.product.sell_online); 8745 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1); 8746 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx_r1.product.discount && ctx_r1.product.sell_online); 8747 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1); 8748 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx_r1.product.discount && ctx_r1.product.sell_online); 8749 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1); 8750 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx_r1.product.relatedProducts.length); 8751 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2); 8752 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx_r1.product.sell_online && ctx_r1.product.stock > 0); 8753 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1); 8754 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", !ctx_r1.product.sell_online || ctx_r1.product.stock == 0); 8755 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1); 8756 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx_r1.user); 8757 } 8758} 8759 8760function ProductComponent_app_container_products_9_Template(rf, ctx) { 8761 if (rf & 1) { 8762 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](0, "app-container-products", 54); 8763 } 8764 8765 if (rf & 2) { 8766 const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](); 8767 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("title", "Produtos Relacionados")("products", ctx_r2.product.related); 8768 } 8769} 8770 8771class ProductComponent extends _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_1__.BasicComponent { 8772 constructor(activatedRoute, productService, cartService, formBuilder) { 8773 var _this; 8774 8775 super(); 8776 _this = this; 8777 this.activatedRoute = activatedRoute; 8778 this.productService = productService; 8779 this.cartService = cartService; 8780 this.formBuilder = formBuilder; 8781 this.options = null; 8782 this.showShare = false;
8783 this.showOptions = false; 8784 this.url = ''; 8785 this.mainLoading = true; 8786 this.user = this.storageService.get('user'); 8787 this.merchant = this.storageService.get('merchant'); 8788 this.optionsForm = this.formBuilder.group({ 8789 quantity: [1, [_angular_forms__WEBPACK_IMPORTED_MODULE_5__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.Validators.min(1)]], 8790 pack_id: [null], 8791 eye: [null], 8792 curve: [null], 8793 diameter: [null], 8794 ball: [null], 8795 cylindrical: [null], 8796 axle: [null], 8797 addiction: [null], 8798 geometry: [null], 8799 curve2: [null], 8800 diameter2: [null], 8801 ball2: [null], 8802 cylindrical2: [null], 8803 axle2: [null], 8804 addiction2: [null], 8805 geometry2: [null] 8806 }); 8807 this.activatedRoute.params.subscribe( /*#__PURE__*/function () { 8808 var _ref = (0,_home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (params) { 8809 _this.productId = params.id; 8810 8811 _this.load(); 8812 }); 8813 8814 return function (_x) { 8815 return _ref.apply(this, arguments); 8816 }; 8817 }()); 8818 } 8819 8820 ngOnInit() {} 8821 8822 load() { 8823 this.productService.one(this.productId).subscribe(resp => { 8824 if (resp.status == 'OK') { 8825 this.product = resp.data; 8826 this.price = this.product.price; 8827 this.url = `https://opticae.online/product/share?id=${this.product.id}&s=${window.btoa(encodeURIComponent(_env_environment__WEBPACK_IMPORTED_MODULE_2__.environment.url_base + 'product/' + this.product.id))}`; 8828 8829 if (this.product.discount) { 8830 this.price = this.price - this.price * this.product.discount * 0.01; 8831 } 8832 8833 this.selectedImage = this.product.images?.length > 0 ? this.product.images[0] : ''; 8834 this.slideConfig = { 8835 slidesToShow: this.product.images?.length, 8836 slidesToScroll: 1 8837 }; 8838 this.mainLoading = false; 8839 } 8840 }); 8841 } 8842 8843 changeImage(image) { 8844 this.selectedImage = image; 8845 } 8846 8847 addFavorite() { 8848 this.productService.favorite(this.product.id).subscribe(resp => { 8849 if (resp.status == 'OK') { 8850 this.product.favorite = !this.product.favorite; 8851 this.toastService.showSuccess('Adicionado/Removido com sucesso'); 8852 } 8853 }); 8854 } 8855 8856 addProduct() { 8857 if (!this.showOptions && this.product.has_grade_lens) { 8858 this.showOptions = true; 8859 } else { 8860 this.showOptions = false; 8861 8862 if (this.optionsForm.valid) { 8863 let discount = this.product.discount ? this.product.price * this.product.discount * 0.01 : 0; 8864 let product = { 8865 product_id: this.product.id, 8866 image: this.product.image, 8867 name: this.product.name, 8868 price: this.product.price - discount, 8869 original_price: this.product.price, 8870 discount: discount, 8871 grade_lens: this.options ?? null 8872 }; 8873 Object.entries(this.optionsForm.value).forEach(([key, value]) => { 8874 product[key] = value; 8875 }); 8876 this.cartService.addProduct(product); 8877 } else { 8878 this.toastService.showError('Preencha todos os campos obrigatórios'); 8879 } 8880 } 8881 } 8882 8883 addOptions(value) { 8884 this.options = value; 8885 this.addProduct(); 8886 } 8887 8888 openWhatsapp(number) { 8889 let ua = navigator.userAgent; 8890 let whatsapp = `https://web.whatsapp.com/send?phone=${this.merchant.whatsapp}`; 8891 8892 if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Mobile|mobile|CriOS/i.test(ua)) { 8893 whatsapp = `https://api.whatsapp.com/send?phone=${this.merchant.whatsapp}`; 8894 } 8895 8896 window.open(whatsapp, '_blank'); 8897 } 8898 8899 changeVersion() { 8900 let id = this.related.nativeElement.value; 8901 let product = this.product.relatedProducts.find(related => related.id == id); 8902 this.router.navigate(['/produto', product.id, product.name]); 8903 } 8904 8905} 8906 8907ProductComponent.ɵfac = function ProductComponent_Factory(t) { 8908 return new (t || ProductComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_6__.ActivatedRoute), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_services_services_service__WEBPACK_IMPORTED_MODULE_3__.ProductService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_services_services_service__WEBPACK_IMPORTED_MODULE_3__.CartService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_5__.FormBuilder)); 8909}; 8910 8911ProductComponent.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineComponent"]({ 8912 type: ProductComponent, 8913 selectors: [["app-product"]], 8914 viewQuery: function ProductComponent_Query(rf, ctx) { 8915 if (rf & 1) { 8916 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵviewQuery"](_c0, 5); 8917 } 8918 8919 if (rf & 2) { 8920 let _t; 8921 8922 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵloadQuery"]()) && (ctx.related = _t.first); 8923 } 8924 }, 8925 features: [_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵInheritDefinitionFeature"]], 8926 decls: 10, 8927 vars: 4, 8928 consts: [[1, "product-container"], ["class", "row main-loading", 4, "ngIf"], ["class", "product-content", 4, "ngIf"], [1, "row", "mt-5", "mt-lg-0"], [1, "col-12"], [1, "col-12", 3, "innerHTML"], [1, "mt-5"], [3, "title", "products", 4, "ngIf"], [1, "row", "main-loading"], [1, "text-center"], ["width", "50", "height", "50", "viewBox", "0 0 24 24", "xmlns", "http://www.w3.org/2000/svg"], ["d", "M2,12A11.2,11.2,0,0,1,13,1.05C12.67,1,12.34,1,12,1a11,11,0,0,0,0,22c.34,0,.67,0,1-.05C6,23,2,17.74,2,12Z"], ["attributeName", "transform", "type", "rotate", "dur", "0.6s", "values", "0 12 12;360 12 12", "repeatCount", "indefinite"], [1, "product-content"], ["aria-label", "breadcrumb", 1, "mt-5", "d-none", "d-md-block"], [1, "breadcrumb"], [1, "breadcrumb-item"], ["href", "/produtos"], [3, "href"], ["aria-current", "page", 1, "breadcrumb-item", "active"], [1, "row", "align-items-top"], [1, "col-12", "col-md-8"], ["class", "img-selected center", 3, "background-image", 4, "ngIf"], [1, "multi-images"], [4, "ngFor", "ngForOf"], [1, "col-12", "col-md-4"], [4, "ngIf"], ["class", "m-0 mb
8928-3", 4, "ngIf"], ["aria-placeholder", "Vers\u00F5es", "class", "form-control", "name", "versions", 3, "change", 4, "ngIf"], ["class", "btn btn-block btn-primary my-1", 3, "click", 4, "ngIf"], ["class", "row", 4, "ngIf"], ["class", "btn btn-block btn-primary-outline my-1", 3, "click", 4, "ngIf"], [1, "img-selected", "center"], ["class", "img mx-2", "role", "button", 3, "ngClass", "background-image", "click", 4, "ngIf"], ["role", "button", 1, "img", "mx-2", 3, "ngClass", "click"], [1, "discount-price"], [1, "m-0", "mb-3"], [1, "box-dark"], [1, "box-ligth"], ["aria-placeholder", "Vers\u00F5es", "name", "versions", 1, "form-control", 3, "change"], ["related", ""], ["value", ""], [3, "value", 4, "ngFor", "ngForOf"], [3, "value"], [1, "btn", "btn-block", "btn-primary", "my-1", 3, "click"], [1, "row"], [1, "col-12", "col-lg-6"], ["target", "_blank", 1, "btn", "btn-block", "btn-primary", "my-1", 3, "href"], [1, "align-bottom"], ["version", "1.2", "xmlns", "http://www.w3.org/2000/svg", "overflow", "visible", "preserveAspectRatio", "none", "viewBox", "0 0 24 24", "width", "24", "height", "24"], ["d", "M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H4V8l8 5 8-5v10zm-8-7L4 6h16l-8 5z", "vector-effect", "non-scaling-stroke", 2, "fill", "rgb(255, 255, 255)"], ["version", "1.2", "xmlns", "http://www.w3.org/2000/svg", "overflow", "visible", "preserveAspectRatio", "none", "viewBox", "-32 0 512 512", "width", "24", "height", "24"], ["d", "M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z", "vector-effect", "non-scaling-stroke", 2, "fill", "rgb(255, 255, 255)"], [1, "btn", "btn-block", "btn-primary-outline", "my-1", 3, "click"], [3, "title", "products"]], 8929 template: function ProductComponent_Template(rf, ctx) { 8930 if (rf & 1) { 8931 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 0); 8932 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](1, ProductComponent_div_1_Template, 5, 0, "div", 1); 8933 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](2, ProductComponent_div_2_Template, 34, 20, "div", 2); 8934 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](3, "div", 3)(4, "div", 4)(5, "h2"); 8935 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](6, "DESCRI\u00C7\u00C3O"); 8936 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()(); 8937 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](7, "div", 5); 8938 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"](); 8939 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](8, "div", 6); 8940 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](9, ProductComponent_app_container_products_9_Template, 1, 2, "app-container-products", 7); 8941 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()(); 8942 } 8943 8944 if (rf & 2) { 8945 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1); 8946 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx.mainLoading); 8947 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1); 8948 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx.product && !ctx.mainLoading); 8949 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](5); 8950 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("innerHTML", ctx.product.description, _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵsanitizeHtml"]); 8951 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2); 8952 _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx.product); 8953 } 8954 }, 8955 styles: [".product-container[_ngcontent-%COMP%] {\n min-height: 50vh;\n}\n.product-container[_ngcontent-%COMP%] .main-loading[_ngcontent-%COMP%] {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 50vh;\n}\n.product-container[_ngcontent-%COMP%] .product-content[_ngcontent-%COMP%] {\n margin-left: 42px;\n margin-right: 42px;\n}\n.product-container[_ngcontent-%COMP%] .product-content[_ngcontent-%COMP%] .breadcrumb-item[_ngcontent-%COMP%] a[_ngcontent-%COMP%] {\n font-size: 16px;\n text-decoration: none;\n color: #074a68;\n}\n.product-container[_ngcontent-%COMP%] .product-content[_ngcontent-%COMP%] .breadcrumb-item[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover {\n
8955color: var(--primary);\n}\n.product-container[_ngcontent-%COMP%] .product-content[_ngcontent-%COMP%] .img-selected[_ngcontent-%COMP%] {\n height: 40vw;\n max-height: 60vh;\n background-position: center;\n background-repeat: no-repeat;\n background-size: contain;\n cursor: pointer;\n}\n.product-container[_ngcontent-%COMP%] .product-content[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] {\n font-size: 24px;\n}\n.product-container[_ngcontent-%COMP%] .product-content[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] {\n font-size: 28px;\n}\n.product-container[_ngcontent-%COMP%] .product-content[_ngcontent-%COMP%] h5[_ngcontent-%COMP%] {\n font-size: 20px;\n margin-top: 20px;\n margin-bottom: 20px;\n}\n.product-container[_ngcontent-%COMP%] .product-content[_ngcontent-%COMP%] .box-dark[_ngcontent-%COMP%] {\n background-color: var(--primary);\n font-size: 14px;\n color: var(--white);\n height: 35px;\n border-radius: 5px;\n padding: 6px;\n margin-right: 3px;\n font-weight: 500;\n}\n.product-container[_ngcontent-%COMP%] .product-content[_ngcontent-%COMP%] .box-ligth[_ngcontent-%COMP%] {\n border: 1px solid var(--primary);\n font-size: 14px;\n height: 35px;\n border-radius: 5px;\n padding: 6px;\n margin-left: 3px;\n font-weight: 500;\n}\n.product-container[_ngcontent-%COMP%] .product-content[_ngcontent-%COMP%] .multi-images[_ngcontent-%COMP%] {\n display: flex;\n margin-bottom: 108px;\n}\n.product-container[_ngcontent-%COMP%] .product-content[_ngcontent-%COMP%] .multi-images[_ngcontent-%COMP%] .img[_ngcontent-%COMP%] {\n width: 90px;\n height: 90px;\n background-position: center;\n background-size: contain;\n background-repeat: no-repeat;\n}\n.product-container[_ngcontent-%COMP%] .product-content[_ngcontent-%COMP%] .multi-images[_ngcontent-%COMP%] .image-active[_ngcontent-%COMP%] {\n border-color: var(--dark);\n}\n.align-bottom[_ngcontent-%COMP%] {\n vertical-align: bottom;\n}\n.sb-group[_ngcontent-%COMP%] .sb-modern-dark[_ngcontent-%COMP%] {\n display: block;\n margin: auto;\n}\n.content-product[_ngcontent-%COMP%] .text-description[_ngcontent-%COMP%] {\n font-style: normal;\n font-weight: 400;\n font-size: 16px;\n line-height: 24px;\n}\n.discount-price[_ngcontent-%COMP%] {\n text-decoration: line-through;\n}\n@media only screen and (max-width: 576px) {\n .product-content[_ngcontent-%COMP%] {\n margin-left: 15px !important;\n margin-right: 15px !important;\n }\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInByb2R1Y3QuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDQyxnQkFBQTtBQUNEO0FBQ0U7RUFDRSxhQUFBO0VBQ0EsdUJBQUE7RUFDQSxtQkFBQTtFQUNBLFlBQUE7QUFDSjtBQUVDO0VBQ0MsaUJBQUE7RUFDQSxrQkFBQTtBQUFGO0FBRUU7RUFDQyxlQUFBO0VBQ0EscUJBQUE7RUFDQSxjQUFBO0FBQUg7QUFFRTtFQUNDLHFCQUFBO0FBQUg7QUFHRTtFQUNDLFlBQUE7RUFDQSxnQkFBQTtFQUNBLDJCQUFBO0VBQ0EsNEJBQUE7RUFDQSx3QkFBQTtFQUNBLGVBQUE7QUFESDtBQUlFO0VBQ0MsZUFBQTtBQUZIO0FBS0U7RUFDQyxlQUFBO0FBSEg7QUFNRTtFQUNDLGVBQUE7RUFDQSxnQkFBQTtFQUNBLG1CQUFBO0FBSkg7QUFPRTtFQUNDLGdDQUFBO0VBQ0EsZUFBQTtFQUNBLG1CQUFBO0VBQ0EsWUFBQTtFQUNBLGtCQUFBO0VBQ0EsWUFBQTtFQUNBLGlCQUFBO0VBQ0EsZ0JBQUE7QUFMSDtBQVFFO0VBQ0MsZ0NBQUE7RUFDQSxlQUFBO0VBQ0EsWUFBQTtFQUNBLGtCQUFBO0VBQ0EsWUFBQTtFQUNBLGdCQUFBO0VBQ0EsZ0JBQUE7QUFOSDtBQVNFO0VBQ0MsYUFBQTtFQUNBLG9CQUFBO0FBUEg7QUFTRztFQUNDLFdBQUE7RUFDQSxZQUFBO0VBQ0EsMkJBQUE7RUFDQSx3QkFBQTtFQUNBLDRCQUFBO0FBUEo7QUFVRztFQUNDLHlCQUFBO0FBUko7QUFhQTtFQUNFLHNCQUFBO0FBVkY7QUFZQTtFQUNDLGNBQUE7RUFDQSxZQUFBO0FBVEQ7QUFhQztFQUNDLGtCQUFBO0VBQ0EsZ0JBQUE7RUFDQSxlQUFBO0VBQ0EsaUJBQUE7QUFWRjtBQWNBO0VBQ0MsNkJBQUE7QUFYRDtBQWFBO0VBQ0U7SUFDRSw0QkFBQTtJQUNBLDZCQUFBO0VBVkY7QUFDRiIsImZpbGUiOiJwcm9kdWN0LmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLnByb2R1Y3QtY29udGFpbmVyIHtcblx0bWluLWhlaWdodDogNTB2aDtcblxuICAubWFpbi1sb2FkaW5nIHtcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAgaGVpZ2h0OiA1MHZoO1xuICB9XG5cblx0LnByb2R1Y3QtY29udGVudCB7XG5cdFx0bWFyZ2luLWxlZnQ6IDQycHg7XG5cdFx0bWFyZ2luLXJpZ2h0OiA0MnB4O1xuXG5cdFx0LmJyZWFkY3J1bWItaXRlbSBhIHtcblx0XHRcdGZvbnQtc2l6ZTogMTZweDtcblx0XHRcdHRleHQtZGVjb3JhdGlvbjogbm9uZTtcblx0XHRcdGNvbG9yOiAjMDc0YTY4O1xuXHRcdH1cblx0XHQuYnJlYWRjcnVtYi1pdGVtIGE6aG92ZXIge1xuXHRcdFx0Y29sb3I6IHZhcigtLXByaW1hcnkpO1xuXHRcdH1cblxuXHRcdC5pbWctc2VsZWN0ZWQge1xuXHRcdFx0aG
8955VpZ2h0OiA0MHZ3O1xuXHRcdFx0bWF4LWhlaWdodDogNjB2aDtcblx0XHRcdGJhY2tncm91bmQtcG9zaXRpb246IGNlbnRlcjtcblx0XHRcdGJhY2tncm91bmQtcmVwZWF0OiBuby1yZXBlYXQ7XG5cdFx0XHRiYWNrZ3JvdW5kLXNpemU6IGNvbnRhaW47XG5cdFx0XHRjdXJzb3I6IHBvaW50ZXI7XG5cdFx0fVxuXG5cdFx0aDIge1xuXHRcdFx0Zm9udC1zaXplOiAyNHB4O1xuXHRcdH1cblxuXHRcdGgxIHtcblx0XHRcdGZvbnQtc2l6ZTogMjhweDtcblx0XHR9XG5cblx0XHRoNSB7XG5cdFx0XHRmb250LXNpemU6IDIwcHg7XG5cdFx0XHRtYXJnaW4tdG9wOiAyMHB4O1xuXHRcdFx0bWFyZ2luLWJvdHRvbTogMjBweDtcblx0XHR9XG5cblx0XHQuYm94LWRhcmsge1xuXHRcdFx0YmFja2dyb3VuZC1jb2xvcjogdmFyKC0tcHJpbWFyeSk7XG5cdFx0XHRmb250LXNpemU6IDE0cHg7XG5cdFx0XHRjb2xvcjogdmFyKC0td2hpdGUpO1xuXHRcdFx0aGVpZ2h0OiAzNXB4O1xuXHRcdFx0Ym9yZGVyLXJhZGl1czogNXB4O1xuXHRcdFx0cGFkZGluZzogNnB4O1xuXHRcdFx0bWFyZ2luLXJpZ2h0OiAzcHg7XG5cdFx0XHRmb250LXdlaWdodDogNTAwO1xuXHRcdH1cblxuXHRcdC5ib3gtbGlndGgge1xuXHRcdFx0Ym9yZGVyOiAxcHggc29saWQgdmFyKC0tcHJpbWFyeSk7XG5cdFx0XHRmb250LXNpemU6IDE0cHg7XG5cdFx0XHRoZWlnaHQ6IDM1cHg7XG5cdFx0XHRib3JkZXItcmFkaXVzOiA1cHg7XG5cdFx0XHRwYWRkaW5nOiA2cHg7XG5cdFx0XHRtYXJnaW4tbGVmdDogM3B4O1xuXHRcdFx0Zm9udC13ZWlnaHQ6IDUwMDtcblx0XHR9XG5cblx0XHQubXVsdGktaW1hZ2VzIHtcblx0XHRcdGRpc3BsYXk6IGZsZXg7XG5cdFx0XHRtYXJnaW4tYm90dG9tOiAxMDhweDtcblxuXHRcdFx0LmltZyB7XG5cdFx0XHRcdHdpZHRoOiA5MHB4O1xuXHRcdFx0XHRoZWlnaHQ6IDkwcHg7XG5cdFx0XHRcdGJhY2tncm91bmQtcG9zaXRpb246IGNlbnRlcjtcblx0XHRcdFx0YmFja2dyb3VuZC1zaXplOiBjb250YWluO1xuXHRcdFx0XHRiYWNrZ3JvdW5kLXJlcGVhdDogbm8tcmVwZWF0O1xuXHRcdFx0fVxuXG5cdFx0XHQuaW1hZ2UtYWN0aXZlIHtcblx0XHRcdFx0Ym9yZGVyLWNvbG9yOiB2YXIoLS1kYXJrKTtcblx0XHRcdH1cblx0XHR9XG5cdH1cbn1cbi5hbGlnbi1ib3R0b20ge1xuICB2ZXJ0aWNhbC1hbGlnbjogYm90dG9tO1xufVxuLnNiLWdyb3VwIC5zYi1tb2Rlcm4tZGFyayB7XG5cdGRpc3BsYXk6IGJsb2NrO1xuXHRtYXJnaW46IGF1dG87XG59XG5cbi5jb250ZW50LXByb2R1Y3Qge1xuXHQudGV4dC1kZXNjcmlwdGlvbiB7XG5cdFx0Zm9udC1zdHlsZTogbm9ybWFsO1xuXHRcdGZvbnQtd2VpZ2h0OiA0MDA7XG5cdFx0Zm9udC1zaXplOiAxNnB4O1xuXHRcdGxpbmUtaGVpZ2h0OiAyNHB4O1xuXHR9XG59XG5cbi5kaXNjb3VudC1wcmljZSB7XG5cdHRleHQtZGVjb3JhdGlvbjogbGluZS10aHJvdWdoO1xufVxuQG1lZGlhIG9ubHkgc2NyZWVuIGFuZCAobWF4LXdpZHRoOiA1NzZweCkge1xuICAucHJvZHVjdC1jb250ZW50IHtcbiAgICBtYXJnaW4tbGVmdDogMTVweCFpbXBvcnRhbnQ7XG4gICAgbWFyZ2luLXJpZ2h0OiAxNXB4IWltcG9ydGFudDtcbiAgfVxufVxuIl19 */"] 8956}); 8957 8958/***/ }), 8959 8960/***/ 7539: 8961/*!******************************************************!*\ 8962 !*** ./src/app/pages/products/products.component.ts ***! 8963 \******************************************************/ 8964/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 8965 8966__webpack_require__.r(__webpack_exports__); 8967/* harmony export */ __webpack_require__.d(__webpack_exports__, { 8968/* harmony export */ "ProductsComponent": () => (/* binding */ ProductsComponent) 8969/* harmony export */ }); 8970/* harmony import */ var _home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 1670); 8971/* harmony import */ var _models_models_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @models/models.model */ 2541); 8972/* harmony import */ var _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @pages/basic/basic.component */ 9689); 8973/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/core */ 2560); 8974/* harmony import */ var _services_services_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @services/services.service */ 6325); 8975/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/router */ 124); 8976/* harmony import */ var _app_services_brand_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @app/services/brand.service */ 7744); 8977/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/common */ 4666); 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987function ProductsComponent_div_0_Template(rf, ctx) { 8988 if (rf & 1) { 8989 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 3)(1, "p", 4); 8990 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnamespaceSVG"](); 8991 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](2, "svg", 5)(3, "path", 6); 8992 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](4, "animateTransform", 7); 8993 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()(); 8994 } 8995} 8996 8997function ProductsComponent_div_1_Template(rf, ctx) { 8998 if (rf & 1) { 8999 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](0, "div", 8); 9000 } 9001 9002 if (rf & 2) { 9003 const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](); 9004 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵstyleProp"]("background-image", "url(" + ctx_r1.image + ")"); 9005 } 9006} 9007 9008function ProductsComponent_div_2_div_19_div_1_p_5_Template(rf, ctx) { 9009 if (rf & 1) { 9010 const _r17 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"](); 9011 9012 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "p")(1, "input", 36); 9013 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("change", function ProductsComponent_div_2_div_19_div_1_p_5_Template_input_change_1_listener($event) { 9014 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r17); 9015 const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](4); 9016 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetVie
9016w"](ctx_r16.categoryChange($event)); 9017 }); 9018 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 9019 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2); 9020 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 9021 } 9022 9023 if (rf & 2) { 9024 const category_r15 = ctx.$implicit; 9025 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 9026 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("checked", category_r15.checked)("id", "category-" + category_r15.id)("value", category_r15.id); 9027 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 9028 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", category_r15.name, ""); 9029 } 9030} 9031 9032function ProductsComponent_div_2_div_19_div_1_Template(rf, ctx) { 9033 if (rf & 1) { 9034 const _r19 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"](); 9035 9036 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div")(1, "h3", 30); 9037 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function ProductsComponent_div_2_div_19_div_1_Template_h3_click_1_listener() { 9038 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r19); 9039 9040 const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵreference"](4); 9041 9042 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](_r13.toggle()); 9043 }); 9044 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, "Categorias"); 9045 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 9046 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](3, "div", 31, 34); 9047 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("ngbCollapseChange", function ProductsComponent_div_2_div_19_div_1_Template_div_ngbCollapseChange_3_listener($event) { 9048 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r19); 9049 const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3); 9050 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r20.isCollapsedCategories = $event); 9051 }); 9052 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](5, ProductsComponent_div_2_div_19_div_1_p_5_Template, 3, 4, "p", 35); 9053 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()(); 9054 } 9055 9056 if (rf & 2) { 9057 const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3); 9058 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3); 9059 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngbCollapse", ctx_r8.isCollapsedCategories); 9060 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2); 9061 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", ctx_r8.categories); 9062 } 9063} 9064 9065function ProductsComponent_div_2_div_19_div_2_p_5_Template(rf, ctx) { 9066 if (rf & 1) { 9067 const _r25 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"](); 9068 9069 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "p")(1, "input", 36); 9070 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("change", function ProductsComponent_div_2_div_19_div_2_p_5_Template_input_change_1_listener($event) { 9071 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r25); 9072 const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](4); 9073 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r24.subcategoryChange($event)); 9074 }); 9075 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 9076 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2); 9077 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 9078 } 9079 9080 if (rf & 2) { 9081 const subcategory_r23 = ctx.$implicit; 9082 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 9083 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("checked", subcategory_r23.checked)("id", "subcategory-" + subcategory_r23.id)("value", subcategory_r23.id); 9084 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 9085 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", subcategory_r23.name, ""); 9086 } 9087} 9088 9089function ProductsComponent_div_2_div_19_div_2_Template(rf, ctx) { 9090 if (rf & 1) { 9091 const _r27 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"](); 9092 9093 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div")(1, "h3", 30); 9094 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function ProductsComponent_div_2_div_19_div_2_Template_h3_click_1_listener() { 9095 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r27); 9096 9097 const _r21 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵreference"](4); 9098 9099 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetVie
9099w"](_r21.toggle()); 9100 }); 9101 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, "G\u00E9nero"); 9102 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 9103 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](3, "div", 31, 37); 9104 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("ngbCollapseChange", function ProductsComponent_div_2_div_19_div_2_Template_div_ngbCollapseChange_3_listener($event) { 9105 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r27); 9106 const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3); 9107 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r28.isCollapsedSubcategories = $event); 9108 }); 9109 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](5, ProductsComponent_div_2_div_19_div_2_p_5_Template, 3, 4, "p", 35); 9110 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()(); 9111 } 9112 9113 if (rf & 2) { 9114 const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3); 9115 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3); 9116 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngbCollapse", ctx_r9.isCollapsedSubcategories); 9117 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2); 9118 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", ctx_r9.subcategories); 9119 } 9120} 9121 9122function ProductsComponent_div_2_div_19_div_3_p_5_Template(rf, ctx) { 9123 if (rf & 1) { 9124 const _r35 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"](); 9125 9126 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "p", 41)(1, "input", 36); 9127 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("change", function ProductsComponent_div_2_div_19_div_3_p_5_Template_input_change_1_listener($event) { 9128 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r35); 9129 const ctx_r34 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](4); 9130 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r34.brandChange($event)); 9131 }); 9132 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 9133 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2); 9134 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 9135 } 9136 9137 if (rf & 2) { 9138 const brand_r33 = ctx.$implicit; 9139 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngClass", brand_r33.show ? "brand-show" : "brand-hide"); 9140 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 9141 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("checked", brand_r33.checked)("id", "brand-" + brand_r33.id)("value", brand_r33.id); 9142 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 9143 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", brand_r33.name, ""); 9144 } 9145} 9146 9147function ProductsComponent_div_2_div_19_div_3_p_6_Template(rf, ctx) { 9148 if (rf & 1) { 9149 const _r37 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"](); 9150 9151 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "p", 42); 9152 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function ProductsComponent_div_2_div_19_div_3_p_6_Template_p_click_0_listener() { 9153 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r37); 9154 const ctx_r36 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](4); 9155 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r36.showBrands(true)); 9156 }); 9157 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, "Ver Mais "); 9158 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](2, "i", 43); 9159 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 9160 } 9161} 9162 9163function ProductsComponent_div_2_div_19_div_3_p_7_Template(rf, ctx) { 9164 if (rf & 1) { 9165 const _r39 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"](); 9166 9167 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "p", 42); 9168 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function ProductsComponent_div_2_div_19_div_3_p_7_Template_p_click_0_listener() { 9169 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r39); 9170 const ctx_r38 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](4); 9171 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetVie
9171w"](ctx_r38.showBrands(false)); 9172 }); 9173 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, "Ver Menos "); 9174 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](2, "i", 44); 9175 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 9176 } 9177} 9178 9179function ProductsComponent_div_2_div_19_div_3_Template(rf, ctx) { 9180 if (rf & 1) { 9181 const _r41 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"](); 9182 9183 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div")(1, "h3", 30); 9184 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function ProductsComponent_div_2_div_19_div_3_Template_h3_click_1_listener() { 9185 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r41); 9186 9187 const _r29 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵreference"](4); 9188 9189 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](_r29.toggle()); 9190 }); 9191 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, "Marcas"); 9192 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 9193 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](3, "div", 31, 38); 9194 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("ngbCollapseChange", function ProductsComponent_div_2_div_19_div_3_Template_div_ngbCollapseChange_3_listener($event) { 9195 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r41); 9196 const ctx_r42 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3); 9197 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r42.isCollapsedBrands = $event); 9198 }); 9199 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](5, ProductsComponent_div_2_div_19_div_3_p_5_Template, 3, 5, "p", 39); 9200 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](6, ProductsComponent_div_2_div_19_div_3_p_6_Template, 3, 0, "p", 40); 9201 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](7, ProductsComponent_div_2_div_19_div_3_p_7_Template, 3, 0, "p", 40); 9202 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()(); 9203 } 9204 9205 if (rf & 2) { 9206 const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3); 9207 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3); 9208 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngbCollapse", ctx_r10.isCollapsedBrands); 9209 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2); 9210 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", ctx_r10.brands); 9211 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 9212 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", !ctx_r10.showMoreBrands); 9213 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 9214 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r10.showMoreBrands); 9215 } 9216} 9217 9218function ProductsComponent_div_2_div_19_p_9_Template(rf, ctx) { 9219 if (rf & 1) { 9220 const _r45 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"](); 9221 9222 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "p", 45)(1, "input", 46); 9223 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("change", function ProductsComponent_div_2_div_19_p_9_Template_input_change_1_listener($event) { 9224 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r45); 9225 const ctx_r44 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3); 9226 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r44.priceChange($event)); 9227 }); 9228 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 9229 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2); 9230 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 9231 } 9232 9233 if (rf & 2) { 9234 const price_r43 = ctx.$implicit; 9235 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 9236 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("id", "price-" + price_r43.id)("value", price_r43.id); 9237 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 9238 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", price_r43.name, ""); 9239 } 9240} 9241 9242function ProductsComponent_div_2_div_19_Template(rf, ctx) { 9243 if (rf & 1) { 9244 const _r47 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"](); 9245 9246 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 28); 9247 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](1, ProductsComponent_div_2_div_19_div_1_Template, 6, 2, "div", 29); 9248 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](2, ProductsComponent_div_2_div_19_div_2_Template, 6, 2, "div", 29); 9249 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](3, ProductsComponent_div_2_div_19_div_3_Template, 8, 4, "div", 29); 9250 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](4, "div")(5, "h3", 30); 9251 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function ProductsComponent_div_2_div_19_Template_h3_click_5_listener() { 9252 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r47); 9253 9254 const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵreference"](8); 9255 9256 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetVie
9256w"](_r11.toggle()); 9257 }); 9258 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](6, "Pre\u00E7os"); 9259 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 9260 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](7, "div", 31, 32); 9261 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("ngbCollapseChange", function ProductsComponent_div_2_div_19_Template_div_ngbCollapseChange_7_listener($event) { 9262 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r47); 9263 const ctx_r48 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2); 9264 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r48.isCollapsedPrices = $event); 9265 }); 9266 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](9, ProductsComponent_div_2_div_19_p_9_Template, 3, 3, "p", 33); 9267 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()(); 9268 } 9269 9270 if (rf & 2) { 9271 const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2); 9272 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 9273 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r3.categories.length); 9274 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 9275 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r3.subcategories.length); 9276 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 9277 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r3.brands.length); 9278 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4); 9279 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngbCollapse", ctx_r3.isCollapsedPrices); 9280 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2); 9281 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", ctx_r3.prices); 9282 } 9283} 9284 9285function ProductsComponent_div_2_p_21_Template(rf, ctx) { 9286 if (rf & 1) { 9287 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "p", 4); 9288 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, "Sem produtos!"); 9289 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 9290 } 9291} 9292 9293function ProductsComponent_div_2_div_22_div_1_Template(rf, ctx) { 9294 if (rf & 1) { 9295 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div"); 9296 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "app-product-view", 48); 9297 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 9298 } 9299 9300 if (rf & 2) { 9301 const product_r50 = ctx.$implicit; 9302 const ctx_r49 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3); 9303 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵclassMap"]("col-12 col-sm-6 col-md-6 col-lg-" + ctx_r49.col); 9304 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 9305 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("product", product_r50)("brand", ctx_r49.getBrandName(product_r50.brand_id)); 9306 } 9307} 9308 9309function ProductsComponent_div_2_div_22_Template(rf, ctx) { 9310 if (rf & 1) { 9311 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 11); 9312 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](1, ProductsComponent_div_2_div_22_div_1_Template, 2, 4, "div", 47); 9313 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 9314 } 9315 9316 if (rf & 2) { 9317 const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2); 9318 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 9319 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", ctx_r5.products); 9320 } 9321} 9322 9323function ProductsComponent_div_2_div_23_Template(rf, ctx) { 9324 if (rf & 1) { 9325 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 11)(1, "p", 49); 9326 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnamespaceSVG"](); 9327 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](2, "svg", 5)(3, "path", 6); 9328 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](4, "animateTransform", 7); 9329 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()(); 9330 } 9331} 9332 9333function ProductsComponent_div_2_button_24_Template(rf, ctx) { 9334 if (rf & 1) { 9335 const _r52 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"](); 9336 9337 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "button", 50); 9338 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function ProductsComponent_div_2_button_24_Template_button_click_0_listener() { 9339 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r52); 9340 const ctx_r51 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2); 9341 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetVie
9341w"](ctx_r51.seeMore()); 9342 }); 9343 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, "Ver mais"); 9344 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 9345 } 9346} 9347 9348function ProductsComponent_div_2_Template(rf, ctx) { 9349 if (rf & 1) { 9350 const _r54 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"](); 9351 9352 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 9)(1, "div", 10)(2, "div", 11)(3, "div", 12)(4, "div", 13)(5, "img", 14); 9353 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function ProductsComponent_div_2_Template_img_click_5_listener() { 9354 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r54); 9355 const ctx_r53 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](); 9356 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r53.gridChange(3)); 9357 }); 9358 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 9359 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](6, "img", 15); 9360 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function ProductsComponent_div_2_Template_img_click_6_listener() { 9361 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r54); 9362 const ctx_r55 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](); 9363 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r55.gridChange(6)); 9364 }); 9365 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()(); 9366 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](7, "select", 16); 9367 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("change", function ProductsComponent_div_2_Template_select_change_7_listener($event) { 9368 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r54); 9369 const ctx_r56 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](); 9370 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r56.changeOrder($event)); 9371 }); 9372 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](8, "option", 17); 9373 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](9, "Ordenar por pre\u00E7o crescente"); 9374 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 9375 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](10, "option", 18); 9376 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](11, "Ordenar por pre\u00E7o decrescente"); 9377 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 9378 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](12, "option", 19); 9379 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](13, "Ordenar por A a Z"); 9380 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 9381 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](14, "option", 20); 9382 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](15, "Ordenar por Z a A"); 9383 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()(); 9384 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](16, "span", 21); 9385 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function ProductsComponent_div_2_Template_span_click_16_listener() { 9386 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r54); 9387 const ctx_r57 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](); 9388 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r57.showFilters = !ctx_r57.showFilters); 9389 }); 9390 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](17, "i", 22); 9391 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](18, " Filtros "); 9392 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 9393 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](19, ProductsComponent_div_2_div_19_Template, 10, 5, "div", 23); 9394 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 9395 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](20, "div", 24); 9396 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](21, ProductsComponent_div_2_p_21_Template, 2, 0, "p", 25); 9397 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](22, ProductsComponent_div_2_div_22_Template, 2, 1, "div", 26); 9398 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](23, ProductsComponent_div_2_div_23_Template, 5, 0, "div", 26); 9399 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](24, ProductsComponent_div_2_button_24_Template, 2, 0, "button", 27); 9400 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()(); 9401 } 9402 9403 if (rf & 2) { 9404 const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](); 9405 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](19); 9406 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r2.showFilters); 9407 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2); 9408 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", !ctx_r2.products.length && ctx_r2.verifyProducts); 9409 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 9410 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r2.products.length); 9411 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 9412 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r2.loading); 9413 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 9414 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r2.page >= 0 && ctx_r2.products.length && !ctx_r2.loading); 9415 } 9416} 9417 9418class ProductsComponent extends _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_2__.BasicComponent { 9419 constructor(productService, activatedRoute, brandService, categoryService, collectionService, location) { 9420 super(); 9421 this.productService = productService; 9422 this.activatedRoute = activatedRoute; 9423 this.brandService = brandService; 9424 this.categoryService = categoryService; 9425 this.collectionService = collectionService; 9426 this.location = location; 9427 this.page = 0; 9428 this.limit = 100; 9429 this.categoryId = null; 9430 this.collectionId = null; 9431 this.categories = []; 9432 this.subcategories = []; 9433 this.brands = []; 9434 this.prices = _models_models_model__WEBPACK_IMPORTED_MODULE_1__.PRICES; 9435 this.products = []; 9436 this.selectedSubcategories = []; 9437 this.selectedBrands = []; 9438 this.selectedPrices = []; 9439 this.term = null; 9440 this.title = 'Produtos'; 9441 this.col = 3; 9442 this.isCollapsedCategories = false;
9443 this.isCollapsedSubcategories = false; 9444 this.isCollapsedBrands = false; 9445 this.isCollapsedPrices = false; 9446 this.verifyProducts = false; 9447 this.loading = false; 9448 this.mainLoading = true; 9449 this.showFilters = false; 9450 this.hasImage = false; 9451 this.order = 'order=price&sort=asc'; 9452 this.showMoreBrands = false; 9453 9454 if (window.screen.width > 991) { 9455 this.showFilters = true; 9456 } 9457 } 9458 9459 ngOnInit() { 9460 var _this = this; 9461 9462 this.activatedRoute.params.subscribe( /*#__PURE__*/function () { 9463 var _ref = (0,_home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (params) { 9464 _this.categoryId = null; 9465 _this.selectedSubcategories = []; 9466 _this.selectedBrands = []; 9467 _this.selectedPrices = []; 9468 9469 if (params.category) { 9470 _this.categoryId = yield Number(params.category); 9471 _this.hasImage = true; 9472 } 9473 9474 if (params.subcategory) { 9475 _this.selectedSubcategories.push(Number(params.subcategory)); 9476 9477 _this.image = 'assets/images/' + params.slug + '.png'; 9478 _this.hasImage = true; 9479 } 9480 9481 if (params.brand) { 9482 _this.selectedBrands.push(Number(params.brand)); 9483 9484 _this.hasImage = true; 9485 } 9486 9487 if (params.collection) { 9488 _this.collectionId = yield params.collection; 9489 9490 _this.loadCollection(); 9491 9492 _this.hasImage = true; 9493 } 9494 9495 if (params.term) { 9496 _this.term = yield params.term; 9497 } 9498 9499 _this.activatedRoute.queryParams.subscribe( /*#__PURE__*/function () { 9500 var _ref2 = (0,_home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (params) { 9501 if (params.s) { 9502 _this.selectedSubcategories = []; 9503 let s = params.s.split(','); 9504 s.forEach(e => { 9505 _this.selectedSubcategories.push(Number(e)); 9506 }); 9507 } 9508 9509 if (params.b) { 9510 _this.selectedBrands = []; 9511 let b = params.b.split(','); 9512 b.forEach(e => { 9513 _this.selectedBrands.push(Number(e)); 9514 }); 9515 } 9516 }); 9517 9518 return function (_x2) { 9519 return _ref2.apply(this, arguments); 9520 }; 9521 }()); 9522 9523 _this.loadCategories(); 9524 9525 _this.loadSubcategories(); 9526 9527 _this.loadBrands(); 9528 9529 yield _this.loadProducts(); 9530 9531 if (!_this.hasImage) { 9532 _this.image = 'assets/images/products.png'; 9533 } 9534 }); 9535 9536 return function (_x) { 9537 return _ref.apply(this, arguments); 9538 }; 9539 }()); 9540 } 9541 /** Loads **/ 9542 9543 9544 loadCategories() { 9545 var _this2 = this; 9546 9547 this.categoryService.all().subscribe( /*#__PURE__*/function () { 9548 var _ref3 = (0,_home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (resp) { 9549 if (resp.status == 'OK') { 9550 _this2.categories = resp.data; 9551 9552 _this2.categories.map(category => { 9553 category.checked = false; 9554 9555 if (category.id == _this2.categoryId) { 9556 category.checked = true; 9557 9558 if (!_this2.image) { 9559 _this2.image = category.image; 9560 _this2.mainLoading = false; 9561 } 9562 } 9563 }); 9564 } 9565 }); 9566 9567 return function (_x3) { 9568 return _ref3.apply(this, arguments); 9569 }; 9570 }()); 9571 } 9572 9573 loadSubcategories() { 9574 var _this3 = this; 9575 9576 this.categoryService.subcategories(this.categoryId).subscribe( /*#__PURE__*/function () { 9577 var _ref4 = (0,_home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (resp) { 9578 if (resp.status == 'OK') { 9579 _this3.subcategories = yield resp.data; 9580 9581 _this3.subcategories.map(subcategory => { 9582 subcategory.checked = false;
9583 9584 if (_this3.selectedSubcategories.includes(subcategory.id)) { 9585 subcategory.checked = true; 9586 } 9587 }); 9588 } 9589 }); 9590 9591 return function (_x4) { 9592 return _ref4.apply(this, arguments); 9593 }; 9594 }()); 9595 } 9596 9597 loadBrands() { 9598 var _this4 = this; 9599 9600 this.brandService.all(this.categoryId).subscribe( /*#__PURE__*/function () { 9601 var _ref5 = (0,_home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (resp) { 9602 if (resp.status == 'OK') { 9603 _this4.brands = yield resp.data; 9604 9605 _this4.brands.map((brand, index) => { 9606 brand.checked = false; 9607 brand.show = false; 9608 9609 if (index < 6) { 9610 brand.show = true; 9611 } 9612 9613 if (_this4.selectedBrands.includes(brand.id)) { 9614 brand.checked = true; 9615 _this4.image = brand.banner; 9616 _this4.mainLoading = false; 9617 } 9618 }); 9619 } 9620 }); 9621 9622 return function (_x5) { 9623 return _ref5.apply(this, arguments); 9624 }; 9625 }()); 9626 } 9627 9628 loadCollection() { 9629 var _this5 = this; 9630 9631 this.collectionService.one(this.collectionId).subscribe( /*#__PURE__*/function () { 9632 var _ref6 = (0,_home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (resp) { 9633 if (resp.status == 'OK') { 9634 _this5.image = resp.data.banner; 9635 _this5.mainLoading = false; 9636 } 9637 }); 9638 9639 return function (_x6) { 9640 return _ref6.apply(this, arguments); 9641 }; 9642 }()); 9643 } 9644 9645 loadProducts(clear = true) { 9646 var _this6 = this; 9647 9648 return (0,_home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () { 9649 _this6.loading = true; 9650 9651 if (_this6.page == 0) { 9652 _this6.products = []; 9653 } 9654 9655 if (clear) { 9656 _this6.products = []; 9657 _this6.verifyProducts = false; 9658 } 9659 9660 _this6.productService.filterCategory(_this6.page, _this6.limit, _this6.categoryId, _this6.selectedSubcategories, _this6.selectedBrands, _this6.selectedPrices, _this6.collectionId, _this6.order, _this6.term).subscribe( /*#__PURE__*/function () { 9661 var _ref7 = (0,_home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (resp) { 9662 if (resp.status == 'OK') { 9663 if (_this6.page == 0) { 9664 _this6.products = yield resp.data; 9665 } else { 9666 _this6.products = _this6.products.concat(resp.data); 9667 } 9668 9669 if (resp.data.length == 0 || resp.data.length < _this6.limit) { 9670 _this6.page = -1; 9671 } 9672 9673 _this6.products.map(product => { 9674 product.image2 = product.images ? product.images[1] : ''; 9675 }); 9676 9677 if (!_this6.products.length) { 9678 _this6.verifyProducts = true; 9679 } 9680 } else { 9681 _this6.page = -1; 9682 } 9683 9684 _this6.loading = false; 9685 9686 if (_this6.image) { 9687 _this6.mainLoading = false; 9688 } 9689 }); 9690 9691 return function (_x7) { 9692 return _ref7.apply(this, arguments); 9693 }; 9694 }()); 9695 })(); 9696 } 9697 9698 seeMore() { 9699 if (this.page >= 0) { 9700 this.page++; 9701 this.loadProducts(false); 9702 } 9703 } 9704 /** Changes **/ 9705 9706 9707 gridChange(columns) { 9708 this.col = columns; 9709 } 9710 9711 categoryChange(event) { 9712 var _this7 = this; 9713 9714 return (0,_home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () { 9715 _this7.categoryId = event.target.checked ? Number(event.target.value) : null; 9716 _this7.selectedSubcategories = []; 9717 _this7.selectedBrands = []; 9718 _this7.page = 0; 9719 _this7.term = null; 9720 9721 _this7.categories.map(category => { 9722 category.checked = false;
9723 9724 if (category.id == _this7.categoryId) { 9725 category.checked = true; 9726 _this7.image = category.image; 9727 _this7.title = category.name; 9728 } 9729 }); 9730 9731 _this7.loadSubcategories(); 9732 9733 _this7.loadBrands(); 9734 9735 yield _this7.loadProducts(); 9736 })(); 9737 } 9738 9739 subcategoryChange(event) { 9740 var _this8 = this; 9741 9742 return (0,_home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () { 9743 _this8.page = 0; 9744 _this8.selectedBrands = []; 9745 _this8.term = null; 9746 9747 if (event.target.checked) { 9748 _this8.selectedSubcategories.push(Number(event.target.value)); 9749 } else { 9750 const index = _this8.selectedSubcategories.indexOf(Number(event.target.value), 0); 9751 9752 if (index > -1) { 9753 _this8.selectedSubcategories.splice(index, 1); 9754 } 9755 } 9756 9757 _this8.subcategories.map(subcategory => { 9758 subcategory.checked = _this8.selectedSubcategories.includes(subcategory.id); 9759 }); 9760 9761 let url = _this8.getBaseUrl(); 9762 9763 if (_this8.selectedSubcategories.length) { 9764 url += '?s=' + _this8.selectedSubcategories.join(','); 9765 } 9766 9767 _this8.updateUrl(url); 9768 9769 yield _this8.loadProducts(); 9770 })(); 9771 } 9772 9773 brandChange(event) { 9774 var _this9 = this; 9775 9776 return (0,_home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () { 9777 _this9.brands.forEach(brand => { 9778 if (brand.id == event.target.value) { 9779 window.location.href = _this9.getPathAsString('/marca', brand); 9780 } 9781 }); 9782 })(); 9783 } 9784 9785 priceChange(event) { 9786 var _this10 = this; 9787 9788 return (0,_home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () { 9789 if (event.target.checked) { 9790 _this10.selectedPrices.push(event.target.value); 9791 } else { 9792 const index = _this10.selectedPrices.indexOf(event.target.value, 0); 9793 9794 if (index > -1) { 9795 _this10.selectedPrices.splice(index, 1); 9796 } 9797 } 9798 9799 _this10.prices.map(price => { 9800 price.checked = _this10.selectedPrices.includes(price.id); 9801 }); 9802 9803 yield _this10.loadProducts(); 9804 })(); 9805 } 9806 9807 getBaseUrl() { 9808 return window.location.href.split('/').slice(3).join('/').split('?')[0]; 9809 } 9810 9811 updateUrl(url) { 9812 this.location.replaceState(url); 9813 } 9814 9815 getBrandName(brand_id) { 9816 let brand = this.brands.find(b => b.id == brand_id); 9817 return brand ? brand.name : ''; 9818 } 9819 9820 changeOrder(event) { 9821 this.order = event.target.value; 9822 this.loadProducts(); 9823 } 9824 9825 showBrands(value) { 9826 this.showMoreBrands = value; 9827 this.brands.map((brand, index) => { 9828 if (index >= 6) { 9829 brand.show = value; 9830 } 9831 }); 9832 } 9833 9834} 9835 9836ProductsComponent.ɵfac = function ProductsComponent_Factory(t) { 9837 return new (t || ProductsComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_services_services_service__WEBPACK_IMPORTED_MODULE_3__.ProductService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_6__.ActivatedRoute), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_app_services_brand_service__WEBPACK_IMPORTED_MODULE_4__.BrandService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_services_services_service__WEBPACK_IMPORTED_MODULE_3__.CategoryService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_services_services_service__WEBPACK_IMPORTED_MODULE_3__.CollectionService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_7__.Location)); 9838}; 9839 9840ProductsComponent.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineComponent"]({ 9841 type: ProductsComponent, 9842 selectors: [["app-products"]], 9843 features: [_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵInheritDefinitionFeature"]], 9844 decls: 3, 9845 vars: 3, 9846 consts: [["class", "row main-loading", 4, "ngIf"], ["class", "img-category mt-3", 3, "background-image", 4, "ngIf"], ["class", "container container-products mt-5", 4, "ngIf"], [1, "row", "main-loading"], [1, "text-center"], ["width", "50", "height", "50", "viewBox", "0 0 24 24", "xmlns", "http://www.w3.org/2000/svg"], ["d", "M2,12A11.2,11.2,0,0,1,13,1.05C12.67,1,12.34,1,12,1a11,11,0,0,0,0,22c.34,0,.67,0,1-.05C6,23,2,17.74,2,12Z"], ["attributeName", "transform", "type", "rotate", "dur", "0.6s", "values", "0 12 12;360 12 12", "repeatCount", "indefinite"], [1, "img-category", "mt-3"], [1, "container", "container-products", "mt-5"], [1, "product-container", "mt-5", "mb-5"], [1, "row"], [1, "col-12", "col-lg-3"], [1, "buttons-grid"], ["src", "assets/images/grid-4.svg", "alt", "", 1, "img-fluid", 3, "click"], ["src", "assets/images/grid-2.svg", "alt", "", 1, "img-fluid", 3, "click"], [1, "select-order", "my-4", 3, "change"], ["value", "order=price&sort=asc"], ["value", "order=price&sort=desc"], ["value", "order=name&sort=asc"], ["value", "order=name&sort=desc"], [1, "mt-5", "w-50", "btn-filter", 3, "click"], [1, "fa", "fa-filter"], ["class", "form", 4, "ngIf"], [1, "col-12", "col-lg-9"], ["class", "text-center", 4, "ngIf"], ["class", "row", 4, "ngIf"], ["class", "btn center btn-primary", 3, "click", 4, "ngIf"], [1, "form"], [4, "ngIf"], ["role", "button", 3, "click"], [3, "ngbCollapse", "ngbCollapseChange"], ["collapsePrices", "ngbCollapse"], ["class", "align-items-center", 4, "ngFor", "ngForOf"], ["collapseCategories", "ngbCollapse"], [4, "ngFor", "ngForOf"], ["type", "checkbox", 3, "checked", "id", "value", "change"], ["collapseSubcategories", "ngbCollapse"], ["collapseBrands", "ngbCollapse"], [3, "ngClass", 4, "ngFor", "ngForOf"], ["class", "brand-button", "role", "button", 3, "click", 4, "ngIf"], [3, "ngClass"], ["role", "button", 1, "brand-button", 3, "click"], [1, "fas", "fa-caret-down"], [1, "fas", "fa-caret-up"], [1, "align-items-center"], ["type", "checkbox", 3, "id", "value", "change"], [3, "class", 4, "ngFor", "ngForOf"], [3, "product", "brand"], [1, "text-center", "mt-5"], [1, "btn", "center", "btn-primary", 3, "click"]], 9847 template: function ProductsComponent_Template(rf, ctx) { 9848 if (rf & 1) { 9849 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](0, ProductsComponent_div_0_Template, 5, 0, "div", 0); 9850 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](1, ProductsComponent_div_1_Template, 1, 2, "div", 1); 9851 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](2, ProductsComponent_div_2_Template, 25, 5, "div", 2); 9852 } 9853 9854 if (rf & 2) { 9855 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.mainLoading); 9856 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 9857 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", !ctx.mainLoading); 9858 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 9859 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", !ctx.mainLoading); 9860 } 9861 }, 9862 styles: [".img-category[_ngcontent-%COMP%] {\n width: 100%;\n height: 377px;\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n position: relative;\n margin-bottom: 74px;\n}\n.img-category[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] {\n font-size: 35px;\n color: var(--white);\n position: absolute;\n width: 100%;\n text-align: center;\n top: 50%;\n transform: translateY(-50%);\n margin: auto;\n text-transform: uppercase;\n}\n.main-loading[_ngcontent-%COMP%] {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 50vh;\n}\n.buttons-grid[_ngcontent-%COMP%] {\n margin-bottom: 40px;\n}\n.buttons-grid[_ngcontent-%COMP%] img[_ngcontent-%COMP%] {\n margin-right: 12px;\n}\n.btn-filter[_ngcontent-%COMP%] {\n display: none;\n}\n.form[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] {\n font-size: 20px;\n font-weight: 500;\n margin-bottom: 20px;\n}\n.form[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n font-size: 14px;\n margin-bottom: 12px;\n}\n.form[_ngcontent-%COMP%] p[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%] {\n margin-right: 7px;\n}\n.brand-show[_ngcontent-%COMP%] {\n display: block;\n}\n.brand-hide[_ngcontent-%COMP%] {\n display: none;\n transition: display 0.4s ease;\n}\n.select-order[_ngcontent-%COMP%] {\n height: 46px;\n background-color: var(--white);\n border: 1px solid var(--dark-grey);\n border-radius: 4px;\n width: 100%;\n color: var(--dark);\n font-size: 14px;\n padding: 10px;\n}\n@media only screen and (max-width: 992px) {\n .buttons-grid[_ngcontent-%COMP%] {\n display: none;\n }\n .btn-filter[_ngcontent-%COMP%] {\n display: block;\n margin-bottom: 5vh;\n }\n .img-category[_ngcontent-%COMP%] {\n margin-bottom: -48px !important;\n width: 100%;\n height: 118px;\n background-position: left;\n background-repeat: no-repeat;\n background-size: cover;\n position: relative;\n }\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInByb2R1Y3RzLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0MsV0FBQTtFQUNBLGFBQUE7RUFDQSwyQkFBQTtFQUNBLDRCQUFBO0VBQ0Esc0JBQUE7RUFDQSxrQkFBQTtFQUNBLG1CQUFBO0FBQ0Q7QUFDQztFQUNDLGVBQUE7RUFDQSxtQk
9862FBQTtFQUNBLGtCQUFBO0VBQ0EsV0FBQTtFQUNBLGtCQUFBO0VBQ0EsUUFBQTtFQUNBLDJCQUFBO0VBQ0EsWUFBQTtFQUNBLHlCQUFBO0FBQ0Y7QUFHQTtFQUNDLGFBQUE7RUFDQSx1QkFBQTtFQUNBLG1CQUFBO0VBQ0EsWUFBQTtBQUFEO0FBR0E7RUFDQyxtQkFBQTtBQUFEO0FBRUM7RUFDQyxrQkFBQTtBQUFGO0FBSUE7RUFDQyxhQUFBO0FBREQ7QUFLQztFQUNDLGVBQUE7RUFDQSxnQkFBQTtFQUNBLG1CQUFBO0FBRkY7QUFLQztFQUNDLGVBQUE7RUFDQSxtQkFBQTtBQUhGO0FBS0U7RUFDQyxpQkFBQTtBQUhIO0FBUUE7RUFDQyxjQUFBO0FBTEQ7QUFRQTtFQUNDLGFBQUE7RUFDQSw2QkFBQTtBQUxEO0FBUUE7RUFDQyxZQUFBO0VBQ0EsOEJBQUE7RUFDQSxrQ0FBQTtFQUNBLGtCQUFBO0VBQ0EsV0FBQTtFQUNBLGtCQUFBO0VBQ0EsZUFBQTtFQUNBLGFBQUE7QUFMRDtBQVFBO0VBQ0M7SUFDQyxhQUFBO0VBTEE7RUFRRDtJQUNDLGNBQUE7SUFDQSxrQkFBQTtFQU5BO0VBU0Q7SUFDQywrQkFBQTtJQUNBLFdBQUE7SUFDQSxhQUFBO0lBQ0EseUJBQUE7SUFDQSw0QkFBQTtJQUNBLHNCQUFBO0lBQ0Esa0JBQUE7RUFQQTtBQUNGIiwiZmlsZSI6InByb2R1Y3RzLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmltZy1jYXRlZ29yeSB7XG5cdHdpZHRoOiAxMDAlO1xuXHRoZWlnaHQ6IDM3N3B4O1xuXHRiYWNrZ3JvdW5kLXBvc2l0aW9uOiBjZW50ZXI7XG5cdGJhY2tncm91bmQtcmVwZWF0OiBuby1yZXBlYXQ7XG5cdGJhY2tncm91bmQtc2l6ZTogY292ZXI7XG5cdHBvc2l0aW9uOiByZWxhdGl2ZTtcblx0bWFyZ2luLWJvdHRvbTogNzRweDtcblxuXHRoMiB7XG5cdFx0Zm9udC1zaXplOiAzNXB4O1xuXHRcdGNvbG9yOiB2YXIoLS13aGl0ZSk7XG5cdFx0cG9zaXRpb246IGFic29sdXRlO1xuXHRcdHdpZHRoOiAxMDAlO1xuXHRcdHRleHQtYWxpZ246IGNlbnRlcjtcblx0XHR0b3A6IDUwJTtcblx0XHR0cmFuc2Zvcm06IHRyYW5zbGF0ZVkoLTUwJSk7XG5cdFx0bWFyZ2luOiBhdXRvO1xuXHRcdHRleHQtdHJhbnNmb3JtOiB1cHBlcmNhc2U7XG5cdH1cbn1cblxuLm1haW4tbG9hZGluZyB7XG5cdGRpc3BsYXk6IGZsZXg7XG5cdGp1c3RpZnktY29udGVudDogY2VudGVyO1xuXHRhbGlnbi1pdGVtczogY2VudGVyO1xuXHRoZWlnaHQ6IDUwdmg7XG59XG5cbi5idXR0b25zLWdyaWQge1xuXHRtYXJnaW4tYm90dG9tOiA0MHB4O1xuXG5cdGltZyB7XG5cdFx0bWFyZ2luLXJpZ2h0OiAxMnB4O1xuXHR9XG59XG5cbi5idG4tZmlsdGVyIHtcblx0ZGlzcGxheTogbm9uZTtcbn1cblxuLmZvcm0ge1xuXHRoMyB7XG5cdFx0Zm9udC1zaXplOiAyMHB4O1xuXHRcdGZvbnQtd2VpZ2h0OiA1MDA7XG5cdFx0bWFyZ2luLWJvdHRvbTogMjBweDtcblx0fVxuXG5cdHAge1xuXHRcdGZvbnQtc2l6ZTogMTRweDtcblx0XHRtYXJnaW4tYm90dG9tOiAxMnB4O1xuXG5cdFx0aW5wdXRbdHlwZT1cImNoZWNrYm94XCJdIHtcblx0XHRcdG1hcmdpbi1yaWdodDogN3B4O1xuXHRcdH1cblx0fVxufVxuXG4uYnJhbmQtc2hvdyB7XG5cdGRpc3BsYXk6IGJsb2NrO1xufVxuXG4uYnJhbmQtaGlkZSB7XG5cdGRpc3BsYXk6IG5vbmU7XG5cdHRyYW5zaXRpb246IGRpc3BsYXkgMC40cyBlYXNlO1xufVxuXG4uc2VsZWN0LW9yZGVyIHtcblx0aGVpZ2h0OiA0NnB4O1xuXHRiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS13aGl0ZSk7XG5cdGJvcmRlcjogMXB4IHNvbGlkIHZhcigtLWRhcmstZ3JleSk7XG5cdGJvcmRlci1yYWRpdXM6IDRweDtcblx0d2lkdGg6IDEwMCU7XG5cdGNvbG9yOiB2YXIoLS1kYXJrKTtcblx0Zm9udC1zaXplOiAxNHB4O1xuXHRwYWRkaW5nOiAxMHB4O1xufVxuXG5AbWVkaWEgb25seSBzY3JlZW4gYW5kIChtYXgtd2lkdGg6IDk5MnB4KSB7XG5cdC5idXR0b25zLWdyaWQge1xuXHRcdGRpc3BsYXk6IG5vbmU7XG5cdH1cblxuXHQuYnRuLWZpbHRlciB7XG5cdFx0ZGlzcGxheTogYmxvY2s7XG5cdFx0bWFyZ2luLWJvdHRvbTogNXZoO1xuXHR9XG5cblx0LmltZy1jYXRlZ29yeSB7XG5cdFx0bWFyZ2luLWJvdHRvbTogLTQ4cHggIWltcG9ydGFudDtcblx0XHR3aWR0aDogMTAwJTtcblx0XHRoZWlnaHQ6IDExOHB4O1xuXHRcdGJhY2tncm91bmQtcG9zaXRpb246IGxlZnQ7XG5cdFx0YmFja2dyb3VuZC1yZXBlYXQ6IG5vLXJlcGVhdDtcblx0XHRiYWNrZ3JvdW5kLXNpemU6IGNvdmVyO1xuXHRcdHBvc2l0aW9uOiByZWxhdGl2ZTtcblx0fVxufVxuIl19 */"] 9863}); 9864 9865/***/ }), 9866 9867/***/ 8220: 9868/*!****************************************************!*\ 9869 !*** ./src/app/pages/profile/profile.component.ts ***! 9870 \****************************************************/ 9871/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 9872 9873__webpack_require__.r(__webpack_exports__); 9874/* harmony export */ __webpack_require__.d(__webpack_exports__, { 9875/* harmony export */ "ProfileComponent": () => (/* binding */ ProfileComponent) 9876/* harmony export */ }); 9877/* harmony import */ var _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pages/basic/basic.component */ 9689); 9878/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 2560); 9879/* harmony import */ var _services_services_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @services/services.service */ 6325); 9880 9881 9882 9883function ProfileComponent_div_2_div_24_hr_16_Template(rf, ctx) { if (rf & 1) { 9884 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "hr"); 9885} } 9886function ProfileComponent_div_2_div_24_Template(rf, ctx) { if (rf & 1) { 9887 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 10)(1, "div", 11)(2, "div", 12)(3, "div", 13); 9888 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](4, "img", 14); 9889 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 9890 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 13)(6, "h3", 15); 9891 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](7); 9892 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 9893 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "p", 15); 9894 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](9); 9895 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 9896 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "p", 15); 9897 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](11); 9898 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 9899 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "p", 15); 9900 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](13); 9901 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 9902 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](14, "p", 15); 9903 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](15); 9904 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()(); 9905 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](16, ProfileComponent_div_2_div_24_hr_16_Template, 1, 0, "hr", 16); 9906 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 9907} if (rf & 2) { 9908 const coupon_r2 = ctx.$implicit; 9909 const i_r3 = ctx.index; 9910 const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); 9911 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4); 9912 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("src", coupon_r2.image, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]); 9913 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3); 9914 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("Cup\u00E3o #", coupon_r2.number, ""); 9915 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); 9916 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](coupon_r2.description); 9917 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); 9918 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate2"]("Valor: ", coupon_r2.amount, "",
9918coupon_r2.amount_type, ""); 9919 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); 9920 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate2"]("Min: ", coupon_r2.min, "\u20AC Max: ", coupon_r2.max, "\u20AC"); 9921 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); 9922 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("Expira em: ", coupon_r2.expires_at, ""); 9923 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); 9924 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", i_r3 != ctx_r1.coupons.length - 1); 9925} } 9926function ProfileComponent_div_2_Template(rf, ctx) { if (rf & 1) { 9927 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 2)(1, "div", 3)(2, "div", 4); 9928 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "app-menu-profile"); 9929 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 9930 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 5)(5, "h2"); 9931 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6); 9932 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 9933 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "p"); 9934 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8); 9935 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 9936 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "p", 6)(10, "strong"); 9937 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](11, "Saldo"); 9938 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); 9939 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "p", 7); 9940 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](13); 9941 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](14, "formatMoney"); 9942 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 9943 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "p", 6)(16, "strong"); 9944 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](17, "Cart\u00E3o Cliente"); 9945 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); 9946 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "p", 7); 9947 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](19); 9948 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); 9949 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](20, "div", 8)(21, "h2"); 9950 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](22, "Cup\u00F5es"); 9951 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 9952 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](23, "hr"); 9953 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](24, ProfileComponent_div_2_div_24_Template, 17, 9, "div", 9); 9954 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()(); 9955} if (rf & 2) { 9956 const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); 9957 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6); 9958 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx_r0.user.name); 9959 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); 9960 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx_r0.user.email); 9961 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5); 9962 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](14, 5, ctx_r0.card == null ? null : ctx_r0.card.value)); 9963 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6); 9964 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("#", ctx_r0.card == null ? null : ctx_r0.card.card_number, ""); 9965 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5); 9966 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r0.coupons); 9967} } 9968class ProfileComponent extends _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_0__.BasicComponent { 9969 constructor(userService) { 9970 super(); 9971 this.userService = userService; 9972 this.coupons = []; 9973 this.user = this.storageService.get('user'); 9974 if (!this.user) { 9975 this.navigateHome(); 9976 } 9977 this.loadLoyaltyCard(); 9978 } 9979 ngOnInit() { } 9980 loadLoyaltyCard() { 9981 this.userService.loyaltycards().subscribe((resp) => { 9982 if (resp.status == 'OK') { 9983 if (resp.data.length > 0) { 9984 this.card = resp.data[0]; 9985 this.loadCoupons(this.card.id); 9986 } 9987 } 9988 }); 9989 } 9990 loadCoupons(id) { 9991 this.userService.viewcard(id).subscribe((resp) => { 9992 if (resp.status == 'OK') { 9993 this.coupons = resp.data; 9994 } 9995 }); 9996 } 9997} 9998ProfileComponent.ɵfac = function ProfileComponent_Factory(t) { return new (t || ProfileComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_services_services_service__WEBPACK_IMPORTED_MODULE_1__.UserService)); }; 9999ProfileComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({ type: ProfileComponent, selectors: [["app-profile"]], features: [_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵInheritDefinitionFeature"]], decls: 3, vars: 1, consts: [[1, "ob-title"], ["class", "profile-container", 4, "ngIf"], [1, "profile-container"], [1, "row", "mb-5"], [1, "col-12", "col-md-4", "my-2"], [1, "col-12", "col-md-4", "my-2", "profile-content"], [1, "m-0"], [1, "big-text"], [1, "col-12", "col-md-4", "my-2", "coupons-content"], ["class", "content-order row align-items-center", 4, "ngFor", "ngForOf"], [1, "content-order", "row", "align-items-center"], [1, "col-12"], [1, "row", "align-items-center"], [1, "col-12", "col-md-6", "my-2"], ["alt", "", 1, "img", "center", 3, "src"], [1, "text-start"], [4, "ngIf"]], template: function ProfileComponent_Template(rf, ctx) { if (rf & 1) { 10000 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "h2", 0); 10001 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, "Meu Perfil"); 10002 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 10003 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](2, ProfileComponent_div_2_Template, 25, 7, "div", 1); 10004 } if (rf & 2) { 10005 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); 10006 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.user); 10007 } }, styles: [".ob-title[_ngcontent-%COMP%] {\n margin-top: 100px;\n margin-bottom: 30px;\n}\n\n.profile-container[_ngcontent-%COMP%] {\n box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);\n margin-bottom: 125px;\n background-color: var(--grey);\n padding: 50px;\n}\n\n.profile-container[_ngcontent-%COMP%] .profile-content[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] {\n font-size: 27px;\n text-align: center;\n}\n\n.profile-container[_ngcontent-%COMP%] .profile-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n font-size: 16px;\n text-align: center;\n}\n\n.profile-container[_ngcontent-%COMP%] .profile-content[_ngcontent-%COMP%] .big-text[_ngcontent-%COMP%] {\n font-size: 32px;\n}\n\n.profile-container[_ngcontent-%COMP%] .coupons-content[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] {\n font-size: 27px;\n text-align: center;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInByb2ZpbGUuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDQyxpQkFBQTtFQUNBLG1CQUFBO0FBQ0Q7O0FBRUE7RUFDQywwQ0FBQTtFQUNBLG9CQUFBO0VBQ0EsNkJBQUE7RUFDQSxhQUFBO0FBQ0Q7O0FBRUU7RUFDQyxlQUFBO0VBQ0Esa0JBQUE7QUFBSDs7QUFHRTtFQUNDLGVBQUE7RUFDQSxrQkFBQTtBQURIOztBQUlFO0VBQ0MsZUFBQTtBQUZIOztBQU9FO0VBQ0MsZUFBQTtFQUNBLGtCQUFBO0FBTEgiLCJmaWxlIjoicHJvZmlsZS5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5vYi10aXRsZSB7XG5cdG1hcmdpbi10b3A6IDEwMHB4O1xuXHRtYXJnaW4tYm90dG9tOiAzMHB4O1xufVxuXG4ucHJvZmlsZS1jb250YWluZXIge1xuXHRib3gtc2hhZG93OiAwcHggMXB4IDJweCByZ2JhKDAsIDAsIDAsIDAuMik7XG5cdG1hcmdpbi1ib3R0b206IDEyNXB4O1xuXHRiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1ncmV5KTtcblx0cGFkZGluZzogNTBweDtcblxuXHQucHJvZmlsZS1jb250ZW50IHtcblx0XHRoMiB7XG5cdFx0XHRmb250LXNpemU6IDI3cHg7XG5cdFx0XHR0ZXh0LWFsaWduOiBjZW50ZXI7XG5cdFx0fVxuXG5cdFx0cCB7XG5cdFx0XHRmb250LXNpemU6IDE2cHg7XG5cdFx0XHR0ZXh0LWFsaWduOiBjZW50ZXI7XG5cdFx0fVxuXG5cdFx0LmJpZy10ZXh0IHtcblx0XHRcdGZvbnQtc2l6ZTogMzJweDtcblx0XHR9XG5cdH1cblxuXHQuY291cG9ucy1jb250ZW50IHtcblx0XHRoMiB7XG5cdFx0XHRmb250LXNpemU6IDI3cHg7XG5cdFx0XHR0ZXh0LWFsaWduOiBjZW50ZXI7XG5cdFx0fVxuXHR9XG59XG4iXX0= */"] }); 10008 10009 10010/***/ }), 10011 10012/***/ 6205: 10013/*!**********************************************************!*\ 10014 !*** ./src/app/pages/promotions/promotions.component.ts ***! 10015 \**********************************************************/ 10016/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 10017 10018__webpack_require__.r(__webpack_exports__); 10019/* harmony export */ __webpack_require__.d(__webpack_exports__, { 10020/* harmony export */ "PromotionsComponent": () => (/* binding */ PromotionsComponent) 10021/* harmony export */ }); 10022/* harmony import */ var _home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 1670); 10023/* harmony import */ var _models_models_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @models/models.model */ 2541); 10024/* harmony import */ var _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @pages/basic/basic.component */ 9689); 10025/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/core */ 2560); 10026/* harmony import */ var _services_services_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @services/services.service */ 6325); 10027/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/router */ 124); 10028/* harmony import */ var _app_services_brand_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @app/services/brand.service */ 7744); 10029/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/common */ 4666); 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039function PromotionsComponent_div_0_Template(rf, ctx) { 10040 if (rf & 1) { 10041 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 3)(1, "p", 4); 10042 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnamespaceSVG"](); 10043 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](2, "svg", 5)(3, "path", 6); 10044 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](4, "animateTransform", 7); 10045 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()(); 10046 } 10047} 10048 10049function PromotionsComponent_div_1_Template(rf, ctx) { 10050 if (rf & 1) { 10051 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](0, "div", 8); 10052 } 10053 10054 if (rf & 2) { 10055 const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](); 10056 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵstyleProp"]("background-image", "url(" + ctx_r1.image + ")"); 10057 } 10058} 10059 10060function PromotionsComponent_div_2_div_19_div_1_p_5_Template(rf, ctx) { 10061 if (rf & 1) { 10062 const _r17 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"](); 10063 10064 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "p")(1, "input", 36); 10065 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("change", function PromotionsComponent_div_2_div_19_div_1_p_5_Template_input_change_1_listener($event) { 10066 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r17); 10067 const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](4); 10068 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetVie
10068w"](ctx_r16.categoryChange($event)); 10069 }); 10070 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 10071 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2); 10072 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 10073 } 10074 10075 if (rf & 2) { 10076 const category_r15 = ctx.$implicit; 10077 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 10078 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("checked", category_r15.checked)("id", "category-" + category_r15.id)("value", category_r15.id); 10079 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 10080 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", category_r15.name, ""); 10081 } 10082} 10083 10084function PromotionsComponent_div_2_div_19_div_1_Template(rf, ctx) { 10085 if (rf & 1) { 10086 const _r19 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"](); 10087 10088 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div")(1, "h3", 30); 10089 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function PromotionsComponent_div_2_div_19_div_1_Template_h3_click_1_listener() { 10090 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r19); 10091 10092 const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵreference"](4); 10093 10094 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](_r13.toggle()); 10095 }); 10096 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, "Categorias"); 10097 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 10098 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](3, "div", 31, 34); 10099 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("ngbCollapseChange", function PromotionsComponent_div_2_div_19_div_1_Template_div_ngbCollapseChange_3_listener($event) { 10100 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r19); 10101 const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3); 10102 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r20.isCollapsedCategories = $event); 10103 }); 10104 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](5, PromotionsComponent_div_2_div_19_div_1_p_5_Template, 3, 4, "p", 35); 10105 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()(); 10106 } 10107 10108 if (rf & 2) { 10109 const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3); 10110 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3); 10111 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngbCollapse", ctx_r8.isCollapsedCategories); 10112 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2); 10113 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", ctx_r8.categories); 10114 } 10115} 10116 10117function PromotionsComponent_div_2_div_19_div_2_p_5_Template(rf, ctx) { 10118 if (rf & 1) { 10119 const _r25 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"](); 10120 10121 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "p")(1, "input", 36); 10122 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("change", function PromotionsComponent_div_2_div_19_div_2_p_5_Template_input_change_1_listener($event) { 10123 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r25); 10124 const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](4); 10125 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r24.subcategoryChange($event)); 10126 }); 10127 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 10128 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2); 10129 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 10130 } 10131 10132 if (rf & 2) { 10133 const subcategory_r23 = ctx.$implicit; 10134 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 10135 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("checked", subcategory_r23.checked)("id", "subcategory-" + subcategory_r23.id)("value", subcategory_r23.id); 10136 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 10137 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", subcategory_r23.name, ""); 10138 } 10139} 10140 10141function PromotionsComponent_div_2_div_19_div_2_Template(rf, ctx) { 10142 if (rf & 1) { 10143 const _r27 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"](); 10144 10145 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div")(1, "h3", 30); 10146 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function PromotionsComponent_div_2_div_19_div_2_Template_h3_click_1_listener() { 10147 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r27); 10148 10149 const _r21 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵreference"](4); 10150 10151 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetVie
10151w"](_r21.toggle()); 10152 }); 10153 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, "G\u00E9nero"); 10154 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 10155 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](3, "div", 31, 37); 10156 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("ngbCollapseChange", function PromotionsComponent_div_2_div_19_div_2_Template_div_ngbCollapseChange_3_listener($event) { 10157 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r27); 10158 const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3); 10159 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r28.isCollapsedSubcategories = $event); 10160 }); 10161 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](5, PromotionsComponent_div_2_div_19_div_2_p_5_Template, 3, 4, "p", 35); 10162 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()(); 10163 } 10164 10165 if (rf & 2) { 10166 const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3); 10167 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3); 10168 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngbCollapse", ctx_r9.isCollapsedSubcategories); 10169 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2); 10170 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", ctx_r9.subcategories); 10171 } 10172} 10173 10174function PromotionsComponent_div_2_div_19_div_3_p_5_Template(rf, ctx) { 10175 if (rf & 1) { 10176 const _r35 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"](); 10177 10178 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "p", 41)(1, "input", 36); 10179 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("change", function PromotionsComponent_div_2_div_19_div_3_p_5_Template_input_change_1_listener($event) { 10180 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r35); 10181 const ctx_r34 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](4); 10182 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r34.brandChange($event)); 10183 }); 10184 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 10185 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2); 10186 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 10187 } 10188 10189 if (rf & 2) { 10190 const brand_r33 = ctx.$implicit; 10191 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngClass", brand_r33.show ? "brand-show" : "brand-hide"); 10192 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 10193 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("checked", brand_r33.checked)("id", "brand-" + brand_r33.id)("value", brand_r33.id); 10194 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 10195 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", brand_r33.name, ""); 10196 } 10197} 10198 10199function PromotionsComponent_div_2_div_19_div_3_p_6_Template(rf, ctx) { 10200 if (rf & 1) { 10201 const _r37 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"](); 10202 10203 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "p", 42); 10204 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function PromotionsComponent_div_2_div_19_div_3_p_6_Template_p_click_0_listener() { 10205 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r37); 10206 const ctx_r36 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](4); 10207 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r36.showBrands(true)); 10208 }); 10209 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, "Ver Mais "); 10210 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](2, "i", 43); 10211 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 10212 } 10213} 10214 10215function PromotionsComponent_div_2_div_19_div_3_p_7_Template(rf, ctx) { 10216 if (rf & 1) { 10217 const _r39 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"](); 10218 10219 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "p", 42); 10220 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function PromotionsComponent_div_2_div_19_div_3_p_7_Template_p_click_0_listener() { 10221 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r39); 10222 const ctx_r38 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](4); 10223 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetVie
10223w"](ctx_r38.showBrands(false)); 10224 }); 10225 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, "Ver Menos "); 10226 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](2, "i", 44); 10227 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 10228 } 10229} 10230 10231function PromotionsComponent_div_2_div_19_div_3_Template(rf, ctx) { 10232 if (rf & 1) { 10233 const _r41 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"](); 10234 10235 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div")(1, "h3", 30); 10236 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function PromotionsComponent_div_2_div_19_div_3_Template_h3_click_1_listener() { 10237 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r41); 10238 10239 const _r29 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵreference"](4); 10240 10241 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](_r29.toggle()); 10242 }); 10243 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, "Marcas"); 10244 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 10245 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](3, "div", 31, 38); 10246 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("ngbCollapseChange", function PromotionsComponent_div_2_div_19_div_3_Template_div_ngbCollapseChange_3_listener($event) { 10247 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r41); 10248 const ctx_r42 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3); 10249 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r42.isCollapsedBrands = $event); 10250 }); 10251 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](5, PromotionsComponent_div_2_div_19_div_3_p_5_Template, 3, 5, "p", 39); 10252 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](6, PromotionsComponent_div_2_div_19_div_3_p_6_Template, 3, 0, "p", 40); 10253 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](7, PromotionsComponent_div_2_div_19_div_3_p_7_Template, 3, 0, "p", 40); 10254 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()(); 10255 } 10256 10257 if (rf & 2) { 10258 const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3); 10259 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3); 10260 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngbCollapse", ctx_r10.isCollapsedBrands); 10261 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2); 10262 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", ctx_r10.brands); 10263 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 10264 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", !ctx_r10.showMoreBrands); 10265 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 10266 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r10.showMoreBrands); 10267 } 10268} 10269 10270function PromotionsComponent_div_2_div_19_p_9_Template(rf, ctx) { 10271 if (rf & 1) { 10272 const _r45 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"](); 10273 10274 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "p", 45)(1, "input", 46); 10275 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("change", function PromotionsComponent_div_2_div_19_p_9_Template_input_change_1_listener($event) { 10276 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r45); 10277 const ctx_r44 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3); 10278 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r44.priceChange($event)); 10279 }); 10280 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 10281 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2); 10282 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 10283 } 10284 10285 if (rf & 2) { 10286 const price_r43 = ctx.$implicit; 10287 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 10288 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("id", "price-" + price_r43.id)("value", price_r43.id); 10289 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 10290 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", price_r43.name, ""); 10291 } 10292} 10293 10294function PromotionsComponent_div_2_div_19_Template(rf, ctx) { 10295 if (rf & 1) { 10296 const _r47 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"](); 10297 10298 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 28); 10299 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](1, PromotionsComponent_div_2_div_19_div_1_Template, 6, 2, "div", 29); 10300 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](2, PromotionsComponent_div_2_div_19_div_2_Template, 6, 2, "div", 29); 10301 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](3, PromotionsComponent_div_2_div_19_div_3_Template, 8, 4, "div", 29); 10302 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](4, "div")(5, "h3", 30); 10303 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function PromotionsComponent_div_2_div_19_Template_h3_click_5_listener() { 10304 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r47); 10305 10306 const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵreference"](8); 10307 10308 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetVie
10308w"](_r11.toggle()); 10309 }); 10310 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](6, "Pre\u00E7os"); 10311 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 10312 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](7, "div", 31, 32); 10313 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("ngbCollapseChange", function PromotionsComponent_div_2_div_19_Template_div_ngbCollapseChange_7_listener($event) { 10314 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r47); 10315 const ctx_r48 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2); 10316 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r48.isCollapsedPrices = $event); 10317 }); 10318 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](9, PromotionsComponent_div_2_div_19_p_9_Template, 3, 3, "p", 33); 10319 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()(); 10320 } 10321 10322 if (rf & 2) { 10323 const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2); 10324 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 10325 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r3.categories.length); 10326 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 10327 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r3.subcategories.length); 10328 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 10329 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r3.brands.length); 10330 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4); 10331 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngbCollapse", ctx_r3.isCollapsedPrices); 10332 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2); 10333 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", ctx_r3.prices); 10334 } 10335} 10336 10337function PromotionsComponent_div_2_p_21_Template(rf, ctx) { 10338 if (rf & 1) { 10339 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "p", 4); 10340 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, "Sem produtos!"); 10341 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 10342 } 10343} 10344 10345function PromotionsComponent_div_2_div_22_div_1_Template(rf, ctx) { 10346 if (rf & 1) { 10347 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div"); 10348 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "app-product-view", 48); 10349 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 10350 } 10351 10352 if (rf & 2) { 10353 const product_r50 = ctx.$implicit; 10354 const ctx_r49 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3); 10355 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵclassMap"]("col-12 col-sm-6 col-md-6 col-lg-" + ctx_r49.col); 10356 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 10357 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("product", product_r50)("brand", ctx_r49.getBrandName(product_r50.brand_id)); 10358 } 10359} 10360 10361function PromotionsComponent_div_2_div_22_Template(rf, ctx) { 10362 if (rf & 1) { 10363 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 11); 10364 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](1, PromotionsComponent_div_2_div_22_div_1_Template, 2, 4, "div", 47); 10365 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 10366 } 10367 10368 if (rf & 2) { 10369 const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2); 10370 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 10371 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", ctx_r5.products); 10372 } 10373} 10374 10375function PromotionsComponent_div_2_div_23_Template(rf, ctx) { 10376 if (rf & 1) { 10377 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 11)(1, "p", 49); 10378 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnamespaceSVG"](); 10379 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](2, "svg", 5)(3, "path", 6); 10380 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](4, "animateTransform", 7); 10381 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()(); 10382 } 10383} 10384 10385function PromotionsComponent_div_2_button_24_Template(rf, ctx) { 10386 if (rf & 1) { 10387 const _r52 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"](); 10388 10389 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "button", 50); 10390 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function PromotionsComponent_div_2_button_24_Template_button_click_0_listener() { 10391 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r52); 10392 const ctx_r51 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2); 10393 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetVie
10393w"](ctx_r51.seeMore()); 10394 }); 10395 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, "Ver mais"); 10396 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 10397 } 10398} 10399 10400function PromotionsComponent_div_2_Template(rf, ctx) { 10401 if (rf & 1) { 10402 const _r54 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"](); 10403 10404 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 9)(1, "div", 10)(2, "div", 11)(3, "div", 12)(4, "div", 13)(5, "img", 14); 10405 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function PromotionsComponent_div_2_Template_img_click_5_listener() { 10406 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r54); 10407 const ctx_r53 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](); 10408 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r53.gridChange(3)); 10409 }); 10410 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 10411 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](6, "img", 15); 10412 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function PromotionsComponent_div_2_Template_img_click_6_listener() { 10413 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r54); 10414 const ctx_r55 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](); 10415 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r55.gridChange(6)); 10416 }); 10417 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()(); 10418 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](7, "select", 16); 10419 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("change", function PromotionsComponent_div_2_Template_select_change_7_listener($event) { 10420 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r54); 10421 const ctx_r56 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](); 10422 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r56.changeOrder($event)); 10423 }); 10424 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](8, "option", 17); 10425 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](9, "Ordenar por pre\u00E7o crescente"); 10426 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 10427 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](10, "option", 18); 10428 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](11, "Ordenar por pre\u00E7o decrescente"); 10429 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 10430 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](12, "option", 19); 10431 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](13, "Ordenar por A a Z"); 10432 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 10433 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](14, "option", 20); 10434 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](15, "Ordenar por Z a A"); 10435 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()(); 10436 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](16, "span", 21); 10437 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function PromotionsComponent_div_2_Template_span_click_16_listener() { 10438 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r54); 10439 const ctx_r57 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](); 10440 return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r57.showFilters = !ctx_r57.showFilters); 10441 }); 10442 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](17, "i", 22); 10443 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](18, " Filtros "); 10444 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 10445 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](19, PromotionsComponent_div_2_div_19_Template, 10, 5, "div", 23); 10446 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"](); 10447 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](20, "div", 24); 10448 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](21, PromotionsComponent_div_2_p_21_Template, 2, 0, "p", 25); 10449 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](22, PromotionsComponent_div_2_div_22_Template, 2, 1, "div", 26); 10450 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](23, PromotionsComponent_div_2_div_23_Template, 5, 0, "div", 26); 10451 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](24, PromotionsComponent_div_2_button_24_Template, 2, 0, "button", 27); 10452 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()(); 10453 } 10454 10455 if (rf & 2) { 10456 const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](); 10457 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](19); 10458 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r2.showFilters); 10459 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2); 10460 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", !ctx_r2.products.length && ctx_r2.verifyProducts); 10461 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 10462 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r2.products.length); 10463 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 10464 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r2.loading); 10465 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 10466 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r2.page >= 0 && ctx_r2.products.length && !ctx_r2.loading); 10467 } 10468} 10469 10470class PromotionsComponent extends _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_2__.BasicComponent { 10471 constructor(productService, activatedRoute, brandService, categoryService, location) { 10472 super(); 10473 this.productService = productService; 10474 this.activatedRoute = activatedRoute; 10475 this.brandService = brandService; 10476 this.categoryService = categoryService; 10477 this.location = location; 10478 this.page = 0; 10479 this.limit = 20; 10480 this.categoryId = null; 10481 this.collectionId = null; 10482 this.categories = []; 10483 this.subcategories = []; 10484 this.brands = []; 10485 this.prices = _models_models_model__WEBPACK_IMPORTED_MODULE_1__.PRICES; 10486 this.products = []; 10487 this.selectedSubcategories = []; 10488 this.selectedBrands = []; 10489 this.selectedPrices = []; 10490 this.title = 'Promoções'; 10491 this.col = 3; 10492 this.isCollapsedCategories = false;
10493 this.isCollapsedSubcategories = false; 10494 this.isCollapsedBrands = false; 10495 this.isCollapsedPrices = false; 10496 this.verifyProducts = false; 10497 this.loading = false; 10498 this.mainLoading = true; 10499 this.showFilters = false; 10500 this.order = 'order=price&sort=asc'; 10501 this.showMoreBrands = false; 10502 this.merchant = this.storageService.get('merchant'); 10503 10504 if (window.screen.width > 991) { 10505 this.showFilters = true; 10506 } 10507 } 10508 10509 ngOnInit() { 10510 var _this = this; 10511 10512 this.activatedRoute.params.subscribe( /*#__PURE__*/function () { 10513 var _ref = (0,_home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (params) { 10514 _this.image = _this.merchant.promotions_image; 10515 _this.categoryId = null; 10516 _this.selectedSubcategories = []; 10517 _this.selectedBrands = []; 10518 _this.selectedPrices = []; 10519 10520 if (params.category) { 10521 _this.categoryId = yield Number(params.category); 10522 } 10523 10524 if (params.subcategory) { 10525 _this.selectedSubcategories.push(Number(params.subcategory)); 10526 } 10527 10528 if (params.brand) { 10529 _this.selectedBrands.push(Number(params.brand)); 10530 } 10531 10532 if (params.collection) { 10533 _this.collectionId = yield params.collection; 10534 } 10535 10536 _this.activatedRoute.queryParams.subscribe( /*#__PURE__*/function () { 10537 var _ref2 = (0,_home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (params) { 10538 if (params.c) { 10539 _this.categoryId = Number(params.c); 10540 } 10541 10542 if (params.s) { 10543 _this.selectedSubcategories = []; 10544 let s = params.s.split(','); 10545 s.forEach(e => { 10546 _this.selectedSubcategories.push(Number(e)); 10547 }); 10548 } 10549 10550 if (params.b) { 10551 _this.selectedBrands = []; 10552 let b = params.b.split(','); 10553 b.forEach(e => { 10554 _this.selectedBrands.push(Number(e)); 10555 }); 10556 } 10557 }); 10558 10559 return function (_x2) { 10560 return _ref2.apply(this, arguments); 10561 }; 10562 }()); 10563 10564 _this.loadCategories(); 10565 10566 _this.loadSubcategories(); 10567 10568 _this.loadBrands(); 10569 10570 yield _this.loadProducts(); 10571 }); 10572 10573 return function (_x) { 10574 return _ref.apply(this, arguments); 10575 }; 10576 }()); 10577 } 10578 /** Loads **/ 10579 10580 10581 loadCategories() { 10582 var _this2 = this; 10583 10584 this.categoryService.all().subscribe( /*#__PURE__*/function () { 10585 var _ref3 = (0,_home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (resp) { 10586 if (resp.status == 'OK') { 10587 _this2.categories = resp.data; 10588 10589 _this2.categories.map(category => { 10590 category.checked = false; 10591 10592 if (category.id == _this2.categoryId) { 10593 category.checked = true; 10594 _this2.title = category.name; 10595 } 10596 }); 10597 } 10598 }); 10599 10600 return function (_x3) { 10601 return _ref3.apply(this, arguments); 10602 }; 10603 }()); 10604 } 10605 10606 loadSubcategories() { 10607 var _this3 = this; 10608 10609 this.categoryService.subcategories(this.categoryId).subscribe( /*#__PURE__*/function () { 10610 var _ref4 = (0,_home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (resp) { 10611 if (resp.status == 'OK') { 10612 _this3.subcategories = yield resp.data; 10613 10614 _this3.subcategories.map(subcategory => { 10615 subcategory.checked = false; 10616 10617 if (_this3.selectedSubcategories.includes(subcategory.id)) { 10618 subcategory.checked = true; 10619 } 10620 }); 10621 } 10622 }); 10623 10624 return function (_x4) { 10625 return _ref4.apply(this, arguments); 10626 }; 10627 }()); 10628 } 10629 10630 loadBrands() { 10631 var _this4 = this; 10632 10633 this.brandService.all(this.categoryId).subscribe( /*#__PURE__*/function () { 10634 var _ref5 = (0,_home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (resp) { 10635 if (resp.status == 'OK') { 10636 _this4.brands = yield resp.data; 10637 10638 _this4.brands.map((brand, index) => { 10639 brand.checked = false;
10640 10641 if (_this4.selectedBrands.includes(brand.id)) { 10642 brand.checked = true; 10643 brand.show = false; 10644 10645 if (index < 6) { 10646 brand.show = true; 10647 } 10648 10649 _this4.image = brand.image; 10650 _this4.title = brand.name; 10651 } 10652 }); 10653 } 10654 }); 10655 10656 return function (_x5) { 10657 return _ref5.apply(this, arguments); 10658 }; 10659 }()); 10660 } 10661 10662 loadProducts(clear = true) { 10663 var _this5 = this; 10664 10665 return (0,_home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () { 10666 _this5.loading = true; 10667 10668 if (_this5.page == 0) { 10669 _this5.products = []; 10670 } 10671 10672 if (clear) { 10673 _this5.products = []; 10674 _this5.verifyProducts = false; 10675 } 10676 10677 _this5.productService.filterPromotions(_this5.page, _this5.limit, _this5.categoryId, _this5.selectedSubcategories, _this5.selectedBrands, _this5.selectedPrices, _this5.collectionId, _this5.order).subscribe( /*#__PURE__*/function () { 10678 var _ref6 = (0,_home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (resp) { 10679 if (resp.status == 'OK') { 10680 if (_this5.page == 0) { 10681 _this5.products = yield resp.data; 10682 } else { 10683 _this5.products = _this5.products.concat(resp.data); 10684 } 10685 10686 if (resp.data.length == 0 || resp.data.length < _this5.limit) { 10687 _this5.page = -1; 10688 } 10689 10690 _this5.products.map(product => { 10691 product.image2 = product.images ? product.images[1] : ''; 10692 }); 10693 10694 if (!_this5.products.length) { 10695 _this5.verifyProducts = true; 10696 } 10697 } else { 10698 _this5.page = -1; 10699 } 10700 10701 _this5.loading = false; 10702 _this5.mainLoading = false; 10703 }); 10704 10705 return function (_x6) { 10706 return _ref6.apply(this, arguments); 10707 }; 10708 }()); 10709 })(); 10710 } 10711 10712 seeMore() { 10713 if (this.page >= 0) { 10714 this.page++; 10715 this.loadProducts(false); 10716 } 10717 } 10718 /** Changes **/ 10719 10720 10721 gridChange(columns) { 10722 this.col = columns; 10723 } 10724 10725 categoryChange(event) { 10726 var _this6 = this; 10727 10728 return (0,_home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () { 10729 _this6.page = 0; 10730 _this6.categoryId = event.target.checked ? event.target.value : null; 10731 _this6.selectedSubcategories = []; 10732 10733 _this6.selectedSubcategories.map(subcategory => { 10734 subcategory.checked = false; 10735 }); 10736 10737 _this6.selectedBrands = []; 10738 10739 _this6.selectedBrands.map(brand => { 10740 brand.checked = false; 10741 }); 10742 10743 _this6.categories.map(category => { 10744 category.checked = false; 10745 10746 if (category.id == _this6.categoryId) { 10747 category.checked = true; 10748 _this6.title = category.name; 10749 } 10750 }); 10751 10752 let url = _this6.getBaseUrl(); 10753 10754 if (_this6.categoryId) { 10755 url += '?c=' + _this6.categoryId; 10756 } 10757 10758 _this6.updateUrl(url); 10759 10760 _this6.loadSubcategories(); 10761 10762 _this6.loadBrands(); 10763 10764 yield _this6.loadProducts(); 10765 })(); 10766 } 10767 10768 subcategoryChange(event) { 10769 var _this7 = this; 10770 10771 return (0,_home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () { 10772 _this7.page = 0; 10773 _this7.selectedBrands = []; 10774 10775 _this7.selectedBrands.map(brand => { 10776 brand.checked = false; 10777 }); 10778 10779 if (event.target.checked) { 10780 _this7.selectedSubcategories.push(Number(event.target.value)); 10781 } else { 10782 const index = _this7.selectedSubcategories.indexOf(Number(event.target.value), 0); 10783 10784 if (index > -1) { 10785 _this7.selectedSubcategories.splice(index, 1); 10786 } 10787 } 10788 10789 _this7.subcategories.map(subcategory => { 10790 subcategory.checked = _this7.selectedSubcategories.includes(Number(subcategory.id)); 10791 }); 10792 10793 let url = _this7.getBaseUrl(); 10794 10795 if (_this7.selectedSubcategories.length) {
10796 url += '?c=' + _this7.categoryId; 10797 url += '&s=' + _this7.selectedSubcategories.join(','); 10798 } else if (_this7.categoryId) { 10799 url += '?c=' + _this7.categoryId; 10800 } 10801 10802 _this7.updateUrl(url); 10803 10804 yield _this7.loadProducts(); 10805 })(); 10806 } 10807 10808 brandChange(event) { 10809 var _this8 = this; 10810 10811 return (0,_home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () { 10812 _this8.brands.forEach(brand => { 10813 if (brand.id == event.target.value) { 10814 window.location.href = _this8.getPathAsString('/marca', brand); 10815 } 10816 }); 10817 })(); 10818 } 10819 10820 priceChange(event) { 10821 var _this9 = this; 10822 10823 return (0,_home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () { 10824 if (event.target.checked) { 10825 _this9.selectedPrices.push(event.target.value); 10826 } else { 10827 const index = _this9.selectedPrices.indexOf(event.target.value, 0); 10828 10829 if (index > -1) { 10830 _this9.selectedPrices.splice(index, 1); 10831 } 10832 } 10833 10834 _this9.prices.map(price => { 10835 price.checked = _this9.selectedPrices.includes(price.id); 10836 }); 10837 10838 yield _this9.loadProducts(); 10839 })(); 10840 } 10841 10842 getBaseUrl() { 10843 return window.location.href.split('/').slice(3).join('/').split('?')[0]; 10844 } 10845 10846 updateUrl(url) { 10847 this.location.replaceState(url); 10848 } 10849 10850 getBrandName(brand_id) { 10851 let brand = this.brands.find(b => b.id == brand_id); 10852 return brand ? brand.name : ''; 10853 } 10854 10855 changeOrder(event) { 10856 this.order = event.target.value; 10857 this.loadProducts(); 10858 } 10859 10860 showBrands(value) { 10861 this.showMoreBrands = value; 10862 this.brands.map((brand, index) => { 10863 if (index >= 6) { 10864 brand.show = value; 10865 } 10866 }); 10867 } 10868 10869} 10870 10871PromotionsComponent.ɵfac = function PromotionsComponent_Factory(t) { 10872 return new (t || PromotionsComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_services_services_service__WEBPACK_IMPORTED_MODULE_3__.ProductService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_6__.ActivatedRoute), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_app_services_brand_service__WEBPACK_IMPORTED_MODULE_4__.BrandService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_services_services_service__WEBPACK_IMPORTED_MODULE_3__.CategoryService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_7__.Location)); 10873}; 10874 10875PromotionsComponent.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineComponent"]({ 10876 type: PromotionsComponent, 10877 selectors: [["app-promotions"]], 10878 features: [_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵInheritDefinitionFeature"]], 10879 decls: 3, 10880 vars: 3, 10881 consts: [["class", "row main-loading", 4, "ngIf"], ["class", "img-category mt-3", 3, "background-image", 4, "ngIf"], ["class", "container container-products mt-5", 4, "ngIf"], [1, "row", "main-loading"], [1, "text-center"], ["width", "50", "height", "50", "viewBox", "0 0 24 24", "xmlns", "http://www.w3.org/2000/svg"], ["d", "M2,12A11.2,11.2,0,0,1,13,1.05C12.67,1,12.34,1,12,1a11,11,0,0,0,0,22c.34,0,.67,0,1-.05C6,23,2,17.74,2,12Z"], ["attributeName", "transform", "type", "rotate", "dur", "0.6s", "values", "0 12 12;360 12 12", "repeatCount", "indefinite"], [1, "img-category", "mt-3"], [1, "container", "container-products", "mt-5"], [1, "product-container", "mt-5", "mb-5"], [1, "row"], [1, "col-12", "col-lg-3"], [1, "buttons-grid"], ["src", "assets/images/grid-4.svg", "alt", "", 1, "img-fluid", 3, "click"], ["src", "assets/images/grid-2.svg", "alt", "", 1, "img-fluid", 3, "click"], [1, "select-order", "my-4", 3, "change"], ["value", "order=price&sort=asc"], ["value", "order=price&sort=desc"], ["value", "order=name&sort=asc"], ["value", "order=name&sort=desc"], [1, "mt-5", "w-50", "btn-filter", 3, "click"], [1, "fa", "fa-filter"], ["class", "form", 4, "ngIf"], [1, "col-12", "col-lg-9"], ["class", "text-center", 4, "ngIf"], ["class", "row", 4, "ngIf"], ["class", "btn center btn-primary", 3, "click", 4, "ngIf"], [1, "form"], [4, "ngIf"], ["role", "button", 3, "click"], [3, "ngbCollapse", "ngbCollapseChange"], ["collapsePrices", "ngbCollapse"], ["class", "align-items-center", 4, "ngFor", "ngForOf"], ["collapseCategories", "ngbCollapse"], [4, "ngFor", "ngForOf"], ["type", "checkbox", 3, "checked", "id", "value", "change"], ["collapseSubcategories", "ngbCollapse"], ["collapseBrands", "ngbCollapse"], [3, "ngClass", 4, "ngFor", "ngForOf"], ["class", "brand-button", "role", "button", 3, "click", 4, "ngIf"], [3, "ngClass"], ["role", "button", 1, "brand-button", 3, "click"], [1, "fas", "fa-caret-down"], [1, "fas", "fa-caret-up"], [1, "align-items-center"], ["type", "checkbox", 3, "id", "value", "change"], [3, "class", 4, "ngFor", "ngForOf"], [3, "product", "brand"], [1, "text-center", "mt-5"], [1, "btn", "center", "btn-primary", 3, "click"]], 10882 template: function PromotionsComponent_Template(rf, ctx) { 10883 if (rf & 1) { 10884 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](0, PromotionsComponent_div_0_Template, 5, 0, "div", 0); 10885 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](1, PromotionsComponent_div_1_Template, 1, 2, "div", 1); 10886 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](2, PromotionsComponent_div_2_Template, 25, 5, "div", 2); 10887 } 10888 10889 if (rf & 2) { 10890 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.mainLoading); 10891 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 10892 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", !ctx.mainLoading); 10893 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1); 10894 _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", !ctx.mainLoading); 10895 } 10896 }, 10897 styles: [".img-category[_ngcontent-%COMP%] {\n width: 100%;\n height: 377px;\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n position: relative;\n margin-bottom: 74px;\n}\n.img-category[_ngcontent-%COMP%] .overlay[_ngcontent-%COMP%] {\n width: 100%;\n height: 100%;\n background-color: var(--dark);\n opacity: 0.3;\n}\n.img-category[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] {\n font-size: 35px;\n color: var(--white);\n position: absolute;\n width: 100%;\n text-align: center;\n top: 50%;\n transform: translateY(-50%);\n margin: auto;\n text-transform: uppercase;\n}\n.main-loading[_ngcontent-%COMP%] {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 50vh;\n}\n.buttons-grid[_ngcontent-%COMP%] {\n margin-bottom: 40px;\n}\n.buttons-grid[_ngcontent-%COMP%] img[_ngcontent-%COMP%] {\n margin-right: 12px;\n}\n.btn-filter[_ngcontent-%COMP%] {\n display: none;\n}\n.form[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] {\n font-size: 20px;\n font-weight: 500;\n margin-bottom: 20px;\n}\n.form[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n font-size: 14px;\n margin-bottom: 12px;\n}\n.form[_ngcontent-%COMP%] p[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%] {\n margin-right: 7px;\n}\n.select-order[_ngcontent-%COMP%] {\n height: 46px;\n background-color: var(--white);\n border: 1px solid var(--dark-grey);\n border-radius: 4px;\n width: 100%;\n color: var(--dark);\n font-size: 14px;\n padding: 10px;\n}\n.brand-show[_ngcontent-%COMP%] {\n display: block;\n}\n.brand-hide[_ngcontent-%COMP%] {\n display: none;\n transition: display 0.4s ease;\n}\n@media only screen and (max-width: 992px) {\n .buttons-grid[_ngcontent-%COMP%] {\n display: none;\n }\n .btn-filter[_ngcontent-%COMP%] {\n display: block;\n margin-bottom: 5vh;\n }\n .img-category[_ngcontent-%COMP%] {\n margin-bottom: -48px !important;\n }\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInByb21vdGlvbnMuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDQyxXQUFBO0VBQ0EsYUFBQTtFQUNBLDJCQUFBO0VBQ0EsNEJBQUE7RUFDQSxzQkFBQTtFQUNBLGtCQUFBO0VBQ0EsbUJBQUE7QUFDRDtBQUNDO0VBQ0MsV0FBQTtFQUNBLFlBQUE7
10897RUFDQSw2QkFBQTtFQUNBLFlBQUE7QUFDRjtBQUVDO0VBQ0MsZUFBQTtFQUNBLG1CQUFBO0VBQ0Esa0JBQUE7RUFDQSxXQUFBO0VBQ0Esa0JBQUE7RUFDQSxRQUFBO0VBQ0EsMkJBQUE7RUFDQSxZQUFBO0VBQ0EseUJBQUE7QUFBRjtBQUlBO0VBQ0MsYUFBQTtFQUNBLHVCQUFBO0VBQ0EsbUJBQUE7RUFDQSxZQUFBO0FBREQ7QUFJQTtFQUNDLG1CQUFBO0FBREQ7QUFHQztFQUNDLGtCQUFBO0FBREY7QUFLQTtFQUNDLGFBQUE7QUFGRDtBQU1DO0VBQ0MsZUFBQTtFQUNBLGdCQUFBO0VBQ0EsbUJBQUE7QUFIRjtBQU1DO0VBQ0MsZUFBQTtFQUNBLG1CQUFBO0FBSkY7QUFNRTtFQUNDLGlCQUFBO0FBSkg7QUFTQTtFQUNDLFlBQUE7RUFDQSw4QkFBQTtFQUNBLGtDQUFBO0VBQ0Esa0JBQUE7RUFDQSxXQUFBO0VBQ0Esa0JBQUE7RUFDQSxlQUFBO0VBQ0EsYUFBQTtBQU5EO0FBU0E7RUFDQyxjQUFBO0FBTkQ7QUFTQTtFQUNDLGFBQUE7RUFDQSw2QkFBQTtBQU5EO0FBU0E7RUFDQztJQUNDLGFBQUE7RUFOQTtFQVNEO0lBQ0MsY0FBQTtJQUNBLGtCQUFBO0VBUEE7RUFVRDtJQUNDLCtCQUFBO0VBUkE7QUFDRiIsImZpbGUiOiJwcm9tb3Rpb25zLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmltZy1jYXRlZ29yeSB7XG5cdHdpZHRoOiAxMDAlO1xuXHRoZWlnaHQ6IDM3N3B4O1xuXHRiYWNrZ3JvdW5kLXBvc2l0aW9uOiBjZW50ZXI7XG5cdGJhY2tncm91bmQtcmVwZWF0OiBuby1yZXBlYXQ7XG5cdGJhY2tncm91bmQtc2l6ZTogY292ZXI7XG5cdHBvc2l0aW9uOiByZWxhdGl2ZTtcblx0bWFyZ2luLWJvdHRvbTogNzRweDtcblxuXHQub3ZlcmxheSB7XG5cdFx0d2lkdGg6IDEwMCU7XG5cdFx0aGVpZ2h0OiAxMDAlO1xuXHRcdGJhY2tncm91bmQtY29sb3I6IHZhcigtLWRhcmspO1xuXHRcdG9wYWNpdHk6IDAuMztcblx0fVxuXG5cdGgyIHtcblx0XHRmb250LXNpemU6IDM1cHg7XG5cdFx0Y29sb3I6IHZhcigtLXdoaXRlKTtcblx0XHRwb3NpdGlvbjogYWJzb2x1dGU7XG5cdFx0d2lkdGg6IDEwMCU7XG5cdFx0dGV4dC1hbGlnbjogY2VudGVyO1xuXHRcdHRvcDogNTAlO1xuXHRcdHRyYW5zZm9ybTogdHJhbnNsYXRlWSgtNTAlKTtcblx0XHRtYXJnaW46IGF1dG87XG5cdFx0dGV4dC10cmFuc2Zvcm06IHVwcGVyY2FzZTtcblx0fVxufVxuXG4ubWFpbi1sb2FkaW5nIHtcblx0ZGlzcGxheTogZmxleDtcblx0anVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG5cdGFsaWduLWl0ZW1zOiBjZW50ZXI7XG5cdGhlaWdodDogNTB2aDtcbn1cblxuLmJ1dHRvbnMtZ3JpZCB7XG5cdG1hcmdpbi1ib3R0b206IDQwcHg7XG5cblx0aW1nIHtcblx0XHRtYXJnaW4tcmlnaHQ6IDEycHg7XG5cdH1cbn1cblxuLmJ0bi1maWx0ZXIge1xuXHRkaXNwbGF5OiBub25lO1xufVxuXG4uZm9ybSB7XG5cdGgzIHtcblx0XHRmb250LXNpemU6IDIwcHg7XG5cdFx0Zm9udC13ZWlnaHQ6IDUwMDtcblx0XHRtYXJnaW4tYm90dG9tOiAyMHB4O1xuXHR9XG5cblx0cCB7XG5cdFx0Zm9udC1zaXplOiAxNHB4O1xuXHRcdG1hcmdpbi1ib3R0b206IDEycHg7XG5cblx0XHRpbnB1dFt0eXBlPVwiY2hlY2tib3hcIl0ge1xuXHRcdFx0bWFyZ2luLXJpZ2h0OiA3cHg7XG5cdFx0fVxuXHR9XG59XG5cbi5zZWxlY3Qtb3JkZXIge1xuXHRoZWlnaHQ6IDQ2cHg7XG5cdGJhY2tncm91bmQtY29sb3I6IHZhcigtLXdoaXRlKTtcblx0Ym9yZGVyOiAxcHggc29saWQgdmFyKC0tZGFyay1ncmV5KTtcblx0Ym9yZGVyLXJhZGl1czogNHB4O1xuXHR3aWR0aDogMTAwJTtcblx0Y29sb3I6IHZhcigtLWRhcmspO1xuXHRmb250LXNpemU6IDE0cHg7XG5cdHBhZGRpbmc6IDEwcHg7XG59XG5cbi5icmFuZC1zaG93IHtcblx0ZGlzcGxheTogYmxvY2s7XG59XG5cbi5icmFuZC1oaWRlIHtcblx0ZGlzcGxheTogbm9uZTtcblx0dHJhbnNpdGlvbjogZGlzcGxheSAwLjRzIGVhc2U7XG59XG5cbkBtZWRpYSBvbmx5IHNjcmVlbiBhbmQgKG1heC13aWR0aDogOTkycHgpIHtcblx0LmJ1dHRvbnMtZ3JpZCB7XG5cdFx0ZGlzcGxheTogbm9uZTtcblx0fVxuXG5cdC5idG4tZmlsdGVyIHtcblx0XHRkaXNwbGF5OiBibG9jaztcblx0XHRtYXJnaW4tYm90dG9tOiA1dmg7XG5cdH1cblxuXHQuaW1nLWNhdGVnb3J5IHtcblx0XHRtYXJnaW4tYm90dG9tOiAtNDhweCAhaW1wb3J0YW50O1xuXHR9XG59XG4iXX0= */"] 10898}); 10899 10900/***/ }), 10901 10902/***/ 1164: 10903/*!**************************************************!*\ 10904 !*** ./src/app/pages/search/search.component.ts ***! 10905 \**************************************************/ 10906/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 10907 10908__webpack_require__.r(__webpack_exports__); 10909/* harmony export */ __webpack_require__.d(__webpack_exports__, { 10910/* harmony export */ "SearchComponent": () => (/* binding */ SearchComponent) 10911/* harmony export */ }); 10912/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/forms */ 2508); 10913/* harmony import */ var _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @pages/basic/basic.component */ 9689); 10914/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ 1989); 10915/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 2560); 10916/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 4534); 10917/* harmony import */ var _services_services_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @services/services.service */ 6325); 10918 10919 10920 10921 10922 10923 10924 10925function SearchComponent_div_7_Template(rf, ctx) { if (rf & 1) { 10926 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 9)(1, "p", 10); 10927 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnamespaceSVG"](); 10928 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "svg", 11)(3, "path", 12); 10929 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](4, "animateTransform", 13); 10930 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()(); 10931} } 10932function SearchComponent_div_8_app_container_products_1_Template(rf, ctx) { if (rf & 1) { 10933 const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"](); 10934 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "app-container-products", 16); 10935 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("openProduct", function SearchComponent_div_8_app_container_products_1_Template_app_container_products_openProduct_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r5); const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetVie
10935w"](ctx_r4.dismiss()); }); 10936 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 10937} if (rf & 2) { 10938 const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); 10939 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("seeAllProduct", true)("products", ctx_r3.products)("term", ctx_r3.term); 10940} } 10941function SearchComponent_div_8_Template(rf, ctx) { if (rf & 1) { 10942 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 14); 10943 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, SearchComponent_div_8_app_container_products_1_Template, 1, 3, "app-container-products", 15); 10944 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 10945} if (rf & 2) { 10946 const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); 10947 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); 10948 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r2.products.length > 0); 10949} } 10950class SearchComponent extends _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_0__.BasicComponent { 10951 constructor(ngbActiveModal, productService, formBuilder) { 10952 super(); 10953 this.ngbActiveModal = ngbActiveModal; 10954 this.productService = productService; 10955 this.formBuilder = formBuilder; 10956 this.products = []; 10957 this.term = ''; 10958 this.loading = false; 10959 this.searchForm = this.formBuilder.group({ 10960 search: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_3__.Validators.required]] 10961 }); 10962 const searchControl = this.searchForm.get("search"); 10963 // @ts-ignore 10964 searchControl.valueChanges.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.debounceTime)(500)).subscribe((value) => { 10965 this.search(value); 10966 }); 10967 } 10968 ngOnInit() { 10969 } 10970 search(event) { 10971 if (event.length > 2) { 10972 this.term = event; 10973 this.loadProducts(); 10974 } 10975 } 10976 loadProducts() { 10977 this.loading = true; 10978 this.productService.all(this.term).subscribe((resp) => { 10979 if (resp.status == 'OK') { 10980 this.products = resp.data; 10981 this.loading = false; 10982 } 10983 }); 10984 } 10985 dismiss() { 10986 this.ngbActiveModal.close(); 10987 } 10988} 10989SearchComponent.ɵfac = function SearchComponent_Factory(t) { return new (t || SearchComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__.NgbActiveModal), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_services_services_service__WEBPACK_IMPORTED_MODULE_1__.ProductService), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_3__.FormBuilder)); }; 10990SearchComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({ type: SearchComponent, selectors: [["app-search"]], features: [_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵInheritDefinitionFeature"]], decls: 9, vars: 3, consts: [[1, "container-search", "my-5"], [1, "form", 3, "formGroup"], ["id", "search", "autocomplete", "off", "type", "text", "formControlName", "search", "placeholder", "Pesquisar", 1, "input", "px-2", "text-center"], ["input", ""], ["role", "button", 1, "btn-close", "col-2", 3, "click"], [1, "fas", "fa-close", "fa-3x"], [1, "container"], ["class", "row", 4, "ngIf"], ["class", "content-products", 4, "ngIf"], [1, "row"], [1, "text-center", "mt-5"], ["width", "50", "height", "50", "viewBox", "0 0 24 24", "xmlns", "http://www.w3.org/2000/svg"], ["d", "M2,12A11.2,11.2,0,0,1,13,1.05C12.67,1,12.34,1,12,1a11,11,0,0,0,0,22c.34,0,.67,0,1-.05C6,23,2,17.74,2,12Z"], ["attributeName", "transform", "type", "rotate", "dur", "0.6s", "values", "0 12 12;360 12 12", "repeatCount", "indefinite"], [1, "content-products"], [3, "seeAllProduct", "products", "term", "openProduct", 4, "ngIf"], [3, "seeAllProduct", "products", "term", "openProduct"]], template: function SearchComponent_Template(rf, ctx) { if (rf & 1) { 10991 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 0)(1, "form", 1); 10992 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](2, "input", 2, 3); 10993 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 10994 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 4); 10995 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function SearchComponent_Template_div_click_4_listener() { return ctx.dismiss(); }); 10996 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "i", 5); 10997 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()(); 10998 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div", 6); 10999 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](7, SearchComponent_div_7_Template, 5, 0, "div", 7); 11000 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](8, SearchComponent_div_8_Template, 2, 1, "div", 8); 11001 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); 11002 } if (rf & 2) { 11003 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); 11004 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx.searchForm); 11005 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6); 11006 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.loading); 11007 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); 11008 _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx.loading); 11009 } }, styles: [".container-search[_ngcontent-%COMP%] {\n margin-left: 15%;\n margin-right: 15%;\n}\n.container-search[_ngcontent-%COMP%] input[_ngcontent-%COMP%] {\n position: relative;\n border: 1px solid var(--primary);\n color: var(--dark);\n}\n.container-search[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n font-size: 20px;\n color: var(--dark);\n}\n@media (max-width: 992px) {\n .container-search[_ngcontent-%COMP%] {\n margin-left: 5%;\n margin-right: 5%;\n }\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNlYXJjaC5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNDLGdCQUFBO0VBQ0EsaUJBQUE7QUFDRDtBQUNDO0VBQ0Msa0JBQUE7RUFDQSxnQ0FBQTtFQUNBLGtCQUFBO0FBQ0Y7QUFFQztFQUNDLGVBQUE7RUFDQSxrQkFBQTtBQUFGO0FBR0E7RUFDQztJQUNDLGVBQUE7SUFDQSxnQkFBQTtFQUFBO0FBQ0YiLCJmaWxlIjoic2VhcmNoLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmNvbnRhaW5lci1zZWFyY2gge1xuXHRtYXJnaW4tbGVmdDogMTUlO1xuXHRtYXJnaW4tcmlnaHQ6IDE1JTtcblxuXHRpbnB1dCB7XG5cdFx0cG9zaXRpb246IHJlbGF0aXZlO1xuXHRcdGJvcmRlcjogMXB4IHNvbGlkIHZhcigtLXByaW1hcnkpO1xuXHRcdGNvbG9yOiB2YXIoLS1kYXJrKTtcblx0fVxuXG5cdHAge1xuXHRcdGZvbnQtc2l6ZTogMjBweDtcblx0XHRjb2xvcjogdmFyKC0tZGFyayk7XG5cdH1cbn1cbkBtZWRpYSAobWF4LXdpZHRoOiA5OTJweCkge1xuXHQuY29udGFpbmVyLXNlYXJjaCB7XG5cdFx0bWFyZ2luLWxlZnQ6IDUlO1xuXHRcdG1hcmdpbi1yaWdodDogNSU7XG5cdH1cbn1cbiJdfQ== */"] }); 11010 11011 11012/***/ }), 11013 11014/***/ 7338: 11015/*!********************************************************!*\ 11016 !*** ./src/app/pages/specialty/specialty.component.ts ***! 11017 \********************************************************/ 11018/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 11019 11020__webpack_require__.r(__webpack_exports__); 11021/* harmony export */ __webpack_require__.d(__webpack_exports__, { 11022/* harmony export */ "SpecialtyComponent": () => (/* binding */ SpecialtyComponent) 11023/* harmony export */ }); 11024/* harmony import */ var _home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 1670); 11025/* harmony import */ var _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @pages/basic/basic.component */ 9689); 11026/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 2560); 11027/* harmony import */ var _services_services_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @services/services.service */ 6325); 11028/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/router */ 124); 11029 11030 11031 11032 11033 11034
11035function SpecialtyComponent_app_appointment_container_5_Template(rf, ctx) { 11036 if (rf & 1) { 11037 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](0, "app-appointment-container"); 11038 } 11039} 11040 11041class SpecialtyComponent extends _pages_basic_basic_component__WEBPACK_IMPORTED_MODULE_1__.BasicComponent { 11042 constructor(specialtyService, activatedRoute) { 11043 super(); 11044 this.specialtyService = specialtyService; 11045 this.activatedRoute = activatedRoute; 11046 } 11047 11048 ngOnInit() { 11049 var _this = this; 11050 11051 this.activatedRoute.params.subscribe( /*#__PURE__*/function () { 11052 var _ref = (0,_home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (params) { 11053 _this.load(params.id); 11054 }); 11055 11056 return function (_x) { 11057 return _ref.apply(this, arguments); 11058 }; 11059 }()); 11060 } 11061 11062 load(id) { 11063 this.specialtyService.one(id).subscribe(resp => { 11064 if (resp.status == 'OK') { 11065 this.specialty = resp.data; 11066 } 11067 }); 11068 } 11069 11070} 11071 11072SpecialtyComponent.ɵfac = function SpecialtyComponent_Factory(t) { 11073 return new (t || SpecialtyComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_services_services_service__WEBPACK_IMPORTED_MODULE_2__.SpecialtyService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_4__.ActivatedRoute)); 11074}; 11075 11076SpecialtyComponent.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({ 11077 type: SpecialtyComponent,
11078 selectors: [["app-specialty"]], 11079 features: [_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵInheritDefinitionFeature"]], 11080 decls: 6, 11081 vars: 5, 11082 consts: [[1, "specialties-container"], [1, "img-specialty", "mt-3"], [1, "ob-title"], [1, "text-justify", "specialty-description", 3, "innerHtml"], [4, "ngIf"]], 11083 template: function SpecialtyComponent_Template(rf, ctx) { 11084 if (rf & 1) { 11085 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 0); 11086 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "div", 1); 11087 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](2, "h2", 2); 11088 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](3); 11089 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); 11090 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](4, "div", 3); 11091 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](5, SpecialtyComponent_app_appointment_container_5_Template, 1, 0, "app-appointment-container", 4); 11092 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); 11093 } 11094 11095 if (rf & 2) { 11096 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1); 11097 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵstyleProp"]("background-image", "url(" + (ctx.specialty == null ? null : ctx.specialty.image) + ")"); 11098 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2); 11099 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx.specialty == null ? null : ctx.specialty.name); 11100 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1); 11101 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("innerHtml", ctx.specialty == null ? null : ctx.specialty.content, _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵsanitizeHtml"]); 11102 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1); 11103 _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.specialty); 11104 } 11105 }, 11106 styles: [".specialties-container[_ngcontent-%COMP%] {\n margin-bottom: 100px;\n min-height: 50vh;\n}\n.specialties-container[_ngcontent-%COMP%] .img-specialty[_ngcontent-%COMP%] {\n width: 100%;\n height: 377px;\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n}\n.specialties-container[_ngcontent-%COMP%] .ob-title[_ngcontent-%COMP%] {\n margin-top: 40px;\n margin-bottom: 40px;\n}\n.specialties-container[_ngcontent-%COMP%] .specialty-description[_ngcontent-%COMP%] {\n margin-bottom: 73px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNwZWNpYWx0eS5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNDLG9CQUFBO0VBQ0EsZ0JBQUE7QUFDRDtBQUNDO0VBQ0MsV0FBQTtFQUNBLGFBQUE7RUFDQSwyQkFBQTtFQUNBLDRCQUFBO0VBQ0Esc0JBQUE7QUFDRjtBQUVDO0VBQ0MsZ0JBQUE7RUFDQSxtQkFBQTtBQUFGO0FBR0M7RUFDQyxtQkFBQTtBQURGIiwiZmlsZSI6InNwZWNpYWx0eS5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5zcGVjaWFsdGllcy1jb250YWluZXIge1xuXHRtYXJnaW4tYm90dG9tOiAxMDBweDtcblx0bWluLWhlaWdodDogNTB2aDtcblxuXHQuaW1nLXNwZWNpYWx0eSB7XG5cdFx0d2lkdGg6IDEwMCU7XG5cdFx0aGVpZ2h0OiAzNzdweDtcblx0XHRiYWNrZ3JvdW5kLXBvc2l0aW9uOiBjZW50ZXI7XG5cdFx0YmFja2dyb3VuZC1yZXBlYXQ6IG5vLXJlcGVhdDtcblx0XHRiYWNrZ3JvdW5kLXNpemU6IGNvdmVyO1xuXHR9XG5cblx0Lm9iLXRpdGxlIHtcblx0XHRtYXJnaW4tdG9wOiA0MHB4O1xuXHRcdG1hcmdpbi1ib3R0b206IDQwcHg7XG5cdH1cblxuXHQuc3BlY2lhbHR5LWRlc2NyaXB0aW9uIHtcblx0XHRtYXJnaW4tYm90dG9tOiA3M3B4O1xuXHR9XG59XG4iXX0= */"] 11107}); 11108 11109/***/ }), 11110 11111/***/ 531: 11112/*!********************************************!*\ 11113 !*** ./src/app/pipes/format-money.pipe.ts ***! 11114 \********************************************/ 11115/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 11116 11117__webpack_require__.r(__webpack_exports__); 11118/* harmony export */ __webpack_require__.d(__webpack_exports__, { 11119/* harmony export */ "FormatMoneyPipe": () => (/* binding */ FormatMoneyPipe) 11120/* harmony export */ }); 11121/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 2560); 11122 11123class FormatMoneyPipe { 11124 transform(value, ...args) { 11125 return Number(value).toFixed(2) + ' â¬'; 11126 } 11127} 11128FormatMoneyPipe.ɵfac = function FormatMoneyPipe_Factory(t) { return new (t || FormatMoneyPipe)(); }; 11129FormatMoneyPipe.ɵpipe = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefinePipe"]({ name: "formatMoney", type: FormatMoneyPipe, pure: true }); 11130 11131 11132/***/ }), 11133 11134/***/ 4980: 11135/*!*******************************************!*\ 11136 !*** ./src/app/pipes/format-name.pipe.ts ***! 11137 \*******************************************/ 11138/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 11139 11140__webpack_require__.r(__webpack_exports__); 11141/* harmony export */ __webpack_require__.d(__webpack_exports__, { 11142/* harmony export */ "FormatNamePipe": () => (/* binding */ FormatNamePipe)
11143/* harmony export */ }); 11144/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 2560); 11145 11146class FormatNamePipe { 11147 transform(value, ...args) { 11148 return value.replace(';', ' '); 11149 } 11150} 11151FormatNamePipe.ɵfac = function FormatNamePipe_Factory(t) { return new (t || FormatNamePipe)(); }; 11152FormatNamePipe.ɵpipe = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefinePipe"]({ name: "formatName", type: FormatNamePipe, pure: true }); 11153 11154 11155/***/ }), 11156 11157/***/ 5683: 11158/*!*************************************!*\ 11159 !*** ./src/app/pipes/quote.pipe.ts ***! 11160 \*************************************/ 11161/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 11162 11163__webpack_require__.r(__webpack_exports__); 11164/* harmony export */ __webpack_require__.d(__webpack_exports__, { 11165/* harmony export */ "QuotePipe": () => (/* binding */ QuotePipe) 11166/* harmony export */ }); 11167/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 2560); 11168 11169class QuotePipe { 11170 transform(value, ...args) { 11171 return value.replace(/<[^>]*>/g, ''); 11172 } 11173} 11174QuotePipe.ɵfac = function QuotePipe_Factory(t) { return new (t || QuotePipe)(); }; 11175QuotePipe.ɵpipe = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefinePipe"]({ name: "quote", type: QuotePipe, pure: true }); 11176 11177 11178/***/ }), 11179 11180/***/ 1514: 11181/*!*****************************************!*\ 11182 !*** ./src/app/pipes/schedules.pipe.ts ***! 11183 \*****************************************/ 11184/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 11185 11186__webpack_require__.r(__webpack_exports__); 11187/* harmony export */ __webpack_require__.d(__webpack_exports__, { 11188/* harmony export */ "SchedulesPipe": () => (/* binding */ SchedulesPipe) 11189/* harmony export */ }); 11190/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 2560); 11191 11192class SchedulesPipe { 11193 transform(value, ...args) { 11194 const week = this.formatWeek(value); 11195 let result = ''; 11196 week.forEach((item) => { 11197 if (item.first === item.last) { 11198 result += `${item.first}, ${item.start} - ${item.end}`; 11199 if (item.start2 && item.end2) { 11200 result += ` / ${item.start2} - ${item.end2}`; 11201 } 11202 result += '<br />'; 11203 } 11204 else { 11205 result += `${item.first} a ${item.last}, ${item.start} - ${item.end}<br />`; 11206 } 11207 }); 11208 return result; 11209 } 11210 formatWeek(value) { 11211 let data = []; 11212 value.forEach((day) => { 11213 let key = `${day.start}/${day.end}`; 11214 let index = data.findIndex((item) => item.key === key); 11215 if (index != -1) { 11216 data[index].last = day.day.substring(0, 3); 11217 } 11218 else { 11219 data.push({ key: key, start: day.start, end: day.end, start2: day.start2, end2: day.end2, first: day.day.substring(0, 3), last: day.day.substring(0, 3) }); 11220 } 11221 }); 11222 return data; 11223 } 11224} 11225SchedulesPipe.ɵfac = function SchedulesPipe_Factory(t) { return new (t || SchedulesPipe)(); }; 11226SchedulesPipe.ɵpipe = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefinePipe"]({ name: "schedules", type: SchedulesPipe, pure: true }); 11227 11228 11229/***/ }), 11230 11231/***/ 9688: 11232/*!*********************************************!*\ 11233 !*** ./src/app/services/address.service.ts ***! 11234 \*********************************************/ 11235/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 11236 11237__webpack_require__.r(__webpack_exports__); 11238/* harmony export */ __webpack_require__.d(__webpack_exports__, { 11239/* harmony export */ "AddressService": () => (/* binding */ AddressService) 11240/* harmony export */ }); 11241/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 2560); 11242/* harmony import */ var _services_api_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @services/api.service */ 5830); 11243 11244 11245class AddressService { 11246 constructor(apiService) { 11247 this.apiService = apiService; 11248 this.controller = 'address/'; 11249 } 11250 all() { 11251 return this.apiService.request(this.controller + 'all', null, undefined, false, true); 11252 } 11253 create(data) { 11254 return this.apiService.request(this.controller + 'create', data, undefined, true, true); 11255 } 11256 delete(id) { 11257 return this.apiService.request(this.controller + 'delete', { id }, undefined, false, true); 11258 } 11259} 11260AddressService.ɵfac = function AddressService_Factory(t) { return new (t || AddressService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_services_api_service__WEBPACK_IMPORTED_MODULE_0__.ApiService)); }; 11261AddressService.ɵprov = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: AddressService, factory: AddressService.ɵfac, providedIn: 'root' }); 11262 11263 11264/***/ }), 11265 11266/***/ 5830: 11267/*!*****************************************!*\ 11268 !*** ./src/app/services/api.service.ts ***! 11269 \*****************************************/ 11270/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 11271 11272__webpack_require__.r(__webpack_exports__); 11273/* harmony export */ __webpack_require__.d(__webpack_exports__, { 11274/* harmony export */ "ApiService": () => (/* binding */ ApiService) 11275/* harmony export */ }); 11276/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/common/http */ 8987); 11277/* harmony import */ var _env_environment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @env/environment */ 2340); 11278/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ 2560); 11279/* harmony import */ var _services_storage_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @services/storage.service */ 1188); 11280/* harmony import */ var _services_events_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @services/events.service */ 106); 11281 11282 11283 11284 11285 11286 11287class ApiService { 11288 constructor(http, storageService, eventsService) { 11289 this.http = http; 11290 this.storageService = storageService; 11291 this.eventsService = eventsService; 11292 this.URL_BASE = _env_environment__WEBPACK_IMPORTED_MODULE_0__.environment.apiUrl; 11293 this.user = this.storageService.get('user'); 11294 this.eventsService.subscribe('logout:user', () => { 11295 this.user = undefined; 11296 }); 11297 } 11298 request(endpoint, params, merchant, post, authKey) { 11299 let url = this.URL_BASE + endpoint; 11300 let httpParams = new _angular_common_http__WEBPACK_IMPORTED_MODULE_3__.HttpParams(); 11301 if (params) 11302 for (let p in params) { 11303 httpParams = httpParams.set(p, params[p]); 11304 } 11305 let httpHeaders = new _angular_common_http__WEBPACK_IMPORTED_MODULE_3__.HttpHeaders(); 11306 if (authKey && this.user) { 11307 httpHeaders = httpHeaders.set('Authorization', this.user?.auth_key); 11308 } 11309 if (post) { 11310 if (merchant) { 11311 params[merchant] = _env_environment__WEBPACK_IMPORTED_MODULE_0__.environment.merchantId; 11312 } 11313 return this.http.post(url, params, { 11314 headers: httpHeaders 11315 }); 11316 } 11317 if (merchant) { 11318 httpParams = httpParams.set(merchant, _env_environment__WEBPACK_IMPORTED_MODULE_0__.environment.merchantId); 11319 } 11320 return this.http.get(url, { 11321 headers: httpHeaders, 11322 params: httpParams 11323 }); 11324 } 11325} 11326ApiService.ɵfac = function ApiService_Factory(t) { return new (t || ApiService)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_3__.HttpClient), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_services_storage_service__WEBPACK_IMPORTED_MODULE_1__.StorageService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_services_events_service__WEBPACK_IMPORTED_MODULE_2__.EventsService)); }; 11327ApiService.ɵprov = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineInjectable"]({ token: ApiService, factory: ApiService.ɵfac, providedIn: 'root' }); 11328 11329 11330/***/ }), 11331 11332/***/ 349: 11333/*!*************************************************!*\ 11334 !*** ./src/app/services/appointment.service.ts ***! 11335 \*************************************************/ 11336/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 11337 11338__webpack_require__.r(__webpack_exports__); 11339/* harmony export */ __webpack_require__.d(__webpack_exports__, { 11340/* harmony export */ "AppointmentService": () => (/* binding */ AppointmentService) 11341/* harmony export */ }); 11342/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 2560); 11343/* harmony import */ var _services_api_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @services/api.service */ 5830); 11344 11345 11346class AppointmentService { 11347 constructor(apiService) { 11348 this.apiService = apiService; 11349 this.controller = 'appointment/'; 11350 } 11351 create(data) { 11352 return this.apiService.request(this.controller + 'create', data, 'merchant_id', true); 11353 } 11354} 11355AppointmentService.ɵfac = function AppointmentService_Factory(t) { return new (t || AppointmentService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_services_api_service__WEBPACK_IMPORTED_MODULE_0__.ApiService)); }; 11356AppointmentService.ɵprov = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: AppointmentService, factory: AppointmentService.ɵfac, providedIn: 'root' }); 11357 11358 11359/***/ }), 11360 11361/***/ 2791: 11362/*!********************************************!*\ 11363 !*** ./src/app/services/banner.service.ts ***! 11364 \********************************************/ 11365/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 11366 11367__webpack_require__.r(__webpack_exports__); 11368/* harmony export */ __webpack_require__.d(__webpack_exports__, { 11369/* harmony export */ "BannerService": () => (/* binding */ BannerService) 11370/* harmony export */ }); 11371/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 2560); 11372/* harmony import */ var _services_api_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @services/api.service */ 5830); 11373 11374 11375class BannerService { 11376 constructor(apiService) { 11377 this.apiService = apiService; 11378 this.controller = 'banner/'; 11379 } 11380 all() { 11381 return this.apiService.request(this.controller + 'all', null, 'id'); 11382 } 11383} 11384BannerService.ɵfac = function BannerService_Factory(t) { return new (t || BannerService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_services_api_service__WEBPACK_IMPORTED_MODULE_0__.ApiService)); }; 11385BannerService.ɵprov = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: BannerService, factory: BannerService.ɵfac, providedIn: 'root' }); 11386 11387 11388/***/ }), 11389 11390/***/ 7744: 11391/*!*******************************************!*\ 11392 !*** ./src/app/services/brand.service.ts ***! 11393 \*******************************************/ 11394/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 11395 11396__webpack_require__.r(__webpack_exports__); 11397/* harmony export */ __webpack_require__.d(__webpack_exports__, { 11398/* harmony export */ "BrandService": () => (/* binding */ BrandService) 11399/* harmony export */ }); 11400/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 2560); 11401/* harmony import */ var _services_api_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @services/api.service */ 5830); 11402 11403 11404class BrandService { 11405 constructor(apiService) { 11406 this.apiService = apiService; 11407 this.controller = 'brand/'; 11408 } 11409 all(category) { 11410 if (category) 11411 return this.apiService.request(this.controller + 'all', { category }, 'id'); 11412 return this.apiService.request(this.controller + 'all', null, 'id'); 11413 } 11414} 11415BrandService.ɵfac = function BrandService_Factory(t) { return new (t || BrandService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_services_api_service__WEBPACK_IMPORTED_MODULE_0__.ApiService)); }; 11416BrandService.ɵprov = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: BrandService, factory: BrandService.ɵfac, providedIn: 'root' }); 11417 11418 11419/***/ }), 11420 11421/***/ 910: 11422/*!******************************************!*\ 11423 !*** ./src/app/services/cart.service.ts ***! 11424 \******************************************/ 11425/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 11426 11427__webpack_require__.r(__webpack_exports__); 11428/* harmony export */ __webpack_require__.d(__webpack_exports__, { 11429/* harmony export */ "CartService": () => (/* binding */ CartService) 11430/* harmony export */ }); 11431/* harmony import */ var _models_models_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @models/models.model */ 2541); 11432/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ 2560); 11433/* harmony import */ var _services_storage_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @services/storage.service */ 1188); 11434/* harmony import */ var _services_toast_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @services/toast.service */ 4465); 11435/* harmony import */ var _services_events_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @services/events.service */ 106); 11436 11437 11438 11439 11440 11441class CartService { 11442 constructor(storageService, toastService, eventsService) { 11443 this.storageService = storageService; 11444 this.toastService = toastService; 11445 this.eventsService = eventsService; 11446 this.cart = new _models_models_model__WEBPACK_IMPORTED_MODULE_0__.Cart(); 11447 this.cart = this.storageService.get('cart') ?? new _models_models_model__WEBPACK_IMPORTED_MODULE_0__.Cart(); 11448 } 11449 addProduct(product, showMessage = true, quantity) { 11450 let quant = quantity ?? product.quantity; 11451 let index = this.cart.products.findIndex((cartProduct) => cartProduct.product_id == product.product_id && cartProduct.grade_lens == null); 11452 if (!product.grade_lens && index != -1) { 11453 let oldProduct = this.cart.products[index]; 11454 if (oldProduct.quantity != undefined) { 11455 product.quantity = quant + oldProduct.quantity; 11456 product.sub_total = product.quantity * product.price; 11457 } 11458 this.cart.products[index] = product; 11459 } 11460 else { 11461 product.quantity = quant; 11462 product.sub_total = product.quantity * product.price; 11463 this.cart.products.push(product); 11464 } 11465 this.cart.quant += quant; 11466 this.cart.discount += product.discount; 11467 this.cart.total += product.price * quant; 11468 this.storageService.set('cart', this.cart); 11469 this.eventsService.publish('update:cart', this.cart); 11470 if (showMessage) 11471 this.toastService.showSuccess('Adicionado com sucesso'); 11472 } 11473 updateProduct(product, showMessage = true, quantity) { 11474 let index = this.cart.products.findIndex((cartProduct) => cartProduct.product_id == product.product_id); 11475 product.quantity = quantity; 11476 product.sub_total = quantity * product.price; 11477 if (index != -1) { 11478 this.cart.products[index] = product; 11479 } 11480 else { 11481 this.cart.products.push(product); 11482 } 11483 this.cart.quant = 0; 11484 this.cart.discount = 0; 11485 this.cart.total = 0;
11486 this.cart.products.forEach((product) => { 11487 this.cart.quant += product.quantity; 11488 this.cart.discount += product.discount * product.quantity; 11489 this.cart.total += product.sub_total; 11490 }); 11491 this.storageService.set('cart', this.cart); 11492 this.eventsService.publish('update:cart', this.cart); 11493 if (showMessage) 11494 this.toastService.showSuccess('Adicionado com sucesso'); 11495 } 11496 subtractProduct(product, quant = 1) { 11497 let index = this.cart.products.findIndex((cartProduct) => cartProduct.product_id == product.product_id); 11498 if (index != -1) { 11499 let oldProduct = this.cart.products[index]; 11500 if (oldProduct.quantity != undefined && oldProduct.sub_total != undefined) { 11501 product.quantity = oldProduct.quantity - quant; 11502 product.sub_total = oldProduct.sub_total - product.price; 11503 this.cart.products[index] = product; 11504 this.cart.quant -= quant; 11505 this.cart.discount -= product.discount; 11506 this.cart.total -= product.price * quant; 11507 } 11508 } 11509 this.storageService.set('cart', this.cart); 11510 } 11511 removeProduct(product, showMessage = true) { 11512 let index = this.cart.products.findIndex((cartProduct) => cartProduct.product_id == product.product_id); 11513 let quant = this.cart.products[index].quantity ?? 0; 11514 this.cart.quant -= quant; 11515 this.cart.discount -= product.discount * quant; 11516 this.cart.total -= product.sub_total; 11517 this.cart.products.splice(index, 1); 11518 this.storageService.set('cart', this.cart); 11519 this.eventsService.publish('update:cart', this.cart); 11520 if (showMessage) 11521 this.toastService.showSuccess('Removido com sucesso'); 11522 } 11523 reset() { 11524 this.storageService.set('cart', new _models_models_model__WEBPACK_IMPORTED_MODULE_0__.Cart()); 11525 this.eventsService.publish('update:cart', new _models_models_model__WEBPACK_IMPORTED_MODULE_0__.Cart()); 11526 return (this.cart = new _models_models_model__WEBPACK_IMPORTED_MODULE_0__.Cart()); 11527 } 11528} 11529CartService.ɵfac = function CartService_Factory(t) { return new (t || CartService)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_services_storage_service__WEBPACK_IMPORTED_MODULE_1__.StorageService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_services_toast_service__WEBPACK_IMPORTED_MODULE_2__.ToastService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_services_events_service__WEBPACK_IMPORTED_MODULE_3__.EventsService)); }; 11530CartService.ɵprov = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineInjectable"]({ token: CartService, factory: CartService.ɵfac, providedIn: 'root' }); 11531 11532 11533/***/ }), 11534 11535/***/ 4655: 11536/*!**********************************************!*\ 11537 !*** ./src/app/services/category.service.ts ***! 11538 \**********************************************/ 11539/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 11540 11541__webpack_require__.r(__webpack_exports__); 11542/* harmony export */ __webpack_require__.d(__webpack_exports__, { 11543/* harmony export */ "CategoryService": () => (/* binding */ CategoryService) 11544/* harmony export */ }); 11545/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 2560); 11546/* harmony import */ var _services_api_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @services/api.service */ 5830); 11547 11548 11549class CategoryService { 11550 constructor(apiService) { 11551 this.apiService = apiService; 11552 this.controller = 'category/'; 11553 } 11554 all() { 11555 return this.apiService.request(this.controller + 'all', null, 'id'); 11556 } 11557 subcategories(id) { 11558 return this.apiService.request(this.controller + 'subcategory', { id }); 11559 } 11560 one(id) { 11561 return this.apiService.request(this.controller + 'one', { id }); 11562 } 11563} 11564CategoryService.ɵfac = function CategoryService_Factory(t) { return new (t || CategoryService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_services_api_service__WEBPACK_IMPORTED_MODULE_0__.ApiService)); }; 11565CategoryService.ɵprov = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: CategoryService, factory: CategoryService.ɵfac, providedIn: 'root' }); 11566 11567 11568/***/ }), 11569 11570/***/ 4857: 11571/*!************************************************!*\ 11572 !*** ./src/app/services/collection.service.ts ***! 11573 \************************************************/ 11574/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 11575 11576__webpack_require__.r(__webpack_exports__); 11577/* harmony export */ __webpack_require__.d(__webpack_exports__, { 11578/* harmony export */ "CollectionService": () => (/* binding */ CollectionService) 11579/* harmony export */ }); 11580/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 2560); 11581/* harmony import */ var _services_api_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @services/api.service */ 5830); 11582 11583 11584class CollectionService { 11585 constructor(apiService) { 11586 this.apiService = apiService; 11587 this.controller = 'collection/'; 11588 } 11589 all(products = 0) { 11590 return this.apiService.request(this.controller + 'all', { products }, 'id'); 11591 } 11592 one(id) { 11593 return this.apiService.request(this.controller + 'one', { id }, undefined, false, true); 11594 } 11595} 11596CollectionService.ɵfac = function CollectionService_Factory(t) { return new (t || CollectionService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_services_api_service__WEBPACK_IMPORTED_MODULE_0__.ApiService)); }; 11597CollectionService.ɵprov = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: CollectionService, factory: CollectionService.ɵfac, providedIn: 'root' }); 11598 11599 11600/***/ }), 11601 11602/***/ 7293: 11603/*!*********************************************!*\ 11604 !*** ./src/app/services/contact.service.ts ***! 11605 \*********************************************/ 11606/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 11607 11608__webpack_require__.r(__webpack_exports__); 11609/* harmony export */ __webpack_require__.d(__webpack_exports__, { 11610/* harmony export */ "ContactService": () => (/* binding */ ContactService) 11611/* harmony export */ }); 11612/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 2560); 11613/* harmony import */ var _services_api_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @services/api.service */ 5830); 11614 11615 11616class ContactService { 11617 constructor(apiService) { 11618 this.apiService = apiService; 11619 this.controller = 'contact/'; 11620 } 11621 email(data) { 11622 return this.apiService.request(this.controller + 'email', data, 'merchant', true); 11623 } 11624} 11625ContactService.ɵfac = function ContactService_Factory(t) { return new (t || ContactService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_services_api_service__WEBPACK_IMPORTED_MODULE_0__.ApiService)); }; 11626ContactService.ɵprov = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: ContactService, factory: ContactService.ɵfac, providedIn: 'root' }); 11627 11628 11629/***/ }), 11630 11631/***/ 106: 11632/*!********************************************!*\ 11633 !*** ./src/app/services/events.service.ts ***! 11634 \********************************************/ 11635/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 11636 11637__webpack_require__.r(__webpack_exports__); 11638/* harmony export */ __webpack_require__.d(__webpack_exports__, { 11639/* harmony export */ "EventsService": () => (/* binding */ EventsService) 11640/* harmony export */ }); 11641/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ 228); 11642/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 2560); 11643 11644 11645class EventsService { 11646 constructor() { 11647 this.channels = {}; 11648 } 11649 subscribe(topic, observer) { 11650 if (!this.channels[topic]) { 11651 this.channels[topic] = new rxjs__WEBPACK_IMPORTED_MODULE_0__.Subject(); 11652 } 11653 return this.channels[topic].subscribe(observer); 11654 } 11655 publish(topic, data) { 11656 const subject = this.channels[topic]; 11657 if (!subject) { 11658 return; 11659 } 11660 subject.next(data); 11661 } 11662 destroy(topic) { 11663 const subject = this.channels[topic]; 11664 if (!subject) { 11665 return; 11666 } 11667 subject.complete(); 11668 delete this.channels[topic]; 11669 } 11670} 11671EventsService.ɵfac = function EventsService_Factory(t) { return new (t || EventsService)(); }; 11672EventsService.ɵprov = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: EventsService, factory: EventsService.ɵfac, providedIn: 'root' }); 11673 11674 11675/***/ }), 11676 11677/***/ 3271: 11678/*!********************************************!*\ 11679 !*** ./src/app/services/family.service.ts ***! 11680 \********************************************/ 11681/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 11682 11683__webpack_require__.r(__webpack_exports__); 11684/* harmony export */ __webpack_require__.d(__webpack_exports__, { 11685/* harmony export */ "FamilyService": () => (/* binding */ FamilyService) 11686/* harmony export */ }); 11687/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 2560); 11688/* harmony import */ var _services_api_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @services/api.service */ 5830); 11689 11690 11691class FamilyService { 11692 constructor(apiService) { 11693 this.apiService = apiService; 11694 this.controller = 'family/'; 11695 } 11696 view() { 11697 return this.apiService.request(this.controller + 'view', null, undefined, false, true); 11698 } 11699 leave(family_id) { 11700 return this.apiService.request(this.controller + 'leave', { family_id }, undefined, true, true); 11701 } 11702 update(data) { 11703 return this.apiService.request(this.controller + 'update', data, undefined, true, true); 11704 } 11705 create(data) { 11706 return this.apiService.request(this.controller + 'create', data, undefined, true, true); 11707 } 11708 join(data) { 11709 return this.apiService.request(this.controller + 'join', data, undefined, true, true); 11710 } 11711 transactions() { 11712 return this.apiService.request(this.controller + 'transactions', null, undefined, false, true); 11713 } 11714} 11715FamilyService.ɵfac = function FamilyService_Factory(t) { return new (t || FamilyService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_services_api_service__WEBPACK_IMPORTED_MODULE_0__.ApiService)); }; 11716FamilyService.ɵprov = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: FamilyService, factory: FamilyService.ɵfac, providedIn: 'root' }); 11717 11718 11719/***/ }), 11720 11721/***/ 2853: 11722/*!*****************************************!*\
11723 !*** ./src/app/services/gtm.service.ts ***! 11724 \*****************************************/ 11725/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 11726 11727__webpack_require__.r(__webpack_exports__); 11728/* harmony export */ __webpack_require__.d(__webpack_exports__, { 11729/* harmony export */ "GtmService": () => (/* binding */ GtmService) 11730/* harmony export */ }); 11731/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 2560); 11732 11733class GtmService { 11734 constructor() { } 11735 // Método para enviar eventos personalizados 11736 pushEvent(eventName, eventData = {}) { 11737 if (window && dataLayer) { 11738 dataLayer.push({ 11739 event: eventName, 11740 ...eventData 11741 }); 11742 // console.log('GTM Evento Enviado:', eventName, eventData); // Debug 11743 } 11744 } 11745} 11746GtmService.ɵfac = function GtmService_Factory(t) { return new (t || GtmService)(); }; 11747GtmService.ɵprov = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: GtmService, factory: GtmService.ɵfac, providedIn: 'root' }); 11748 11749 11750/***/ }), 11751 11752/***/ 9658: 11753/*!**********************************************!*\ 11754 !*** ./src/app/services/merchant.service.ts ***! 11755 \**********************************************/ 11756/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 11757 11758__webpack_require__.r(__webpack_exports__); 11759/* harmony export */ __webpack_require__.d(__webpack_exports__, { 11760/* harmony export */ "MerchantService": () => (/* binding */ MerchantService) 11761/* harmony export */ }); 11762/* harmony import */ var _env_environment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @env/environment */ 2340); 11763/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 2560); 11764/* harmony import */ var _services_api_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @services/api.service */ 5830); 11765 11766 11767 11768class MerchantService { 11769 constructor(apiService) { 11770 this.apiService = apiService; 11771 this.controller = 'merchant/'; 11772 } 11773 url() { 11774 return this.apiService.request(this.controller + 'url', { url: _env_environment__WEBPACK_IMPORTED_MODULE_0__.environment.merchantUrl }); 11775 } 11776} 11777MerchantService.ɵfac = function MerchantService_Factory(t) { return new (t || MerchantService)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵinject"](_services_api_service__WEBPACK_IMPORTED_MODULE_1__.ApiService)); }; 11778MerchantService.ɵprov = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineInjectable"]({ token: MerchantService, factory: MerchantService.ɵfac, providedIn: 'root' }); 11779 11780 11781/***/ }), 11782 11783/***/ 652: 11784/*!********************************************!*\ 11785 !*** ./src/app/services/modals.service.ts ***! 11786 \********************************************/ 11787/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 11788 11789__webpack_require__.r(__webpack_exports__); 11790/* harmony export */ __webpack_require__.d(__webpack_exports__, { 11791/* harmony export */ "ModalsService": () => (/* binding */ ModalsService) 11792/* harmony export */ }); 11793/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 2560); 11794/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 4534); 11795 11796 11797class ModalsService { 11798 constructor(modalService) { 11799 this.modalService = modalService; 11800 } 11801 openModal(page, fullscreen, css, data) { 11802 const modal = this.modalService.open(page, { windowClass: css, fullscreen: fullscreen ? true : false }); 11803 if (data) { 11804 modal.componentInstance.data = data; 11805 } 11806 } 11807} 11808ModalsService.ɵfac = function ModalsService_Factory(t) { return new (t || ModalsService)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__.NgbModal)); }; 11809ModalsService.ɵprov = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: ModalsService, factory: ModalsService.ɵfac, providedIn: 'root' }); 11810 11811 11812/***/ }), 11813 11814/***/ 1857: 11815/*!******************************************!*\ 11816 !*** ./src/app/services/news.service.ts ***! 11817 \******************************************/ 11818/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 11819 11820__webpack_require__.r(__webpack_exports__); 11821/* harmony export */ __webpack_require__.d(__webpack_exports__, { 11822/* harmony export */ "NewsService": () => (/* binding */ NewsService) 11823/* harmony export */ }); 11824/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 2560); 11825/* harmony import */ var _services_api_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @services/api.service */ 5830); 11826 11827 11828class NewsService { 11829 constructor(apiService) { 11830 this.apiService = apiService; 11831 this.controller = 'news/'; 11832 } 11833 all(limit) { 11834 return this.apiService.request(this.controller + 'all', { limit }, 'id'); 11835 } 11836 one(id) { 11837 return this.apiService.request(this.controller + 'one', { id }); 11838 } 11839} 11840NewsService.ɵfac = function NewsService_Factory(t) { return new (t || NewsService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_services_api_service__WEBPACK_IMPORTED_MODULE_0__.ApiService)); }; 11841NewsService.ɵprov = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: NewsService, factory: NewsService.ɵfac, providedIn: 'root' }); 11842 11843 11844/***/ }), 11845 11846/***/ 8132: 11847/*!*******************************************!*\ 11848 !*** ./src/app/services/order.service.ts ***! 11849 \*******************************************/ 11850/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 11851 11852__webpack_require__.r(__webpack_exports__); 11853/* harmony export */ __webpack_require__.d(__webpack_exports__, { 11854/* harmony export */ "OrderService": () => (/* binding */ OrderService) 11855/* harmony export */ }); 11856/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 2560); 11857/* harmony import */ var _services_api_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @services/api.service */ 5830); 11858 11859 11860class OrderService { 11861 constructor(apiService) { 11862 this.apiService = apiService; 11863 this.controller = 'order/'; 11864 } 11865 all() { 11866 return this.apiService.request(this.controller + 'allorders', null, undefined, false, true); 11867 } 11868 one(id) { 11869 return this.apiService.request(this.controller + 'one', { id }, undefined, false, true); 11870 } 11871 create(data) { 11872 return this.apiService.request(this.controller + 'new', data, 'merchant_id', true, true); 11873 } 11874 discount(data) { 11875 return this.apiService.request('discount/validate', data, 'merchant_id', true, true); 11876 } 11877} 11878OrderService.ɵfac = function OrderService_Factory(t) { return new (t || OrderService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_services_api_service__WEBPACK_IMPORTED_MODULE_0__.ApiService)); }; 11879OrderService.ɵprov = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: OrderService, factory: OrderService.ɵfac, providedIn: 'root' }); 11880 11881 11882/***/ }), 11883 11884/***/ 1863: 11885/*!*********************************************!*\ 11886 !*** ./src/app/services/payment.service.ts ***! 11887 \*********************************************/ 11888/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 11889 11890__webpack_require__.r(__webpack_exports__); 11891/* harmony export */ __webpack_require__.d(__webpack_exports__, { 11892/* harmony export */ "PaymentService": () => (/* binding */ PaymentService) 11893/* harmony export */ }); 11894/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 2560); 11895/* harmony import */ var _services_api_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @services/api.service */ 5830); 11896 11897 11898class PaymentService { 11899 constructor(apiService) { 11900 this.apiService = apiService; 11901 this.controller = 'payment/'; 11902 } 11903 11904 mb_sibs(order_id) { 11905 return this.apiService.request(this.controller + 'multibanco', { 11906 order_id 11907 }, undefined, true, true); 11908 } 11909 11910 mbway_sibs(order_id) { 11911 return this.apiService.request(this.controller + 'async', { 11912 order_id 11913 }, undefined, true, true); 11914 } 11915 11916 cc_sibs(order_id) { 11917 return this.apiService.request(this.controller + 'create', { 11918 order_id 11919 }, undefined, true, true); 11920 } 11921 11922 mb_eupago(order_id) { 11923 return this.apiService.request(this.controller + 'eupago-mb', { 11924 order_id 11925 }, undefined, true, true); 11926 } 11927 11928 mbway_eupago(order_id) { 11929 return this.apiService.request(this.controller + 'eupago-mbw', { 11930 order_id 11931 }, undefined, true, true); 11932 } 11933 11934 cc_eupago(order_id) { 11935 return this.apiService.request(this.controller + 'eupago-cc', { 11936 order_id 11937 }, undefined, true, true); 11938 } // Global 11939 11940 11941 status(order_id) { 11942 return this.apiService.request(this.controller + 'status', { 11943 order_id 11944 }, undefined, true, true); 11945 } 11946 11947} 11948 11949PaymentService.ɵfac = function PaymentService_Factory(t) { 11950 return new (t || PaymentService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_services_api_service__WEBPACK_IMPORTED_MODULE_0__.ApiService)); 11951}; 11952 11953PaymentService.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ 11954 token: PaymentService, 11955 factory: PaymentService.ɵfac, 11956 providedIn: 'root' 11957}); 11958 11959/***/ }), 11960 11961/***/ 6082: 11962/*!*********************************************!*\
11963 !*** ./src/app/services/product.service.ts ***! 11964 \*********************************************/ 11965/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 11966 11967__webpack_require__.r(__webpack_exports__); 11968/* harmony export */ __webpack_require__.d(__webpack_exports__, { 11969/* harmony export */ "ProductService": () => (/* binding */ ProductService) 11970/* harmony export */ }); 11971/* harmony import */ var _env_environment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @env/environment */ 2340); 11972/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 2560); 11973/* harmony import */ var _services_api_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @services/api.service */ 5830); 11974 11975 11976 11977class ProductService { 11978 constructor(apiService) { 11979 this.apiService = apiService; 11980 this.controller = 'product/'; 11981 } 11982 all(term) { 11983 let data = {}; 11984 let endpoint = 'all'; 11985 if (term) { 11986 data.term = term; 11987 endpoint = 'search'; 11988 } 11989 return this.apiService.request(this.controller + endpoint, data, 'id', false, true); 11990 } 11991 search(search) { 11992 return this.apiService.request(this.controller + 'all', null, 'id'); 11993 } 11994 one(id) { 11995 return this.apiService.request(this.controller + 'one', { id }, undefined, false, true); 11996 } 11997 highlights() { 11998 return this.apiService.request(this.controller + 'feature', { limit: 20 }, 'id', false, true); 11999 } 12000 accessories() { 12001 let categories = [{ category_id: 683 }]; 12002 return this.apiService.request(this.controller + `filtercategory?id=${_env_environment__WEBPACK_IMPORTED_MODULE_0__.environment.merchantId}&limit=${20}&order=id&sort=desc`, { categories }, undefined, true, true); 12003 } 12004 favorite(id) { 12005 return this.apiService.request(this.controller + 'favorite', { id }, undefined, false, true); 12006 } 12007 filterHighlights(page = 0, limit = 16, category, subcategories, brands, prices, collection, order = '') { 12008 let categories = category ? [{ category_id: category }] : []; 12009 let collections = collection ? [{ collection_id: collection }] : []; 12010 subcategories = subcategories.map((subcategory) => { 12011 return { subcategory_id: subcategory }; 12012 }); 12013 brands = brands.map((brand) => { 12014 return { brand_id: brand }; 12015 }); 12016 prices = prices.map((price) => { 12017 let aux = price.split(':'); 12018 return { id: price, min: aux[0], max: aux[1] }; 12019 }); 12020 return this.apiService.request(this.controller + `highlights?id=${_env_environment__WEBPACK_IMPORTED_MODULE_0__.environment.merchantId}&page=${page}&limit=${limit}&${order}`, { categories, subcategories, brands, prices, collections }, undefined, true, true); 12021 } 12022 filterPromotions(page = 0, limit = 16, category, subcategories, brands, prices, collection, order = '') { 12023 let categories = category ? [{ category_id: category }] : []; 12024 let collections = collection ? [{ collection_id: collection }] : []; 12025 subcategories = subcategories.map((subcategory) => { 12026 return { subcategory_id: subcategory }; 12027 }); 12028 brands = brands.map((brand) => { 12029 return { brand_id: brand }; 12030 }); 12031 prices = prices.map((price) => { 12032 let aux = price.split(':'); 12033 return { id: price, min: aux[0], max: aux[1] }; 12034 }); 12035 return this.apiService.request(this.controller + `filterpromotions?id=${_env_environment__WEBPACK_IMPORTED_MODULE_0__.environment.merchantId}&page=${page}&limit=${limit}&${order}`, { categories, subcategories, brands, prices, collections }, undefined, true, true); 12036 } 12037 filterCategory(page = 0, limit = 16, category, subcategories, brands, prices, collection, order = '', term = null) { 12038 let params = `id=${_env_environment__WEBPACK_IMPORTED_MODULE_0__.environment.merchantId}&page=${page}&limit=${limit}&${order}`; 12039 if (term) { 12040 params += `&term=${term}`; 12041 } 12042 let categories = category ? [{ category_id: category }] : []; 12043 let collections = collection ? [{ collection_id: collection }] : []; 12044 subcategories = subcategories.map((subcategory) => { 12045 return { subcategory_id: subcategory }; 12046 }); 12047 brands = brands.map((brand) => { 12048 return { brand_id: brand }; 12049 }); 12050 prices = prices.map((price) => { 12051 let aux = price.split(':'); 12052 return { id: price, min: aux[0], max: aux[1] }; 12053 }); 12054 return this.apiService.request(this.controller + `filtercategory?${params}`, { categories, subcategories, brands, prices, collections }, undefined, true, true); 12055 } 12056} 12057ProductService.ɵfac = function ProductService_Factory(t) { return new (t || ProductService)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵinject"](_services_api_service__WEBPACK_IMPORTED_MODULE_1__.ApiService)); }; 12058ProductService.ɵprov = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineInjectable"]({ token: ProductService, factory: ProductService.ɵfac, providedIn: 'root' }); 12059 12060 12061/***/ }), 12062 12063/***/ 6325: 12064/*!**********************************************!*\ 12065 !*** ./src/app/services/services.service.ts ***! 12066 \**********************************************/ 12067/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 12068 12069__webpack_require__.r(__webpack_exports__); 12070/* harmony export */ __webpack_require__.d(__webpack_exports__, { 12071/* harmony export */ "AddressService": () => (/* reexport safe */ _services_address_service__WEBPACK_IMPORTED_MODULE_0__.AddressService), 12072/* harmony export */ "AppointmentService": () => (/* reexport safe */ _services_appointment_service__WEBPACK_IMPORTED_MODULE_1__.AppointmentService), 12073/* harmony export */ "BannerService": () => (/* reexport safe */ _services_banner_service__WEBPACK_IMPORTED_MODULE_2__.BannerService), 12074/* harmony export */ "BrandService": () => (/* reexport safe */ _services_brand_service__WEBPACK_IMPORTED_MODULE_3__.BrandService), 12075/* harmony export */ "CartService": () => (/* reexport safe */ _services_cart_service__WEBPACK_IMPORTED_MODULE_4__.CartService), 12076/* harmony export */ "CategoryService": () => (/* reexport safe */ _services_category_service__WEBPACK_IMPORTED_MODULE_5__.CategoryService), 12077/* harmony export */ "CollectionService": () => (/* reexport safe */ _services_collection_service__WEBPACK_IMPORTED_MODULE_6__.CollectionService), 12078/* harmony export */ "ContactService": () => (/* reexport safe */ _services_contact_service__WEBPACK_IMPORTED_MODULE_7__.ContactService), 12079/* harmony export */ "EventsService": () => (/* reexport safe */ _services_events_service__WEBPACK_IMPORTED_MODULE_8__.EventsService), 12080/* harmony export */ "FamilyService": () => (/* reexport safe */ _services_family_service__WEBPACK_IMPORTED_MODULE_9__.FamilyService), 12081/* harmony export */ "MerchantService": () => (/* reexport safe */ _services_merchant_service__WEBPACK_IMPORTED_MODULE_10__.MerchantService), 12082/* harmony export */ "ModalsService": () => (/* reexport safe */ _services_modals_service__WEBPACK_IMPORTED_MODULE_11__.ModalsService), 12083/* harmony export */ "NewsService": () => (/* reexport safe */ _services_news_service__WEBPACK_IMPORTED_MODULE_12__.NewsService), 12084/* harmony export */ "OrderService": () => (/* reexport safe */ _services_order_service__WEBPACK_IMPORTED_MODULE_13__.OrderService), 12085/* harmony export */ "PaymentService": () => (/* reexport safe */ _services_payment_service__WEBPACK_IMPORTED_MODULE_14__.PaymentService), 12086/* harmony export */ "ProductService": () => (/* reexport safe */ _services_product_service__WEBPACK_IMPORTED_MODULE_15__.ProductService), 12087/* harmony export */ "SpecialtyService": () => (/* reexport safe */ _services_specialty_service__WEBPACK_IMPORTED_MODULE_16__.SpecialtyService), 12088/* harmony export */ "StorageService": () => (/* reexport safe */ _services_storage_service__WEBPACK_IMPORTED_MODULE_17__.StorageService), 12089/* harmony export */ "StoreService": () => (/* reexport safe */ _services_store_service__WEBPACK_IMPORTED_MODULE_18__.StoreService), 12090/* harmony export */ "SubscriptionService": () => (/* reexport safe */ _services_subscription_service__WEBPACK_IMPORTED_MODULE_19__.SubscriptionService), 12091/* harmony export */ "TestimonialService": () => (/* reexport safe */ _services_testimonial_service__WEBPACK_IMPORTED_MODULE_22__.TestimonialService), 12092/* harmony export */ "ToastService": () => (/* reexport safe */ _services_toast_service__WEBPACK_IMPORTED_MODULE_20__.ToastService), 12093/* harmony export */ "UserService": () => (/* reexport safe */ _services_user_service__WEBPACK_IMPORTED_MODULE_21__.UserService) 12094/* harmony export */ }); 12095/* harmony import */ var _services_address_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @services/address.service */ 9688); 12096/* harmony import */ var _services_appointment_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @services/appointment.service */ 349); 12097/* harmony import */ var _services_banner_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @services/banner.service */ 2791); 12098/* harmony import */ var _services_brand_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @services/brand.service */ 7744); 12099/* harmony import */ var _services_cart_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @services/cart.service */ 910); 12100/* harmony import */ var _services_category_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @services/category.service */ 4655); 12101/* harmony import */ var _services_collection_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @services/collection.service */ 4857); 12102/* harmony import */ var _services_contact_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @services/contact.service */ 7293); 12103/* harmony import */ var _services_events_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @services/events.service */ 106); 12104/* harmony import */ var _services_family_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @services/family.service */ 3271); 12105/* harmony import */ var _services_merchant_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @services/merchant.service */ 9658); 12106/* harmony import */ var _services_modals_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @services/modals.service */ 652); 12107/* harmony import */ var _services_news_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @services/news.service */ 1857); 12108/* harmony import */ var _services_order_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @services/order.service */ 8132); 12109/* harmony import */ var _services_payment_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @services/payment.service */ 1863); 12110/* harmony import */ var _services_product_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @services/product.
12110service */ 6082); 12111/* harmony import */ var _services_specialty_service__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @services/specialty.service */ 1482); 12112/* harmony import */ var _services_storage_service__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @services/storage.service */ 1188); 12113/* harmony import */ var _services_store_service__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @services/store.service */ 2000); 12114/* harmony import */ var _services_subscription_service__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @services/subscription.service */ 9063); 12115/* harmony import */ var _services_toast_service__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @services/toast.service */ 4465); 12116/* harmony import */ var _services_user_service__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @services/user.service */ 3071); 12117/* harmony import */ var _services_testimonial_service__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @services/testimonial.service */ 8059); 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144/***/ }), 12145 12146/***/ 1482: 12147/*!***********************************************!*\ 12148 !*** ./src/app/services/specialty.service.ts ***! 12149 \***********************************************/ 12150/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 12151 12152__webpack_require__.r(__webpack_exports__); 12153/* harmony export */ __webpack_require__.d(__webpack_exports__, { 12154/* harmony export */ "SpecialtyService": () => (/* binding */ SpecialtyService) 12155/* harmony export */ }); 12156/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 2560); 12157/* harmony import */ var _services_api_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @services/api.service */ 5830); 12158 12159 12160class SpecialtyService { 12161 constructor(apiService) { 12162 this.apiService = apiService; 12163 this.controller = 'specialties/'; 12164 } 12165 all(stores, specialists) { 12166 let data = {}; 12167 if (stores) { 12168 data['stores'] = true; 12169 } 12170 if (specialists) { 12171 data['specialists'] = true; 12172 } 12173 return this.apiService.request(this.controller + 'all', data, 'id'); 12174 } 12175 one(id) { 12176 return this.apiService.request(this.controller + 'one', { id }, undefined, false); 12177 } 12178} 12179SpecialtyService.ɵfac = function SpecialtyService_Factory(t) { return new (t || SpecialtyService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_services_api_service__WEBPACK_IMPORTED_MODULE_0__.ApiService)); }; 12180SpecialtyService.ɵprov = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: SpecialtyService, factory: SpecialtyService.ɵfac, providedIn: 'root' }); 12181 12182 12183/***/ }), 12184 12185/***/ 1188: 12186/*!*********************************************!*\ 12187 !*** ./src/app/services/storage.service.ts ***! 12188 \*********************************************/ 12189/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 12190 12191__webpack_require__.r(__webpack_exports__); 12192/* harmony export */ __webpack_require__.d(__webpack_exports__, { 12193/* harmony export */ "StorageService": () => (/* binding */ StorageService) 12194/* harmony export */ }); 12195/* harmony import */ var _home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 1670); 12196/* harmony import */ var _env_environment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @env/environment */ 2340); 12197/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 2560); 12198 12199 12200 12201class StorageService { 12202 constructor() { 12203 this.localStorageService = window.localStorage; 12204 this.prefix = _env_environment__WEBPACK_IMPORTED_MODULE_1__.environment.merchantUrl; 12205 } 12206 12207 get(key) { 12208 return JSON.parse(this.localStorageService.getItem(`${this.prefix}/${key}`) || 'null'); 12209 } 12210 12211 set(key, value) { 12212 var _this = this; 12213 12214 return (0,_home_runner_work_optica_boavista_optica_boavista_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () { 12215 yield _this.localStorageService.setItem(`${_this.prefix}/${key}`, JSON.stringify(value)); 12216 })(); 12217 } 12218 12219 remove(key) { 12220 this.localStorageService.removeItem(`${this.prefix}/${key}`); 12221 } 12222 12223} 12224 12225StorageService.ɵfac = function StorageService_Factory(t) { 12226 return new (t || StorageService)(); 12227}; 12228 12229StorageService.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineInjectable"]({ 12230 token: StorageService, 12231 factory: StorageService.ɵfac, 12232 providedIn: 'root' 12233}); 12234 12235/***/ }), 12236 12237/***/ 2000: 12238/*!*******************************************!*\ 12239 !*** ./src/app/services/store.service.ts ***! 12240 \*******************************************/ 12241/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 12242 12243__webpack_require__.r(__webpack_exports__); 12244/* harmony export */ __webpack_require__.d(__webpack_exports__, { 12245/* harmony export */ "StoreService": () => (/* binding */ StoreService) 12246/* harmony export */ }); 12247/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 2560); 12248/* harmony import */ var _services_api_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @services/api.service */ 5830); 12249 12250 12251class StoreService { 12252 constructor(apiService) { 12253 this.apiService = apiService; 12254 this.controller = 'store/'; 12255 } 12256 all() { 12257 return this.apiService.request(this.controller + 'all', null, 'id'); 12258 } 12259 specialty() { 12260 return this.apiService.request(this.controller + 'specialty'); 12261 } 12262 count() { 12263 return this.apiService.request(this.controller + 'count'); 12264 } 12265} 12266StoreService.ɵfac = function StoreService_Factory(t) { return new (t || StoreService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_services_api_service__WEBPACK_IMPORTED_MODULE_0__.ApiService)); }; 12267StoreService.ɵprov = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: StoreService, factory: StoreService.ɵfac, providedIn: 'root' }); 12268 12269 12270/***/ }), 12271 12272/***/ 9063: 12273/*!**************************************************!*\ 12274 !*** ./src/app/services/subscription.service.ts ***! 12275 \**************************************************/ 12276/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 12277 12278__webpack_require__.r(__webpack_exports__); 12279/* harmony export */ __webpack_require__.d(__webpack_exports__, { 12280/* harmony export */ "SubscriptionService": () => (/* binding */ SubscriptionService) 12281/* harmony export */ }); 12282/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 2560); 12283/* harmony import */ var _services_api_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @services/api.service */ 5830); 12284 12285 12286class SubscriptionService { 12287 constructor(apiService) { 12288 this.apiService = apiService; 12289 this.controller = '/'; 12290 } 12291 create(data) { 12292 return this.apiService.request(this.controller + 'create'); 12293 } 12294 specialty() { 12295 return this.apiService.request(this.controller + 'specialty'); 12296 } 12297 count() { 12298 return this.apiService.request(this.controller + 'count'); 12299 } 12300} 12301SubscriptionService.ɵfac = function SubscriptionService_Factory(t) { return new (t || SubscriptionService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_services_api_service__WEBPACK_IMPORTED_MODULE_0__.ApiService)); }; 12302SubscriptionService.ɵprov = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: SubscriptionService, factory: SubscriptionService.ɵfac, providedIn: 'root' }); 12303 12304 12305/***/ }), 12306 12307/***/ 8059: 12308/*!*************************************************!*\ 12309 !*** ./src/app/services/testimonial.service.ts ***! 12310 \*************************************************/ 12311/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 12312 12313__webpack_require__.r(__webpack_exports__); 12314/* harmony export */ __webpack_require__.d(__webpack_exports__, { 12315/* harmony export */ "TestimonialService": () => (/* binding */ TestimonialService) 12316/* harmony export */ }); 12317/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 2560); 12318/* harmony import */ var _services_api_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @services/api.service */ 5830); 12319 12320 12321class TestimonialService { 12322 constructor(apiService) { 12323 this.apiService = apiService; 12324 this.controller = 'testimonial/'; 12325 } 12326 all(id) { 12327 return this.apiService.request(this.controller + 'all', null, 'id'); 12328 } 12329} 12330TestimonialService.ɵfac = function TestimonialService_Factory(t) { return new (t || TestimonialService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_services_api_service__WEBPACK_IMPORTED_MODULE_0__.ApiService)); }; 12331TestimonialService.ɵprov = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: TestimonialService, factory: TestimonialService.ɵfac, providedIn: 'root' }); 12332 12333 12334/***/ }), 12335 12336/***/ 4465: 12337/*!*******************************************!*\ 12338 !*** ./src/app/services/toast.service.ts ***! 12339 \*******************************************/ 12340/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 12341 12342__webpack_require__.r(__webpack_exports__); 12343/* harmony export */ __webpack_require__.d(__webpack_exports__, { 12344/* harmony export */ "ToastService": () => (/* binding */ ToastService) 12345/* harmony export */ }); 12346/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 2560); 12347/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ngx-toastr */ 4817); 12348 12349 12350class ToastService { 12351 constructor(toastr) { 12352 this.toastr = toastr; 12353 } 12354 showSuccess(message) { 12355 this.toastr.success(message); 12356 } 12357 showError(message) { 12358 this.toastr.error(message); 12359 } 12360} 12361ToastService.ɵfac = function ToastService_Factory(t) { return new (t || ToastService)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_1__.ToastrService)); }; 12362ToastService.ɵprov = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: ToastService, factory: ToastService.ɵfac, providedIn: 'root' }); 12363 12364 12365/***/ }), 12366 12367/***/ 3071: 12368/*!******************************************!*\ 12369 !*** ./src/app/services/user.service.ts ***! 12370 \******************************************/ 12371/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 12372 12373__webpack_require__.r(__webpack_exports__); 12374/* harmony export */ __webpack_require__.d(__webpack_exports__, { 12375/* harmony export */ "UserService": () => (/* binding */ UserService) 12376/* harmony export */ }); 12377/* harmony import */ var _abacritt_angularx_social_login__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @abacritt/angularx-social-login */ 3218); 12378/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 2560); 12379/* harmony import */ var _services_api_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @services/api.service */ 5830); 12380 12381 12382 12383 12384class UserService { 12385 constructor(apiService, socialAuthService) { 12386 this.apiService = apiService; 12387 this.socialAuthService = socialAuthService; 12388 this.controller = 'customer/'; 12389 } 12390 login(data) { 12391 return this.apiService.request(this.controller + 'login', data, 'merchant_id', true); 12392 } 12393 recovery(data) { 12394 return this.apiService.request(this.controller + 'recovery', data, 'merchant_id', true); 12395 } 12396 create(data) { 12397 return this.apiService.request(this.controller + 'create', data, 'merchant_id', true); 12398 } 12399 edit(data) { 12400 return this.apiService.request(this.controller + 'edit', data, undefined, true, true); 12401 } 12402 password(data) { 12403 return this.apiService.request(this.controller + 'password', data, undefined, true, true); 12404 } 12405 favorites() { 12406 return this.apiService.request(this.controller + 'favorites', null, undefined, false, true); 12407 } 12408 logout() { 12409 return this.apiService.request(this.controller + 'logout', null, undefined, false, true); 12410 } 12411 viewcard(id) { 12412 return this.apiService.request(this.controller + 'viewcard', { id }, undefined, false, true); 12413 }
12414 transactions(limit = 20) { 12415 return this.apiService.request(this.controller + `loyalty-transactions?limit=${limit}`, null, undefined, false, true); 12416 } 12417 verifyEmail(email) { 12418 return this.apiService.request(this.controller + 'verifyemail', { email }, 'merchant_id', true, false); 12419 } 12420 loyaltycards() { 12421 return this.apiService.request(this.controller + 'loyaltycards', null, undefined, false, true); 12422 } 12423 loginFacebook() { 12424 return this.socialAuthService.signIn(_abacritt_angularx_social_login__WEBPACK_IMPORTED_MODULE_1__.FacebookLoginProvider.PROVIDER_ID); 12425 } 12426} 12427UserService.ɵfac = function UserService_Factory(t) { return new (t || UserService)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵinject"](_services_api_service__WEBPACK_IMPORTED_MODULE_0__.ApiService), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵinject"](_abacritt_angularx_social_login__WEBPACK_IMPORTED_MODULE_1__.SocialAuthService)); }; 12428UserService.ɵprov = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineInjectable"]({ token: UserService, factory: UserService.ɵfac, providedIn: 'root' }); 12429 12430 12431/***/ }), 12432 12433/***/ 2340: 12434/*!*****************************************!*\ 12435 !*** ./src/environments/environment.ts ***! 12436 \*****************************************/ 12437/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 12438 12439__webpack_require__.r(__webpack_exports__); 12440/* harmony export */ __webpack_require__.d(__webpack_exports__, { 12441/* harmony export */ "environment": () => (/* binding */ environment) 12442/* harmony export */ }); 12443const environment = { 12444 production: false, 12445 apiUrl: 'https://opticae.online/api/', 12446 merchantId: 35, 12447 merchantUrl: 'opticaboavista.opticae.online', 12448 facebookApiKey: '', 12449 stripeKey: '', 12450 googleApiKey: '', 12451 url_base: 'https://opticaboavista.com/' 12452}; 12453 12454 12455/***/ }), 12456 12457/***/ 4431: 12458/*!*********************!*\ 12459 !*** ./src/main.ts ***! 12460 \*********************/ 12461/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 12462 12463__webpack_require__.r(__webpack_exports__); 12464/* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/platform-browser */ 4497); 12465/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 2560); 12466/* harmony import */ var _app_app_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./app/app.module */ 6747); 12467/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./environments/environment */ 2340); 12468 12469 12470 12471 12472if (_environments_environment__WEBPACK_IMPORTED_MODULE_1__.environment.production) { 12473 (0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.enableProdMode)(); 12474} 12475_angular_platform_browser__WEBPACK_IMPORTED_MODULE_3__.platformBrowser().bootstrapModule(_app_app_module__WEBPACK_IMPORTED_MODULE_0__.AppModule) 12476 .catch(err => console.error(err)); 12477 12478 12479/***/ }) 12480 12481}, 12482/******/ __webpack_require__ => { // webpackRuntimeModules 12483/******/ var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) 12484/******/ __webpack_require__.O(0, ["vendor"], () => (__webpack_exec__(4431))); 12485/******/ var __webpack_exports__ = __webpack_require__.O(); 12486/******/ } 12487]); 12488//# sourceMappingURL=main.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.