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K0K,gBAAkBA,EACvB1K,KAAKwK,gBAAkBA,EACvBxK,KAAKsK,YAAcA,GAIjB,gBAAkDjE,EAEtDvG,YAAY+J,EAAeM,EAAaC,EAAgBC,EAAcK,EAAiBF,EAAiBF,EAAasD,GACnH5M,MAAM6I,EAAeM,EAAaC,EAAgBC,EAAcK,EAAiBF,EAAiBF,GAClGtK,KAAK4N,oBAAsBA","names":["constructor","model","this","location","Number","identity","firstName","lastName","secondLastName","email","phone","addressLine1","addressLine2","zipCode","town","note","isDefault","PushContactModel","super","code","i0","AddContactComponent","store","EventEmitter","initProvinces","ngOnInit","item","contact","text","municipality","loadForm","contactForm","FormGroup","FormControl","e","_a","Validators","n","_b","a","_c","d","_d","CustomValidator","m","_e","O","J","_f","address","_g","M","_h","F","_j","k","_k","Q","L","_l","_m","z","Y","_o","_p","$","_q","H","_r","B","_s","j","_t","saveContact","onSaveEvent","invalid","event","showForm","action","row","PutContactModel","getRawValue","emit","onChange","$event","controls","setValue","dirty","markAsDirty","document","body","click","selectors","ctx","ContactsComponent","PaginatorComponent","route","metaService","titleService","router","modelService","deviceService","platformId","PaginationSelectorModel","contacts","find","value","payload","pageIndex","pageSize","dispatch","contactsActions","customLocation","locations","codes","loadContacts","FormArray","pagingStrategy","isPlatformBrowser","selectedContact$","select","selectUpdating$","checkoutRequest","contactId","signature","items","ngOnDestroy","subscriptions","forEach","x","unsubscribe","showAddContactForm","firstContact","subscribe","result","selection","addingByDefault","close","loadCheckout","locationType","province","LocationTypeEnum","formatAddress","city","state","country","selectItem","data","selectLocation","locationsActions","options","isMobile","isTablet","showOptions","PLATFORM_ID","DeviceDetectorService","checkoutFeature","createFeatureSelector","LAYOUT_FEATURE_KEY","selectLoading","createSelector","isLoading","selectUpdating","isUpdating","selectResponse","selectItems","selectPageSize","selectPageNo","selectCount","count","selectTotalData","totalCount","selectTotalPage","totalPages","selectDefaultContact","b","A","q","DropdownTreeviewSelectI18n","DefaultTreeviewI18n","internalSelectedItem","getText","getAllCheckboxText","getFilterPlaceholder","getFilterNoItemsFoundText","factory","DropdownTreeviewSelectComponent","i18n","config","TreeviewConfig","hasAllCheckBox","hasCollapseExpand","hasFilter","maxHeight","dropdownTreeviewSelectI18n","ngOnChanges","updateSelectedItem","children","includeParent","isNil","selectedItem","TreeviewHelper","dropdownTreeviewComponent","onSelectedChange","valueChange","DropdownTreeviewComponent","provide","TreeviewI18n","useClass","SeoContent","selector","paginatorStore","isLoading$","items$","pageSize$","pageNo$","totalPages$","totalData$","count$","push","OnDestroy","configuration$","selectConfiguration"],"sources":["webpack:///src/app/marketplace/checkout/_models/contact.model.ts","webpack:///src/app/marketplace/checkout/contacts/add-contact/add-contact.component.html","webpack:///src/app/marketplace/checkout/contacts/add-contact/add-contact.component.ts","webpack:///src/app/marketplace/checkout/contacts/contacts.component.html","webpack:///src/app/marketplace/checkout/contacts/contacts.component.ts","webpack:///src/app/marketplace/checkout/state/contacts/contacts-selectors.ts","webpack:///src/app/marketplace/shared/_components/dropdown-treeview-select/dropdown-treeview-select-i18n.ts","webpack:///src/app/marketplace/shared/_components/dropdown-treeview-select/dropdown-treeview-select.component.html","webpack:///src/app/marketplace/shared/_components/dropdown-treeview-select/dropdown-treeview-select.component.ts","webpack:///src/app/marketplace/shared/_components/paginator.component.ts","webpack:///src/app/marketplace/shared/_models/pagination-selector.model.ts"],"sourcesContent":["import {PagedResponseModel} from '@app/marketplace/core/models/paged-response.model';\r\nimport {ResponseModel} from '@app/marketplace/core/models/response.model';\r\n\r\nexport interface ContactBaseInterface {\r\n identity: string;\r\n firstName: string;\r\n lastName: string;\r\n email: string;\r\n phone: string;\r\n note: string;\r\n isDefault: boolean;\r\n town: string;\r\n}\r\n\r\nexport interface ShortConactInterface {\r\n phone: string;\r\n locationToShow: string;\r\n fullName: string;\r\n lowAddressToShow: string;\r\n topAddressToShow: string;\r\n code: string;\r\n municipality: number;\r\n}\r\n\r\nexport class PushContactModel implements ContactBaseInterface {\r\n addressLine1: string;\r\n addressLine2: string;\r\n email: string;\r\n firstName: string;\r\n identity: string;\r\n isDefault: boolean;\r\n lastName: string;\r\n secondLastName: string;\r\n location: number;\r\n note: string;\r\n phone: string;\r\n town: string;\r\n zipCode: string;\r\n constructor(model?) {\r\n model = model || {};\r\n this.location = Number(model.location) || 0;\r\n this.identity = model.identity || '';\r\n this.firstName = model.firstName || '';\r\n this.lastName = model.lastName || '';\r\n this.secondLastName = model.secondLastName || '';\r\n this.email = model.email || '';\r\n this.phone = model.phone || '';\r\n this.addressLine1 = model.addressLine1 || '';\r\n this.addressLine2 = model.addressLine2 || '';\r\n this.zipCode = model.zipCode || '';\r\n this.town = model.town || '';\r\n this.note = model.note || '';\r\n this.isDefault = model.isDefault;\r\n }\r\n}\r\n\r\nexport class PutContactModel extends PushContactModel {\r\n code: string;\r\n constructor(model?) {\r\n model = model || {};\r\n super(model);\r\n this.code = model.code || '';\r\n }\r\n}\r\n\r\nexport interface ContactOutputInterface extends ContactBaseInterface {\r\n code: string;\r\n secondLastName: string;\r\n address: ContactAddressInterface;\r\n province: number;\r\n municipality: number;\r\n locationToShow: string;\r\n}\r\n\r\nexport interface ContactAddressInterface {\r\n addressLine1: string;\r\n addressLine2: string;\r\n city: string;\r\n state: string;\r\n country: string;\r\n zipCode: string;\r\n countryISO3: string;\r\n}\r\n\r\nexport class AddContactEvent {\r\n showForm: boolean;\r\n contact: PushContactModel;\r\n action: string;\r\n}\r\n\r\nexport interface ContactPagedResponse extends PagedResponseModel {\r\n}\r\n","
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n
El nombre es obligatorio\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n
El apellido es obligatorio\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n
El carné de identidad es obligatorio\r\n
\r\n
El\r\n carné de identidad es inválido
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n
El teléfono es obligatorio\r\n
\r\n
El\r\n teléfono es inválido
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n
La dirección es obligatoria\r\n
\r\n
\r\n \r\n
\r\n \r\n \r\n
\r\n\r\n
\r\n \r\n \r\n \r\n \r\n
El\r\n municipio es obligatorio
\r\n
\r\n \r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n
\r\n","import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core';\r\nimport {FormControl, FormGroup, Validators} from '@angular/forms';\r\nimport {CustomValidator} from '@app/helpers/validators';\r\nimport {MunicipalityModel} from '@app/models/market-supplier/supplier-request.model';\r\nimport {initProvinces} from '@app/marketplace/locations/locations';\r\nimport {AddContactEvent, ContactOutputInterface, PushContactModel, PutContactModel} from '@app/marketplace/checkout/_models/contact.model';\r\nimport {TreeviewItem} from 'ngx-treeview';\r\nimport {Store} from '@ngrx/store';\r\nimport * as fromContactActions from '../../state/contacts/contacts-actions';\r\n\r\n@Component({\r\n selector: 'app-add-contact',\r\n templateUrl: './add-contact.component.html',\r\n styleUrls: ['./add-contact.component.css']\r\n})\r\nexport class AddContactComponent implements OnInit {\r\n\r\n @Input() contact: ContactOutputInterface;\r\n @Input() location: number;\r\n @Output() showForm = new EventEmitter();\r\n contactForm: FormGroup;\r\n item: MunicipalityModel;\r\n locations = initProvinces;\r\n onSaveEvent = false;\r\n\r\n constructor(private store: Store) {\r\n }\r\n\r\n ngOnInit(): void {\r\n this.item = this.contact ? {text: '', code: this.contact.municipality} : {text: '', code: this.location || 0};\r\n this.loadForm();\r\n }\r\n\r\n loadForm() {\r\n this.contactForm = new FormGroup({\r\n firstName: new FormControl(this.contact?.firstName || '', Validators.required),\r\n lastName: new FormControl(this.contact?.lastName || '', Validators.required),\r\n secondLastName: new FormControl(this.contact?.secondLastName || ''),\r\n identity: new FormControl(this.contact?.identity || '', [Validators.required, CustomValidator.identity, CustomValidator.onlyInt]),\r\n phone: new FormControl(this.contact?.phone || '', [Validators.required, CustomValidator.phoneValidator]),\r\n addressLine1: new FormControl(this.contact?.address?.addressLine1 || '', Validators.required),\r\n location: new FormControl(this.contact?.municipality || this.location || '', Validators.required),\r\n note: new FormControl(this.contact?.note || ''),\r\n email: new FormControl(this.contact?.email || ''),\r\n addressLine2: new FormControl(this.contact?.address?.addressLine2 || ''),\r\n zipCode: new FormControl(this.contact?.address?.zipCode || ''),\r\n isDefault: new FormControl(this.contact?.isDefault == true || this.contact?.isDefault == false ? this.contact?.isDefault : true),\r\n town: new FormControl(this.contact?.town || '')\r\n });\r\n }\r\n\r\n saveContact() {\r\n this.onSaveEvent = true;\r\n if (this.contactForm.invalid) {\r\n return;\r\n }\r\n const event: AddContactEvent = {showForm: false, contact: null, action: ''};\r\n\r\n if (!this.contact) {\r\n const row = new PushContactModel(this.contactForm.getRawValue());\r\n event.contact = row;\r\n event.action = 'add';\r\n } else {\r\n const row = new PutContactModel(this.contactForm.getRawValue());\r\n row.code = this.contact.code;\r\n event.contact = row;\r\n event.action = 'update';\r\n }\r\n this.showForm.emit(event);\r\n }\r\n\r\n onChange($event, location = true) {\r\n if (location) {\r\n this.contactForm.controls['location'].setValue(this.item.code);\r\n if (!this.contactForm.dirty) {\r\n this.contactForm.markAsDirty();\r\n }\r\n }\r\n document.body.click();\r\n }\r\n\r\n}\r\n","
\r\n
Mis direcciones
\r\n
Agregar destinatario
\r\n \r\n
\r\n
\r\n
\r\n Las fechas de entrega pueden variar según la ubicación y la disponibilidad\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
ContactoDirección de entregaTeléfono
\r\n
\r\n

