{"version":3,"sources":["./node_modules/@ionic/core/dist/esm/theme-ff3fc52f.js","./node_modules/@ionic/core/dist/esm/button-active-4927a4c1.js","./src/app/services/affiliated.service.ts","./node_modules/@ionic/core/dist/esm/framework-delegate-4392cd63.js","./src/app/utils/deformatDocumentId.ts","./node_modules/@ionic/core/dist/esm/spinner-configs-cd7845af.js","./node_modules/@ionic/core/dist/esm/haptic-27b3f981.js"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0EAA0E,kCAAkC,MAAM,UAAU;AAC5H;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEqF;;;;;;;;;;;;;ACtCrF;AAAA;AAAA;AAAA;AAAA;AAAqD;AACkE;AACnE;;AAEpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,4DAAS;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,4DAAS;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,wEAAa;AACtB;AACA;AACA;AACA,mEAAmE,qDAAoB;AACvF,kEAAkE,qDAAsB;AACxF;AACA;AACA,MAAM,6DAAkB;AACxB;AACA;AACA,GAAG;AACH;;AAE0C;;;;;;;;;;;;;;;;;;;;AC/DQ;AACP;AACuB;IAKrD,iBAAiB,SAAjB,iBAAiB;IAM5B,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;QALpC,mDAAmD;QACnD,QAAG,GAAG,0EAAW,CAAC,MAAM,CAAC;QAKvB,mDAAmD;QACnD,8CAA8C;QAC9C,sBAAsB;IACxB,CAAC;IAED,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GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,gBAAgB;AACrC;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,kCAAkC,sCAAsC;AACxE,gCAAgC,4BAA4B;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,kCAAkC,sCAAsC;AACxE,gCAAgC,4BAA4B;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEyB;;;;;;;;;;;;;AC7GzB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,QAAQ;AAC3B,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB,QAAQ;AACjC,GAAG;AACH;AACA,iBAAiB,iBAAiB;AAClC,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC,iBAAiB;AACpD;AACA;AACA;AACA;;AAEoI","file":"common.js","sourcesContent":["const hostContext = (selector, el) => {\n return el.closest(selector) !== null;\n};\n/**\n * Create the mode and color classes for the component based on the classes passed in\n */\nconst createColorClasses = (color, cssClassMap) => {\n return (typeof color === 'string' && color.length > 0) ? Object.assign({ 'ion-color': true, [`ion-color-${color}`]: true }, cssClassMap) : cssClassMap;\n};\nconst getClassList = (classes) => {\n if (classes !== undefined) {\n const array = Array.isArray(classes) ? classes : classes.split(' ');\n return array\n .filter(c => c != null)\n .map(c => c.trim())\n .filter(c => c !== '');\n }\n return [];\n};\nconst getClassMap = (classes) => {\n const map = {};\n getClassList(classes).forEach(c => map[c] = true);\n return map;\n};\nconst SCHEME = /^[a-z][a-z0-9+\\-.]*:/;\nconst openURL = async (url, ev, direction, animation) => {\n if (url != null && url[0] !== '#' && !SCHEME.test(url)) {\n const router = document.querySelector('ion-router');\n if (router) {\n if (ev != null) {\n ev.preventDefault();\n }\n return router.push(url, direction, animation);\n }\n }\n return false;\n};\n\nexport { createColorClasses as c, getClassMap as g, hostContext as h, openURL as o };\n","import { c as writeTask } from './index-7a8b7a1c.js';\nimport { h as hapticSelectionEnd, a as hapticSelectionStart, b as hapticSelectionChanged } from './haptic-27b3f981.js';\nimport { createGesture } from './index-f49d994d.js';\n\nconst createButtonActiveGesture = (el, isButton) => {\n let currentTouchedButton;\n let initialTouchedButton;\n const activateButtonAtPoint = (x, y, hapticFeedbackFn) => {\n if (typeof document === 'undefined') {\n return;\n }\n const target = document.elementFromPoint(x, y);\n if (!target || !isButton(target)) {\n clearActiveButton();\n return;\n }\n if (target !== currentTouchedButton) {\n clearActiveButton();\n setActiveButton(target, hapticFeedbackFn);\n }\n };\n const setActiveButton = (button, hapticFeedbackFn) => {\n currentTouchedButton = button;\n if (!initialTouchedButton) {\n initialTouchedButton = currentTouchedButton;\n }\n const buttonToModify = currentTouchedButton;\n writeTask(() => buttonToModify.classList.add('ion-activated'));\n hapticFeedbackFn();\n };\n const clearActiveButton = (dispatchClick = false) => {\n if (!currentTouchedButton) {\n return;\n }\n const buttonToModify = currentTouchedButton;\n writeTask(() => buttonToModify.classList.remove('ion-activated'));\n /**\n * Clicking on one button, but releasing on another button\n * does not dispatch a click event in browsers, so we\n * need to do it manually here. Some browsers will\n * dispatch a click if clicking on one button, dragging over\n * another button, and releasing on the original button. In that\n * case, we need to make sure we do not cause a double click there.\n */\n if (dispatchClick && initialTouchedButton !== currentTouchedButton) {\n currentTouchedButton.click();\n }\n currentTouchedButton = undefined;\n };\n return createGesture({\n el,\n gestureName: 'buttonActiveDrag',\n threshold: 0,\n onStart: ev => activateButtonAtPoint(ev.currentX, ev.currentY, hapticSelectionStart),\n onMove: ev => activateButtonAtPoint(ev.currentX, ev.currentY, hapticSelectionChanged),\n onEnd: () => {\n clearActiveButton(true);\n hapticSelectionEnd();\n initialTouchedButton = undefined;\n }\n });\n};\n\nexport { createButtonActiveGesture as c };\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { environment } from '../../environments/environment.prod';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class AffiliatedService {\r\n // url = 'https://oficinavirtual.productospya.com';\r\n url = environment.apiUrl;\r\n affiliatedUser: any; // usuario seleccionado en primera pantalla de orden de atencion\r\n selectedProfessional: any; // usuario seleccionado en primera pantalla de orden de atencion\r\n\r\n constructor(private http: HttpClient) {\r\n // const parsedUrl = new URL(window.location.href);\r\n // const baseUrl = parsedUrl.origin + ':5002';\r\n // this.url = baseUrl;\r\n }\r\n\r\n getAffiliatedUser() {\r\n return this.affiliatedUser;\r\n }\r\n setAffiliatedUser(user: any) {\r\n this.affiliatedUser = user;\r\n }\r\n\r\n getSelectedProfessional() {\r\n return this.selectedProfessional;\r\n }\r\n setSelectedProfessional(professional: any) {\r\n this.selectedProfessional = professional;\r\n }\r\n\r\n //Obtiene la data para la consulta de Directorio Medico\r\n getMedicalDirectoryData(isChevere = false) {\r\n return Promise.all([\r\n this.http.get(this.url + `/api/v1/Services?isChevere=${isChevere}`).toPromise(),\r\n this.http.get(this.url + `/api/v1/States`).toPromise(),\r\n ]);\r\n }\r\n\r\n //Obtiene las ciudades de un estado\r\n getCity(stateCode: number) {\r\n return this.http\r\n .get(this.url + `/api/v1/States/${stateCode}/Cities`)\r\n .toPromise();\r\n }\r\n\r\n //Obtiene el listado de profesionales\r\n getProfessionals(serviceCode: string, stateCode: string, cityCode: string, empresaContratante: string) {\r\n return this.http\r\n .get(this.url + `/api/v1/Professionals`, {\r\n params: {\r\n serviceCode,\r\n stateCode,\r\n cityCode,\r\n esChevere: empresaContratante === \"J404854185\" ? \"true\" : \"false\",\r\n },\r\n })\r\n .toPromise();\r\n }\r\n\r\n //Obtiene los afiliados\r\n getAffiliates(documentId: string) {\r\n return this.http\r\n .get(this.url + `/api/v1/Affiliates/${documentId}/basicInfo`)\r\n .toPromise();\r\n }\r\n\r\n ///api/v1/Affiliates/{documentId}/treatments\r\n getTreatments(documentId: string, initialDate: any, finalDate: any, empresaContratante: string) {\r\n return this.http\r\n .get(this.url + `/api/v1/Affiliates/${documentId}/treatments`, {\r\n params: {\r\n documentId,\r\n initialDate,\r\n finalDate,\r\n empresaContratante : empresaContratante === 'J404854185' ? '1': '0',\r\n },\r\n })\r\n .toPromise();\r\n }\r\n\r\n getStates() {\r\n return this.http.get(this.url + `/api/v1/States`).toPromise();\r\n }\r\n\r\n getCities(stateCode: string) {\r\n return this.http\r\n .get(this.url + `/api/v1/States/${stateCode}/Cities`)\r\n .toPromise();\r\n }\r\n\r\n getCompanies() {\r\n return this.http.get(this.url + `/api/v1/CompanyGroups`).toPromise();\r\n }\r\n\r\n affiliatedInfo(documentId: string) {\r\n return this.http\r\n .get(this.url + `/api/v1/Affiliates/${documentId}`)\r\n .toPromise();\r\n }\r\n\r\n sendAffiliateRequest(documentId: string, data: any) {\r\n return this.http\r\n .post(\r\n this.url + `/api/v1/Affiliates/${documentId}/sendAffiliatedRequest`,\r\n data\r\n )\r\n .toPromise();\r\n }\r\n\r\n updateAffilate(documentId: string, data: any) {\r\n return this.http\r\n .post(this.url + `/api/v1/Affiliates/${documentId}/update`, data)\r\n .toPromise();\r\n }\r\n\r\n getProfessionalsForAtentionOrder() {\r\n return Promise.all([\r\n this.http\r\n .get(\r\n this.url +\r\n `/api/v1/Services?affiliatedCompanyGroupPlanService=${this.affiliatedUser.affiliatedCompanyGroupPlanServiceId}`\r\n )\r\n .toPromise(),\r\n this.http.get(this.url + `/api/v1/States`).toPromise(),\r\n ]);\r\n }\r\n\r\n getProfessionalsForAtentionOrderChevere() {\r\n return Promise.all([\r\n this.http\r\n .get(\r\n this.url +\r\n `/api/v1/Services?affiliatedCompanyGroupPlanService=${this.affiliatedUser.affiliatedCompanyGroupPlanServiceId}&isChevere=True`\r\n )\r\n .toPromise(),\r\n this.http.get(this.url + `/api/v1/States`).toPromise(),\r\n ]);\r\n }\r\n\r\n getSpecialities(serviceCode: string) {\r\n return this.http\r\n .get(this.url + `/api/v1/Services/${serviceCode}/specialties`)\r\n .toPromise();\r\n }\r\n\r\n //Obtiene el listado de profesionales con filtro de especialidad\r\n getProfessionalsOrdenAtencion(\r\n serviceCode: string,\r\n stateCode: string,\r\n cityCode: string,\r\n specialtyCode: string,\r\n empresaContratante: string\r\n ) {\r\n return this.http\r\n .get(this.url + `/api/v1/Professionals`, {\r\n params: {\r\n serviceCode,\r\n stateCode,\r\n cityCode,\r\n specialtyCode,\r\n esChevere: empresaContratante === \"J404854185\" ? \"true\" : \"false\",\r\n },\r\n })\r\n .toPromise();\r\n }\r\n\r\n // emitir orden de atencion\r\n emitAtentionOrder(documentId: string, data: any) {\r\n return this.http\r\n .post(\r\n this.url + `/api/v1/Affiliates/${documentId}/atentionOrderIssue`,\r\n data\r\n )\r\n .toPromise();\r\n // .catch((err) => {\r\n // return { message: err.error.message };\r\n // });\r\n }\r\n\r\n sendEmailOrderMX(documentId: string, data: any, order: string) {\r\n return this.http\r\n .post(\r\n this.url + `/api/v1/Affiliates/${documentId}/sendEmailAtentionOrderRX?order=${order}`,\r\n data\r\n )\r\n .toPromise();\r\n // .catch((err) => {\r\n // return { message: err.error.message };\r\n // });\r\n }\r\n\r\n emitAtentionOrderRX(order: string, data: any) {\r\n return this.http\r\n .post(\r\n this.url + `/api/v1/AtentionOrders/${order}/uploadImagerx`,\r\n data\r\n )\r\n .toPromise();\r\n // .catch((err) => {\r\n // return { message: err.error.message };\r\n // });\r\n }\r\n\r\n // tipos de razon de consulta\r\n getTypesReasonConsult(serviceCode: string) {\r\n return this.http\r\n .get(this.url + `/api/v1/Services/${serviceCode}/reasonsConsult`)\r\n .toPromise();\r\n }\r\n\r\n // envio de sugerencias\r\n sendSuggestion(documentId: string, typeUser: number, text: string) {\r\n return this.http.post(this.url + `/api/v1/Generals/send-suggestion`, {\r\n typeUser,\r\n text,\r\n documentId,\r\n });\r\n }\r\n\r\n //Obtiene el listado de profesionales con filtro de especialidad\r\n async validarOrdenAtencionCantidad(\r\n documentId: string,\r\n ) {\r\n try\r\n {\r\n await this.http\r\n .get(this.url + `/api/v1/Professionals/${documentId}/validateCantOA`, { })\r\n .toPromise();\r\n\r\n return \"true:\";\r\n }\r\n catch(e)\r\n {\r\n console.log(e);\r\n return \"false:\"+e.error;\r\n }\r\n \r\n }\r\n}\r\n","import { c as componentOnReady } from './helpers-dd7e4b7b.js';\n\nconst attachComponent = async (delegate, container, component, cssClasses, componentProps) => {\n if (delegate) {\n return delegate.attachViewToDom(container, component, componentProps, cssClasses);\n }\n if (typeof component !== 'string' && !(component instanceof HTMLElement)) {\n throw new Error('framework delegate is missing');\n }\n const el = (typeof component === 'string')\n ? container.ownerDocument && container.ownerDocument.createElement(component)\n : component;\n if (cssClasses) {\n cssClasses.forEach(c => el.classList.add(c));\n }\n if (componentProps) {\n Object.assign(el, componentProps);\n }\n container.appendChild(el);\n await new Promise(resolve => componentOnReady(el, resolve));\n return el;\n};\nconst detachComponent = (delegate, element) => {\n if (element) {\n if (delegate) {\n const container = element.parentElement;\n return delegate.removeViewFromDom(container, element);\n }\n element.remove();\n }\n return Promise.resolve();\n};\n\nexport { attachComponent as a, detachComponent as d };\n","// Funcion que sirve para hacer lo opuesto a formatDocumentId()\r\n// La cedula viene con el formato 00001234 desde el backend y\r\n// no podemos mostrar en el front esos ceros que no agregan\r\n// valor, por lo que debemos eliminarlos.\r\n// Nota: solo se eliminan los primeros, al llegar a un numero\r\n// se retorna el valor calculado.\r\n\r\nexport const deformatDocumentId = (documentId: string) => {\r\n return Number(documentId);\r\n}\r\n","const spinners = {\n 'bubbles': {\n dur: 1000,\n circles: 9,\n fn: (dur, index, total) => {\n const animationDelay = `${(dur * index / total) - dur}ms`;\n const angle = 2 * Math.PI * index / total;\n return {\n r: 5,\n style: {\n 'top': `${9 * Math.sin(angle)}px`,\n 'left': `${9 * Math.cos(angle)}px`,\n 'animation-delay': animationDelay,\n }\n };\n }\n },\n 'circles': {\n dur: 1000,\n circles: 8,\n fn: (dur, index, total) => {\n const step = index / total;\n const animationDelay = `${(dur * step) - dur}ms`;\n const angle = 2 * Math.PI * step;\n return {\n r: 5,\n style: {\n 'top': `${9 * Math.sin(angle)}px`,\n 'left': `${9 * Math.cos(angle)}px`,\n 'animation-delay': animationDelay,\n }\n };\n }\n },\n 'circular': {\n dur: 1400,\n elmDuration: true,\n circles: 1,\n fn: () => {\n return {\n r: 20,\n cx: 48,\n cy: 48,\n fill: 'none',\n viewBox: '24 24 48 48',\n transform: 'translate(0,0)',\n style: {}\n };\n }\n },\n 'crescent': {\n dur: 750,\n circles: 1,\n fn: () => {\n return {\n r: 26,\n style: {}\n };\n }\n },\n 'dots': {\n dur: 750,\n circles: 3,\n fn: (_, index) => {\n const animationDelay = -(110 * index) + 'ms';\n return {\n r: 6,\n style: {\n 'left': `${9 - (9 * index)}px`,\n 'animation-delay': animationDelay,\n }\n };\n }\n },\n 'lines': {\n dur: 1000,\n lines: 12,\n fn: (dur, index, total) => {\n const transform = `rotate(${30 * index + (index < 6 ? 180 : -180)}deg)`;\n const animationDelay = `${(dur * index / total) - dur}ms`;\n return {\n y1: 17,\n y2: 29,\n style: {\n 'transform': transform,\n 'animation-delay': animationDelay,\n }\n };\n }\n },\n 'lines-small': {\n dur: 1000,\n lines: 12,\n fn: (dur, index, total) => {\n const transform = `rotate(${30 * index + (index < 6 ? 180 : -180)}deg)`;\n const animationDelay = `${(dur * index / total) - dur}ms`;\n return {\n y1: 12,\n y2: 20,\n style: {\n 'transform': transform,\n 'animation-delay': animationDelay,\n }\n };\n }\n }\n};\nconst SPINNERS = spinners;\n\nexport { SPINNERS as S };\n","const HapticEngine = {\n getEngine() {\n const win = window;\n return (win.TapticEngine) || (win.Capacitor && win.Capacitor.isPluginAvailable('Haptics') && win.Capacitor.Plugins.Haptics);\n },\n available() {\n return !!this.getEngine();\n },\n isCordova() {\n return !!window.TapticEngine;\n },\n isCapacitor() {\n const win = window;\n return !!win.Capacitor;\n },\n impact(options) {\n const engine = this.getEngine();\n if (!engine) {\n return;\n }\n const style = this.isCapacitor() ? options.style.toUpperCase() : options.style;\n engine.impact({ style });\n },\n notification(options) {\n const engine = this.getEngine();\n if (!engine) {\n return;\n }\n const style = this.isCapacitor() ? options.style.toUpperCase() : options.style;\n engine.notification({ style });\n },\n selection() {\n this.impact({ style: 'light' });\n },\n selectionStart() {\n const engine = this.getEngine();\n if (!engine) {\n return;\n }\n if (this.isCapacitor()) {\n engine.selectionStart();\n }\n else {\n engine.gestureSelectionStart();\n }\n },\n selectionChanged() {\n const engine = this.getEngine();\n if (!engine) {\n return;\n }\n if (this.isCapacitor()) {\n engine.selectionChanged();\n }\n else {\n engine.gestureSelectionChanged();\n }\n },\n selectionEnd() {\n const engine = this.getEngine();\n if (!engine) {\n return;\n }\n if (this.isCapacitor()) {\n engine.selectionEnd();\n }\n else {\n engine.gestureSelectionEnd();\n }\n }\n};\n/**\n * Trigger a selection changed haptic event. Good for one-time events\n * (not for gestures)\n */\nconst hapticSelection = () => {\n HapticEngine.selection();\n};\n/**\n * Tell the haptic engine that a gesture for a selection change is starting.\n */\nconst hapticSelectionStart = () => {\n HapticEngine.selectionStart();\n};\n/**\n * Tell the haptic engine that a selection changed during a gesture.\n */\nconst hapticSelectionChanged = () => {\n HapticEngine.selectionChanged();\n};\n/**\n * Tell the haptic engine we are done with a gesture. This needs to be\n * called lest resources are not properly recycled.\n */\nconst hapticSelectionEnd = () => {\n HapticEngine.selectionEnd();\n};\n/**\n * Use this to indicate success/failure/warning to the user.\n * options should be of the type `{ style: 'light' }` (or `medium`/`heavy`)\n */\nconst hapticImpact = (options) => {\n HapticEngine.impact(options);\n};\n\nexport { hapticSelectionStart as a, hapticSelectionChanged as b, hapticSelection as c, hapticImpact as d, hapticSelectionEnd as h };\n"],"sourceRoot":"webpack:///"}