{{contact.firstName}} {{contact.lastName}} {{contact.secondLastName}}

\r\n
    \r\n
  • Carne de identidad: {{contact.identity}}

  • \r\n
  • Dirección: {{formatAddress(contact.address, contact.town)}}

  • \r\n
  • Teléfono: {{contact.phone}}

  • \r\n
\r\n
\r\n
{{formatAddress(contact.address, contact.town)}}{{contact.phone}}\r\n
\r\n
\r\n \r\n
\r\n \r\n
    \r\n
  • Seleccionar
  • \r\n
  • Editar
  • \r\n
  • Eliminar
  • \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
0\" class=\"d-flex justify-content-center pb-4\">\r\n \r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \"Cargando...\"\r\n \r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n \r\n
\r\n\r\n \r\n\r\n\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n ×\r\n
\r\n
\r\n","import {Component, ElementRef, Inject, Input, OnDestroy, OnInit, PLATFORM_ID, ViewChild} from '@angular/core';\r\nimport {Store} from '@ngrx/store';\r\nimport {Observable} from 'rxjs';\r\nimport {ContactAddressInterface, ContactOutputInterface, ContactPagedResponse, PutContactModel} from '@app/marketplace/checkout/_models/contact.model';\r\nimport {PaginatorComponent} from '@app/marketplace/shared/_components/paginator.component';\r\nimport {ActivatedRoute, Router} from '@angular/router';\r\nimport {Meta, Title} from '@angular/platform-browser';\r\nimport {PaginationSelectorModel} from '@app/marketplace/shared/_models/pagination-selector.model';\r\nimport * as selectors from '@app/marketplace/checkout/state/contacts/contacts-selectors';\r\nimport * as selectorsLocation from '@app/marketplace/locations/state/locations-selectors';\r\nimport * as selectorsCheckout from '@app/marketplace/checkout/state/checkout/checkout-selectors';\r\nimport * as contactsActions from '@app/marketplace/checkout/state/contacts/contacts-actions';\r\nimport * as checkoutActions from '@app/marketplace/checkout/state/checkout/checkout-actions';\r\nimport * as fromShoppingCartState from '@app/marketplace/products/state/shopping-cart/cart-state';\r\nimport {FormArray, FormControl, FormGroup} from '@angular/forms';\r\nimport {NgbActiveModal} from '@ng-bootstrap/ng-bootstrap';\r\nimport {LocationTypeEnum} from '@app/marketplace/shared/_models/location.model';\r\nimport {isPlatformBrowser} from '@angular/common';\r\nimport {initProvinces} from '@app/marketplace/locations/locations';\r\nimport * as locationState from '@app/marketplace/locations/state/locations-state';\r\nimport {CheckoutInterface} from '@app/marketplace/checkout/_models/checkout.model';\r\nimport * as cartSelectors from '@app/marketplace/products/state/shopping-cart/cart-selectors';\r\nimport * as locationsActions from '@app/marketplace/locations/state/locations-actions';\r\nimport {DeviceDetectorService} from 'ngx-device-detector';\r\n\r\n@Component({\r\n selector: 'app-contacts',\r\n templateUrl: './contacts.component.html',\r\n styleUrls: ['./contacts.component.css'],\r\n providers: [DeviceDetectorService]\r\n})\r\nexport class ContactsComponent extends PaginatorComponent implements OnInit, OnDestroy {\r\n @ViewChild('selectItems', {static: false})\r\n selectItems: ElementRef;\r\n @Input()\r\n firstContact: boolean;\r\n @Input()\r\n selectLocation: boolean;\r\n payload: any;\r\n contacts: FormArray;\r\n selectedContact$: Observable;\r\n selectUpdating$: Observable;\r\n locations = initProvinces;\r\n location: number = null;\r\n showAddContactForm = false;\r\n contactToEdit: ContactOutputInterface;\r\n checkoutRequest: any;\r\n\r\n selection = false;\r\n addingByDefault = false;\r\n showOptions = '';\r\n\r\n constructor(private route: ActivatedRoute,\r\n private metaService: Meta,\r\n private titleService: Title,\r\n private router: Router,\r\n private store: Store,\r\n public modelService: NgbActiveModal,\r\n private deviceService: DeviceDetectorService,\r\n @Inject(PLATFORM_ID) private platformId) {\r\n super(route, metaService, titleService, router, store, platformId, new PaginationSelectorModel(\r\n selectors.selectLoading,\r\n selectors.selectItems,\r\n selectors.selectPageSize,\r\n selectors.selectPageNo,\r\n selectors.selectTotalPage,\r\n selectors.selectTotalData,\r\n selectors.selectCount\r\n ));\r\n this.contacts = new FormArray([]);\r\n this.payload = {\r\n pageIndex: 1,\r\n pageSize: 5,\r\n pagingStrategy: 0,\r\n };\r\n if (isPlatformBrowser(platformId)) {\r\n this.selectedContact$ = this.store.select(selectors.selectResponse);\r\n this.selectUpdating$ = this.store.select(selectors.selectUpdating);\r\n }\r\n this.checkoutRequest = {\r\n contactId: '',\r\n signature: '',\r\n items: {}\r\n };\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this.store.dispatch(contactsActions.CleaningContacts());\r\n this.subscriptions.forEach(x => x.unsubscribe());\r\n }\r\n\r\n ngOnInit(): void {\r\n this.showAddContactForm = !this.firstContact;\r\n this.selectUpdating$.subscribe((result) => {\r\n if (result == false && (this.selection || this.addingByDefault)) {\r\n this.selection = false;\r\n this.addingByDefault = false;\r\n this.modelService.close({loadCheckout: true});\r\n }\r\n });\r\n this.loadContacts();\r\n }\r\n\r\n onChange($event) {\r\n document.body.click();\r\n this.payload.locations = this.location ? [this.location] : [];\r\n this.payload.locationType = initProvinces.find(province => province.value == this.location) ?\r\n LocationTypeEnum.Province : LocationTypeEnum.Municipality;\r\n this.payload.customLocation = true;\r\n this.loadContacts();\r\n }\r\n\r\n getCheckBoxControl = (code: string): FormGroup => this.contacts.controls.find((contact: FormGroup) => contact.controls['code'].value === code) as FormGroup;\r\n\r\n loadContacts = () => {\r\n if (!this.payload.pageIndex) {\r\n this.payload.pageIndex = 1;\r\n }\r\n if (!this.payload.pageSize) {\r\n this.payload.pageIndex = 10;\r\n }\r\n this.store.dispatch(contactsActions.LoadingContacts({payload: this.payload}));\r\n };\r\n\r\n removeContacts = (contact: ContactOutputInterface) => {\r\n this.payload.customLocation = true;\r\n this.payload.locations = this.location ? [this.location] : [];\r\n const payload = {\r\n payload: this.payload,\r\n codes: [{code: contact.code, isDefault: contact.isDefault}]\r\n };\r\n this.store.dispatch(contactsActions.RemovingContact(payload));\r\n };\r\n\r\n cancelRequest = () => this.store.dispatch(contactsActions.CancelContactsRequest());\r\n pageChange = ($event: number) => {\r\n this.payload.pageIndex = $event;\r\n this.loadContacts();\r\n };\r\n\r\n formatAddress(address: ContactAddressInterface, town: string = '') {\r\n let result = address.addressLine1;\r\n if (address.addressLine2) {\r\n result += `, ${address.addressLine2}`;\r\n }\r\n if (town) {\r\n result += `, ${town}`;\r\n }\r\n if (address.city) {\r\n result += `, ${address.city}`;\r\n }\r\n if (address.state) {\r\n result += `, ${address.state}`;\r\n }\r\n if (address.zipCode) {\r\n result += `, ${address.zipCode}`;\r\n }\r\n if (address.country) {\r\n result += `, ${address.country}`;\r\n }\r\n return result;\r\n }\r\n\r\n selectItem(contact: ContactOutputInterface) {\r\n this.selection = true;\r\n const model = new PutContactModel(contact);\r\n model.addressLine1 = contact.address.addressLine1;\r\n model.addressLine2 = contact.address.addressLine2;\r\n model.zipCode = contact.address.zipCode;\r\n model.location = contact.municipality;\r\n model.isDefault = true;\r\n this.store.dispatch(contactsActions.SelectingDefaultContact({data: model}));\r\n if (this.selectLocation) {\r\n this.store.dispatch(locationsActions.UpdatedLocation({locationType: LocationTypeEnum.Municipality, locations: [contact.municipality]}));\r\n }\r\n this.checkoutRequest.contactId = model.code;\r\n }\r\n\r\n showForm($event) {\r\n this.payload.customLocation = true;\r\n this.payload.locations = this.location ? [this.location] : [];\r\n this.showAddContactForm = $event.showForm;\r\n const payload = {\r\n payload: this.payload,\r\n data: $event.contact\r\n };\r\n if ($event.contact && $event.action == 'update') {\r\n this.store.dispatch(contactsActions.UpdatingContact(payload));\r\n } else if ($event.contact && $event.action == 'add') {\r\n this.addingByDefault = $event.contact.isDefault;\r\n this.store.dispatch(contactsActions.AddingContact(payload));\r\n if ($event.contact.isDefault) {\r\n this.modelService.close({loadCheckout: true});\r\n }\r\n }\r\n }\r\n\r\n options(contact: ContactOutputInterface) {\r\n if (this.deviceService.isMobile() || this.deviceService.isTablet()) {\r\n this.showOptions = contact.code;\r\n } else {\r\n this.selectItem(contact);\r\n }\r\n }\r\n}\r\n","import {createFeatureSelector, createSelector} from '@ngrx/store';\r\nimport {AppStorageState, LAYOUT_FEATURE_KEY} from '../../../storage/storage.state';\r\n\r\nexport const checkoutFeature = createFeatureSelector(LAYOUT_FEATURE_KEY);\r\nexport const selectLoading = createSelector(\r\n checkoutFeature,\r\n (state: AppStorageState) => {\r\n return state.contacts.isLoading;\r\n }\r\n);\r\nexport const selectUpdating = createSelector(\r\n checkoutFeature,\r\n (state: AppStorageState) => {\r\n return state.contacts.isUpdating;\r\n }\r\n);\r\nexport const selectResponse = createSelector(\r\n checkoutFeature,\r\n (state: AppStorageState) => state.contacts.data\r\n);\r\nexport const selectItems = createSelector(\r\n checkoutFeature,\r\n (state: AppStorageState) => state.contacts.data.data\r\n);\r\nexport const selectPageSize = createSelector(\r\n checkoutFeature,\r\n (state: AppStorageState) => state.contacts.data.pageSize\r\n);\r\nexport const selectPageNo = createSelector(\r\n checkoutFeature,\r\n (state: AppStorageState) => state.contacts.data.pageIndex\r\n);\r\nexport const selectCount = createSelector(\r\n checkoutFeature,\r\n (state: AppStorageState) => state.contacts.data.count\r\n);\r\nexport const selectTotalData = createSelector(\r\n checkoutFeature,\r\n (state: AppStorageState) => state.contacts.data.totalCount\r\n);\r\nexport const selectTotalPage = createSelector(\r\n checkoutFeature,\r\n (state: AppStorageState) => state.contacts.data.totalPages\r\n);\r\nexport const selectDefaultContactByCode = (code) => createSelector(\r\n checkoutFeature,\r\n (state: AppStorageState) => state.contacts?.data?.data?.find(x => x.code == code)\r\n);\r\n\r\nexport const selectDefaultContact = createSelector(\r\n checkoutFeature,\r\n (state: AppStorageState) => { return state.contacts?.data?.data?.find(x => x.isDefault); }\r\n);\r\n\r\n/*export const selectUpdatedContact = createSelector(\r\n checkoutFeature,\r\n (state: AppState) => state.contacts.data.data\r\n);*/\r\n","import {Injectable} from '@angular/core';\r\nimport {TreeviewItem, TreeviewSelection, DefaultTreeviewI18n} from 'ngx-treeview';\r\n\r\n@Injectable()\r\nexport class DropdownTreeviewSelectI18n extends DefaultTreeviewI18n {\r\n private internalSelectedItem: TreeviewItem;\r\n\r\n set selectedItem(value: TreeviewItem) {\r\n this.internalSelectedItem = value;\r\n }\r\n\r\n get selectedItem(): TreeviewItem {\r\n return this.internalSelectedItem;\r\n }\r\n\r\n constructor() {\r\n super();\r\n }\r\n\r\n getText(selection: TreeviewSelection): string {\r\n return this.internalSelectedItem ? this.internalSelectedItem.text : '';\r\n }\r\n\r\n getAllCheckboxText() {\r\n return 'Todos';\r\n }\r\n\r\n getFilterPlaceholder() {\r\n return 'Filtro';\r\n }\r\n\r\n getFilterNoItemsFoundText(): string {\r\n return 'Localización no encontrada';\r\n }\r\n}\r\n","\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n\r\n\r\n","import {Component, EventEmitter, Input, OnChanges, OnInit, Output, ViewChild} from '@angular/core';\r\nimport {isNil} from 'lodash';\r\nimport {DropdownTreeviewComponent, TreeviewConfig, TreeviewHelper, TreeviewI18n, TreeviewItem} from 'ngx-treeview';\r\nimport {DropdownTreeviewSelectI18n} from './dropdown-treeview-select-i18n';\r\n\r\n@Component({\r\n selector: 'app-dropdown-treeview-select',\r\n templateUrl: './dropdown-treeview-select.component.html',\r\n styleUrls: ['./dropdown-treeview-select.component.css'],\r\n providers: [\r\n {provide: TreeviewI18n, useClass: DropdownTreeviewSelectI18n}\r\n ]\r\n})\r\nexport class DropdownTreeviewSelectComponent implements OnChanges {\r\n\r\n @Input() includeParent: boolean;\r\n @Input() config: TreeviewConfig;\r\n @Input() items: TreeviewItem[];\r\n @Input() allowParentSelection: boolean;\r\n @Input() value: any;\r\n @Output() valueChange = new EventEmitter();\r\n @ViewChild(DropdownTreeviewComponent, {static: false}) dropdownTreeviewComponent: DropdownTreeviewComponent;\r\n filterText: string;\r\n private dropdownTreeviewSelectI18n: DropdownTreeviewSelectI18n;\r\n\r\n constructor(\r\n public i18n: TreeviewI18n\r\n ) {\r\n this.config = TreeviewConfig.create({\r\n hasAllCheckBox: false,\r\n hasCollapseExpand: false,\r\n hasFilter: true,\r\n maxHeight: 500\r\n });\r\n this.dropdownTreeviewSelectI18n = i18n as DropdownTreeviewSelectI18n;\r\n }\r\n\r\n ngOnChanges(): void {\r\n this.updateSelectedItem();\r\n }\r\n\r\n select(item: TreeviewItem): void {\r\n if (!item.children || this.includeParent) {\r\n this.selectItem(item);\r\n }\r\n }\r\n\r\n private updateSelectedItem(): void {\r\n if (!isNil(this.items)) {\r\n const selectedItem = TreeviewHelper.findItemInList(this.items, this.value);\r\n this.selectItem(selectedItem);\r\n }\r\n }\r\n\r\n private selectItem(item: TreeviewItem): void {\r\n if (this.dropdownTreeviewSelectI18n.selectedItem !== item) {\r\n this.dropdownTreeviewSelectI18n.selectedItem = item;\r\n if (this.dropdownTreeviewComponent) {\r\n this.dropdownTreeviewComponent.onSelectedChange([item]);\r\n }\r\n\r\n if (item) {\r\n if (this.value !== item.value) {\r\n this.value = item.value;\r\n this.valueChange.emit(item.value);\r\n }\r\n }\r\n }\r\n }\r\n\r\n}\r\n","import {SeoContent} from '@app/marketplace/seo-content/seo-content';\r\nimport {ActivatedRoute, Router} from '@angular/router';\r\nimport {Meta, Title} from '@angular/platform-browser';\r\nimport {Observable, Subscription} from 'rxjs';\r\nimport {Configuration} from '@app/marketplace/products/_models/product.interface';\r\nimport {Store} from '@ngrx/store';\r\nimport {ConfigurationPagedSelectorModel, PaginationSelectorModel} from '@app/marketplace/shared/_models/pagination-selector.model';\r\nimport {isPlatformBrowser} from '@angular/common';\r\n\r\nexport class PaginatorComponent extends SeoContent {\r\n\r\n public isLoading$: Observable;\r\n public items$: Observable;\r\n public pageSize$: Observable;\r\n public pageNo$: Observable;\r\n public totalPages$: Observable;\r\n public count$: Observable;\r\n public totalData$: Observable;\r\n public configuration$: Observable;\r\n subscriptions: Subscription[] = [];\r\n\r\n paginatorStore: Store;\r\n\r\n constructor(route: ActivatedRoute | null,\r\n metaService: Meta | null,\r\n titleService: Title | null,\r\n router: Router | null,\r\n store: Store,\r\n platformId: any,\r\n selector: PaginationSelectorModel) {\r\n super(route, metaService, titleService, router);\r\n if (isPlatformBrowser(platformId)) {\r\n this.paginatorStore = store;\r\n this.isLoading$ = this.paginatorStore.select(selector.selectLoading);\r\n this.items$ = this.paginatorStore.select(selector.selectItems);\r\n this.pageSize$ = this.paginatorStore.select(selector.selectPageSize);\r\n this.pageNo$ = this.paginatorStore.select(selector.selectPageNo);\r\n this.totalPages$ = this.paginatorStore.select(selector.selectTotalPage);\r\n this.totalData$ = this.paginatorStore.select(selector.selectTotalData);\r\n this.count$ = this.paginatorStore.select(selector.selectCount);\r\n this.subscriptions.push(this.isLoading$.subscribe(), this.items$.subscribe(), this.pageSize$.subscribe(), this.pageNo$.subscribe(), this.totalPages$.subscribe(), this.totalData$.subscribe(), this.count$.subscribe());\r\n }\r\n }\r\n\r\n OnDestroy() {\r\n this.subscriptions.forEach(x => x.unsubscribe());\r\n }\r\n}\r\n\r\nexport class ConfigurationPagedComponent extends PaginatorComponent {\r\n public configuration$: Observable;\r\n\r\n constructor(route: ActivatedRoute | null,\r\n metaService: Meta | null,\r\n titleService: Title | null,\r\n router: Router | null,\r\n store: Store,\r\n platformId: any,\r\n selector: ConfigurationPagedSelectorModel) {\r\n super(route, metaService, titleService, router, store, platformId, selector);\r\n if (isPlatformBrowser(platformId)) {\r\n this.configuration$ = this.paginatorStore.select(selector.selectConfiguration);\r\n this.subscriptions.push(this.configuration$.subscribe());\r\n }\r\n }\r\n\r\n OnDestroy() {\r\n super.OnDestroy();\r\n }\r\n}\r\n","import {Observable} from 'rxjs';\r\nimport {Configuration} from '@app/marketplace/products/_models/product.interface';\r\nimport {DefaultProjectorFn, MemoizedSelector} from '@ngrx/store';\r\n\r\nexport class PaginationSelectorModel {\r\n selectLoading: MemoizedSelector>;\r\n selectItems: MemoizedSelector>;\r\n selectPageSize: MemoizedSelector>;\r\n selectPageNo: MemoizedSelector>;\r\n selectTotalPage: MemoizedSelector>;\r\n selectTotalData: MemoizedSelector>;\r\n selectCount: MemoizedSelector>;\r\n selectConfiguration: MemoizedSelector>;\r\n constructor(selectLoading, selectItems, selectPageSize, selectPageNo, selectTotalPage, selectTotalData, selectCount) {\r\n this.selectLoading = selectLoading;\r\n this.selectItems = selectItems;\r\n this.selectPageSize = selectPageSize;\r\n this.selectPageNo = selectPageNo;\r\n this.selectTotalPage = selectTotalPage;\r\n this.selectTotalData = selectTotalData;\r\n this.selectCount = selectCount;\r\n }\r\n}\r\n\r\nexport class ConfigurationPagedSelectorModel extends PaginationSelectorModel {\r\n selectConfiguration: MemoizedSelector>;\r\n constructor(selectLoading, selectItems, selectPageSize, selectPageNo, selectTotalPage, selectTotalData, selectCount, selectConfiguration) {\r\n super(selectLoading, selectItems, selectPageSize, selectPageNo, selectTotalPage, selectTotalData, selectCount);\r\n this.selectConfiguration = selectConfiguration;\r\n }\r\n}\r\n"]}